Skip to main content

tx RPC Method

Queries transaction status by hash and returns the outcome of the final transaction.

Updated on
Oct 04, 2023

Parameters

tx_hash
string

The hash of the transaction

sender_account_id
string

The id of the sender account

wait_until
string

(Optional) The required minimal execution level. Possible values: NONE, INCLUDED, EXECUTED_OPTIMISTIC (default), INCLUDED_FINAL, EXECUTED, FINAL

Returns

receipts_outcome
array

The receipts outcome for the transaction

block_hash
string

The hash of the block this transaction was associated with

id
string

The transaction id

outcome
object

The outcome associated with transaction

executor_id
string

The id of the originator

gas_burnt
integer

(Optional) The gas burnt while executing the transaction

logs
array

Logs for the application being executed by this transaction

metadata
object

It describes the transaction information

gas_profile
array

The information about the gas such as gas used, cost and cost_category

cost
string

The cost of the gas used

cost_category
string

The category of the cost

gas_used
string

The amount of gas used

version
integer

(Optional) The version number

receipt_ids
array

The id of the recipients

status
object

The status of the transaction

successReceiptId
string

The transaction id of the successful recipient

tokens_burnt
string

The amount of tokens burnt

proof
array

The proof of the transaction

direction
string

The direction

hash
string

The hash of the proof

status
object

The status of the transaction

successValue
string

The value successfully sent

transaction
object

The transaction object

actions
array

An action built from near-api-js.transactions

FunctionCall
object

An action to be performed on the receiver_id

args
string

The transaction specific argument

deposit
string

The amount deposited

gas
integer

(Optional) Integer of the gas provided for the transaction execution

method_name
string

The name of the method corresponding to the actions

hash
string

The transaction hash

nonce
integer

The number of transactions made by the sender prior to this one encoded as hexadecimal

public_key
string

The public key of the signer

receiver_id
string

The account id of the transaction receiver

signature
string

The standard ed25519 signature type

signer_id
string

The account id of the transaction originator

transaction_outcome
object

The transaction outcome for the transaction

block_hash
string

The hash of the block this transaction was associated with

id
string

The transaction id

outcome
object

The outcome associated with transaction

executor_id
string

The id of the originator

gas_burnt
integer

(Optional) The gas burnt while executing the transaction

logs
array

Logs for the application being executed by this transaction

metadata
object

It describes the transaction information

gas_profile
array | null

(Optional) Gas cost breakdown entries, or null when metadata is not populated

cost
string

The cost of the gas used

cost_category
string

The category of the cost

gas_used
string

The amount of gas used

version
integer

(Optional) The version number

receipt_ids
array

The id of the recipients

status
object

The status of the transaction

successReceiptId
string

The transaction id of the successful recipient

tokens_burnt
string

The amount of tokens burnt

proof
array

The proof of the transaction

direction
string

The direction

hash
string

The hash of the proof

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free