Follow the smart wallets setup guide to configure smart wallets for your application.
Once a smart wallet has been created for a user, you can get the address for the smart wallet by finding the account of type: 'smart_wallet'
from the user’s linkedAccounts
array.
Use the signMessage
function from the client
returned by useSmartWallets
hook in your React component to sign a message using the user’s smart wallet.
The signMessage
method accepts the following parameters:
The message to sign by the smart account.
Optional UI customization options for the signature prompt.
The signed message by the smart wallet.
Use the signTypedData
function from the client
returned by useSmartWallets
hook in your React component to sign structured data using the user’s smart wallet.
The signTypedData
method accepts the following parameters:
The typed data to sign by the smart account.
Optional UI customization options for the signature prompt.
The signed message by the smart wallet.
Use the sendTransaction
function from the client
returned by useSmartWallets
hook in your React component to send a transaction using the user’s smart wallet.
The sendTransaction
method accepts the following parameters:
The transaction to send by the smart account.
Optional UI customization options for the transaction prompt.
The transaction hash of the sent transaction.
Smart wallets support sending a batch of transactions in a single, atomic submission to the network.
The sendTransaction
method for batching accepts the following parameters:
Array of transactions to batch together.
Optional UI customization options for the transaction prompt.
The transaction hash of the batched transaction.
Use the getClientForChain
method to create a new smart wallet client for a specific chain.
The getClientForChain
method accepts the following parameters:
The chain ID to create a client for.
A new smart wallet client configured for the specified chain.
If configured defaultChain
does not have a smart wallet network configuration, the smart wallet client will default to using the first configured chain that has a smart wallet network configuration.
Follow the smart wallets setup guide to configure smart wallets for your application.
Once a smart wallet has been created for a user, you can get the address for the smart wallet by finding the account of type: 'smart_wallet'
from the user’s linkedAccounts
array.
Use the signMessage
function from the client
returned by useSmartWallets
hook in your React component to sign a message using the user’s smart wallet.
The signMessage
method accepts the following parameters:
The message to sign by the smart account.
Optional UI customization options for the signature prompt.
The signed message by the smart wallet.
Use the signTypedData
function from the client
returned by useSmartWallets
hook in your React component to sign structured data using the user’s smart wallet.
The signTypedData
method accepts the following parameters:
The typed data to sign by the smart account.
Optional UI customization options for the signature prompt.
The signed message by the smart wallet.
Use the sendTransaction
function from the client
returned by useSmartWallets
hook in your React component to send a transaction using the user’s smart wallet.
The sendTransaction
method accepts the following parameters:
The transaction to send by the smart account.
Optional UI customization options for the transaction prompt.
The transaction hash of the sent transaction.
Smart wallets support sending a batch of transactions in a single, atomic submission to the network.
The sendTransaction
method for batching accepts the following parameters:
Array of transactions to batch together.
Optional UI customization options for the transaction prompt.
The transaction hash of the batched transaction.
Use the getClientForChain
method to create a new smart wallet client for a specific chain.
The getClientForChain
method accepts the following parameters:
The chain ID to create a client for.
A new smart wallet client configured for the specified chain.
If configured defaultChain
does not have a smart wallet network configuration, the smart wallet client will default to using the first configured chain that has a smart wallet network configuration.
Follow the React Native setup guide to configure smart wallets for your React Native application.
Once a smart wallet has been created for a user, you can get the address for the smart wallet by finding the account of type: 'smart_wallet'
from the user’s linked_accounts
array.
Use the signMessage
function from the client
returned by useSmartWallets
hook in your React Native component to sign a message using the user’s smart wallet.
The signMessage
method accepts the following parameters:
The message to sign by the smart account.
The signed message by the smart wallet.
Use the signTypedData
function from the client
returned by useSmartWallets
hook in your React Native component to sign structured data using the user’s smart wallet.
The signTypedData
method accepts the following parameters:
The typed data to sign by the smart account.
The signed message by the smart wallet.
Use the sendTransaction
function from the client
returned by useSmartWallets
hook in your React Native component to send a transaction using the user’s smart wallet.
The sendTransaction
method accepts the following parameters:
The transaction to send by the smart account.
The transaction hash of the sent transaction.
Smart wallets support sending a batch of transactions in a single, atomic submission to the network.
The sendTransaction
method for batching accepts the following parameters:
Array of transactions to batch together.
The transaction hash of the batched transaction.
The smart wallet client will default to using the first configured chain that has a smart wallet network configuration.
Follow the smart wallets setup guide to configure smart wallets for your application.
Once a smart wallet has been created for a user, you can get the address for the smart wallet by finding the account of type: 'smart_wallet'
from the user’s linkedAccounts
array.
Use the signMessage
function from the client
returned by useSmartWallets
hook in your React component to sign a message using the user’s smart wallet.
The signMessage
method accepts the following parameters:
The message to sign by the smart account.
Optional UI customization options for the signature prompt.
The signed message by the smart wallet.
Use the signTypedData
function from the client
returned by useSmartWallets
hook in your React component to sign structured data using the user’s smart wallet.
The signTypedData
method accepts the following parameters:
The typed data to sign by the smart account.
Optional UI customization options for the signature prompt.
The signed message by the smart wallet.
Use the sendTransaction
function from the client
returned by useSmartWallets
hook in your React component to send a transaction using the user’s smart wallet.
The sendTransaction
method accepts the following parameters:
The transaction to send by the smart account.
Optional UI customization options for the transaction prompt.
The transaction hash of the sent transaction.
Smart wallets support sending a batch of transactions in a single, atomic submission to the network.
The sendTransaction
method for batching accepts the following parameters:
Array of transactions to batch together.
Optional UI customization options for the transaction prompt.
The transaction hash of the batched transaction.
Use the getClientForChain
method to create a new smart wallet client for a specific chain.
The getClientForChain
method accepts the following parameters:
The chain ID to create a client for.
A new smart wallet client configured for the specified chain.
If configured defaultChain
does not have a smart wallet network configuration, the smart wallet client will default to using the first configured chain that has a smart wallet network configuration.
Follow the smart wallets setup guide to configure smart wallets for your application.
Once a smart wallet has been created for a user, you can get the address for the smart wallet by finding the account of type: 'smart_wallet'
from the user’s linkedAccounts
array.
Use the signMessage
function from the client
returned by useSmartWallets
hook in your React component to sign a message using the user’s smart wallet.
The signMessage
method accepts the following parameters:
The message to sign by the smart account.
Optional UI customization options for the signature prompt.
The signed message by the smart wallet.
Use the signTypedData
function from the client
returned by useSmartWallets
hook in your React component to sign structured data using the user’s smart wallet.
The signTypedData
method accepts the following parameters:
The typed data to sign by the smart account.
Optional UI customization options for the signature prompt.
The signed message by the smart wallet.
Use the sendTransaction
function from the client
returned by useSmartWallets
hook in your React component to send a transaction using the user’s smart wallet.
The sendTransaction
method accepts the following parameters:
The transaction to send by the smart account.
Optional UI customization options for the transaction prompt.
The transaction hash of the sent transaction.
Smart wallets support sending a batch of transactions in a single, atomic submission to the network.
The sendTransaction
method for batching accepts the following parameters:
Array of transactions to batch together.
Optional UI customization options for the transaction prompt.
The transaction hash of the batched transaction.
Use the getClientForChain
method to create a new smart wallet client for a specific chain.
The getClientForChain
method accepts the following parameters:
The chain ID to create a client for.
A new smart wallet client configured for the specified chain.
If configured defaultChain
does not have a smart wallet network configuration, the smart wallet client will default to using the first configured chain that has a smart wallet network configuration.
Follow the React Native setup guide to configure smart wallets for your React Native application.
Once a smart wallet has been created for a user, you can get the address for the smart wallet by finding the account of type: 'smart_wallet'
from the user’s linked_accounts
array.
Use the signMessage
function from the client
returned by useSmartWallets
hook in your React Native component to sign a message using the user’s smart wallet.
The signMessage
method accepts the following parameters:
The message to sign by the smart account.
The signed message by the smart wallet.
Use the signTypedData
function from the client
returned by useSmartWallets
hook in your React Native component to sign structured data using the user’s smart wallet.
The signTypedData
method accepts the following parameters:
The typed data to sign by the smart account.
The signed message by the smart wallet.
Use the sendTransaction
function from the client
returned by useSmartWallets
hook in your React Native component to send a transaction using the user’s smart wallet.
The sendTransaction
method accepts the following parameters:
The transaction to send by the smart account.
The transaction hash of the sent transaction.
Smart wallets support sending a batch of transactions in a single, atomic submission to the network.
The sendTransaction
method for batching accepts the following parameters:
Array of transactions to batch together.
The transaction hash of the batched transaction.
The smart wallet client will default to using the first configured chain that has a smart wallet network configuration.