OracleState
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.
Chain ID
OK - Returns Oracle state.
Chain ID
Latest block hash
Latest block slot
Bad Request – chainId is missing from the query or invalid, or the transaction outputs could not be retrieved.
Unauthorized – API key missing or invalid.
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
}
]
}
]
}Returns whether the transaction failed. A transaction is considered failed if it is not found on Oracle and if its TTL has expired.
Source chain ID
Source transaction hash
Transaction TTL
OK - Returns transaction failure status.
true if the transaction failed, false otherwise
Bad Request – One or more query parameters are missing or invalid, or the transaction could not be retrieved.
Unauthorized – API key missing or invalid.
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?

