SDK Explorer

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.

Parameters
input
object
Required

Represents the input to sign the EIP-191 message from a specified user-controlled wallet.

memo
string

The human readable explanation for this sign action. Useful for presenting with extra information.

rawTransaction
string

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
string

Transaction object in JSON that needs to be signed. Excluded with rawTransaction. Required without rawTransaction.

NOTE: This field is only supported by EVM chains.

walletId
string
Required

System-generated unique identifier of the resource.

Responses
Example
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)
ResponseChoose an example
1{
2  "data": {
3    "signature": "3W6r38STvZuBSmk2bbbct132SjEsYSARo3CJi3JQvNUaFoYu...",
4    "signedTransaction": "AgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABpzlAhqqen7eyTe0KQ3w+9NS4E+7sscb+Cr...",
5    "txHash": "0x4a25cc5e661d8504b59c5f38ba93f010e8518966f00e2ceda7955c4b8621357d"
6  }
7}
Did this page help you?
© 2023-2025 Circle Technology Services, LLC. All rights reserved.