| Function | Description |
|---|---|
| alchemyWalletTransport | - |
| createSmartWalletClient | Creates a smart wallet client with wallet API actions. |
| formatSign | Formats a signature request for signing messages or transactions. |
| getCapabilities | Gets the capabilities supported by the wallet for the given account. Delegates to viem's getCapabilities and renames paymasterService to paymaster for consistency with the SDK's public API. |
| 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 a smart account address for the provided signer using the wallet API client. |
| 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. |
| smartWalletActions | Decorator that adds smart wallet actions to a wallet API client. Provides both Alchemy-specific methods and standard viem wallet actions. |
wallet-apis
Was this page helpful?