Transaction
Encode a Transaction
Encodes transaction data into a format suitable for broadcasting. This endpoint is pivotal for creating transactions that comply with the specific requirements of different blockchains.
It performs several important functions:
- Validates the transaction data against chain-specific rules
- Computes and adds necessary transaction parameters (fees, gas, nonce)
- Calculates the maximum spendable amount when requested
- Returns the raw data and transaction hash in the appropriate format for signing
The response includes both the transaction hash (which needs to be signed) and the raw transaction data in a chain-specific format.
POST
Authorizations
Path Parameters
Available options:
algorand
, cosmoshub
, cosmoshub-testnet
, osmosis
, osmosis-testnet
, celestia
, celestia-testnet
, dydx
, axelar
, ethereum
, sepolia
, holesky
, zksync
, zksync-sepolia
, injective-evm-testnet
, base
, base-sepolia
, optimism
, optimism-sepolia
, arbitrum
, arbitrum-sepolia
, bitcoin
, bitcoin-testnet
, bitcoin-signet
, polygon
, polygon-amoy
, bsc
, bsc-testnet
, linea
, linea-sepolia
, avalanche
, avalanche-fuji
, gnosis
, gnosis-chiado
, moonbeam
, moonriver
, moonbase
, fantom
, mantle
, litecoin
, dogecoin
, ton
, chiliz
, chiliz-testnet
, injective
, akash
, band
, dymension
, kyve
, terra2
, stargaze
, tron
, evmos
, irisnet
, juno
, lum-network
, omniflix
, sei
, medibloc
, passage
, quasar
, seda
, sommelier
, shentu
, stride
, chihuahua
, bitsong
, persistence
, comdex
, fetch-ai
, humans-ai
, ki
, likecoin
, provenance
, quicksilver
, saga
, kava
, starknet
, starknet-sepolia
, babylon
, babylon-testnet
, monad-testnet
, berachain
, berachain-artio
, cronos
, world-chain
, solana
, aptos
, aptos-testnet
Body
application/json
Response
200 - application/json
Returns the transaction data encoded into a blockchain-specific format, ready for broadcasting.
The response is of type object
.