Sign a transaction
To send a transaction from a wallet using the React SDK, use the signTransaction
method from the useSignTransaction
hook:
Usage
Parameters
The details of the transaction to sign.
The options for the UI of the send transaction modal. Learn more.
The configuration for funding the wallet.
The address of the wallet to use for signing the transaction.
Returns
The signed transaction hash.
To send a transaction from a wallet using the React SDK, use the signTransaction
method from the useSignTransaction
hook:
Usage
Parameters
The details of the transaction to sign.
The options for the UI of the send transaction modal. Learn more.
The configuration for funding the wallet.
The address of the wallet to use for signing the transaction.
Returns
The signed transaction hash.
To sign a transaction from a wallet using the React Native SDK use the request
method from the wallets EIP1193 provider:
Usage
Parameters
The RPC method executed with the wallet.
The details of the transaction to sign.
Returns
The hash for the broadcasted transaction.
Use the request
method on the Ethereum provider to sign a transaction with an Ethereum wallet.
Usage
Parameters
The RPC method to execute with the wallet.
Array containing the transaction JSON as a single string element.
Returns
The hash of the broadcasted transaction.
HD wallets
Ethereum embedded wallets are hierarchical deterministic (HD) wallets, and a user’s seed entropy can support multiple separate embedded wallets.
HD wallets are only supported on Ethereum. allowAdditional
is not supported for Solana wallets.
Send a request with the new wallet
To send a request to an embedded wallet not at the 0-index, pass the desired wallet address as an optional second parameter to provider.request
.
Use the request
method on the Ethereum wallet provider to sign a transaction with an Ethereum wallet.
Usage
Parameters
The RPC method to execute with the wallet.
Array containing the transaction JSON as a single string element.
Returns
A Result that, when successful, contains the EthereumRpcResponse with:
Use the Request
method on the wallet’s RPC provider to sign a transaction with an Ethereum wallet.
Usage
Parameters
The RPC method to execute with the wallet.
Array containing the transaction JSON as a single string element.
Returns
An RPC response object with:
Use the request
method on the Ethereum wallet provider to sign a transaction with an Ethereum wallet.
Usage
Parameters
The RPC method to execute with the wallet.
List containing the transaction JSON as a single string element.
Returns
A Result that, when successful, contains the EthereumRpcResponse with:
Use the signTransaction
method on the Ethereum client to sign a transaction with an Ethereum wallet.
Usage
Parameters
The ID of the wallet to sign the transaction with.
The transaction to sign.
Returns
The signed transaction.
The encoding format for the returned signedTransaction
. Currently, only 'rlp'
is supported for Ethereum.
To sign a transaction make a POST
request to
Usage
A successful response will look like the following:
Parameters
The RPC method executed with the wallet.
The details of the transaction to send on the chain.
Returns
The RPC method executed with the wallet.
The signed transaction.
The encoding format for the signed transaction. Currently, only 'rlp'
is supported for Ethereum.