Standardized version of getTransactions
curl --request GET \
--url https://toncenter.com/api/v2/getTransactionsStd{
"ok": true,
"result": {
"@type": "raw.transactions",
"transactions": [
{
"@type": "raw.transaction",
"address": {
"@type": "accountAddress",
"account_address": "<string>"
},
"utime": 123,
"data": "<string>",
"transaction_id": {
"@type": "internal.transactionId",
"lt": "<string>",
"hash": "<string>"
},
"fee": "<string>",
"storage_fee": "<string>",
"other_fee": "<string>",
"out_msgs": [
{
"@type": "raw.message",
"hash": "<string>",
"source": {
"@type": "accountAddress",
"account_address": "<string>"
},
"destination": {
"@type": "accountAddress",
"account_address": "<string>"
},
"value": "<string>",
"extra_currencies": [
{
"@type": "extraCurrency",
"id": 123,
"amount": "<string>"
}
],
"fwd_fee": "<string>",
"ihr_fee": "<string>",
"created_lt": "<string>",
"body_hash": "<string>",
"msg_data": {
"@type": "msg.dataRaw",
"body": "<string>",
"init_state": "<string>"
}
}
],
"in_msg": {
"@type": "raw.message",
"hash": "<string>",
"source": {
"@type": "accountAddress",
"account_address": "<string>"
},
"destination": {
"@type": "accountAddress",
"account_address": "<string>"
},
"value": "<string>",
"extra_currencies": [
{
"@type": "extraCurrency",
"id": 123,
"amount": "<string>"
}
],
"fwd_fee": "<string>",
"ihr_fee": "<string>",
"created_lt": "<string>",
"body_hash": "<string>",
"msg_data": {
"@type": "msg.dataRaw",
"body": "<string>",
"init_state": "<string>"
}
}
}
],
"previous_transaction_id": {
"@type": "internal.transactionId",
"lt": "<string>",
"hash": "<string>"
}
}
}import asyncio
from toncenter.rest import ToncenterRestClient
from toncenter.types import Network
ADDRESS = "EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2"
async def main() -> None:
async with ToncenterRestClient(network=Network.MAINNET) as client:
result = await client.v2.transactions.get_transactions_std(
ADDRESS,
)
print(result.model_dump_json(indent=4))
if __name__ == "__main__":
asyncio.run(main())
Identifier of target TON account in any form
Maximum number of items in response
Logical time of the transaction to start from
The 256-bit hash in any form
Logical time to stop at
Whether to use archival node
curl --request GET \
--url https://toncenter.com/api/v2/getTransactionsStd{
"ok": true,
"result": {
"@type": "raw.transactions",
"transactions": [
{
"@type": "raw.transaction",
"address": {
"@type": "accountAddress",
"account_address": "<string>"
},
"utime": 123,
"data": "<string>",
"transaction_id": {
"@type": "internal.transactionId",
"lt": "<string>",
"hash": "<string>"
},
"fee": "<string>",
"storage_fee": "<string>",
"other_fee": "<string>",
"out_msgs": [
{
"@type": "raw.message",
"hash": "<string>",
"source": {
"@type": "accountAddress",
"account_address": "<string>"
},
"destination": {
"@type": "accountAddress",
"account_address": "<string>"
},
"value": "<string>",
"extra_currencies": [
{
"@type": "extraCurrency",
"id": 123,
"amount": "<string>"
}
],
"fwd_fee": "<string>",
"ihr_fee": "<string>",
"created_lt": "<string>",
"body_hash": "<string>",
"msg_data": {
"@type": "msg.dataRaw",
"body": "<string>",
"init_state": "<string>"
}
}
],
"in_msg": {
"@type": "raw.message",
"hash": "<string>",
"source": {
"@type": "accountAddress",
"account_address": "<string>"
},
"destination": {
"@type": "accountAddress",
"account_address": "<string>"
},
"value": "<string>",
"extra_currencies": [
{
"@type": "extraCurrency",
"id": 123,
"amount": "<string>"
}
],
"fwd_fee": "<string>",
"ihr_fee": "<string>",
"created_lt": "<string>",
"body_hash": "<string>",
"msg_data": {
"@type": "msg.dataRaw",
"body": "<string>",
"init_state": "<string>"
}
}
}
],
"previous_transaction_id": {
"@type": "internal.transactionId",
"lt": "<string>",
"hash": "<string>"
}
}
}