Ton
Web3 Cloud API (1.0.0)
Download OpenAPI specification:Download
GetBlock
Get block.
Authorizations:
(x-api-keyx-api-noncex-api-signature)
Request Body schema: application/json
| seqno required | integer <int64> seq number. |
| workchain required | integer <int64> workchain. if left empty, it'll be 0 |
| shard required | string shard |
Responses
Request samples
- Payload
Content type
application/json
{- "seqno": 28034855,
- "workchain": -1,
- "shard": 8000000000000000
}Response samples
- 200
- 500
Content type
application/json
{- "block": {
- "seqno": 0,
- "workchain": 0,
- "shard": "string",
- "root_hash": "string",
- "file_hash": "string"
}
}GetTransaction
Get transaction.
Authorizations:
(x-api-keyx-api-noncex-api-signature)
Request Body schema: application/json
| transaction_hash required | string Transaction hash. |
Responses
Request samples
- Payload
Content type
application/json
{- "transaction_hash": "CD3cnec440iaQYpl86zFtBxZgqbdK0qzhnARrgdml80="
}Response samples
- 200
- 500
Content type
application/json
{- "transaction": {
- "transaction_hash": "string",
- "seqno": 0,
- "workchain": 0,
- "shard": "string",
- "transfers": [
- {
- "from": "string",
- "to": "string",
- "value": "string",
- "asset_type": "ASSET_TYPE_TON",
- "status": "string",
- "from_user_friendly_address": "string",
- "to_user_friendly_address": "string",
- "message": "string",
- "transfer_hash": "string",
- "bounced": true
}
], - "total_fees": "string",
- "status": "string",
- "in_msg": { },
- "out_msgs": [
- { }
], - "trace_id": "string"
}
}ListTransactions
List transactions.
Authorizations:
(x-api-keyx-api-noncex-api-signature)
Request Body schema: application/json
| transaction_hashes | Array of strings Transaction hashes. |
Responses
Request samples
- Payload
Content type
application/json
{- "transaction_hashes": [
- "CD3cnec440iaQYpl86zFtBxZgqbdK0qzhnARrgdml80="
]
}Response samples
- 200
- 500
Content type
application/json
{- "transactions": [
- {
- "transaction_hash": "string",
- "seqno": 0,
- "workchain": 0,
- "shard": "string",
- "transfers": [
- {
- "from": "string",
- "to": "string",
- "value": "string",
- "asset_type": "ASSET_TYPE_TON",
- "status": "string",
- "from_user_friendly_address": "string",
- "to_user_friendly_address": "string",
- "message": "string",
- "transfer_hash": "string",
- "bounced": true
}
], - "total_fees": "string",
- "status": "string",
- "in_msg": { },
- "out_msgs": [
- { }
], - "trace_id": "string"
}
]
}