Skip to content

Documentation / react-auth / useSignAuthorization

Function: useSignAuthorization() ​

useSignAuthorization(): Object

Interfaces are subject to change in the future.

Signs an EIP-7702 authorization with the user's wallet. This is strongly not recommended for production use until the Pectra hard fork

Returns ​

Object

signAuthorization ​

signAuthorization: (input, options?) => Promise<Object | Object | Object | Object | Object | Object>

Parameters ​

• input: Object

• input.chainId?: number

• input.contractAddress?: `0x${string}`

• input.executor?: `0x${string}` | "self"

• input.nonce?: number

• options?: Object

• options.address?: string

Returns ​

Promise<Object | Object | Object | Object | Object | Object>