Crypto APIs icon

Crypto APIs

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

Actions77

Prepare Transaction → Prepare Native Coin Transfer

AI-generated

Summary

Prepare a native coin transfer transaction for a selected blockchain and network. Supply the sender and recipient details for the chosen blockchain type; the operation returns the prepared transaction data for subsequent signing or broadcasting.

Inputs

  • Blockchain Type — Select EVM, Tezos, Solana, XRP, Kaspa, or UTXO. Defaults to EVM.
  • Blockchain (required) — For EVM, choose a supported chain such as Ethereum or Polygon. For UTXO, choose Bitcoin, Bitcoin Cash, Litecoin, Dogecoin, Dash, or Zcash.
  • Network (required) — Choose a network from the options shown for the selected blockchain type and chain. Kaspa offers mainnet only.
  • From Address (required) — Sender address. The field is specific to the selected blockchain type.
  • To Address (required) — Recipient address for EVM, Tezos, Solana, and XRP transfers.
  • Amount (required) — Required for Tezos, Solana, and XRP. Tezos and XRP expect a decimal string; Solana expects an integer string in the smallest unit, such as lamports for SOL.
  • Recipients (required) — For Kaspa and UTXO, add one or more recipient address and amount entries; the implementation requires at least one.
  • Fee Priority — Choose standard, slow, or fast; a separate priority field is provided for each blockchain type.
  • Gas Limit — Optional EVM gas limit override.
  • Gas Price — Optional EVM gas price override in wei.
  • Prepare Strategy — For UTXO, select none, minimize dust, or optimize size to guide input selection.
  • Replaceable — For UTXO, enable this to mark the transaction as replace-by-fee (RBF).
  • From Public Key — For Tezos, provide this when the sender account is not yet revealed on-chain; the prepared transaction then includes a reveal operation.
  • Destination Tag — For XRP, optionally set a destination tag, for example to route a payment to an exchange account.
  • Sequence — For XRP, optionally override the account sequence number; otherwise it is resolved from the account.

Output shape

A single prepared transaction record.

The request helper unwraps the CryptoAPIs response to its single item. The exact record fields depend on blockchain type; this operation prepares the transaction and does not broadcast it.

Links

Discussion