account-kit/wallet-client

Type Aliases

Variables

VariableDescription
WalletServerRpcSchema-

Functions

FunctionDescription
createSmartWalletClientCreates a smart wallet client that can be used to interact with a smart account.
formatSignFormats a signature request for signing messages or transactions.
getCallsStatusGets the status of a prepared call by its ID. This method is used to check the execution status of calls sent via sendPreparedCalls.
grantPermissionsGrants permissions to a smart account by creating a session. This allows another key to perform operations on behalf of the account.
listAccountsLists all smart accounts for a given signer using the wallet API client.
prepareCallsPrepares 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.
prepareSignPrepares a signature request for signing messages or transactions.
requestAccountRequests 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.
sendCallsPrepares, signs, and submits calls. This function internally calls prepareCalls, signPreparedCalls, and sendPreparedCalls.
sendPreparedCallsSends prepared calls by submitting a signed user operation. This method is used after signing the signature request returned from prepareCalls.
signMessageSigns a message using the smart account. This method requests the account associated with the signer and uses it to sign the message.
signPreparedCallsSigns prepared calls using the provided signer.
signSignatureRequestSigns a signature request using the provided signer. This method handles different types of signature requests including personal_sign, eth_signTypedData_v4, and authorization.
signTypedDataSigns 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.
waitForCallsStatusWaits for the status of a prepared call to be updated, returning after the calls are no longer pending.