Wait until the given request has been processed by the node
GET//v1/chain/requests/:requestID/wait
Wait until the given request has been processed by the node
Request
Path Parameters
requestID stringrequired
RequestID (Hex)
Query Parameters
timeoutSeconds int32
The timeout in seconds, maximum 60s
waitForL1Confirmation boolean
Wait for the block to be confirmed on L1
Responses
- 200
- 404
- 408
The request receipt
- application/json
- Schema
- Example (auto)
Schema
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"
}
The chain or request id not found
The waiting time has reached the defined limit
- 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/requests/:requestID/wait");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear