Sign a transaction from a specific developer-controlled wallet.
NOTE: This endpoint is only available for the following chains: SOL
, SOL-DEVNET
, NEAR
, NEAR-TESTNET
, EVM
, EVM-TESTNET
.
Each chain defines its own standard, please refer to Signing APIs doc.
Represents the input to sign the EIP-191 message from a specified user-controlled wallet.
The human readable explanation for this sign action. Useful for presenting with extra information.
Raw transaction string that needs to be signed. Excluded with transaction
. Required without transaction
.
Required to be base64 encoded for NEAR, Solana chains. Required to be hex encoded for EVM chains.
Transaction object in JSON that needs to be signed. Excluded with rawTransaction
. Required without rawTransaction
.
NOTE: This field is only supported by EVM
chains.
System-generated unique identifier of the resource.
1const response = await client.signTransaction({
2 walletId: 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11',
3 rawTransaction: 'ZGVlcGFrcm...VkZHlndW1taQ==',
4 memo: 'Transfer USDC to Sam',
5})
6console.log(response.data?.signature)
1{
2 "data": {
3 "signature": "3W6r38STvZuBSmk2bbbct132SjEsYSARo3CJi3JQvNUaFoYu...",
4 "signedTransaction": "AgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABpzlAhqqen7eyTe0KQ3w+9NS4E+7sscb+Cr...",
5 "txHash": "0x4a25cc5e661d8504b59c5f38ba93f010e8518966f00e2ceda7955c4b8621357d"
6 }
7}