Hooks
useSIWE Hook
Hook for getting SIWE logic.
Import
Usage
Parameters
Parameter | Type | Definition |
---|---|---|
eoaAddress | Address | EOA address of the connected wallet. |
eoaStatus | "connected" , "disconnected" , "reconnecting" , "connecting" | Connection status of the EOA wallet. |
chainId | number | ChainId of network to which the dapp is connected. |
config | Config | wagmi config. |
Returns
Value | Return Type | Definition |
---|---|---|
fetchSIWEToken | (paymasterUrl: string) ⇒ Promise<any> | - function to challenge and sign SIWE message with connected EOA account |