POST
/
api
/
v1
/
price
/
onchain
/
batch
Get Batch OnChain Prices
curl --request POST \
  --url https://prv.explorer.biya.io/api/v1/price/onchain/batch \
  --header 'Content-Type: application/json' \
  --data '
{
  "symbols": [
    "<string>"
  ],
  "denoms": [
    "<string>"
  ],
  "use_cache": true
}
'
{
  "code": 123,
  "message": "<string>",
  "data": {}
}

Body

application/json

Batch request for on-chain prices

symbols
string[]
denoms
string[]
use_cache
boolean

Response

200 - application/json

OK

通用响应结构

code
integer<int32>

响应状态码,0表示成功,非0表示失败

message
string

响应消息

data
object

响应数据(使用 Struct 类型,可以直接返回 JSON 对象,更直观)