Skip to content

Commit

Permalink
docs: add oracles detail endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
sborrazas committed Dec 18, 2024
1 parent 99d97dc commit 564cfd2
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2643,8 +2643,31 @@ $ curl -s "https://mainnet.aeternity.io/mdw/v3/oracles?state=active&limit=1" | j
}
```
### `/v3/oracles/:id`
```
$ curl -s "https://mainnet.aeternity.io/mdw/v3/oracles/ok_R7cQfVN15F5ek1wBSYaMRjW2XbMRKx7VDQQmbtwxspjZQvmPM" | jq '.'
{
"active": false,
"active_from": 4660,
"expire_height": 6894,
"approximate_expire_time": 1544587118827,
"register_time": 1544194831238,
"register_tx_hash": "th_2SLFNYk5s5u5tRD4Bqx6pSc1mysZMsCr3szbx55nKgVBQSiZv2",
"format": {
"query": "string",
"response": "string"
},
"oracle": "ok_R7cQfVN15F5ek1wBSYaMRjW2XbMRKx7VDQQmbtwxspjZQvmPM",
"query_fee": 20000,
"register": 11023
}
```
### `/v3/oracles/:id/queries`
Paginated list of an oracle's queries.
```
$ curl -s "https://mainnet.aeternity.io/mdw/v3/oracles/ok_R7cQfVN15F5ek1wBSYaMRjW2XbMRKx7VDQQmbtwxspjZQvmPM/queries" | jq '.'
{
Expand Down

0 comments on commit 564cfd2

Please sign in to comment.