account-kit/wallet-client
Type Aliases
Variables
Variable | Description |
---|---|
WalletServerRpcSchema | - |
Functions
Function | Description |
---|---|
createSmartWalletClient | Creates a smart wallet client that can be used to interact with a smart account. |
formatSign | Formats a signature request for signing messages or transactions. |
getCallsStatus | Gets the status of a prepared call by its ID. This method is used to check the execution status of calls sent via sendPreparedCalls. |
grantPermissions | Grants permissions to a smart account by creating a session. This allows another key to perform operations on behalf of the account. |
listAccounts | Lists all smart accounts for a given signer using the wallet API client. |
prepareCalls | Prepares a set of contract calls for execution by building a user operation. Returns the built user operation and a signature request that needs to be signed before submitting to sendPreparedCalls. |
prepareSign | Prepares a signature request for signing messages or transactions. |
requestAccount | Requests an account for the provided signer using the wallet API client. If an account already exists for the signer, it will always return that account unless a new ID is specified. If an account already exists, the creationHint will be ignored. |
sendCalls | Prepares, signs, and submits calls. This function internally calls prepareCalls , signPreparedCalls , and sendPreparedCalls . |
sendPreparedCalls | Sends prepared calls by submitting a signed user operation. This method is used after signing the signature request returned from prepareCalls. |
signMessage | Signs a message using the smart account. This method requests the account associated with the signer and uses it to sign the message. |
signPreparedCalls | Signs prepared calls using the provided signer. |
signSignatureRequest | Signs a signature request using the provided signer. This method handles different types of signature requests including personal_sign, eth_signTypedData_v4, and authorization. |
signTypedData | Signs typed data (EIP-712) using the smart account. This method requests the account associated with the signer and uses it to sign the typed data. |
waitForCallsStatus | Waits for the status of a prepared call to be updated, returning after the calls are no longer pending. |