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)