Generate transfer transaction bytecode
Generate ready-to-sign transaction data for token transfers. Supports EVM native/ERC-20 transfers and Solana native/SPL transfers. The response includes an id for execution tracking.
Authorizations
API key for authentication. Obtain from your Deframe dashboard.
Query Parameters
Amount in token smallest unit
"1000000000000000000"
Source chain ID. Use 0 for Solana transfers.
"137"
Address that signs and sends the transfer
Address receiving the transferred token
Token address. Use the native token sentinel for native-token transfers.
bytecode returns EVM transaction array or Solana transaction; userOperation is EVM only; instructions is Solana only.
bytecode, userOperation, instructions Deprecated alias for originAddress
Deprecated alias for destinationAddress
Response
Transfer bytecode generated successfully
ID created for execution tracking
"65f1a2b3c4d5e6f789012345"
EVM chain ID for EVM transfer outputs
"137"
EVM transfer transaction followed by tracking transaction when output=bytecode
EVM user operation when output=userOperation
Base64 Solana transaction when output=bytecode and chainId=0
Serialized Solana instructions when output=instructions and chainId=0