๐ Get last block information
Code samples
GET /api/v1/trx/block/last
Returns the latest block information from the Tron blockchain
Example responses
200 Response
{
"number": 65000000,
"timestamp": 1689321600000,
"transactions": [
{}
]
}
๐ Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful response | Inline |
| 500 | Internal Server Error | Internal server error (TRX node connection failed) | Inline |
๐ Response Schema
Status Code 200
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| ยป number | integer | false | none | Block number |
| ยป timestamp | integer | false | none | Block timestamp in milliseconds |
| ยป transactions | [object] | false | none | Transactions in the block |
Status Code 500
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| ยป error | string | false | none | none |