Queries transaction status by hash, which returns the results of final transaction and details about all receipts.
Supported on NEAR (mainnet) only.
Parameters
transaction hash
- string - The hash of the transactionsender account id
- string - The account id of the sender
Returns
receipts
- The receipts of the transactionpredecessor_id
- The id of the account that was the previous contract in the chainreceipt
- The receipt of the transactionAction
- The action to be performed on the receiver_idactions
- An action built from near-api-js.transactionsFunctionCall
- An action to be performed on the receiver_idargs
- The transaction specific argumentdeposit
- The amount depositedgas
- Integer of the gas provided for the transaction executionmethod_name
- The name of the method corresponding to the actions
gas_price
- Integer of the gasPrice used for each paid gas encoded as a hexadecimalinput_data_ids
- A vector of input data with the data_ids required for the execution of this receiptoutput_data_receivers
- A vector of output data receivers. It indicates where to send outgoing data. Each DataReceiver consists of data_id and receiver_id for routingsigner_id
- The account id of the transaction originatorsigner_public_key
- The public key of the signer
receipt_id
- The receipt id of the transaction originatorreceiver_id
- The identifier for the account
receipts_outcome
- The receipts outcome for the transactionblock_hash
- The hash of the block this transaction was associated withid
- The id associated with the transactionoutcome
- The outcome associated with transactionexecutor_id
- The id of the originatorgas_burnt
- The gas burnt while executing the transactionlogs
- Logs for the application being executed by this transactionmetadata
- Logs for the application being executed by this transactiongas_profile
- The information about the gas such as gas used, cost and cost_categorycost
- The cost of the gas usedcost_category
- The category of the costgas_used
- The amount of gas used
version
- The version number
receipt_ids
- The id of the recipientsstatus
- The status of the transactionSuccessReceiptId
- The transaction id of the successful recipient
tokens_burnt
- The amount of tokens burnt
proof
- The proof of the transactiondirection
- The directionhash
- The hash of the transaction
status
- The status of the transactionSuccessValue
- The value successfully sent
transaction
- The transaction objectactions
- An action built from near-api-js.transactionsFunctionCall
- An action to be performed on the receiver_idargs
- The transaction specific argumentdeposit
- The amount depositedgas
- Integer of the gas provided for the transaction executionmethod_name
- The name of the method corresponding to the actions
hash
- The transaction hashnonce
- The number of transactions made by the sender prior to this one encoded as hexadecimalpublic_key
- The public key of the signerreceiver_id
- The account id of the transaction receiversignature
- Standard ed25519 signature typesigner_id
- The account id of the transaction originator
transaction_outcome
- The transaction outcome for the transactionblock_hash
- The hash of the block this transaction was associated withid
- The transaction idoutcome
- The outcome associated with transactionexecutor_id
- The id of the originatorgas_burnt
- The gas burnt while executing the transactionlogs
- Logs for the application being executed by this transactionreceipt_ids
- The id of the recipientsstatus
- The status of the transactionSuccessReceiptId
- The transaction id of the successful recipient
tokens_burnt
- The amount of tokens burnt
proof
- The proof of the transactiondirection
- The directionhash
- The hash of the transaction
API Endpoint
The format of a Near API endpoint is
https://open-platform.nodereal.io/{{apiKey}}/near/
Here is an example:
https://open-platform.nodereal.io/4c0a1c23661a4e26bcbcwed461e34ea9/near/
Example
Request
curl https://open-platform.nodereal.io/{{apiKey}}/near/ \
-X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc": "2.0", "method": "EXPERIMENTAL_tx_status", "params": ["Ce4DPVFyDRdx54iLoSiKA6gqwGnE5V4mTZyVvFDQsvmN","relay.aurora"],"id":1}'
Result