yodyinfo-api
v0.0.1
Published
A YODY blockchain REST and websocket API service for Yodyinfo Node
Downloads
2
Readme
yody.info API
API endpoint of yody.info is https://yody.info/api/
Table of Contents
Blocks
Block information
GET /block/:height or GET /block/:hash
GET /block/100000
{
"hash": "de1bbb38849c24c4d4593bcb2011af88fa9a64cc07029a549b1596e487257ff4",
"height": 100000,
"version": 536870912,
"prevHash": "dca8b3fed8c8602ceb63ec4271c778e764f94bfb95e9bbda205723e1d890c271",
"nextHash": "8af83c9b2598f2257ddcd0baebab322870b530c5c984715059597bac23e2548f",
"merkleRoot": "e3c31c90dcecf4db139bdae72ae6ca59f1b79efd735632dc8ae182aee8229c00",
"timestamp": 1518578704,
"bits": 436484145,
"nonce": 0,
"hashStateRoot": "19f6782f7324b151b53801637ec2fb469dca309e87de1c8eddb139425da624f2",
"hashUTXORoot": "61b4ba65871a1c9d9b55d3c9a9988d9f96f2356a92ae91f584d937b5172cf2f5",
"prevOutStakeHash": "ff30cd4194fff06f6d4e37de19beb94821f17825d9330f4c07498d28178f15d4",
"prevOutStakeN": 2,
"signature": "3045022100ab4e564cc5f54b84ad93a06cd27476500adcbacb589bfeca135bcb7aaae306710220186c2bf2575d25db6664303012b75c66bfc254d2a371f815f984ee87401e87a6",
"chainwork": "00000000000000000000000000000000000000000000003c678b829133eb23e4",
"interval": 192,
"size": 3991,
"weight": 15856,
"transactions": [
"f725c53e97e313ba15e97efae018495f12b5b9e2c80a4d12bcf0ccd14a5b5e4f",
"1924f5f6e6f7e78f23e2c29dffafb526528c1a842f9bd1152d7462ae2b7c1102",
"344c2576d27d4e054e9780429bd017285a725a4363d322dde771d0578e320119",
"2f34012aef0b2bb2f7f72a086469fffd86ee420e358f2a55365511722751f2c7",
"96e3b28a1887a99ee6c93ccd9d42f20ed62c9b351400a5745442e767f5487ea1",
"f2f8e4e1fdf88ff6e07d07f561bf6d5a5ce491ccf2946d99b76cae08cff9a81b",
"f90203949cbe4b267f1594fa4df656deb74bf9c6181aba1704576bb95011240b",
"20b26a4010d60ef611d337859e38f1e8703d9e2dfd2a8f0cc459dc86b91c5bbc",
"2265fb9a1959135551a0ef885c1ceff346343d7334a194cdca86720d271a918e",
"940085ebc47d0fed633cee69763769517f5d3744c261e9b72f4883120b2a5f49",
"c4f906c845f7e4a9bc6cfbb1c581ac12325841d7ccac0c63067c84b3aaed38f7"
],
"miner": "Qa28NkEgNuZ9evd8xQTnspv71ZGRzMaNTp",
"coinstakeValue": "20000000000",
"difficulty": 3976056.2203602516,
"reward": "409280918",
"confirmations": 145624
}
Raw block data
GET /raw-block/:hash
GET /rawblock/000075aef83cf2853580f8ae8ce6f8c3096cfa21d98334d6e3f95e5582ed986c
0100000000000000000000000000000000000000000000000000000000000000000000006db905142382324db417761891f2d2f355ea92f27ab0fc35e59e90b50e0534edf5d2af59ffff001ff9787a00e965ffd002cd6ad0e2dc402b8044de833e06b23127ea8c3d80aec9141077149556e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b4210000000000000000000000000000000000000000000000000000000000000000ffffffff000101000000010000000000000000000000000000000000000000000000000000000000000000ffffffff420004bf91221d0104395365702030322c203230313720426974636f696e20627265616b732024352c30303020696e206c6174657374207072696365206672656e7a79ffffffff0100f2052a010000004341040d61d8653448c98731ee5fffd303c15e71ec2057b77f11ab3601979728cdaff2d68afbba14e4fa0bc44f2072b0b23ef63717f8cdfbe58dcd33f32b6afe98741aac00000000
Transactions
Transaction information
GET /tx/:id
GET /tx/c4f906c845f7e4a9bc6cfbb1c581ac12325841d7ccac0c63067c84b3aaed38f7
{
"id": "c4f906c845f7e4a9bc6cfbb1c581ac12325841d7ccac0c63067c84b3aaed38f7",
"hash": "c4f906c845f7e4a9bc6cfbb1c581ac12325841d7ccac0c63067c84b3aaed38f7",
"version": 2,
"witnesses": [],
"lockTime": 99999,
"blockHash": "de1bbb38849c24c4d4593bcb2011af88fa9a64cc07029a549b1596e487257ff4",
"blockHeight": 100000,
"confirmations": 145629,
"timestamp": 1518578704,
"inputs": [
{
"prevTxId": "940085ebc47d0fed633cee69763769517f5d3744c261e9b72f4883120b2a5f49",
"outputIndex": 1,
"value": "1850797",
"address": "QLv4ErowdrTvr889MHGg8zkiPavJSzvvVu",
"sequence": 4294967294,
"index": 0,
"scriptSig": {
"hex": "473044022018ced042e2701a3efbc78ed394732282064a23dadf66c1c57f0c5321f092104902204b86d613e5abe12892112cfdf24084de644ebc057dca2a4e4f910ee9d9dfe766012103fe1aeb547b5ba08618497ea66b75ab52d1df67f60ecfd57215b096594ec5fbad",
"asm": "3044022018ced042e2701a3efbc78ed394732282064a23dadf66c1c57f0c5321f092104902204b86d613e5abe12892112cfdf24084de644ebc057dca2a4e4f910ee9d9dfe76601 03fe1aeb547b5ba08618497ea66b75ab52d1df67f60ecfd57215b096594ec5fbad"
}
},
{
"prevTxId": "e277b88cadf8d0d498e17fbdb19aecba7a37b7aa6ce79cfede601566ce654df8",
"outputIndex": 11,
"value": "8516280",
"address": "QLv4ErowdrTvr889MHGg8zkiPavJSzvvVu",
"sequence": 4294967294,
"index": 1,
"scriptSig": {
"hex": "483045022100bf07d826e562530ab46250637105931a00f29c03f14c05468dc32ef14ad9aa0d02202bd84f756224049ffd4256e7d0b557f597950a7692073f073bb90cbd3263467e012103fe1aeb547b5ba08618497ea66b75ab52d1df67f60ecfd57215b096594ec5fbad",
"asm": "3045022100bf07d826e562530ab46250637105931a00f29c03f14c05468dc32ef14ad9aa0d02202bd84f756224049ffd4256e7d0b557f597950a7692073f073bb90cbd3263467e01 03fe1aeb547b5ba08618497ea66b75ab52d1df67f60ecfd57215b096594ec5fbad"
}
},
{
"prevTxId": "f5caac8222d17878befa1e0e01fd4eddb9e010813f8aab02c9984ba10b3a23de",
"outputIndex": 17,
"value": "8518840",
"address": "QLv4ErowdrTvr889MHGg8zkiPavJSzvvVu",
"sequence": 4294967294,
"index": 2,
"scriptSig": {
"hex": "473044022065ba889983d89de0cf27ffb3a8eb40f41f6f578915ba4fa055a221b1277760ab0220077282a6825b3f89fd33bccfbb0f4018a39be7206cfd136df1f72ab6ab03475a012103fe1aeb547b5ba08618497ea66b75ab52d1df67f60ecfd57215b096594ec5fbad",
"asm": "3044022065ba889983d89de0cf27ffb3a8eb40f41f6f578915ba4fa055a221b1277760ab0220077282a6825b3f89fd33bccfbb0f4018a39be7206cfd136df1f72ab6ab03475a01 03fe1aeb547b5ba08618497ea66b75ab52d1df67f60ecfd57215b096594ec5fbad"
}
}
],
"outputs": [
{
"value": "8642923",
"address": "QLv4ErowdrTvr889MHGg8zkiPavJSzvvVu",
"index": 0,
"scriptPubKey": {
"type": "pubkeyhash",
"hex": "76a914036aef66b0915c6df2e0a96a92f5669e293bcb1088ac",
"asm": "OP_DUP OP_HASH160 036aef66b0915c6df2e0a96a92f5669e293bcb10 OP_EQUALVERIFY OP_CHECKSIG"
},
"spentTxId": "35806f82f40c7bfc78d61870fd95a905076fb44e9d784217e6ccb2a3ff6981cf",
"spentIndex": 1
},
{
"value": "0",
"address": "49665919e437a4bedb92faa45ed33ebb5a33ee63",
"index": 1,
"scriptPubKey": {
"type": "call",
"hex": "01040390d003012844a9059cbb000000000000000000000000b735abe3db72e9d2ff7b2ee2b64ea1a567fddc97000000000000000000000000000000000000000000000000000000025c2716001449665919e437a4bedb92faa45ed33ebb5a33ee63c2",
"asm": "4 250000 40 a9059cbb000000000000000000000000b735abe3db72e9d2ff7b2ee2b64ea1a567fddc97000000000000000000000000000000000000000000000000000000025c271600 49665919e437a4bedb92faa45ed33ebb5a33ee63 OP_CALL"
},
"isInvalidContract": false
}
],
"isCoinbase": false,
"isCoinstake": false,
"inputValue": "18885917",
"outputValue": "8642923",
"refundValue": "8518840",
"fees": "1724154",
"size": 594,
"receipts": [
{
"gasUsed": 37029,
"contractAddress": "49665919e437a4bedb92faa45ed33ebb5a33ee63",
"excepted": "None",
"logs": [
{
"address": "49665919e437a4bedb92faa45ed33ebb5a33ee63",
"topics": [
"ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"000000000000000000000000036aef66b0915c6df2e0a96a92f5669e293bcb10",
"000000000000000000000000b735abe3db72e9d2ff7b2ee2b64ea1a567fddc97"
],
"data": "000000000000000000000000000000000000000000000000000000025c271600"
}
]
}
],
"qrc20TokenTransfers": [
{
"token": {
"address": "49665919e437a4bedb92faa45ed33ebb5a33ee63",
"name": "AWARE Token",
"symbol": "AWR",
"decimals": 8,
"totalSupply": "100000000000000000",
"version": "1.0"
},
"from": "QLv4ErowdrTvr889MHGg8zkiPavJSzvvVu",
"to": "QdJi4ZWN32Fqcmoa2F8MarPAz6TSB9o6Ws",
"amount": "10136000000"
}
],
"qrc721TokenTransfers": []
}
Raw transaction data
GET /raw-tx/:td
GET /raw-tx/c4f906c845f7e4a9bc6cfbb1c581ac12325841d7ccac0c63067c84b3aaed38f7
0200000003495f2a0b1283482fb7e961c244375d7f5169377669ee3c63ed0f7dc4eb850094010000006a473044022018ced042e2701a3efbc78ed394732282064a23dadf66c1c57f0c5321f092104902204b86d613e5abe12892112cfdf24084de644ebc057dca2a4e4f910ee9d9dfe766012103fe1aeb547b5ba08618497ea66b75ab52d1df67f60ecfd57215b096594ec5fbadfefffffff84d65ce661560defe9ce76caab7377abaec9ab1bd7fe198d4d0f8ad8cb877e20b0000006b483045022100bf07d826e562530ab46250637105931a00f29c03f14c05468dc32ef14ad9aa0d02202bd84f756224049ffd4256e7d0b557f597950a7692073f073bb90cbd3263467e012103fe1aeb547b5ba08618497ea66b75ab52d1df67f60ecfd57215b096594ec5fbadfeffffffde233a0ba14b98c902ab8a3f8110e0b9dd4efd010e1efabe7878d12282accaf5110000006a473044022065ba889983d89de0cf27ffb3a8eb40f41f6f578915ba4fa055a221b1277760ab0220077282a6825b3f89fd33bccfbb0f4018a39be7206cfd136df1f72ab6ab03475a012103fe1aeb547b5ba08618497ea66b75ab52d1df67f60ecfd57215b096594ec5fbadfeffffff026be18300000000001976a914036aef66b0915c6df2e0a96a92f5669e293bcb1088ac00000000000000006301040390d003012844a9059cbb000000000000000000000000b735abe3db72e9d2ff7b2ee2b64ea1a567fddc97000000000000000000000000000000000000000000000000000000025c2716001449665919e437a4bedb92faa45ed33ebb5a33ee63c29f860100
Send raw transaction
POST /tx/send
Request Body = "rawtx=0200...."
Addresses
Address Information
GET /address/:address
GET /address/QQr3S2Q8gLoatsmN3hQ1a2v2uM9YpU9Myk
{
"balance": "400571483",
"totalReceived": "70408264559857",
"totalSent": "70407863988374",
"unconfirmed": "0",
"staking": "0",
"mature": "400571483",
"qrc20TokenBalances": [
{
"address": "f397f39ce992b0f5bdc7ec1109d676d07f7af2f9",
"name": "Ocash",
"symbol": "OC",
"decimals": 8,
"totalSupply": "1000000000000000000",
"balance": "28500000000000000"
},
{
"address": "59e7e07a4c7035a9df3f118b95ce6d64eee6ea35",
"name": "WineChain",
"symbol": "WID",
"decimals": 8,
"totalSupply": "90000000000000000",
"balance": "500038000000000"
},
{
"address": "0d109c94a65b6bdda33fc6b0627f036b32486f7b",
"name": "Test Token",
"symbol": "TTC",
"decimals": 8,
"totalSupply": "500000000000000",
"balance": "309031540579"
},
{
"address": "29eb975895082f233f19e9916c0cc32c3b3bfe85",
"name": "EliteJeff\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000",
"symbol": "EJEFF\u0000\u0000\u0000\u0000\u0000",
"decimals": 8,
"totalSupply": "888",
"balance": "10"
},
{
"address": "9d3d4cc1986d81f9109f2b091b7732e7d9bcf63b",
"name": "Vevue Token",
"symbol": "Vevue",
"decimals": 8,
"totalSupply": "10000000000000000",
"balance": "1000010000000000"
},
{
"address": "18b33b6e03bdee91a341aed5059c196f0640c9c6",
"name": "IAME Token",
"symbol": "IAM",
"decimals": 8,
"totalSupply": "20000000000000000",
"balance": "1253740300000000"
},
{
"address": "b27d7bf95b03e02b55d5eb63d3f1692762101bf9",
"name": "Halal Chain",
"symbol": "HLC",
"decimals": 9,
"totalSupply": "1000000000000000000",
"balance": "13349700600000000"
},
{
"address": "49665919e437a4bedb92faa45ed33ebb5a33ee63",
"name": "AWARE Token",
"symbol": "AWR",
"decimals": 8,
"totalSupply": "100000000000000000",
"balance": "2750000000000000"
},
{
"address": "09800417b097c61b9fd26b3ddde4238304a110d5",
"name": "QBT",
"symbol": "QBT",
"decimals": 8,
"totalSupply": "10000000000000000",
"balance": "469113500000000"
},
{
"address": "fe59cbc1704e89a698571413a81f0de9d8f00c69",
"name": "INK Coin",
"symbol": "INK",
"decimals": 9,
"totalSupply": "1000000000000000000",
"balance": "34500027999997952"
},
{
"address": "4060e21ac01b5c5d2a3f01cecd7cbf820f50be95",
"name": "Profile Utility Token",
"symbol": "PUT",
"decimals": 8,
"totalSupply": "10000000000000000",
"balance": "243558149460000"
},
{
"address": "8b9500e2b789e002c1d0e744bd0ac7aa60dbffcc",
"name": "CFun Token",
"symbol": "CFun",
"decimals": 9,
"totalSupply": "900000000000000000",
"balance": "0"
},
{
"address": "6b8bf98ff497c064e8f0bde13e0c4f5ed5bf8ce7",
"name": "Bodhi Token",
"symbol": "BOT",
"decimals": 8,
"totalSupply": "10000000000000000",
"balance": "25283431540579"
},
{
"address": "57931faffdec114056a49adfcaa1caac159a1a25",
"name": "SpaceCash",
"symbol": "SPC",
"decimals": 8,
"totalSupply": "100000000000000000",
"balance": "1999910100000000"
},
{
"address": "b6c48b3a7c888713dd96eed92a4ee0397dd64e71",
"name": "PlayCoin",
"symbol": "PLY",
"decimals": 9,
"totalSupply": "1000000000000000000",
"balance": "2160000000000000"
},
{
"address": "fdb9d0873ba524ef3ea67c1719666968e1eeb110",
"name": "Entertainment Cash",
"symbol": "ENT",
"decimals": 8,
"totalSupply": "160000000000000000",
"balance": "70003993000000"
}
],
"ranking": 40067,
"blocksStaked": 471,
"totalCount": 4801
}
Address UTXO information
GET /address/:address/utxo
GET /address/QQr3S2Q8gLoatsmN3hQ1a2v2uM9YpU9Myk/utxo
[
{
"transactionId": "5e585c51b8040e31dff89c61b1cf5afe648c9ca821a3fe09a9b205a908564601",
"outputIndex": 3,
"scriptPubKey": "76a9142e8919b2ec6b62c0b4d68f3f72b565fb786685eb88ac",
"address": "QQr3S2Q8gLoatsmN3hQ1a2v2uM9YpU9Myk",
"value": "40247308",
"isStake": true,
"confirmations": 26914
},
{
"transactionId": "1e8977d8b372debaf427dc33c1a9190ff6eaed0bc6a953f08274456fb3beb468",
"outputIndex": 8,
"scriptPubKey": "76a9142e8919b2ec6b62c0b4d68f3f72b565fb786685eb88ac",
"address": "QQr3S2Q8gLoatsmN3hQ1a2v2uM9YpU9Myk",
"value": "40078616",
"isStake": true,
"confirmations": 26910
},
{
"transactionId": "70a2dc5108774e29049903b8f3a941772ab0205856010427cdfab1ba2da0c9e0",
"outputIndex": 8,
"scriptPubKey": "76a9142e8919b2ec6b62c0b4d68f3f72b565fb786685eb88ac",
"address": "QQr3S2Q8gLoatsmN3hQ1a2v2uM9YpU9Myk",
"value": "40000000",
"isStake": true,
"confirmations": 26909
},
{
"transactionId": "93e93243706a0797dcce4738bb99fcfedc732850754f19a6f8b9d87b5962f20a",
"outputIndex": 9,
"scriptPubKey": "76a9142e8919b2ec6b62c0b4d68f3f72b565fb786685eb88ac",
"address": "QQr3S2Q8gLoatsmN3hQ1a2v2uM9YpU9Myk",
"value": "40000000",
"isStake": true,
"confirmations": 26908
},
{
"transactionId": "adac4ba6e1352598ddcf4a9350eef15f7e846ad128021713f19d756507a33cf6",
"outputIndex": 4,
"scriptPubKey": "76a9142e8919b2ec6b62c0b4d68f3f72b565fb786685eb88ac",
"address": "QQr3S2Q8gLoatsmN3hQ1a2v2uM9YpU9Myk",
"value": "40200000",
"isStake": true,
"confirmations": 24584
},
{
"transactionId": "9530ef13e45d93b6c1fbe978978b5fd4ded3a30e1df643fbd39eddac3aeaf8c5",
"outputIndex": 5,
"scriptPubKey": "76a9142e8919b2ec6b62c0b4d68f3f72b565fb786685eb88ac",
"address": "QQr3S2Q8gLoatsmN3hQ1a2v2uM9YpU9Myk",
"value": "40000000",
"isStake": true,
"confirmations": 24583
},
{
"transactionId": "82acd6896036dd02109d780d08a0b69129b96cbb3b10e4c50aef2d2901c59dda",
"outputIndex": 6,
"scriptPubKey": "76a9142e8919b2ec6b62c0b4d68f3f72b565fb786685eb88ac",
"address": "QQr3S2Q8gLoatsmN3hQ1a2v2uM9YpU9Myk",
"value": "40034079",
"isStake": true,
"confirmations": 24582
},
{
"transactionId": "68e0adb9c9a81828e5fbf23fca9383ddd22865b19b3cc03af7a69aa5d8276c67",
"outputIndex": 8,
"scriptPubKey": "76a9142e8919b2ec6b62c0b4d68f3f72b565fb786685eb88ac",
"address": "QQr3S2Q8gLoatsmN3hQ1a2v2uM9YpU9Myk",
"value": "40011480",
"isStake": true,
"confirmations": 24580
},
{
"transactionId": "8b5b253ea3637fd630d204e5bb9f59cc8bc89863a71a1455186bb3b5d3d3b697",
"outputIndex": 9,
"scriptPubKey": "76a9142e8919b2ec6b62c0b4d68f3f72b565fb786685eb88ac",
"address": "QQr3S2Q8gLoatsmN3hQ1a2v2uM9YpU9Myk",
"value": "40000000",
"isStake": true,
"confirmations": 24578
},
{
"transactionId": "199561c9477a2cc65120fe193aace1ef74ab13e0705758ceedd0cf0543f01de9",
"outputIndex": 11,
"scriptPubKey": "76a9142e8919b2ec6b62c0b4d68f3f72b565fb786685eb88ac",
"address": "QQr3S2Q8gLoatsmN3hQ1a2v2uM9YpU9Myk",
"value": "40000000",
"isStake": true,
"confirmations": 24577
}
]
Address transactions
GET /address/:address/txs
Request Params
pageSize, pageIndex, reversed = { pagination }
GET /address/QXDZB2c4TBRSWqYY1ifQQHMu9MuiDW3oYi/txs
{
"totalCount": 6,
"transactions": [
"2f1aa785cf457df95e902c7b085b7385c08098b3a6422734d58f07f7652a502c",
"3968a6a6cf8e824ae9b27631cc5ae1e65cdc4223dae28f3fba93fd532400c8f1",
"52daa118f138e1b159f20c931af2e2da6efd7a88f8916bad615e7ce44c1c4542",
"526606dbb1e30c64e0612e10ddc4f7b978021832a84eaec5345b9fb791786302",
"ac20db766204c6ef7821d586b8e8ba18d4e3c617404b012e17fb39152e390e16",
"44ecf21909cc673cd450bbda0a562b8e34ac7a2f0768d7ab7bf49ae006534007"
]
}
Address balance history
GET /address/:address/balance-history
Request Params
pageSize, pageIndex, reversed = { pagination }
GET /address/QXDZB2c4TBRSWqYY1ifQQHMu9MuiDW3oYi/balance-history
{
"totalCount": 4,
"transactions": [
{
"id": "3968a6a6cf8e824ae9b27631cc5ae1e65cdc4223dae28f3fba93fd532400c8f1",
"blockHeight": 113759,
"timestamp": 1520563216,
"amount": "-97699640",
"balance": "0"
},
{
"id": "52daa118f138e1b159f20c931af2e2da6efd7a88f8916bad615e7ce44c1c4542",
"blockHeight": 97686,
"timestamp": 1518242096,
"amount": "-4844600",
"balance": "97699640"
},
{
"id": "526606dbb1e30c64e0612e10ddc4f7b978021832a84eaec5345b9fb791786302",
"blockHeight": 97686,
"timestamp": 1518242096,
"amount": "2544240",
"balance": "102544240"
},
{
"id": "44ecf21909cc673cd450bbda0a562b8e34ac7a2f0768d7ab7bf49ae006534007",
"blockHeight": 93436,
"timestamp": 1517629600,
"amount": "100000000",
"balance": "100000000"
}
]
}
Address qrc20 token balance history
GET /address/:address/qrc20-balance-history
Request Params
tokens = all / { token address }
pageSize, pageIndex, reversed = { pagination }
GET /address/QXDZB2c4TBRSWqYY1ifQQHMu9MuiDW3oYi/qrc20-balance-history
{
"totalCount": 3,
"transactions": [
{
"id": "2f1aa785cf457df95e902c7b085b7385c08098b3a6422734d58f07f7652a502c",
"blockHeight": 141509,
"timestamp": 1524564448,
"data": [
{
"token": {
"address": "fe59cbc1704e89a698571413a81f0de9d8f00c69",
"name": "INK Coin",
"symbol": "INK",
"decimals": 9,
"totalSupply": "1000000000000000000"
},
"amount": "21439764000",
"balance": "21439764000"
}
]
},
{
"id": "52daa118f138e1b159f20c931af2e2da6efd7a88f8916bad615e7ce44c1c4542",
"blockHeight": 97686,
"timestamp": 1518242096,
"data": [
{
"token": {
"address": "09800417b097c61b9fd26b3ddde4238304a110d5",
"name": "QBT",
"symbol": "QBT",
"decimals": 8,
"totalSupply": "10000000000000000",
"version": "1.0"
},
"amount": "-100000000000",
"balance": "0"
}
]
},
{
"id": "ac20db766204c6ef7821d586b8e8ba18d4e3c617404b012e17fb39152e390e16",
"blockHeight": 93436,
"timestamp": 1517629600,
"data": [
{
"token": {
"address": "09800417b097c61b9fd26b3ddde4238304a110d5",
"name": "QBT",
"symbol": "QBT",
"decimals": 8,
"totalSupply": "10000000000000000",
"version": "1.0"
},
"amount": "100000000000",
"balance": "100000000000"
}
]
}
]
}
Contracts
QRC20 token list
GET /contract/qrc20-tokens
Request Params
pageSize, pageIndex = { pagination }
GET /contract/qrc20-tokens?pageSize=10
{
"totalCount": 207,
"tokens": [
{
"address": "5a4b7889cad562d6c099bf877c8f5e3d66d579f8",
"name": "FENIX.CASH",
"symbol": "FENIX",
"decimals": 18,
"totalSupply": "432000000000000000000000000",
"holders": 58089
},
{
"address": "fe59cbc1704e89a698571413a81f0de9d8f00c69",
"name": "INK Coin",
"symbol": "INK",
"decimals": 9,
"totalSupply": "1000000000000000000",
"holders": 33280
},
{
"address": "6b8bf98ff497c064e8f0bde13e0c4f5ed5bf8ce7",
"name": "Bodhi Token",
"symbol": "BOT",
"decimals": 8,
"totalSupply": "10000000000000000",
"holders": 33128
},
{
"address": "72e531e37c31ecbe336208fd66e93b48df3af420",
"name": "Luna Stars",
"symbol": "LSTR",
"decimals": 8,
"totalSupply": "3800000000000000000",
"holders": 13326
},
{
"address": "57931faffdec114056a49adfcaa1caac159a1a25",
"name": "SpaceCash",
"symbol": "SPC",
"decimals": 8,
"totalSupply": "100000000000000000",
"holders": 12646
},
{
"address": "f2033ede578e17fa6231047265010445bca8cf1c",
"name": "QCASH",
"symbol": "QC",
"decimals": 8,
"totalSupply": "1000000000000000000",
"holders": 10114
},
{
"address": "f2703e93f87b846a7aacec1247beaec1c583daa4",
"name": "Hyperpay",
"symbol": "HPY",
"decimals": 8,
"totalSupply": "265000000000000000",
"holders": 8038
},
{
"address": "b6c48b3a7c888713dd96eed92a4ee0397dd64e71",
"name": "PlayCoin",
"symbol": "PLY",
"decimals": 9,
"totalSupply": "1000000000000000000",
"holders": 6005
},
{
"address": "b27d7bf95b03e02b55d5eb63d3f1692762101bf9",
"name": "Halal Chain",
"symbol": "HLC",
"decimals": 9,
"totalSupply": "1000000000000000000",
"holders": 5424
},
{
"address": "2f65a0af11d50d2d15962db39d7f7b0619ed55ae",
"name": "MED TOKEN",
"symbol": "MED",
"decimals": 8,
"totalSupply": "1000000000000000000",
"holders": 4800
}
]
}
Contract information
GET /contract/:contract
GET /contract/6b8bf98ff497c064e8f0bde13e0c4f5ed5bf8ce7
{
"address": "6b8bf98ff497c064e8f0bde13e0c4f5ed5bf8ce7",
"owner": "QgRUhP8sLMCNKrzwtW4xU5DF8CCTeiA3sF",
"createTransactionId": "ab35b9f424ef46b601ecf6909b36c9d524bb9321b24f18667bd9b38bd481bfb3",
"createHeight": 37251,
"type": "qrc20",
"qrc20": {
"name": "Bodhi Token",
"symbol": "BOT",
"decimals": 8,
"totalSupply": "10000000000000000",
"holders": 33128
},
"balance": "0",
"totalReceived": "1086500002",
"totalSent": "1086500002",
"qrc20TokenBalances": [],
"totalCount": 19164
}
Contract transactions
GET /contract/:contract/txs
Request Params
pageSize, pageIndex, reversed = { pagination }
GET /contract/6b8bf98ff497c064e8f0bde13e0c4f5ed5bf8ce7/txs?pageSize=10
{
"totalCount": 19164,
"transactions": [
"42b79fd80b9c762122dec93b46ba6774b57cfe9e35c326354b0cd1541e90b496",
"45de2acfd4f3c9cf5cc95deee82004ea8f5ccf4a9b99041e66580fa9a28e61a8",
"9baa5a5e9686591ebd601f492b3f43edb34209d82c14c77f83a46ff2319d2675",
"6a8590babcdcf30111df841a3efdb369e0d91f3fa5b850c2b26237a5b77a10ae",
"5b3967f83f5381831d03c407288964516182278a292e38cc474d15ab0359aac8",
"69ac5b0890651232a86c48df6b2cec1874d1ce38c4369b9e18f21cdaebf200d5",
"7f95ddf7a47a5bebcaab87f22a59106b5007a2c02b4c38761f7af5ce1508f27c",
"d9fecc362121bb3dd97eb15b785aac164c4efb2755915eda94bda3d08016a7cc",
"732de80b5b5019ccd926391ebc42c244f91f5a2099838b2c16c6a0ad7a24c961",
"b009edd24aa8720e005fac24a82cc3c1ac2195ea1d00536c7093288d671e33a6"
]
}
Contract rich list
GET /contract/:contract/rich-list
Request Params
pageSize, pageIndex = { pagination }
GET /contract/6b8bf98ff497c064e8f0bde13e0c4f5ed5bf8ce7/rich-list?pageSize=10
{
"totalCount": 33128,
"list": [
{
"address": "QLuEbkvJLiZQqLfMUHGVM1Axqp5xZugqPV",
"balance": "4000000000000000"
},
{
"address": "QgqNHNJo4hAEgUirWujckJfmEqX8b8MRLD",
"balance": "1717808050000000"
},
{
"address": "QaMjNphpovUP2zQGk8xafWAhByzzFJ1739",
"balance": "1471139140503161"
},
{
"address": "Qbf6sk8kydFLnikXGkSxKLcczNBwVgWwrR",
"balance": "726006244651616"
},
{
"address": "QRCRpr3KieQT7BxgMY3JiaSdsW9zMbLJuw",
"balance": "396434700917978"
},
{
"address": "QeC6MxmNM2yjBKoc8SZhCjedaExAkcDykA",
"balance": "386789149727875"
},
{
"address": "QVwgXpwuywHrSCcdYPC7XUAbm2vn88uLsC",
"balance": "215660254275006"
},
{
"address": "QQpX2WUPPdPXXL6AcwCX8KNHeDv7un2A4N",
"balance": "128904000000000"
},
{
"address": "QW9VdHxy9xbeMq74bnZ2NqVQTgiXDbELDy",
"balance": "86973622294655"
},
{
"address": "QhXS93hPpUcjoDxo192bmrbDubhH5UoQDp",
"balance": "78585840293058"
}
]
}
Misc
Blockchain status
GET /info
{
"height": 245645,
"supply": 100962580,
"circulatingSupply": 88962580,
"netStakeWeight": 1497410760393493,
"feeRate": 0.00418009
}
Rich list
GET /contract/:contract/rich-list
Request Params
pageSize, pageIndex = { pagination }
GET /misc/rich-list?pageSize=10
{
"totalCount": 166675,
"list": [
{
"address": "QQetqGpBoGXKLDeiLsBRLf21yhvx6kpjJa",
"balance": "659306709201872"
},
{
"address": "MCgyroQse81wuv5RwPpY5DXDNxeafzLFJ8",
"balance": "600000000000000"
},
{
"address": "M9F1pAFeDKAG2b3CuJ2Ua9TChn9ue6SiB7",
"balance": "600000000000000"
},
{
"address": "QLtjTb8hjbu3zxYhe3aW3axoTdWFeqVL8J",
"balance": "530661228947612"
},
{
"address": "QdkTWzpNJsfnE8SEFkVDK2bxDHCizVC9Hk",
"balance": "386489023987227"
},
{
"address": "QVbtbtDMHYYYTrEjXrGRj8m2LHjgR5QcwU",
"balance": "310472515445888"
},
{
"address": "MDnVLQeMGgqihWnrsJmZePJwc65vwNckc5",
"balance": "300000000000000"
},
{
"address": "MG93TgCtnxjyZAn9wLsjB5VqqsjZSkFN5b",
"balance": "300000000000000"
},
{
"address": "QRCFKkQWhrb7TEaiiXs1NVP2NUQSR7ubUJ",
"balance": "183837999638400"
},
{
"address": "QURJ7hdjsYZJDgnyaaX24Q5dwQy4yD7mUD",
"balance": "138925589473304"
}
]
}
Biggest miners
GET /contract/:contract/biggest-miners
Request Params
pageSize, pageIndex = { pagination }
GET /misc/biggest-miners?pageSize=10
{
"totalCount": 11725,
"list": [
{
"address": "QNqKeSsHjZfbVxB2jkpDUgGcZvSheWKhCw",
"blocks": 10598,
"balance": "101874788161437"
},
{
"address": "QYHV93kbN9osowPHTWHjeYzgrmZasdatov",
"blocks": 9393,
"balance": "70409364108264"
},
{
"address": "QPoVZqSCxtWkHgNt8jkipv6KNJUMmE7gRT",
"blocks": 9179,
"balance": "85165718877291"
},
{
"address": "QQujfYYrEd3G3bwjZWiBRzyxYwmvK3fyRy",
"blocks": 5086,
"balance": "5991984464506"
},
{
"address": "QUFwvRXTnjnWmGVYxaXZoEAmMkKtkth8ND",
"blocks": 4522,
"balance": "42031027888797"
},
{
"address": "QWGYZXGCtancAVcCPsAoidrKBqJuB6v7Zr",
"blocks": 4100,
"balance": "96597086192694"
},
{
"address": "QcTBUCAbHPqVL7M72QqDQV6Vb6pe64S9cx",
"blocks": 4050,
"balance": "0"
},
{
"address": "Qdc3zFTE4o5DiyWADAAZZCT26htGtdct21",
"blocks": 3117,
"balance": "36242534879639"
},
{
"address": "QVPauAZRc2EtPBkpfYnfAcTvtoBrdLNfAi",
"blocks": 2498,
"balance": "33552294684347"
},
{
"address": "Qi8t89jduvEpncyHjA3zt66d5KCZZx6vWA",
"blocks": 2382,
"balance": "11577407084164"
}
]
}