GETGet pending transactions

TON Mainnethttps://ton-mainnet.nodit.io/api/v3/pendingTransactions
CU40

Query pending transactions that match the specified filters. Specify at least one of account or trace_id; if neither is provided, the API returns 422. If no pending transactions match the filters, the API returns 404.

Query Parameters
accountstring[]

List of account addresses to query. Provide addresses in hex, base64, or base64url form. Required if trace_id is not specified.

trace_idstring[]

Find transactions by trace ID. Required if account is not specified.

Responses
{address}object

Address book entry. The key is an address that appears in the response, in raw format workchain:hex.

domainstring

TON DNS domain linked to the address. null when no domain is associated.

interfacesstring[]

Contract interfaces detected for the address, for example wallet_v4r2. Can be null or empty when none are detected.

user_friendlystring

Address in user-friendly base64url format.

accountstring

Address of the account the transaction belongs to, in raw format workchain:hex.

account_state_afterobject

State of the account after the transaction was executed.

account_statusstring

Account status: uninit, active, frozen, or nonexist.

balancestring

Account balance in nanograms, as a decimal string.

code_bocstring

Smart contract code serialized as a BoC, base64 encoded. Omitted when BoCs are not included in the response.

code_hashstring

Hash of the smart contract code cell, base64 encoded.

data_bocstring

Smart contract persistent data serialized as a BoC, base64 encoded. Omitted when BoCs are not included in the response.

data_hashstring

Hash of the smart contract data cell, base64 encoded.

extra_currenciesobject

Extra currency balances held by the account, as a map from currency ID to amount (decimal string). Empty when the account holds no extra currencies.

frozen_hashstring

Hash of the frozen account state, base64 encoded. null unless the account is frozen.

hashstring

Hash of the account state, base64 encoded.

account_state_beforeobject

State of the account before the transaction was executed.

account_statusstring

Account status: uninit, active, frozen, or nonexist.

balancestring

Account balance in nanograms, as a decimal string.

code_bocstring

Smart contract code serialized as a BoC, base64 encoded. Omitted when BoCs are not included in the response.

code_hashstring

Hash of the smart contract code cell, base64 encoded.

data_bocstring

Smart contract persistent data serialized as a BoC, base64 encoded. Omitted when BoCs are not included in the response.

data_hashstring

Hash of the smart contract data cell, base64 encoded.

extra_currenciesobject

Extra currency balances held by the account, as a map from currency ID to amount (decimal string). Empty when the account holds no extra currencies.

frozen_hashstring

Hash of the frozen account state, base64 encoded. null unless the account is frozen.

hashstring

Hash of the account state, base64 encoded.

block_refobject

Identifier of the block that contains the transaction.

seqnointeger

Block sequence number within its workchain and shard.

shardstring

Shard identifier as a hexadecimal string, for example 8000000000000000.

Example: 0

workchaininteger

Workchain ID: -1 for the masterchain, 0 for the basechain.

descriptionobject

Transaction description with the transaction type, result flags, and execution phases.

abortedboolean

Whether the transaction was aborted because the compute phase or action phase failed.

actionobject

Action phase of the transaction, in which the actions produced by the smart contract (such as sending messages) are performed. Absent when the phase was not executed.

action_list_hashstring

Hash of the action list produced by the compute phase, base64 encoded.

msgs_createdinteger

Number of outbound messages created in the action phase.

no_fundsboolean

Whether the action phase failed because the account did not have enough funds to perform the actions.

result_arginteger

Additional argument that accompanies result_code, for example the index of the action that failed. Present only when provided.

result_codeinteger

Result code of the action phase. 0 means success.

skipped_actionsinteger

Number of actions that were skipped.

spec_actionsinteger

Number of special actions performed, that is, actions other than sending messages (such as setting new code or reserving currency).

status_changestring

Account status change caused by the action phase: unchanged, frozen, or deleted.

successboolean

Whether the action phase completed successfully.

tot_actionsinteger

Total number of actions in the action list.

tot_msg_sizeobject

Total size of the messages created in the action phase, in cells and bits.

bitsstring

Number of data bits, as a decimal string.

Example: 0

cellsstring

Number of cells, as a decimal string.

Example: 0

total_action_feesstring

Total fees collected for performing the actions, in nanograms, as a decimal string.

Example: 0

total_fwd_feesstring

Total forwarding fees for the messages created in the action phase, in nanograms, as a decimal string.

Example: 0

validboolean

Whether the action list is valid.

bounceobject

Bounce phase of the transaction, in which a bounce message is generated when the transaction fails and the inbound message has the bounce flag set. Absent when the phase was not executed.

fwd_feesstring

Forwarding fees of the bounce message, in nanograms, as a decimal string. Present only when type is ok.

Example: 0

msg_feesstring

Message fees collected for the bounce message, in nanograms, as a decimal string. Present only when type is ok.

Example: 0

msg_sizeobject

Size of the bounced message, in cells and bits.

bitsstring

Number of data bits, as a decimal string.

Example: 0

cellsstring

Number of cells, as a decimal string.

Example: 0

req_fwd_feesstring

Forwarding fees required to send the bounce message, in nanograms, as a decimal string. Present only when type is nofunds.

Example: 0

typestring

Bounce phase result: ok (the bounce message was sent), nofunds (not enough funds to pay the forwarding fees), or negfunds.

compute_phobject

Compute phase of the transaction, in which the smart contract code is executed by the TVM.

account_activatedboolean

Whether the account was activated (became active) during the compute phase.

exit_arginteger

Optional additional exit argument returned by the TVM along with exit_code.

exit_codeinteger

TVM exit code. 0 and 1 indicate successful execution; other values indicate an error.

gas_creditstring

Gas credit granted to an external inbound message before the smart contract accepts it, in gas units, as a decimal string.

Example: 0

gas_feesstring

Fees charged for the gas used in the compute phase, in nanograms, as a decimal string.

Example: 0

gas_limitstring

Gas limit of the compute phase, in gas units, as a decimal string.

Example: 0

gas_usedstring

Amount of gas used in the compute phase, in gas units, as a decimal string.

Example: 0

modeinteger

Mode value of the compute phase as recorded in the transaction. Normally 0.

msg_state_usedboolean

Whether the StateInit attached to the inbound message was used to initialize the account.

reasonstring

Reason the compute phase was skipped: no_state, bad_state, no_gas, or suspended. Present only when skipped is true.

skippedboolean

Whether the compute phase was skipped. When true, only reason is provided.

successboolean

Whether the compute phase completed successfully.

vm_final_state_hashstring

Hash of the final TVM state, base64 encoded.

vm_init_state_hashstring

Hash of the initial TVM state, base64 encoded.

vm_stepsinteger

Number of steps executed by the TVM.

credit_firstboolean

Whether the credit phase was executed before the storage phase. This is true when the inbound message has the bounce flag unset.

credit_phobject

Credit phase of the transaction, in which the value of the inbound message is credited to the account.

creditstring

Amount credited to the account from the inbound message, in nanograms, as a decimal string.

Example: 0

credit_extra_currenciesobject

Extra currencies credited to the account from the inbound message, as a map from currency ID to amount (decimal string).

due_fees_collectedstring

Overdue storage fees collected from the inbound message value, in nanograms, as a decimal string.

Example: 0

destroyedboolean

Whether the account was destroyed (deleted) as a result of the transaction.

installedboolean

Whether the split or merge was installed. Present only for split_install and merge_install transactions.

is_tockboolean

Whether a tick-tock transaction is a tock (true) or a tick (false). Present only for tick_tock transactions.

split_infoobject

Shard split or merge information. Present only for split and merge transactions.

acc_split_depthinteger

Split depth of the account.

cur_shard_pfx_leninteger

Length of the current shard prefix, in bits.

sibling_addrstring

Address of the sibling account in the other shard that takes part in the split or merge.

this_addrstring

Address of this account in the split or merge.

storage_phobject

Storage phase of the transaction, in which storage fees accumulated since the previous transaction are collected.

status_changestring

Account status change caused by the storage phase: unchanged, frozen, or deleted.

storage_fees_collectedstring

Storage fees collected from the account balance during the storage phase, in nanograms.

Example: 0

storage_fees_duestring

Storage fees that could not be collected because the account balance was insufficient and remain owed as debt, in nanograms. Omitted when there is no debt.

Example: 0

typestring

Transaction type: ord, storage, tick_tock, split_prepare, split_install, merge_prepare, or merge_install.

emulatedboolean

Whether the transaction was produced by emulation and is not yet included in a block.

end_statusstring

Account status after the transaction: uninit, active, frozen, or nonexist.

finalitystring (enum)

Finality state: pending, confirmed, or finalized.

hashstring

Hash of the transaction, base64 encoded.

in_msgobject

Inbound message that triggered the transaction.

bounceboolean

Bounce flag of an internal message. If true, the message is returned to the sender when its processing fails. null for external messages.

bouncedboolean

Returns true if this internal message is itself a bounced message returned after a failed delivery; otherwise false. null for external messages.

created_atstring

Unix timestamp in seconds when the message was created, as a decimal string. null for external inbound messages.

Example: 0

created_ltstring

Logical time (lt) when the message was created, as a decimal string. null for external inbound messages.

Example: 0

decoded_opcodestring

Human-readable name of opcode when it is recognized, for example jetton_transfer. null if the opcode is unknown.

destinationstring

Recipient account address in raw format workchain:hex. null for external outbound messages.

extra_flagsstring

Extra flags of an internal message as a decimal string. The value occupies the message header field that previously held ihr_fee. null for external messages.

fwd_feestring

Forwarding fee paid for delivering this internal message, in nanograms. null for external messages.

Example: 0

hashstring

Hash of the message, base64 encoded.

hash_normstring

Normalized hash of an external inbound message, base64 encoded. It stays the same across re-serializations of the message, as defined in TEP-467. Present only for external inbound messages.

ihr_disabledboolean

Returns true if Instant Hypercube Routing (IHR) is disabled for this internal message; otherwise false. null for external messages.

ihr_feestring

Instant Hypercube Routing (IHR) fee of an internal message, in nanograms. null for external messages.

Example: 0

import_feestring

Import fee of an external inbound message, in nanograms. null for other message types.

Example: 0

in_msg_tx_hashstring

Hash of the transaction that received this message as its inbound message, base64 encoded. Omitted if that transaction is not known.

init_stateobject

StateInit attached to the message (contract code and initial data used for deployment): its hash, base64-encoded BoC, and decoded form. null if the message carries no StateInit.

bodystring

Serialized content (the message body, or the StateInit when used as init_state) in BoC format, base64 encoded.

decodedobject

Content decoded into a structured object when its format is recognized, for example a text comment or a known contract message. null if it cannot be decoded.

hashstring

Hash of the content cell, base64 encoded.

message_contentobject

Body of the message: its hash, base64-encoded BoC, and decoded form when the body is recognized.

bodystring

Serialized content (the message body, or the StateInit when used as init_state) in BoC format, base64 encoded.

decodedobject

Content decoded into a structured object when its format is recognized, for example a text comment or a known contract message. null if it cannot be decoded.

hashstring

Hash of the content cell, base64 encoded.

opcodestring

Operation code (opcode) of the message, taken from the first 32 bits of the message body. The API returns it as a hexadecimal string such as 0x0f8a7ea5; null if the body has no opcode.

out_msg_tx_hashstring

Hash of the transaction that created this message as one of its outbound messages, base64 encoded. Omitted for messages that were not sent by a transaction, such as external inbound messages.

sourcestring

Sender account address in raw format workchain:hex. null for external inbound messages.

valuestring

Amount of GRAM transferred with this internal message, in nanograms. null for external messages.

Example: 0

value_extra_currenciesobject

Extra currencies transferred with this message, as a map from currency ID to amount (decimal string). Empty if no extra currency is transferred.

ltstring

Logical time (lt) of the transaction, as a decimal string.

Example: 0

mc_block_seqnointeger

Seqno of the masterchain block that references the block containing the transaction.

nowinteger

Unix timestamp in seconds at which the transaction was executed.

orig_statusstring

Account status before the transaction: uninit, active, frozen, or nonexist.

out_msgsobject[]

Outbound messages produced by the transaction.

bounceboolean

Bounce flag of an internal message. If true, the message is returned to the sender when its processing fails. null for external messages.

bouncedboolean

Returns true if this internal message is itself a bounced message returned after a failed delivery; otherwise false. null for external messages.

created_atstring

Unix timestamp in seconds when the message was created, as a decimal string. null for external inbound messages.

Example: 0

created_ltstring

Logical time (lt) when the message was created, as a decimal string. null for external inbound messages.

Example: 0

decoded_opcodestring

Human-readable name of opcode when it is recognized, for example jetton_transfer. null if the opcode is unknown.

destinationstring

Recipient account address in raw format workchain:hex. null for external outbound messages.

extra_flagsstring

Extra flags of an internal message as a decimal string. The value occupies the message header field that previously held ihr_fee. null for external messages.

fwd_feestring

Forwarding fee paid for delivering this internal message, in nanograms. null for external messages.

Example: 0

hashstring

Hash of the message, base64 encoded.

hash_normstring

Normalized hash of an external inbound message, base64 encoded. It stays the same across re-serializations of the message, as defined in TEP-467. Present only for external inbound messages.

ihr_disabledboolean

Returns true if Instant Hypercube Routing (IHR) is disabled for this internal message; otherwise false. null for external messages.

ihr_feestring

Instant Hypercube Routing (IHR) fee of an internal message, in nanograms. null for external messages.

Example: 0

import_feestring

Import fee of an external inbound message, in nanograms. null for other message types.

Example: 0

in_msg_tx_hashstring

Hash of the transaction that received this message as its inbound message, base64 encoded. Omitted if that transaction is not known.

init_stateobject

StateInit attached to the message (contract code and initial data used for deployment): its hash, base64-encoded BoC, and decoded form. null if the message carries no StateInit.

bodystring

Serialized content (the message body, or the StateInit when used as init_state) in BoC format, base64 encoded.

decodedobject

Content decoded into a structured object when its format is recognized, for example a text comment or a known contract message. null if it cannot be decoded.

hashstring

Hash of the content cell, base64 encoded.

message_contentobject

Body of the message: its hash, base64-encoded BoC, and decoded form when the body is recognized.

bodystring

Serialized content (the message body, or the StateInit when used as init_state) in BoC format, base64 encoded.

decodedobject

Content decoded into a structured object when its format is recognized, for example a text comment or a known contract message. null if it cannot be decoded.

hashstring

Hash of the content cell, base64 encoded.

opcodestring

Operation code (opcode) of the message, taken from the first 32 bits of the message body. The API returns it as a hexadecimal string such as 0x0f8a7ea5; null if the body has no opcode.

out_msg_tx_hashstring

Hash of the transaction that created this message as one of its outbound messages, base64 encoded. Omitted for messages that were not sent by a transaction, such as external inbound messages.

sourcestring

Sender account address in raw format workchain:hex. null for external inbound messages.

valuestring

Amount of GRAM transferred with this internal message, in nanograms. null for external messages.

Example: 0

value_extra_currenciesobject

Extra currencies transferred with this message, as a map from currency ID to amount (decimal string). Empty if no extra currency is transferred.

prev_trans_hashstring

Hash of the previous transaction of the same account, base64 encoded.

prev_trans_ltstring

Logical time (lt) of the previous transaction of the same account, as a decimal string.

Example: 0

total_feesstring

Total fees collected for the transaction, in nanograms, as a decimal string.

Example: 0

total_fees_extra_currenciesobject

Fees collected in extra currencies, as a map from currency ID to amount (decimal string). Usually empty.

trace_external_hashstring

Hash of the external message that started the trace containing the transaction, base64 encoded.

trace_idstring

Identifier of the trace that contains the transaction, base64 encoded.

X-API-KEY
Request
cURL
curl -X GET "https://ton-mainnet.nodit.io/api/v3/pendingTransactions?account=EQC5QeYg31ggWlkLDW6-kZxmubzqf8_TT3VjPSIbf6QwqFtN" \
  -H "X-API-KEY: {YOUR_API_KEY}"
Response
Example · 200
{
  "address_book": {
    "{address}": {
      "domain": "string",
      "interfaces": [
        "string"
      ],
      "user_friendly": "string"
    }
  },
  "transactions": [
    {
      "account": "string",
      "account_state_after": {
        "account_status": "string",
        "balance": "string",
        "code_boc": "string",
        "code_hash": "string",
        "data_boc": "string",
        "data_hash": "string",
        "extra_currencies": {},
        "frozen_hash": "string",
        "hash": "string"
      },
      "account_state_before": {
        "account_status": "string",
        "balance": "string",
        "code_boc": "string",
        "code_hash": "string",
        "data_boc": "string",
        "data_hash": "string",
        "extra_currencies": {},
        "frozen_hash": "string",
        "hash": "string"
      },
      "block_ref": {
        "seqno": 0,
        "shard": "0",
        "workchain": 0
      },
      "description": {
        "aborted": true,
        "action": {},
        "bounce": {},
        "compute_ph": {},
        "credit_first": true,
        "credit_ph": {},
        "destroyed": true,
        "installed": true,
        "is_tock": true,
        "split_info": {},
        "storage_ph": {},
        "type": "string"
      },
      "emulated": true,
      "end_status": "string",
      "finality": "pending",
      "hash": "string",
      "in_msg": {
        "bounce": true,
        "bounced": true,
        "created_at": "0",
        "created_lt": "0",
        "decoded_opcode": "string",
        "destination": "string",
        "extra_flags": "string",
        "fwd_fee": "0",
        "hash": "string",
        "hash_norm": "string",
        "ihr_disabled": true,
        "ihr_fee": "0",
        "import_fee": "0",
        "in_msg_tx_hash": "string",
        "init_state": {},
        "message_content": {},
        "opcode": "string",
        "out_msg_tx_hash": "string",
        "source": "string",
        "value": "0",
        "value_extra_currencies": {}
      },
      "lt": "0",
      "mc_block_seqno": 0,
      "now": 0,
      "orig_status": "string",
      "out_msgs": [
        {}
      ],
      "prev_trans_hash": "string",
      "prev_trans_lt": "0",
      "total_fees": "0",
      "total_fees_extra_currencies": {},
      "trace_external_hash": "string",
      "trace_id": "string"
    }
  ]
}