Getting transaction data to execute
The TxnData type combines transaction metadata with network-specific transaction details for different blockchain networks (EVM, Solana, Cosmos, Tron)
This is an outdated version of our documentation.
Please visit the latest version at https://docs.blockend.com/ for up-to-date and accurate information.
Call this api with routeId
and stepId
of individual steps to get the transaction data to execute. Once the transaction is executed, check the status of the transaction using /status
api and proceed to the next step of the transaction.
Note: you can ignore status check and skip to next step of the txn if
skipTxn
field is set totrue
in the response. Also, whenskipTxn
is set totrue
,txnData
will benull
.
Endpoint: GET /nextTx
GET /nextTx
Query params
Response
requestId
string
Associated request identifier
routeId
string
Associated route identifier
stepId
string
Current step identifier
networkType
NetworkType
Blockchain network type
deadline
number
Transaction expiration timestamp
skipTxn
boolean
This step's associated txn can be skipped
txnEvm
TxnEvm | null
Either of one is present depending on network type
txnSol
TxnSol | null
txnTron
TxnTron | null
txnCosmos
TxnCosmos | null
Network-Specific Transaction Data:
EVM Transaction (TxnEvm)
from
string
No
Sender address
to
string
Yes
Recipient contract/address
value
string
No
Native token amount (in wei)
data
string
No
Transaction calldata
gasPrice
string
No
Gas price in wei
gasLimit
string
No
Maximum gas limit
Solana Transaction (TxnSol)
data
string
Yes
Encoded transaction data
Cosmos Transaction (TxnCosmos)
data
string
Yes
Transaction data
value
string
Yes
Transaction value
gasLimit
string
Yes
Gas limit
gasPrice
string
Yes
Gas price
maxFeePerGas
string
Yes
Maximum fee per gas unit
Tron Transaction (txnTron)
raw_data
any
No
Raw transaction data
raw_data_dex
string
No
DEX-specific data
txID
string
Yes
Transaction ID
visible
boolean
Yes
Transaction visibility
Example
Lets now fetch the transaction data for the first step of the transaction we created in /createTx
api.
Request:
Response: As the
Last updated
Was this helpful?