Transactions
Get transaction info by hash
query{
blockchain{
transaction(hash:"b0e26c42164ec0137913fdcd754aa819323a6a4b9ef5188863b021c3801e7ae4"){
id
hash
balance_delta
aborted
lt
now
}
}
}Result:
{
"data": {
"blockchain": {
"transaction": {
"id": "transaction/b0e26c42164ec0137913fdcd754aa819323a6a4b9ef5188863b021c3801e7ae4",
"hash": "b0e26c42164ec0137913fdcd754aa819323a6a4b9ef5188863b021c3801e7ae4",
"balance_delta": "0x0",
"aborted": false,
"lt": "0x15bb39a23783",
"now": 1645453010
}
}
}
}Get transaction by inbound message hash
Result:
Calculate account fees for transaction
You need to sum up these values to get the total fee the account paid for the transaction
Paginate blockchain transactions
Paginate workchain transactions within timestamp range, sorted by blockchain logical time.
Look at this sample. See the parameters documentation below.
Result:
Filter parameters
You can filter by
master_seq_no_range : {start: Timestamp, end: Timestamp} - start and end timestamp for pagination rangemax_balance_delta: Stringmin_balance_delta: String
Pagination parameters
Use cursor, {first, after} or {last, before} filters for pagination.
We followed GraphQL best practices and implemented Relay Cursor Connections Specification for pagination for all list types. You can read more here https://relay.dev/graphql/connections.htm
Use endCursor and hasNextPage == true condition to paginate forward.
Use startCursor and hasPreviousPage == true condition to paginate backwards like this:
Result:
How to get other transactions data
Acki Nacki Node is not a simple node with key-value storage, but a node with an embedded SQL DB, so using SQL queries you can get any other data and analytics. Use DB UI like Beaver to have manual access to this data