Skip to main content

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

The request receipt

Schema
    blockIndexint32required

    Possible values: >= 1

    errorMessagestring
    gasBudgetstringrequired

    The gas budget (uint64 as string)

    gasBurnLog BurnRecord[]required
  • Array [
  • codeint32required
    gasBurnedint64required
  • ]
  • gasBurnedstringrequired

    The burned gas (uint64 as string)

    gasFeeChargedstringrequired

    The charged gas fee (uint64 as string)

    rawError UnresolvedVMErrorJSON
    codestring
    paramsstring[]
    request RequestJSONrequired
    allowance AssetsJSONrequired
    coins CoinJSON[]required
  • Array [
  • balancestringrequired

    The balance (uint64 as string)

    coinTypestringrequired
  • ]
  • objects IotaObject[]required
  • Array [
  • idint32[]required
    type ObjectTyperequired
    sstring
  • ]
  • assets AssetsJSONrequired
    coins CoinJSON[]required
  • Array [
  • balancestringrequired

    The balance (uint64 as string)

    coinTypestringrequired
  • ]
  • objects IotaObject[]required
  • Array [
  • idint32[]required
    type ObjectTyperequired
    sstring
  • ]
  • callTarget CallTargetJSONrequired
    contractHNamestringrequired

    The contract name as HName (Hex)

    functionHNamestringrequired

    The function name as HName (Hex)

    gasBudgetstringrequired

    The gas budget (uint64 as string)

    isEVMbooleanrequired
    isOffLedgerbooleanrequired
    paramsstring[]required
    requestIdstringrequired
    senderAccountstringrequired
    requestIndexint32required

    Possible values: >= 1

    storageDepositChargedstringrequired

    Storage deposit charged (uint64 as string)

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());
Request Collapse all
Base URL
Parameters
— pathrequired
— query
— query
ResponseClear

Click the Send API Request button above and see the response here!