CosmWasm contract to handle skip oracle queries.
Initialize Slinky contract
{}
Get oracle price
{
"get_price": {
"pair_id": "BTC/USD" // {Base}/{Quote}
}
}
Response type
{
"price": {
"price": "6942640000000",
"block_timestamp": "1712446136721825744", // uinx timestamp in nano second
"block_height": 561283
},
"nonce": 12243,
"decimals": 8,
"id": 0
}
Get oracle prices
{
"get_prices": {
"pair_ids": ["BTC/USD"] // {Base}/{Quote}
}
}
Response type
{
"prices": [
{
"price": {
"price": "6942640000000",
"block_timestamp": "1712446136721825744",
"block_height": 561283
},
"nonce": 12243,
"decimals": 8,
"id": 0
},
...
]
}
Get all currency pairs that can get oracle price
{
"get_all_currency_pairs": {}
}
Response type
{
"currency_pairs": [
{
"Base": "BITCOIN",
"Quote": "USD"
},
...
]
}