地址
大约 2 分钟
地址
地址可用余额
GET
https://services.tokenview.io/vipapi/{公链简称小写}/address/{地址}?apikey={apikey}
参数
- {公链简称小写}: atom
- {地址}: Cosmos(atom)链上地址
- {apikey}: 可在Tokenview API 后台管理系统获取激活状态的 APIKEY: https://services.tokenview.io
总余额 = 可用余额 + Staking 收益
Request
curl --location https://services.tokenview.io/vipapi/atom/address/cosmos1n2vqy5tzcy2me3vynampfnh3nk3q20dzcklp3p?apikey={apikey}
Response
{
"code": 1,
"msg": "成功",
"data": {
"appendixData": null,
"pending": null,
"type": "address",
"network": "ATOM",
"hash": "cosmos1n2vqy5tzcy2me3vynampfnh3nk3q20dzcklp3p",
"addrAlias": null,
"rank": 201038,
"txCount": null,
"spend": 0,
"receive": 120604.08837,
"createTime": null,
"lastTxTime": null,
"balance": 120604.08837,
"createBlock": null,
"firstTxIndex": null,
"normalTxCount": 2,
"txs": [
{
"appendixData": null,
"pending": null,
"type": "tx",
"network": "ATOM",
"block_no": 14361689,
"height": 14361689,
"blockHash": null,
"index": 0,
"time": 1678181825,
"txid": "4DE7FA219C4A44CD7BACA502242789EC053DDA4A840292BBB80CC002015F49E3",
"fee": "0.003",
"tType": "Send",
"confirmations": 12980,
"from": null,
"fromAlias": null,
"to": null,
"toAlias": null,
"gasLimit": 300000,
"gasUsed": 71938,
"value": "120603.08837",
"denom": null,
"error": null,
"comment": null,
"status": 1,
"signatures": [],
"actions": [
{
"from": "cosmos1gwyv83zcnckdhuz3n78rvyzj59u8x6l8dk9cfy",
"fromAlias": null,
"to": "cosmos1n2vqy5tzcy2me3vynampfnh3nk3q20dzcklp3p",
"toAlias": null,
"type": "Send",
"comment": null,
"value": "120603.08837",
"denom": "ATOM",
"formIsContract": null,
"toIsContract": null
}
],
"endorsement": null,
"storageLimit": null,
"storageUsed": null,
"callTransfer": null,
"tokenTransfer": null
},
{
"appendixData": null,
"pending": null,
"type": "tx",
"network": "ATOM",
"block_no": 14361556,
"height": 14361556,
"blockHash": null,
"index": 0,
"time": 1678180974,
"txid": "CF34BC65DAD793EE3F09AAEA20BB769E44DE94E9BE4882974B86A4116A4C9224",
"fee": "0.003",
"tType": "Send",
"confirmations": 13113,
"from": null,
"fromAlias": null,
"to": null,
"toAlias": null,
"gasLimit": 300000,
"gasUsed": 80749,
"value": "1",
"denom": null,
"error": null,
"comment": null,
"status": 1,
"signatures": [],
"actions": [
{
"from": "cosmos18ld4633yswcyjdklej3att6aw93nhlf7ce4v8u",
"fromAlias": null,
"to": "cosmos1n2vqy5tzcy2me3vynampfnh3nk3q20dzcklp3p",
"toAlias": null,
"type": "Send",
"comment": null,
"value": "1",
"denom": "ATOM",
"formIsContract": null,
"toIsContract": null
}
],
"endorsement": null,
"storageLimit": null,
"storageUsed": null,
"callTransfer": null,
"tokenTransfer": null
}
],
"addressType": null,
"tokenInfo": null,
"miningReward": null,
"callTransCount": null,
"tokenTransCount": null,
"miningCount": null,
"entityTokenCount": null,
"otherTxCnt": 0,
"delegateTxCnt": 4
}
}
应答字段说明
"data": {
"appendixData": null,
"pending": null,
"type": "address", // 类型:地址
"network": "ATOM",
"hash": "cosmos1n2vqy5tzcy2me3vynampfnh3nk3q20dzcklp3p",
"addrAlias": null,
"rank": 201038,
"txCount": null,
"spend": 0, // 支出
"receive": 120604.08837, // 收入
"createTime": null,
"lastTxTime": null,
"balance": 120604.08837, // 可用余额
"createBlock": null,
"firstTxIndex": null,
"normalTxCount": 2, // 普通交易笔数
"txs": [ // 最新20条交易记录
{
"appendixData": null,
"pending": null,
"type": "tx",
"network": "ATOM",
"block_no": 14361689,
"height": 14361689,
"blockHash": null,
"index": 0,
"time": 1678181825,
"txid": "4DE7FA219C4A44CD7BACA502242789EC053DDA4A840292BBB80CC002015F49E3",
"fee": "0.003",
"tType": "Send",
"confirmations": 12980,
"from": null,
"fromAlias": null,
"to": null,
"toAlias": null,
"gasLimit": 300000,
"gasUsed": 71938,
"value": "120603.08837",
"denom": null,
"error": null,
"comment": null,
"status": 1,
"signatures": [],
"actions": [
{
"from": "cosmos1gwyv83zcnckdhuz3n78rvyzj59u8x6l8dk9cfy",
"fromAlias": null,
"to": "cosmos1n2vqy5tzcy2me3vynampfnh3nk3q20dzcklp3p",
"toAlias": null,
"type": "Send",
"comment": null,
"value": "120603.08837",
"denom": "ATOM",
"formIsContract": null,
"toIsContract": null
}
],
"endorsement": null,
"storageLimit": null,
"storageUsed": null,
"callTransfer": null,
"tokenTransfer": null
}
],
"addressType": null,
"tokenInfo": null,
"miningReward": null,
"callTransCount": null,
"tokenTransCount": null,
"miningCount": null,
"entityTokenCount": null,
"otherTxCnt": 0, // 除去普通交易,委托交易的其他所有类型交易的笔数
"delegateTxCnt": 4 // 委托交易笔数
}
地址 Staking 收益
GET
https://services.tokenview.io/vipapi/stakeinfo/{公链简称小写}/{地址}?apikey={apikey}
参数
- {公链简称小写}: atom
- {地址}: Cosmos(atom)链上地址
- {apikey}: 可在Tokenview API 后台管理系统获取激活状态的 APIKEY: https://services.tokenview.io
地址 Staking 收益:
- 未取回
- 解绑中
- 委托中
总余额 = 可用余额 + Staking 收益
Request
curl --location https://services.tokenview.io/vipapi/stakeinfo/atom/cosmos1n2vqy5tzcy2me3vynampfnh3nk3q20dzcklp3p?apikey={apikey}
Response
{
"code": 1,
"msg": "成功",
"data": {
"reward": "78.982926",
"unbonding": "0",
"delegated": "120603"
}
}
应答字段说明
"data": {
"reward": "78.982926", // 未取回收益
"unbonding": "0", // 解绑中
"delegated": "120603" // 委托中
}