Crypto APIs icon

Crypto APIs

Interact with Crypto APIs — blockchain data, transactions, market data, and more

Actions77

Prepare Transaction → Prepare Fungible Token Transfer

AI-generated

Summary

Prepare a fungible token transfer by submitting the sender, recipient, token contract, and amount to Crypto APIs for the selected blockchain. The operation returns the API’s prepared transaction data for later signing or broadcasting.

Inputs

  • Blockchain Type — Select the chain family; defaults to EVM. The operation implementation also supports Tezos, Solana, XRP, Kaspa, and UTXO, each with its own network and transfer fields.
  • Blockchain and Network (required) — Choose a supported chain and network for the selected blockchain type. UTXO also requires a blockchain selection; Tezos, Solana, XRP, and Kaspa use their listed networks.
  • From Address (required) — The sender address for the selected blockchain type.
  • To Address (required) — The recipient address for the selected blockchain type, except Kaspa and UTXO, which use recipient rows.
  • Contract Address (required) — For EVM transfers, the fungible token contract address.
  • Token Amount (required) — For EVM transfers, the amount of tokens to transfer.
  • Amount (required) — For Tezos, enter a decimal string; for Solana, an integer string in the smallest unit; for XRP, a decimal string.
  • Recipients (required) — For Kaspa and UTXO, provide one or more recipient address and amount rows.
  • Fee Priority — Choose standard, slow, or fast fee priority for the selected chain family.
  • Gas Limit — Optional EVM gas limit override.
  • Gas Price — Optional EVM gas price override in wei.
  • Tezos From Public Key — Provide this when the Tezos sender is unrevealed on-chain; the prepared transaction then includes a reveal operation.
  • XRP Destination Tag — Optional tag for routing XRP payments, such as to an exchange account.
  • XRP Sequence — Optional account sequence override; when omitted, the implementation resolves it from the account.
  • UTXO Prepare Strategy — Select how to choose inputs: minimize dust consolidates small UTXOs, while optimize size prefers fewer inputs.
  • UTXO Replaceable — Whether to mark the UTXO transaction as replace-by-fee (RBF).

Output shape

a single prepared transaction record

The request helper unwraps the Crypto APIs response, returning its data.item value. Exact record fields depend on the blockchain and endpoint.

Links

Discussion