Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

OracleState

Get unspent transaction outputs of bridging addresses on specific chain

get

Returns all unspent transaction outputs of bridging addresses for the given chain ID. Each UTXO includes the address it belongs to, along with amount and other relevant data.

Authorizations
X-API-KeystringRequired
Query parameters
chainIdstringRequired

Chain ID

Responses
200

OK - Returns Oracle state.

application/json
chainIDstringOptional

Chain ID

hashstringOptional

Latest block hash

slotintegerOptional

Latest block slot

get/OracleState/Get
GET /api/OracleState/Get?chainId=text HTTP/1.1
X-API-Key: YOUR_API_KEY
Accept: */*
{
  "chainID": "text",
  "hash": "text",
  "slot": 1,
  "utxos": [
    {
      "address": "text",
      "amount": 1,
      "id": [
        1
      ],
      "index": 1,
      "slot": 1,
      "tokens": [
        {
          "nam": "text",
          "pid": "text",
          "val": 1
        }
      ]
    }
  ]
}

Get transaction failure status

get

Returns whether the transaction failed. A transaction is considered failed if it is not found on Oracle and if its TTL has expired.

Authorizations
X-API-KeystringRequired
Query parameters
chainIdstringRequired

Source chain ID

txHashstringRequired

Source transaction hash

ttlstringRequired

Transaction TTL

Responses
200

OK - Returns transaction failure status.

application/json
failedbooleanOptional

true if the transaction failed, false otherwise

get/OracleState/GetHasTxFailed
GET /api/OracleState/GetHasTxFailed?chainId=text&txHash=text&ttl=text HTTP/1.1
X-API-Key: YOUR_API_KEY
Accept: */*
{
  "failed": true
}

Last updated

Was this helpful?