Skip to main content
GET
/
v1
/
provider
/
get_commitment_info
GetCommitmentInfo
curl --request GET \
  --url https://api.example.com/v1/provider/get_commitment_info
{
  "commitments": [
    {
      "blockNumber": "<string>",
      "commitments": [
        {
          "txnHashes": [
            "<string>"
          ],
          "revertableTxnHashes": [
            "<string>"
          ],
          "amount": "<string>",
          "blockNumber": "<string>",
          "providerAddress": "<string>",
          "decayStartTimestamp": "<string>",
          "decayEndTimestamp": "<string>",
          "dispatchTimestamp": "<string>",
          "slashAmount": "<string>",
          "status": "<string>",
          "details": "<string>",
          "payment": "<string>",
          "refund": "<string>"
        }
      ]
    }
  ]
}

Query Parameters

blockNumber
string<int64>

Optional block number for which to get the commitment information. If not specified all block numbers are returned in ascending order

page
integer<int32>

Optional page number for pagination. Defaults to 0.

limit
integer<int32>

Optional limit for the number of commitments to return per page. Defaults to 100.

Response

A successful response.

Response containing the commitment information.

commitments
object[]
required

List of commitments made in the block.