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.
  • Aptos transaction: A payload to invoke on an Aptos-based chain.

πŸ“˜

Transactions and messages use only matching vault types

Transactions are created in the context of a vault. Hence, not all transaction types are supported for all vaults. A transaction or a message can be created only on a vault with the same chain type. For example, a Bitcoin transaction can be created only on a vault of type Bitcoin mainnet or Bitcoin testnet.