Solana Transfers
Native currency transfer
On Solana, each account must hold enough SOL balance for rent. In case the destination account does not exist, the transfer amount must exceed the rent exemption value. See here to learn more about rent exemption and here to learn more about fees on Solana.
Following is an example of the body of a Create Transaction request for a native Solana currency transfer. The general details of creating the request appear here.
{
"signer_type": "api_signer",
"type": "solana_transaction",
"details": {
"type": "solana_transfer",
"to": "2d3RofCcy5Jvyi2b6SxtUdd8N7JuRmopXWTUpGGZNSyq",
"value": {
"type": "value",
"value": "10000000000"
},
"asset_identifier": {
"type": "solana",
"details": {
"type": "native",
"chain": "solana_mainnet"
}
}
},
"note": "Transferring 10 SOL",
"vault_id": "8988893a-cf29-4a02-acc7-5bb723c74f47"
}
SPL token transfer
In case the destination account does not exist, the transfer will also create it. Therefore, in that case, the source vault will also pay SOL for the rent exemption.
Following is an example of the body of a Create Transaction request for an SPL token transfer. The general details of creating the request appear here.
{
"signer_type": "api_signer",
"type": "solana_transaction",
"details": {
"type": "solana_transfer",
"to": "2d3RofCcy5Jvyi2b6SxtUdd8N7JuRmopXWTUpGGZNSyq",
"value": {
"type": "value",
"value": "10000000000"
},
"asset_identifier": {
"type": "solana",
"details": {
"type": "spl_token",
"token": {
"chain": "solana_mainnet",
"base58_repr": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
}
}
}
},
"note": "Transferring 10000 USDC",
"vault_id": "8988893a-cf29-4a02-acc7-5bb723c74f47"
}