市场 API

获取钱包资产#

该接口用于获取某个地址下的符文资产

请求地址#

GET https://www.okx.com/api/v5/mktplace/nft/runes/get-owned-asserts

请求参数#

字段名类型是否必传说明
runesIdString代币的唯一标识
walletAddressesString钱包地址,多个地址则以英文逗号分隔 (,),钱包地址不超过 20 个
cursorString指向要检索的排序序号的游标 (最大 1,000)
limitInteger分页大小 (默认值 10,最大 100)。返回最大的条数

返回参数#

参数类型参数说明
assetIdStringid (DB 主键 无实际意义)
tickerTypeInteger代币类型 (4-Runes)
tickerString代币名称
tickerIdString代币 id
ownerAddressString钱包地址
amountString在该 UTXO 的 XRC20 数量
chainInteger
inscriptionNumStringInscription 编号
utxoTxHashString交易 hash
utxoVoutIntegerutxoVout
utxoValueStringutxoValue
txHashString交易 hash
nameString代币名称
tickerIconString代币 icon 链接
statusInteger挂单状态 (0-未挂单 1-已挂单 2-pending中)
listTimeLong挂单时间
orderIdLong订单 id
confirmationsLong区块高度信息
currencyString总价 - 币种
currencyUrlString总价 - 币种 url
satPriceBigDecimal总价 - sat 价格
priceBigDecimal总价 - btc 价格
usdPriceBigDecimal总价 - usd 价格
currencyString单价 - 币种
currencyUrlString单价 - 币种 url
satPriceBigDecimal单价 - sat 价格
priceBigDecimal单价 - btc 价格
usdPriceBigDecimal单价 - usd 价格
unavailableInteger"1 - 同一个 UTXO 包含 多个 Atomicals 资产; 2 - 同一个 UTXO 包含多个协议资产"
symbolStringSymbol

请求示例#

shell
curl --location --request GET 'https://beta.okex.org/api/v5/mktplace/nft/runes/get-owned-asserts?runesId=840000:3&walletAddresses=bc1p3fj806enwnmz04444mpm42ykgdcta9p5mvzx46hp8wmg2knpwxpq0k46x9&limit=10' \
--header 'OK-ACCESS-KEY: XXXX' \
--header 'OK-ACCESS-PASSPHRASE: XXXX'

返回示例#

200
{
  "code": 0,
  "data": {
  "cursor": "1",
  "items": [
{
  "amount": "500000",
  "assetId": "28912795273673038",
  "chain": 0,
  "confirmations": null,
  "inscriptionNum": "",
  "listTime": 1714399069,
  "name": "DOG•GO•TO•THE•MOON",
  "orderId": 201296,
  "ownerAddress": "bc1p3fj806enwnmz04444mpm42ykgdcta9p5mvzx46hp8wmg2knpwxpq0k46x9",
  "status": 1,
  "symbol": "🐕",
  "ticker": "DOG•GO•TO•THE•MOON",
  "tickerIcon": "https://static.coinall.ltd/cdn/web3/currency/token/1714125941761.png/type=png_350_0",
  "tickerId": "840000:3",
  "tickerType": 4,
  "totalPrice": {
  "currency": "BTC",
  "currencyUrl": "https://static.coinall.ltd/cdn/nft/4834651a-7c4e-4249-91c1-cf680af39dc0.png",
  "price": "0.031895",
  "satPrice": "3189500",
  "usdPrice": "1979.7003235"
},
  "txHash": "",
  "unavailable": null,
  "unitPrice": {
  "currency": "BTC",
  "currencyUrl": "https://static.coinall.ltd/cdn/nft/4834651a-7c4e-4249-91c1-cf680af39dc0.png",
  "price": "0.00000006379",
  "satPrice": "6.379",
  "usdPrice": "0.003959400647"
},
  "utxoTxHash": "ce302f5c946ff3ef502eade58405d64b545d59de9fcd731314b88ddadf709ca6",
  "utxoValue": "546",
  "utxoVout": 2
}
  ]
},
  "msg": ""
}