Sign transaction
Sign a transaction from a specific developer-controlled wallet.
To identify the wallet, you must provide either walletId, or both walletAddress and blockchain in the request body.
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.
Authorizations
Headers
Developer-provided identifier for this request, used for tracing requests in Wallets API logs and the Developer Console, and when communicating with Circle Support. Must be a UUID to appear in logs. Non-UUID values are accepted by the API but are ignored by logging and tracing systems.
A unique identifier, which can be helpful for identifying a request when communicating with Circle support.
"2adba88e-9d63-44bc-b975-9b6ae3440dde"
Body
Schema for the request payload to sign a transaction.
Base64-encoded ciphertext of your entity secret, created with your entity public key. Create a new ciphertext for every request:
- Convert the entity secret from its 64-character hex string to its 32 raw bytes.
- Encrypt those bytes with RSA-OAEP using your entity public key (from
GET /v1/w3s/config/entity/publicKey). Use SHA-256 for both the OAEP hash and the MGF1 hash. If your library defaults MGF1 to SHA-1, set it to SHA-256 explicitly. - Base64-encode the result.
RSA-OAEP is randomized. Re-encrypt the secret for each request; do not reuse a ciphertext.
"M8OAwbJ8rMsPd8+NT4xRDBDJSNqUKAvJeWPyuwZSlVXgRucogAlBxjvjIw4nsKeJ4hejjlpmyaaJrusHm6zsvy4BLuL1an3dYn3wORjYf3sU4QN9Rdk9OJxZvE5hDNPq7okucvb1eElxPVREZvr4ew7sh4ktmwDrwWFUYwKoly4fEzxYI9zvVpCY9xPSgkA5m3u1/P2vMYZ0QFtn8lRZxCuTyc4wRLpT9TOaK46CEXCakmAYaYWnLkl18QXOSY6FhCbGm+zQ2Uu4cUPU/bqjIyQIB80ut3drInDzysQLE/FJjcJW9+q+E75LKGKnrp2zCg/Xv3TEvru9a2A0vd7InZ9kNuxnPPFc1JSO7BT2TPP89YcLO0OmtRiGoXPlYzXuNIfUsVQ5/FW9FPp4qp+iMPrAidsjQrskHPxhW92GeezLpOSkUl7lAWQoioYED979mqGfzNIZTF5Ob6fJifboiwhOab6sAKnxmvWjgFnW/bZ5a8xkzgPc4RHpIejot1Q7fpT+67eA+DVxvUqakJI6t3iEaZTNITCSU2Cfj1oyCQfrZGf9tauW49rO1zYHKoV4z9ylymOWtCUk641iyxwFCNSW47CDsc0M8iI4J6JqsNMpQuR9sdWVhROi5yn9UR7ac7pizB3dFmc0/qjtTRoYStaaSEYg3L5woALv5kAA2j4="
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.
"AgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAIAAQROrEbiYfF3zCII9..."
Transaction object in JSON that needs to be signed. Excluded with rawTransaction. Required without rawTransaction.
Only EIP-1559 transactions are supported. Set type to 2 or omit it, and set the fee fields in EIP-1559 format: gas, maxFeePerGas, and maxPriorityFeePerGas.
NOTE: This field is only supported by EVM chains.
"{\"to\":\"0x18529f8512afc41bc5ebc386015c27c748eed0ce\",\"nonce\":\"0x1\",\"value\":1000,\"chainId\":84532,\"gas\":\"0x186A0\",\"maxFeePerGas\":\"0x59682F00\",\"maxPriorityFeePerGas\":\"0x59682F00\"}"
The blockchain network that the resource is to be created on or is currently on.
ETH, ETH-SEPOLIA, AVAX, AVAX-FUJI, MATIC, MATIC-AMOY, SOL, SOL-DEVNET, ARB, ARB-SEPOLIA, NEAR, NEAR-TESTNET, EVM, EVM-TESTNET, UNI, UNI-SEPOLIA, BASE, BASE-SEPOLIA, OP, OP-SEPOLIA, APTOS, APTOS-TESTNET, ARC, ARC-TESTNET, MONAD, MONAD-TESTNET "MATIC-AMOY"