Transaction Types

Fordefi supports creating several types of transactions, each with its own format. Since some flows are very common (for example, EVM revoke allowance transactions or Solana transfer transactions), there are special request formats that are used to make the creation process of such transactions quick and easy.

The following list defines which requests are allowed for each transaction type. Links lead to sample code.

  • EVM transaction: A native currency transfer or a smart contract call on an EVM-based chain.
  • EVM message: In which a message is signed for off-chain use on an EVM-based chain.
  • Solana transaction: A list of instructions to invoke on a Solana-based chain.
  • Cosmos transaction: A transaction in the Cosmos ecosystem on Cosmos Hub or one of the supported app chains.
  • Black Box signature: In which a payload is signed for use, external to the Fordefi platform.
  • Sui transaction: A list of commands to invoke on a Sui-based chain.

Transactions are created in the context of a vault. Hence, not all transaction types are supported for all vaults, and only the following are allowed:

EVM Transaction EVM Message Solana Transaction Cosmos Transaction Black Box Signature Sui Transaction
EVM Vault βœ”οΈŽ βœ”οΈŽ ✘ ✘ ✘ ✘
Solana Vault ✘ ✘ βœ”οΈŽ ✘ ✘ ✘
Cosmos Vault ✘ ✘ ✘ βœ”οΈŽ ✘ ✘
Black Box Vault ✘ ✘ ✘ ✘ βœ”οΈŽ ✘
Sui Vault ✘ ✘ ✘ ✘ ✘ βœ”οΈŽ