Signing programmatic transactions requires running your own API Signer. Learn more about the feature before you get started with creating transactions.
To programmatically create a transaction, call the Create Transaction API by sending a POST
request to the /api/v1/transactions
endpoint.
In the request, specify the origin vault of the transaction, the designated signer (api_signer
for programmatic transactions), the type of the transaction, and the details of the transaction.
Since creating a transacton is a sensitive operation, it requires signing the request. The following examples demonstrate how to create and sign a basic bitcoin transfer in different programming languages. Learn more about request signing.
{
"vault_id": "3fd3ed32-64e5-47ef-b822-65493d30bf3f",
"signer_type": "api_signer",
"type": "utxo_transaction",
"details": {
"type": "utxo_transfer",
"outputs": [
{
"to": {
"type": "address",
"address": "tb1pg0caktdsjl42v3q43nrsk26xvmh8je9ke8kucsnau6ymsnj42dhqj7swcd"
},
"value": "500"
}
]
}
}
Fordefi supports several main categories of transactions across its supported blockchains:
Simple transfers between addresses. All chains support basic transfers: EVM, Solana, Bitcoin, Cosmos, Sui, Aptos, TON, Starknet, Stacks, TRON. Learn more.
Fordefi supports easily moving funds between your connected exchange accounts and your Fordefi vaults. Learn more.
Smart contract calls and arbitrary raw transactions: EVM, Solana, Bitcoin, Cosmos, Sui, Aptos, TON, Starknet, Stacks, TRON (coming soon!)
Message signing and verification: EVM chains, Solana, Cosmos, Aptos, Sui, TON, Starknet, Bitcoin
Fordefi enables users to leverage Fordefi's MPC technology to sign arbitrary blobs. Learn more.