Get all receipts of the latest block
GET//v1/chain/core/blocklog/blocks/latest/receipts
Get all receipts of the latest block
Request
Query Parameters
block string
Block index or trie root
Responses
- 200
- 401
The receipts
- application/json
- Schema
- Example (auto)
Schema
- Array [
- ]
blockIndexint32required
Possible values: >= 1
errorMessagestring
gasBudgetstringrequired
The gas budget (uint64 as string)
gasBurnLog BurnRecord[]required
gasBurnedstringrequired
The burned gas (uint64 as string)
gasFeeChargedstringrequired
The charged gas fee (uint64 as string)
rawError UnresolvedVMErrorJSON
request RequestJSONrequired
requestIndexint32required
Possible values: >= 1
storageDepositChargedstringrequired
Storage deposit charged (uint64 as string)
[
{
"gasBurnLog": [
{
"code": 6,
"gasBurned": 1
},
{
"code": 6,
"gasBurned": 1
}
],
"request": {
"senderAccount": "senderAccount",
"assets": {
"coins": [
{
"coinType": "coinType",
"balance": "balance"
},
{
"coinType": "coinType",
"balance": "balance"
}
],
"objects": [
{
"id": [
5,
5
],
"type": {
"s": "s"
}
},
{
"id": [
5,
5
],
"type": {
"s": "s"
}
}
]
},
"isOffLedger": true,
"requestId": "requestId",
"callTarget": {
"contractHName": "contractHName",
"functionHName": "functionHName"
},
"gasBudget": "gasBudget",
"allowance": {
"coins": [
{
"coinType": "coinType",
"balance": "balance"
},
{
"coinType": "coinType",
"balance": "balance"
}
],
"objects": [
{
"id": [
5,
5
],
"type": {
"s": "s"
}
},
{
"id": [
5,
5
],
"type": {
"s": "s"
}
}
]
},
"params": [
"params",
"params"
],
"isEVM": true
},
"blockIndex": 1,
"rawError": {
"code": "code",
"params": [
"params",
"params"
]
},
"requestIndex": 1,
"storageDepositCharged": "storageDepositCharged",
"gasFeeCharged": "gasFeeCharged",
"errorMessage": "errorMessage",
"gasBudget": "gasBudget",
"gasBurned": "gasBurned"
}
]
Unauthorized (Wrong permissions, missing token)
- application/json
- Schema
- Example (auto)
Schema
errorstringrequired
missingPermissionstringrequired
{
"error": "error",
"missingPermission": "missingPermission"
}
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "/v1/chain/core/blocklog/blocks/latest/receipts");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear