Sign a transaction
To sponsor gas fees for transactions on Solana, see our guide here.
Use the signTransaction
method exported from the useSignTransaction
hook to sign a transaction with a Solana wallet.
Usage
Parameters
The transaction to be signed. Can be either a legacy Transaction or VersionedTransaction from @solana/web3.js.
Connection to an SVM (Solana) network.
UI options to customize the transaction request modal.
Transaction options to customize the transaction request.
Address for the embedded wallet signing the transaction. Defaults to the user’s embedded wallet at HD index 0.
Response
The signed transaction that can be sent to the network.
Sign all transactions
Use the signAllTransactions
method on a Solana wallet to sign all transactions in a batch.
signAllTransactions
method is only available with whitelabel UIsUsage
Parameters
The transactions to sign.
Returns
The array of signed transactions.
Use the signTransaction
method exported from the useSignTransaction
hook to sign a transaction with a Solana wallet.
Usage
Parameters
The transaction to be signed. Can be either a legacy Transaction or VersionedTransaction from @solana/web3.js.
Connection to an SVM (Solana) network.
UI options to customize the transaction request modal.
Transaction options to customize the transaction request.
Address for the embedded wallet signing the transaction. Defaults to the user’s embedded wallet at HD index 0.
Response
The signed transaction that can be sent to the network.
Sign all transactions
Use the signAllTransactions
method on a Solana wallet to sign all transactions in a batch.
signAllTransactions
method is only available with whitelabel UIsUsage
Parameters
The transactions to sign.
Returns
The array of signed transactions.
To sign a transaction from a wallet using the React Native SDK, use the request
method from the wallet’s provider:
Usage
Parameters
The RPC method executed with the wallet.
Parameters for the transaction.
Returns
The signature of the transaction.
Sign a Solana transaction without submitting it to the network.
Usage
Parameters
The base64-encoded serialized transaction message to sign.
Returns
The base64-encoded signature for the transaction.
Use the signMessage
method on the Solana wallet provider to sign a transaction and then submit it to the network.
Usage
Parameters
The base64-encoded serialized transaction message to sign.
Returns
A Result that, when successful, contains the base64-encoded signature.
Use the signMessage
method on the Solana wallet provider to sign a transaction and then submit it to the network.
Usage
Parameters
The base64-encoded serialized transaction message to sign.
Returns
A Result that, when successful, contains the base64-encoded signature.
Use the signTransaction
method on the Solana client to sign a transaction with an Solana wallet.
Usage
Parameters
The ID of the wallet to send the transaction from.
The transaction to sign. This can be either a legacy Transaction or a VersionedTransaction object from @solana/web3.js.
Returns
The signed transaction.
The encoding format for the returned signedTransaction
. Currently, only 'base64'
is supported for Solana.
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.
Returns
The RPC method executed with the wallet.
The signed transaction.
The encoding format for the signed transaction. Currently, only 'base64'
is supported for Ethereum.