Join our official collaboration hub!
Xoken Nexa - Developer API
The Nexa supports the following encoding & transports
- REST API over HTTPS: intutive URL, headers & JSON responses.
- JSON-RPC 2.0 protocol over TLS: read specification here
- CBOR encoding over TLS: CBOR is an efficient binary encoding format.
- REST API over HTTPS: intutive URL, headers & JSON responses.
- JSON-RPC 2.0 protocol over TLS: read specification here
- CBOR encoding over TLS: CBOR is an efficient binary encoding format.
Authentication
Request JSON structure:
Response JSON structure:
curl -X POST -H "Content-type: application/json" -d '{ "username": "<username>", "password": "<password>"}' -k 'https://<domain-name>:<port-number>/v1/auth'
{ "auth":{ "callsRemaining":100, "callsUsed":0, "sessionKey":<Session-Key> } }
Request JSON structure:
Response JSON structure:
{ "id":0, "jsonrpc":"2.0", "method":"AUTHENTICATE", "params":{ "username":"<username>", "password":"<password>" } }
{ "auth":{ "callsRemaining":100, "callsUsed":0, "sessionKey":<SessionKey> } }
Add User
Admin user only
Request JSON structure:
Response JSON structure:
curl -X POST -H "Authorization: Bearer <Session-Key>" -H "Content-type: application/json" -d '{"username" : "ReadUser", "firstName" : "Read", "lastName" : "User", "email" : "read@user.com"}' -k 'https://<domain-name>:<port-number>/v1/user/'
{ "user":{ "email":"read@user.com", "roles":[ "read" ], "lastName":"User", "username":"ReadUser", "apiQuota":10000, "password":"<Password>", "apiExpiryTime":"2021-07-16T06:53:18.635018987Z", "firstName":"Read" } }
Request JSON structure:
Response JSON structure:
{ "id":23, "jsonrpc":"2.0", "method":"ADD_USER", "params":{ "sessionKey":"<Session-Key>", "methodParams":{ "username":"ReadUser1", "firstName":"Read", "lastName":"User", "email":"read@user.com" } } }
{ "user":{ "email":"read@user.com", "roles":[ "read" ], "lastName":"User", "username":"ReadUser", "apiQuota":10000, "password":"<Password>", "apiExpiryTime":"2021-07-16T06:53:18.635018987Z", "firstName":"Read" } }
Get User Details
Admin user only
Request JSON structure:
Response JSON structure:
curl -X GET -H "Authorization: Bearer <Session-Key>" -k 'https://<domain-name>:<port-number>/v1/user/johndoe'
{ "user":{ "email":"johndoe@user.com", "roles":[ "read" ], "callsRemaining":10000, "lastName":"Doe", "username":"johndoe", "sessionKeyExpiry":"2020-08-17T14:02:34.539Z", "callsUsed":0, "apiExpiryTime":"2021-07-18T14:02:34.539Z", "firstName":"John", "sessionKey":"6ad77fcf9a******************************************************" } }
Request JSON structure:
Response JSON structure:
{ "id":25, "jsonrpc":"2.0", "method":"USERNAME->USER", "params":{ "sessionKey":"<Session-Key>", "methodParams":{ "username":"johndoe" } } }
{ "user":{ "email":"johndoe@user.com", "roles":[ "read" ], "callsRemaining":10000, "lastName":"Doe", "username":"johndoe", "sessionKeyExpiry":"2020-08-17T14:02:34.539Z", "callsUsed":0, "apiExpiryTime":"2021-07-18T14:02:34.539Z", "firstName":"John", "sessionKey":"6ad77fcf9a******************************************************" } }
Get Current User
Request JSON structure:
Response JSON structure:
curl -X GET -H "Authorization: Bearer <Session-Key>" -k 'https://<domain-name>:<port-number>/v1/user/'
{ "user":{ "email":"johndoe@user.com", "roles":[ "read" ], "callsRemaining":10000, "lastName":"Doe", "username":"johndoe", "sessionKeyExpiry":"2020-08-17T14:02:34.539Z", "callsUsed":0, "apiExpiryTime":"2021-07-18T14:02:34.539Z", "firstName":"John", "sessionKey":"6ad77fcf9a******************************************************" } }
Request JSON structure:
Response JSON structure:
{ "id":27, "jsonrpc":"2.0", "method":"USER", "params":{ "sessionKey":"<Session-Key>" } }
{ "user":{ "email":"johndoe@user.com", "roles":[ "read" ], "callsRemaining":10000, "lastName":"Doe", "username":"johndoe", "sessionKeyExpiry":"2020-08-17T14:02:34.539Z", "callsUsed":0, "apiExpiryTime":"2021-07-18T14:02:34.539Z", "firstName":"John", "sessionKey":"6ad77fcf9a******************************************************" } }
Update User
Admin user only
Request JSON structure:
Response JSON structure:
curl -X PUT -H "Authorization: Bearer <Session-Key>" -H "Content-type: application/json" -d '{"password" : "1d4f5da832", "firstName" : "J", "lastName" : "Doe Jr", "email" : "johndoejr@user.com", "apiQuota" : 200, "apiExpiryTime" : "2020-08-17T12:15:13.846Z"}' -k 'https://<domain-name>:<port-number>/v1/user/johndoe'
User updated
Request JSON structure:
Response JSON structure:
{ "id":24, "jsonrpc":"2.0", "method":"UPDATE_USER", "params":{ "sessionKey":"<Session-Key>", "methodParams":{ "username":"johndoe", "updateData":{ "firstName":"J", "lastName":"Doe Jr", "email":"johndoejr@user.com", "apiQuota":200, "apiExpiryTime":"2020-08-17T12:15:13.846Z" } } } }
User updated
Delete User
Admin user only
Request JSON structure:
Response JSON structure:
curl -X DELETE -H "Authorization: Bearer <Session-Key>" -k 'https://<domain-name>:<port-number>/v1/user/johndoe'
User deleted
Request JSON structure:
Response JSON structure:
{ "id":26, "jsonrpc":"2.0", "method":"DELETE_USER", "params":{ "sessionKey":"<Session-Key>", "methodParams":{ "username":"johndoe" } } }
User deleted
Chain Info
Request JSON structure:
Response JSON structure:
curl -X GET -H "Authorization: Bearer <Session-Key>" -k 'https://<domain-name>:<port-number>/v1/chain/info'
{ "chainInfo":{ "chainwork":"1120284c89430a1f85f80db", "blocksSynced":235012, "syncedBlockHash":"000000000000019c6a69e02638ec9c80bbebc4e341fceb7a01e849cbeeac7a70", "chainTipHash":"00000000000000000380cf6348dd1888a69ee772692d5e7091097f57e8a306d7", "chain":"main", "chainTip":644086 } }
Request JSON structure:
Response JSON structure:
{ "id":16, "jsonrpc":"2.0", "method":"CHAIN_INFO", "params":{ "sessionKey":"sessionKey" } }
{ "chainInfo":{ "chainwork":"1120284c89430a1f85f80db", "blocksSynced":235012, "syncedBlockHash":"000000000000019c6a69e02638ec9c80bbebc4e341fceb7a01e849cbeeac7a70", "chainTipHash":"00000000000000000380cf6348dd1888a69ee772692d5e7091097f57e8a306d7", "chain":"main", "chainTip":644086 } }
Block Headers
Request JSON structure:
Response JSON structure:
curl -X GET -H "Authorization: Bearer <Session-Key>" -k 'https://<domain-name>:<port-number>/v1/chain/headers/?startBlockHeight=40000&pagesize=30'
{ "chainHeaders":[ { "txCount":1, "prevBlock":"000000002509f3a013a1d21b89fe33306a45b1fcbb485dd4d310e4f9b2c09945", "blockHash":"00000000504d5fa0ad2cb90af16052a4eb2aea70fa1cba653b90a4583c5193e4", "blockVersion":1, "merkleRoot":"5337f888d7ad3760933c5766186188bdcf6c6dec0270a352f23451afda835ecd", "blockTimestamp":1266062664, "bhNonce":3474096156, "difficulty":1.818648536145414, "blockHeight":40000 }, { "txCount":1, "prevBlock":"00000000504d5fa0ad2cb90af16052a4eb2aea70fa1cba653b90a4583c5193e4", "blockHash":"000000004f5399dec71dd54b434bbb35a1c30488a37eadd9be7ee61399b4ac90", "blockVersion":1, "merkleRoot":"f286998b3b67389aecac3756955e2f80dda76e05c1bd85c1a5ca009bbe4de7e3", "blockTimestamp":1266062686, "bhNonce":3811339, "difficulty":1.818648536145414, "blockHeight":40001 }, { "txCount":1, "prevBlock":"000000004f5399dec71dd54b434bbb35a1c30488a37eadd9be7ee61399b4ac90", "blockHash":"000000001b25a3cb8b1a280c77f0f603dcecad693ef9d2134d566a58a3aea4d5", "blockVersion":1, "merkleRoot":"b5feb72c90d41be3795b1e86e69f9e986df5ce6f08a5f94a026608eb07df9c4c", "blockTimestamp":1266062874, "bhNonce":71522789, "difficulty":1.818648536145414, "blockHeight":40002 }, { "txCount":1, "prevBlock":"000000001b25a3cb8b1a280c77f0f603dcecad693ef9d2134d566a58a3aea4d5", "blockHash":"000000000d8af65aca9e0d33b30e364b691a1e2551e00343b7fad7b6f7382824", "blockVersion":1, "merkleRoot":"37a23b41a5ccee34c998f79416e4a1b39f080200a125ca8ec305bbf2f30bbc5f", "blockTimestamp":1266062936, "bhNonce":24579429, "difficulty":1.818648536145414, "blockHeight":40003 }, { "txCount":1, "prevBlock":"000000000d8af65aca9e0d33b30e364b691a1e2551e00343b7fad7b6f7382824", "blockHash":"00000000506ae6b0f3ec8f199255b5ae6380cdcc4a2fb3c6dfdd0d6a06a91e81", "blockVersion":1, "merkleRoot":"7bd471104c1e57ab07f23d8ead69746e731867bef1e7a1b8b80f5a6288c54890", "blockTimestamp":1266063877, "bhNonce":254768932, "difficulty":1.818648536145414, "blockHeight":40004 }, { "txCount":1, "prevBlock":"00000000506ae6b0f3ec8f199255b5ae6380cdcc4a2fb3c6dfdd0d6a06a91e81", "blockHash":"000000005b67deea43b543dfdd87d13aadc9501add64b941d7cf72653fca5f8f", "blockVersion":1, "merkleRoot":"fe106083f65824501afb38d73698e14394c543dcecb9488b9dd56487ea8fa9d4", "blockTimestamp":1266063897, "bhNonce":5893207, "difficulty":1.818648536145414, "blockHeight":40005 }, { "txCount":1, "prevBlock":"000000005b67deea43b543dfdd87d13aadc9501add64b941d7cf72653fca5f8f", "blockHash":"0000000055276b884b632b6339cbb821a8b23c67b13ff444d9505c58881c8627", "blockVersion":1, "merkleRoot":"0a95bf9242df04b26c17e3750a3a2ef417c280290f1e907c256ed1eed6f20e27", "blockTimestamp":1266064513, "bhNonce":219280438, "difficulty":1.818648536145414, "blockHeight":40006 }, { "txCount":1, "prevBlock":"0000000055276b884b632b6339cbb821a8b23c67b13ff444d9505c58881c8627", "blockHash":"000000002db243102c5a8984c02cdc362c73c2d06c761b3f03874c4c99bc76b0", "blockVersion":1, "merkleRoot":"51b67c7691d8ce41be73c0407fafd9a7bf74548e74fa621f0469413a61c953bb", "blockTimestamp":1266064708, "bhNonce":59515510, "difficulty":1.818648536145414, "blockHeight":40007 }, { "txCount":1, "prevBlock":"000000002db243102c5a8984c02cdc362c73c2d06c761b3f03874c4c99bc76b0", "blockHash":"0000000035488afe30aaa505eb5437ee152d8c48b77bc086daa5eb8db32a5895", "blockVersion":1, "merkleRoot":"961ae275401837430cb2ab35e903526ba4c843b0f6a2d61c8e5a6a0d5bd99963", "blockTimestamp":1266064912, "bhNonce":80914365, "difficulty":1.818648536145414, "blockHeight":40008 }, { "txCount":1, "prevBlock":"0000000035488afe30aaa505eb5437ee152d8c48b77bc086daa5eb8db32a5895", "blockHash":"000000001e36b528d9c7758d6a00d4d772dc62c4fead9c5fb45d547b920d2110", "blockVersion":1, "merkleRoot":"f059b4633f6cd2d291a92a4e7c1515a7fb21610876458f794217ec726e7dd572", "blockTimestamp":1266064949, "bhNonce":12702174, "difficulty":1.818648536145414, "blockHeight":40009 }, { "txCount":1, "prevBlock":"000000001e36b528d9c7758d6a00d4d772dc62c4fead9c5fb45d547b920d2110", "blockHash":"000000000a4a84c3827da3fe8535ee38389b0d31a47a42b8873313f23f60db02", "blockVersion":1, "merkleRoot":"2b9c81b8a755d0d93320df0849d56e5dd458e45f4092ec93262d1f92c1f229c1", "blockTimestamp":1266065107, "bhNonce":44393375, "difficulty":1.818648536145414, "blockHeight":40010 }, { "txCount":1, "prevBlock":"000000000a4a84c3827da3fe8535ee38389b0d31a47a42b8873313f23f60db02", "blockHash":"000000007c69f97b5e6af0e4e18b68eb73654eeaddec6f185ad58026ec6d936e", "blockVersion":1, "merkleRoot":"172ace2e5eda2ba2dc1d9c647154f58ccd99e7b885e7857e32e4daa494bde8f9", "blockTimestamp":1266065458, "bhNonce":133571346, "difficulty":1.818648536145414, "blockHeight":40011 }, { "txCount":1, "prevBlock":"000000007c69f97b5e6af0e4e18b68eb73654eeaddec6f185ad58026ec6d936e", "blockHash":"00000000381ef989f9f43ed0e81c41ad3e9de25dc3dd676db1588f8539aca544", "blockVersion":1, "merkleRoot":"35b66ce266368cddc2dbf3b05544c5ba2863720aaa7dc4f14924fafd822da472", "blockTimestamp":1266066296, "bhNonce":320495843, "difficulty":1.818648536145414, "blockHeight":40012 }, { "txCount":1, "prevBlock":"00000000381ef989f9f43ed0e81c41ad3e9de25dc3dd676db1588f8539aca544", "blockHash":"00000000290ae51a96f691cf189222cb113e29e46d94d9efa136d3333da96cf3", "blockVersion":1, "merkleRoot":"9519ca97138a9a618c711bc422066082ccbba1fe3b6da21a01496728d5e74eca", "blockTimestamp":1266066608, "bhNonce":113630159, "difficulty":1.818648536145414, "blockHeight":40013 }, { "txCount":1, "prevBlock":"00000000290ae51a96f691cf189222cb113e29e46d94d9efa136d3333da96cf3", "blockHash":"000000002bfd5f4b093451ef6a7bba0672bdc2eecc335ab084c0fe20e61d8b3e", "blockVersion":1, "merkleRoot":"c824c76faeab5e25f447cb9088edd38def8e9b915cb8796ef306a5fdf219c7d2", "blockTimestamp":1266066732, "bhNonce":60485785, "difficulty":1.818648536145414, "blockHeight":40014 }, { "txCount":1, "prevBlock":"000000002bfd5f4b093451ef6a7bba0672bdc2eecc335ab084c0fe20e61d8b3e", "blockHash":"000000001645e44d850069225bb5141254859b095500a0f98894b0fe3a6ca1ac", "blockVersion":1, "merkleRoot":"c1bd9c7dac041d1d14679559ffdb2a18622e4c6247a7d1c2c85556128777c2a8", "blockTimestamp":1266066898, "bhNonce":55571887, "difficulty":1.818648536145414, "blockHeight":40015 }, { "txCount":1, "prevBlock":"000000001645e44d850069225bb5141254859b095500a0f98894b0fe3a6ca1ac", "blockHash":"0000000076168d8207dfeb112771e238133a496de565eff6f38a500352cf4494", "blockVersion":1, "merkleRoot":"00e6553264e15a14b491f03b02f897a948b44e5acecc218d5a43dfdb27e64442", "blockTimestamp":1266067302, "bhNonce":132378412, "difficulty":1.818648536145414, "blockHeight":40016 }, { "txCount":1, "prevBlock":"0000000076168d8207dfeb112771e238133a496de565eff6f38a500352cf4494", "blockHash":"0000000088ce2ea1c2254f54aa4527b84933a5c2367715372ad4fc346d7e7754", "blockVersion":1, "merkleRoot":"59a00608dacf4baae90f47ccba2eb51f74e2bad670926ffc9d9981231da97471", "blockTimestamp":1266067654, "bhNonce":147727673, "difficulty":1.818648536145414, "blockHeight":40017 }, { "txCount":1, "prevBlock":"0000000088ce2ea1c2254f54aa4527b84933a5c2367715372ad4fc346d7e7754", "blockHash":"0000000029b968e83292d8789a11b15d63797dd67480519ae6d01f6ce43d34c0", "blockVersion":1, "merkleRoot":"6173628ae69115dcd5be40765d87ed172007df223484179e20d7dcf28efb5805", "blockTimestamp":1266067684, "bhNonce":118632194, "difficulty":1.818648536145414, "blockHeight":40018 }, { "txCount":1, "prevBlock":"0000000029b968e83292d8789a11b15d63797dd67480519ae6d01f6ce43d34c0", "blockHash":"000000008697c3fd5c11dde5f6b9d2cc0686d9825e179b93bd42967593533e7e", "blockVersion":1, "merkleRoot":"aee4f651f74092f74e0ed1512fc92e5d85b411d321f7e7fc06576f0df0e9f285", "blockTimestamp":1266067960, "bhNonce":126608042, "difficulty":1.818648536145414, "blockHeight":40019 }, { "txCount":1, "prevBlock":"000000008697c3fd5c11dde5f6b9d2cc0686d9825e179b93bd42967593533e7e", "blockHash":"000000002bcebeca812e9b9dbabbd649bd62a28a233861b1c5bd4c68cac1a146", "blockVersion":1, "merkleRoot":"ba902658d036002e2d4fce2294d652489d04291143010969c5eb258e8546d2d1", "blockTimestamp":1266068184, "bhNonce":103591974, "difficulty":1.818648536145414, "blockHeight":40020 }, { "txCount":1, "prevBlock":"000000002bcebeca812e9b9dbabbd649bd62a28a233861b1c5bd4c68cac1a146", "blockHash":"0000000053bdc5ea27019727b225d67844b756a09ac7e121a883e17e2877063d", "blockVersion":1, "merkleRoot":"1b85b53fedbbd56234c37f7a292e3aff7adaebbc61916aad514b27ed2e91bf7e", "blockTimestamp":1266068550, "bhNonce":167225742, "difficulty":1.818648536145414, "blockHeight":40021 }, { "txCount":1, "prevBlock":"0000000053bdc5ea27019727b225d67844b756a09ac7e121a883e17e2877063d", "blockHash":"000000005c7259a3f4ea9e9855984100c969055162cd216bfe819f1b3b96368b", "blockVersion":1, "merkleRoot":"55d01f1b2504320516e8b79dba645afa35b40da7ea63a594925435ca88e1e9de", "blockTimestamp":1266068622, "bhNonce":18198949, "difficulty":1.818648536145414, "blockHeight":40022 }, { "txCount":1, "prevBlock":"000000005c7259a3f4ea9e9855984100c969055162cd216bfe819f1b3b96368b", "blockHash":"000000002620e299aa719b63a04e3e1415492699eb015f8009382ce57ddb9c01", "blockVersion":1, "merkleRoot":"35299767f6ee7d6d81c33037e6ea8032bd4d8cbfc4d4598c0ce2aa170d41e104", "blockTimestamp":1266068659, "bhNonce":16362275, "difficulty":1.818648536145414, "blockHeight":40023 }, { "txCount":1, "prevBlock":"000000002620e299aa719b63a04e3e1415492699eb015f8009382ce57ddb9c01", "blockHash":"00000000471d87b3f101c46e77b98903961f77e08f4bec9dfd78ab9f7394418a", "blockVersion":1, "merkleRoot":"0a9d67ed9d587bff6ea29cfdd91930bd2e06960d231e1c86a41500d93d2446a7", "blockTimestamp":1266069937, "bhNonce":341000242, "difficulty":1.818648536145414, "blockHeight":40024 }, { "txCount":1, "prevBlock":"00000000471d87b3f101c46e77b98903961f77e08f4bec9dfd78ab9f7394418a", "blockHash":"00000000552117445aecb6f781ea755a7a755bec21876e4253efe8707f00adf3", "blockVersion":1, "merkleRoot":"2df8530d95892f2e67c0289b20ac886c84eb11f4a03f58bd06edd91cf3ec1792", "blockTimestamp":1266069971, "bhNonce":22495126, "difficulty":1.818648536145414, "blockHeight":40025 }, { "txCount":1, "prevBlock":"00000000552117445aecb6f781ea755a7a755bec21876e4253efe8707f00adf3", "blockHash":"000000005b2c7ca93b172ce7e2edd073e1b7d1bcb9f9e56818d81ec4f0e38745", "blockVersion":1, "merkleRoot":"b3d03b77259c646fdbb8df1c65c2f5ed5c04893ef34754165cc85f02811a7876", "blockTimestamp":1266070331, "bhNonce":138493302, "difficulty":1.818648536145414, "blockHeight":40026 }, { "txCount":1, "prevBlock":"000000005b2c7ca93b172ce7e2edd073e1b7d1bcb9f9e56818d81ec4f0e38745", "blockHash":"000000008728ac44725dfc68328f52dff8966cf688beedf5e5a928ae4e138ff9", "blockVersion":1, "merkleRoot":"39ca5c97d34bf8538ee53e574fd6981284346b9ec93d2f43eb7123d7c9d54e69", "blockTimestamp":1266070367, "bhNonce":10409256, "difficulty":1.818648536145414, "blockHeight":40027 }, { "txCount":1, "prevBlock":"000000008728ac44725dfc68328f52dff8966cf688beedf5e5a928ae4e138ff9", "blockHash":"00000000197a7c312e78235187a1754b0bb76e6d0b089d3e19974cfc463a0832", "blockVersion":1, "merkleRoot":"f58a3945045d725deb28a1f47e28a971e6248429b634cc57b8caff0c24c866e2", "blockTimestamp":1266070540, "bhNonce":661168133, "difficulty":1.818648536145414, "blockHeight":40028 }, { "txCount":1, "prevBlock":"00000000197a7c312e78235187a1754b0bb76e6d0b089d3e19974cfc463a0832", "blockHash":"000000004fa2276f5d5fc9ffa7a2fcb7644a4844bc9f910187ffb02e9453c4b3", "blockVersion":1, "merkleRoot":"f75aedccdb3659ebde11afb98b41481a44eb2d94b892ce780152f91421038f52", "blockTimestamp":1266071325, "bhNonce":315134822, "difficulty":1.818648536145414, "blockHeight":40029 } ] }
Request JSON structure:
Response JSON structure:
{ "id":22, "jsonrpc":"2.0", "method":"CHAIN_HEADERS", "params":{ "sessionKey":"<Session-Key>", "methodParams":{ "startBlockHeight":"40000", "pageSize":30 } } }
{ "chainHeaders":[ { "txCount":1, "prevBlock":"000000002509f3a013a1d21b89fe33306a45b1fcbb485dd4d310e4f9b2c09945", "blockHash":"00000000504d5fa0ad2cb90af16052a4eb2aea70fa1cba653b90a4583c5193e4", "blockVersion":1, "merkleRoot":"5337f888d7ad3760933c5766186188bdcf6c6dec0270a352f23451afda835ecd", "blockTimestamp":1266062664, "bhNonce":3474096156, "difficulty":1.818648536145414, "blockHeight":40000 }, { "txCount":1, "prevBlock":"00000000504d5fa0ad2cb90af16052a4eb2aea70fa1cba653b90a4583c5193e4", "blockHash":"000000004f5399dec71dd54b434bbb35a1c30488a37eadd9be7ee61399b4ac90", "blockVersion":1, "merkleRoot":"f286998b3b67389aecac3756955e2f80dda76e05c1bd85c1a5ca009bbe4de7e3", "blockTimestamp":1266062686, "bhNonce":3811339, "difficulty":1.818648536145414, "blockHeight":40001 }, { "txCount":1, "prevBlock":"000000004f5399dec71dd54b434bbb35a1c30488a37eadd9be7ee61399b4ac90", "blockHash":"000000001b25a3cb8b1a280c77f0f603dcecad693ef9d2134d566a58a3aea4d5", "blockVersion":1, "merkleRoot":"b5feb72c90d41be3795b1e86e69f9e986df5ce6f08a5f94a026608eb07df9c4c", "blockTimestamp":1266062874, "bhNonce":71522789, "difficulty":1.818648536145414, "blockHeight":40002 }, { "txCount":1, "prevBlock":"000000001b25a3cb8b1a280c77f0f603dcecad693ef9d2134d566a58a3aea4d5", "blockHash":"000000000d8af65aca9e0d33b30e364b691a1e2551e00343b7fad7b6f7382824", "blockVersion":1, "merkleRoot":"37a23b41a5ccee34c998f79416e4a1b39f080200a125ca8ec305bbf2f30bbc5f", "blockTimestamp":1266062936, "bhNonce":24579429, "difficulty":1.818648536145414, "blockHeight":40003 }, { "txCount":1, "prevBlock":"000000000d8af65aca9e0d33b30e364b691a1e2551e00343b7fad7b6f7382824", "blockHash":"00000000506ae6b0f3ec8f199255b5ae6380cdcc4a2fb3c6dfdd0d6a06a91e81", "blockVersion":1, "merkleRoot":"7bd471104c1e57ab07f23d8ead69746e731867bef1e7a1b8b80f5a6288c54890", "blockTimestamp":1266063877, "bhNonce":254768932, "difficulty":1.818648536145414, "blockHeight":40004 }, { "txCount":1, "prevBlock":"00000000506ae6b0f3ec8f199255b5ae6380cdcc4a2fb3c6dfdd0d6a06a91e81", "blockHash":"000000005b67deea43b543dfdd87d13aadc9501add64b941d7cf72653fca5f8f", "blockVersion":1, "merkleRoot":"fe106083f65824501afb38d73698e14394c543dcecb9488b9dd56487ea8fa9d4", "blockTimestamp":1266063897, "bhNonce":5893207, "difficulty":1.818648536145414, "blockHeight":40005 }, { "txCount":1, "prevBlock":"000000005b67deea43b543dfdd87d13aadc9501add64b941d7cf72653fca5f8f", "blockHash":"0000000055276b884b632b6339cbb821a8b23c67b13ff444d9505c58881c8627", "blockVersion":1, "merkleRoot":"0a95bf9242df04b26c17e3750a3a2ef417c280290f1e907c256ed1eed6f20e27", "blockTimestamp":1266064513, "bhNonce":219280438, "difficulty":1.818648536145414, "blockHeight":40006 }, { "txCount":1, "prevBlock":"0000000055276b884b632b6339cbb821a8b23c67b13ff444d9505c58881c8627", "blockHash":"000000002db243102c5a8984c02cdc362c73c2d06c761b3f03874c4c99bc76b0", "blockVersion":1, "merkleRoot":"51b67c7691d8ce41be73c0407fafd9a7bf74548e74fa621f0469413a61c953bb", "blockTimestamp":1266064708, "bhNonce":59515510, "difficulty":1.818648536145414, "blockHeight":40007 }, { "txCount":1, "prevBlock":"000000002db243102c5a8984c02cdc362c73c2d06c761b3f03874c4c99bc76b0", "blockHash":"0000000035488afe30aaa505eb5437ee152d8c48b77bc086daa5eb8db32a5895", "blockVersion":1, "merkleRoot":"961ae275401837430cb2ab35e903526ba4c843b0f6a2d61c8e5a6a0d5bd99963", "blockTimestamp":1266064912, "bhNonce":80914365, "difficulty":1.818648536145414, "blockHeight":40008 }, { "txCount":1, "prevBlock":"0000000035488afe30aaa505eb5437ee152d8c48b77bc086daa5eb8db32a5895", "blockHash":"000000001e36b528d9c7758d6a00d4d772dc62c4fead9c5fb45d547b920d2110", "blockVersion":1, "merkleRoot":"f059b4633f6cd2d291a92a4e7c1515a7fb21610876458f794217ec726e7dd572", "blockTimestamp":1266064949, "bhNonce":12702174, "difficulty":1.818648536145414, "blockHeight":40009 }, { "txCount":1, "prevBlock":"000000001e36b528d9c7758d6a00d4d772dc62c4fead9c5fb45d547b920d2110", "blockHash":"000000000a4a84c3827da3fe8535ee38389b0d31a47a42b8873313f23f60db02", "blockVersion":1, "merkleRoot":"2b9c81b8a755d0d93320df0849d56e5dd458e45f4092ec93262d1f92c1f229c1", "blockTimestamp":1266065107, "bhNonce":44393375, "difficulty":1.818648536145414, "blockHeight":40010 }, { "txCount":1, "prevBlock":"000000000a4a84c3827da3fe8535ee38389b0d31a47a42b8873313f23f60db02", "blockHash":"000000007c69f97b5e6af0e4e18b68eb73654eeaddec6f185ad58026ec6d936e", "blockVersion":1, "merkleRoot":"172ace2e5eda2ba2dc1d9c647154f58ccd99e7b885e7857e32e4daa494bde8f9", "blockTimestamp":1266065458, "bhNonce":133571346, "difficulty":1.818648536145414, "blockHeight":40011 }, { "txCount":1, "prevBlock":"000000007c69f97b5e6af0e4e18b68eb73654eeaddec6f185ad58026ec6d936e", "blockHash":"00000000381ef989f9f43ed0e81c41ad3e9de25dc3dd676db1588f8539aca544", "blockVersion":1, "merkleRoot":"35b66ce266368cddc2dbf3b05544c5ba2863720aaa7dc4f14924fafd822da472", "blockTimestamp":1266066296, "bhNonce":320495843, "difficulty":1.818648536145414, "blockHeight":40012 }, { "txCount":1, "prevBlock":"00000000381ef989f9f43ed0e81c41ad3e9de25dc3dd676db1588f8539aca544", "blockHash":"00000000290ae51a96f691cf189222cb113e29e46d94d9efa136d3333da96cf3", "blockVersion":1, "merkleRoot":"9519ca97138a9a618c711bc422066082ccbba1fe3b6da21a01496728d5e74eca", "blockTimestamp":1266066608, "bhNonce":113630159, "difficulty":1.818648536145414, "blockHeight":40013 }, { "txCount":1, "prevBlock":"00000000290ae51a96f691cf189222cb113e29e46d94d9efa136d3333da96cf3", "blockHash":"000000002bfd5f4b093451ef6a7bba0672bdc2eecc335ab084c0fe20e61d8b3e", "blockVersion":1, "merkleRoot":"c824c76faeab5e25f447cb9088edd38def8e9b915cb8796ef306a5fdf219c7d2", "blockTimestamp":1266066732, "bhNonce":60485785, "difficulty":1.818648536145414, "blockHeight":40014 }, { "txCount":1, "prevBlock":"000000002bfd5f4b093451ef6a7bba0672bdc2eecc335ab084c0fe20e61d8b3e", "blockHash":"000000001645e44d850069225bb5141254859b095500a0f98894b0fe3a6ca1ac", "blockVersion":1, "merkleRoot":"c1bd9c7dac041d1d14679559ffdb2a18622e4c6247a7d1c2c85556128777c2a8", "blockTimestamp":1266066898, "bhNonce":55571887, "difficulty":1.818648536145414, "blockHeight":40015 }, { "txCount":1, "prevBlock":"000000001645e44d850069225bb5141254859b095500a0f98894b0fe3a6ca1ac", "blockHash":"0000000076168d8207dfeb112771e238133a496de565eff6f38a500352cf4494", "blockVersion":1, "merkleRoot":"00e6553264e15a14b491f03b02f897a948b44e5acecc218d5a43dfdb27e64442", "blockTimestamp":1266067302, "bhNonce":132378412, "difficulty":1.818648536145414, "blockHeight":40016 }, { "txCount":1, "prevBlock":"0000000076168d8207dfeb112771e238133a496de565eff6f38a500352cf4494", "blockHash":"0000000088ce2ea1c2254f54aa4527b84933a5c2367715372ad4fc346d7e7754", "blockVersion":1, "merkleRoot":"59a00608dacf4baae90f47ccba2eb51f74e2bad670926ffc9d9981231da97471", "blockTimestamp":1266067654, "bhNonce":147727673, "difficulty":1.818648536145414, "blockHeight":40017 }, { "txCount":1, "prevBlock":"0000000088ce2ea1c2254f54aa4527b84933a5c2367715372ad4fc346d7e7754", "blockHash":"0000000029b968e83292d8789a11b15d63797dd67480519ae6d01f6ce43d34c0", "blockVersion":1, "merkleRoot":"6173628ae69115dcd5be40765d87ed172007df223484179e20d7dcf28efb5805", "blockTimestamp":1266067684, "bhNonce":118632194, "difficulty":1.818648536145414, "blockHeight":40018 }, { "txCount":1, "prevBlock":"0000000029b968e83292d8789a11b15d63797dd67480519ae6d01f6ce43d34c0", "blockHash":"000000008697c3fd5c11dde5f6b9d2cc0686d9825e179b93bd42967593533e7e", "blockVersion":1, "merkleRoot":"aee4f651f74092f74e0ed1512fc92e5d85b411d321f7e7fc06576f0df0e9f285", "blockTimestamp":1266067960, "bhNonce":126608042, "difficulty":1.818648536145414, "blockHeight":40019 }, { "txCount":1, "prevBlock":"000000008697c3fd5c11dde5f6b9d2cc0686d9825e179b93bd42967593533e7e", "blockHash":"000000002bcebeca812e9b9dbabbd649bd62a28a233861b1c5bd4c68cac1a146", "blockVersion":1, "merkleRoot":"ba902658d036002e2d4fce2294d652489d04291143010969c5eb258e8546d2d1", "blockTimestamp":1266068184, "bhNonce":103591974, "difficulty":1.818648536145414, "blockHeight":40020 }, { "txCount":1, "prevBlock":"000000002bcebeca812e9b9dbabbd649bd62a28a233861b1c5bd4c68cac1a146", "blockHash":"0000000053bdc5ea27019727b225d67844b756a09ac7e121a883e17e2877063d", "blockVersion":1, "merkleRoot":"1b85b53fedbbd56234c37f7a292e3aff7adaebbc61916aad514b27ed2e91bf7e", "blockTimestamp":1266068550, "bhNonce":167225742, "difficulty":1.818648536145414, "blockHeight":40021 }, { "txCount":1, "prevBlock":"0000000053bdc5ea27019727b225d67844b756a09ac7e121a883e17e2877063d", "blockHash":"000000005c7259a3f4ea9e9855984100c969055162cd216bfe819f1b3b96368b", "blockVersion":1, "merkleRoot":"55d01f1b2504320516e8b79dba645afa35b40da7ea63a594925435ca88e1e9de", "blockTimestamp":1266068622, "bhNonce":18198949, "difficulty":1.818648536145414, "blockHeight":40022 }, { "txCount":1, "prevBlock":"000000005c7259a3f4ea9e9855984100c969055162cd216bfe819f1b3b96368b", "blockHash":"000000002620e299aa719b63a04e3e1415492699eb015f8009382ce57ddb9c01", "blockVersion":1, "merkleRoot":"35299767f6ee7d6d81c33037e6ea8032bd4d8cbfc4d4598c0ce2aa170d41e104", "blockTimestamp":1266068659, "bhNonce":16362275, "difficulty":1.818648536145414, "blockHeight":40023 }, { "txCount":1, "prevBlock":"000000002620e299aa719b63a04e3e1415492699eb015f8009382ce57ddb9c01", "blockHash":"00000000471d87b3f101c46e77b98903961f77e08f4bec9dfd78ab9f7394418a", "blockVersion":1, "merkleRoot":"0a9d67ed9d587bff6ea29cfdd91930bd2e06960d231e1c86a41500d93d2446a7", "blockTimestamp":1266069937, "bhNonce":341000242, "difficulty":1.818648536145414, "blockHeight":40024 }, { "txCount":1, "prevBlock":"00000000471d87b3f101c46e77b98903961f77e08f4bec9dfd78ab9f7394418a", "blockHash":"00000000552117445aecb6f781ea755a7a755bec21876e4253efe8707f00adf3", "blockVersion":1, "merkleRoot":"2df8530d95892f2e67c0289b20ac886c84eb11f4a03f58bd06edd91cf3ec1792", "blockTimestamp":1266069971, "bhNonce":22495126, "difficulty":1.818648536145414, "blockHeight":40025 }, { "txCount":1, "prevBlock":"00000000552117445aecb6f781ea755a7a755bec21876e4253efe8707f00adf3", "blockHash":"000000005b2c7ca93b172ce7e2edd073e1b7d1bcb9f9e56818d81ec4f0e38745", "blockVersion":1, "merkleRoot":"b3d03b77259c646fdbb8df1c65c2f5ed5c04893ef34754165cc85f02811a7876", "blockTimestamp":1266070331, "bhNonce":138493302, "difficulty":1.818648536145414, "blockHeight":40026 }, { "txCount":1, "prevBlock":"000000005b2c7ca93b172ce7e2edd073e1b7d1bcb9f9e56818d81ec4f0e38745", "blockHash":"000000008728ac44725dfc68328f52dff8966cf688beedf5e5a928ae4e138ff9", "blockVersion":1, "merkleRoot":"39ca5c97d34bf8538ee53e574fd6981284346b9ec93d2f43eb7123d7c9d54e69", "blockTimestamp":1266070367, "bhNonce":10409256, "difficulty":1.818648536145414, "blockHeight":40027 }, { "txCount":1, "prevBlock":"000000008728ac44725dfc68328f52dff8966cf688beedf5e5a928ae4e138ff9", "blockHash":"00000000197a7c312e78235187a1754b0bb76e6d0b089d3e19974cfc463a0832", "blockVersion":1, "merkleRoot":"f58a3945045d725deb28a1f47e28a971e6248429b634cc57b8caff0c24c866e2", "blockTimestamp":1266070540, "bhNonce":661168133, "difficulty":1.818648536145414, "blockHeight":40028 }, { "txCount":1, "prevBlock":"00000000197a7c312e78235187a1754b0bb76e6d0b089d3e19974cfc463a0832", "blockHash":"000000004fa2276f5d5fc9ffa7a2fcb7644a4844bc9f910187ffb02e9453c4b3", "blockVersion":1, "merkleRoot":"f75aedccdb3659ebde11afb98b41481a44eb2d94b892ce780152f91421038f52", "blockTimestamp":1266071325, "bhNonce":315134822, "difficulty":1.818648536145414, "blockHeight":40029 } ] }
Get Block by block height
Request JSON structure:
Response JSON structure:
curl -X GET -H "Authorization: Bearer <Session-Key>" -k 'https://<domain-name>:<port-number>/v1/block/height/100'
{ "block":{ "height":100, "txCount":1, "hash":"000000007bc154e0fa7ea32218a72fe2c1bb9f86cf8c9ebf9a715ed27fdb229a", "coinbaseTx":"H4sIAAAAAAAAA2NkYGBgZCAA/gMBO8v//wyyjL4gNiPDJ1YtkC5nR5bnXExf13ssnDH7m8FNVeWTF31cj8fXSs/sm6b9P//nzPije7f4i0/eXDL1BrPKml01/cE1q344a/e6zygWZuM5ods1eQ3IAgCfhuJ1hgAAAA==", "size":215, "nextBlockHash":"00000000b69bd8e4dc60580117617a466d5c76ada85fb7b87e9baea01f9d9984", "header":{ "blockBits":486604799, "prevBlock":"00000000cd9b12643e6854cb25939b39cd7a1ad0af31a9bd8b2efe67854b1995", "blockVersion":1, "merkleRoot":"2d05f0c9c3e1c226e63b5fac240137687544cf631cd616fd34fd188fc9020866", "blockTimestamp":1231660825, "nonce":1573057331 }, "coinbaseMessage":"\u0001M", "guessedMiner":"" } }
Request JSON structure:
Response JSON structure:
{ "id":0, "jsonrpc":"2.0", "method":"HEIGHT->BLOCK", "params":{ "sessionKey":"<Session-Key>", "methodParams":{ "gbHeight":100 } } }
{ "block":{ "height":100, "txCount":1, "hash":"000000007bc154e0fa7ea32218a72fe2c1bb9f86cf8c9ebf9a715ed27fdb229a", "coinbaseTx":"H4sIAAAAAAAAA2NkYGBgZCAA/gMBO8v//wyyjL4gNiPDJ1YtkC5nR5bnXExf13ssnDH7m8FNVeWTF31cj8fXSs/sm6b9P//nzPije7f4i0/eXDL1BrPKml01/cE1q344a/e6zygWZuM5ods1eQ3IAgCfhuJ1hgAAAA==", "size":215, "nextBlockHash":"00000000b69bd8e4dc60580117617a466d5c76ada85fb7b87e9baea01f9d9984", "header":{ "blockBits":486604799, "prevBlock":"00000000cd9b12643e6854cb25939b39cd7a1ad0af31a9bd8b2efe67854b1995", "blockVersion":1, "merkleRoot":"2d05f0c9c3e1c226e63b5fac240137687544cf631cd616fd34fd188fc9020866", "blockTimestamp":1231660825, "nonce":1573057331 }, "coinbaseMessage":"\u0001M", "guessedMiner":"" } }
Get Blocks by block heights
Request JSON structure:
Response JSON structure:
curl -X GET -H "Authorization: Bearer <Session-Key>" -k 'https://<domain-name>:<port-number>/v1/block/heights/?height=100&height=101&height=102'
{ "blocks":[ { "height":100, "txCount":1, "hash":"000000007bc154e0fa7ea32218a72fe2c1bb9f86cf8c9ebf9a715ed27fdb229a", "coinbaseTx":"H4sIAAAAAAAAA2NkYGBgZCAA/gMBO8v//wyyjL4gNiPDJ1YtkC5nR5bnXExf13ssnDH7m8FNVeWTF31cj8fXSs/sm6b9P//nzPije7f4i0/eXDL1BrPKml01/cE1q344a/e6zygWZuM5ods1eQ3IAgCfhuJ1hgAAAA==", "size":215, "nextBlockHash":"00000000b69bd8e4dc60580117617a466d5c76ada85fb7b87e9baea01f9d9984", "header":{ "blockBits":486604799, "prevBlock":"00000000cd9b12643e6854cb25939b39cd7a1ad0af31a9bd8b2efe67854b1995", "blockVersion":1, "merkleRoot":"2d05f0c9c3e1c226e63b5fac240137687544cf631cd616fd34fd188fc9020866", "blockTimestamp":1231660825, "nonce":1573057331 }, "coinbaseMessage":"\u0001M", "guessedMiner":"" }, { "height":101, "txCount":1, "hash":"00000000b69bd8e4dc60580117617a466d5c76ada85fb7b87e9baea01f9d9984", "coinbaseTx":"H4sIAAAAAAAAA2NkYGBgZCAA/gMBO8v//wyyjH4gNiPDJ1YtkC5nRxYJWcPrYuyVz4MMv6fUT3xqm2xh+XrO43+ceUeVCucc3HmLyfz0TMcFkeGz36llak0wcRFnmzxx2So5t4ZTSyK4qnZ+XgOyAABa9PVohgAAAA==", "size":215, "nextBlockHash":"000000001604181f13f19fd3cc89366ec95ce1dd64b776784ef8855210622f19", "header":{ "blockBits":486604799, "prevBlock":"000000007bc154e0fa7ea32218a72fe2c1bb9f86cf8c9ebf9a715ed27fdb229a", "blockVersion":1, "merkleRoot":"cfe6b74cab677b52d850ac659d54266a3a4d7bb48270234d2fec836881d0a5f7", "blockTimestamp":1231661741, "nonce":4136106517 }, "coinbaseMessage":"\u0001N", "guessedMiner":"" }, { "height":102, "txCount":1, "hash":"000000001604181f13f19fd3cc89366ec95ce1dd64b776784ef8855210622f19", "coinbaseTx":"H4sIAAAAAAAAA2NkYGBgZCAA/gMBO8v//wyyjCEgNiPDJ1YtkC5nRxYGu/7pVfx56tk/xLi5+lavqnI95Z/mryD/xr9n6u+lMTcz+1b8+nek5vMHjudRD9Qzz4Xyqv5j8uI/0HN7nRZHqrTcGpAFAEmg5oOGAAAA", "size":215, "nextBlockHash":"000000002109057cb846ff7d1d96bc77f9f65cb547938efe1961760a8bbb3f75", "header":{ "blockBits":486604799, "prevBlock":"00000000b69bd8e4dc60580117617a466d5c76ada85fb7b87e9baea01f9d9984", "blockVersion":1, "merkleRoot":"3b44b5ce02d36db604f0d6b7cc761685484c370a235c54539700b1ad23afefce", "blockTimestamp":1231662670, "nonce":1906126361 }, "coinbaseMessage":"\u0001T", "guessedMiner":"" } ] }
Request JSON structure:
Response JSON structure:
{ "id":1, "jsonrpc":"2.0", "method":"[HEIGHT]->[BLOCK]", "params":{ "sessionKey":"<Session-Key>", "methodParams":{ "gbHeights":[ 100, 101, 102 ] } } }
{ "blocks":[ { "height":100, "txCount":1, "hash":"000000007bc154e0fa7ea32218a72fe2c1bb9f86cf8c9ebf9a715ed27fdb229a", "coinbaseTx":"H4sIAAAAAAAAA2NkYGBgZCAA/gMBO8v//wyyjL4gNiPDJ1YtkC5nR5bnXExf13ssnDH7m8FNVeWTF31cj8fXSs/sm6b9P//nzPije7f4i0/eXDL1BrPKml01/cE1q344a/e6zygWZuM5ods1eQ3IAgCfhuJ1hgAAAA==", "size":215, "nextBlockHash":"00000000b69bd8e4dc60580117617a466d5c76ada85fb7b87e9baea01f9d9984", "header":{ "blockBits":486604799, "prevBlock":"00000000cd9b12643e6854cb25939b39cd7a1ad0af31a9bd8b2efe67854b1995", "blockVersion":1, "merkleRoot":"2d05f0c9c3e1c226e63b5fac240137687544cf631cd616fd34fd188fc9020866", "blockTimestamp":1231660825, "nonce":1573057331 }, "coinbaseMessage":"\u0001M", "guessedMiner":"" }, { "height":101, "txCount":1, "hash":"00000000b69bd8e4dc60580117617a466d5c76ada85fb7b87e9baea01f9d9984", "coinbaseTx":"H4sIAAAAAAAAA2NkYGBgZCAA/gMBO8v//wyyjH4gNiPDJ1YtkC5nRxYJWcPrYuyVz4MMv6fUT3xqm2xh+XrO43+ceUeVCucc3HmLyfz0TMcFkeGz36llak0wcRFnmzxx2So5t4ZTSyK4qnZ+XgOyAABa9PVohgAAAA==", "size":215, "nextBlockHash":"000000001604181f13f19fd3cc89366ec95ce1dd64b776784ef8855210622f19", "header":{ "blockBits":486604799, "prevBlock":"000000007bc154e0fa7ea32218a72fe2c1bb9f86cf8c9ebf9a715ed27fdb229a", "blockVersion":1, "merkleRoot":"cfe6b74cab677b52d850ac659d54266a3a4d7bb48270234d2fec836881d0a5f7", "blockTimestamp":1231661741, "nonce":4136106517 }, "coinbaseMessage":"\u0001N", "guessedMiner":"" }, { "height":102, "txCount":1, "hash":"000000001604181f13f19fd3cc89366ec95ce1dd64b776784ef8855210622f19", "coinbaseTx":"H4sIAAAAAAAAA2NkYGBgZCAA/gMBO8v//wyyjCEgNiPDJ1YtkC5nRxYGu/7pVfx56tk/xLi5+lavqnI95Z/mryD/xr9n6u+lMTcz+1b8+nek5vMHjudRD9Qzz4Xyqv5j8uI/0HN7nRZHqrTcGpAFAEmg5oOGAAAA", "size":215, "nextBlockHash":"000000002109057cb846ff7d1d96bc77f9f65cb547938efe1961760a8bbb3f75", "header":{ "blockBits":486604799, "prevBlock":"00000000b69bd8e4dc60580117617a466d5c76ada85fb7b87e9baea01f9d9984", "blockVersion":1, "merkleRoot":"3b44b5ce02d36db604f0d6b7cc761685484c370a235c54539700b1ad23afefce", "blockTimestamp":1231662670, "nonce":1906126361 }, "coinbaseMessage":"\u0001T", "guessedMiner":"" } ] }
Get Block by block hash
Request JSON structure:
Response JSON structure:
curl -X GET -H "Authorization: Bearer <Session-Key>" -k 'https://<domain-name>:<port-number>/v1/block/hash/00000000d1145790a8694403d4063f323d499e655c83426834d4ce2f8dd4a2ee'
{ "block":{ "height":170, "txCount":2, "hash":"00000000d1145790a8694403d4063f323d499e655c83426834d4ce2f8dd4a2ee", "coinbaseTx":"H4sIAAAAAAAAA2NkYGBgZCAA/gMBO8v//wyyjEwgNiPDJ1YtkC5nR5YrOZ4Zex9ozLy0ijPZrKYq57HfG2Ntoyd68SbsD4KueR1TvZXPLvF8M5MIi8neonC2qTWculstWHcorohWXr4msSh6DcgCAEwOXriGAAAA", "size":490, "nextBlockHash":"00000000c9ec538cab7f38ef9c67a95742f56ab07b0a37c5be6b02808dbfb4e0", "header":{ "blockBits":486604799, "prevBlock":"000000002a22cfee1f2c846adbd12b3e183d4f97683f85dad08a79780a84bd55", "blockVersion":1, "merkleRoot":"7dac2c5666815c17a3b36427de37bb9d2e2c5ccec3f8633eb91a4205cb4c10ff", "blockTimestamp":1231731025, "nonce":1889418792 }, "coinbaseMessage":"\u0001\u0002", "guessedMiner":"" } }
Request JSON structure:
Response JSON structure:
{ "id":2, "jsonrpc":"2.0", "method":"HASH->BLOCK", "params":{ "sessionKey":"<Session-Key>", "methodParams":{ "gbBlockHash":"00000000d1145790a8694403d4063f323d499e655c83426834d4ce2f8dd4a2ee" } } }
{ "block":{ "height":170, "txCount":2, "hash":"00000000d1145790a8694403d4063f323d499e655c83426834d4ce2f8dd4a2ee", "coinbaseTx":"H4sIAAAAAAAAA2NkYGBgZCAA/gMBO8v//wyyjEwgNiPDJ1YtkC5nR5YrOZ4Zex9ozLy0ijPZrKYq57HfG2Ntoyd68SbsD4KueR1TvZXPLvF8M5MIi8neonC2qTWculstWHcorohWXr4msSh6DcgCAEwOXriGAAAA", "size":490, "nextBlockHash":"00000000c9ec538cab7f38ef9c67a95742f56ab07b0a37c5be6b02808dbfb4e0", "header":{ "blockBits":486604799, "prevBlock":"000000002a22cfee1f2c846adbd12b3e183d4f97683f85dad08a79780a84bd55", "blockVersion":1, "merkleRoot":"7dac2c5666815c17a3b36427de37bb9d2e2c5ccec3f8633eb91a4205cb4c10ff", "blockTimestamp":1231731025, "nonce":1889418792 }, "coinbaseMessage":"\u0001\u0002", "guessedMiner":"" } }
Get Blocks by block hashes
Request JSON structure:
Response JSON structure:
curl -X GET -H "Authorization: Bearer <Session-Key>" -k 'https://<domain-name>:<port-number>/v1/block/hashes/?hash=000000000000000002af2a6de04d4a1a73973827eae348fe4d3f4d05610ff968&hash=000000000000000007fc734cbf1fc04c59cf7ecb6af0707fd5cf5b8d46dc4c75'
{ "blocks":[ { "height":505012, "txCount":-1, "hash":"000000000000000002af2a6de04d4a1a73973827eae348fe4d3f4d05610ff968", "coinbaseTx":"H4sIAAAAAAAAAwMAAAAAAAAAAAA=", "size":-1, "nextBlockHash":"0000000000000000016ffcb7c28721cafde14b409813e6fb94de70438a65a1e2", "header":{ "blockBits":403108785, "prevBlock":"0000000000000000059938946425a9582aaa0d8fe5f3fdd0d320c8e10be3dfe2", "blockVersion":536870912, "merkleRoot":"95d47f65213fffc98b2419a7b64a34f2384a8ec34f4458b81a1722b1aa320458", "blockTimestamp":1511205051, "nonce":2863327913 }, "coinbaseMessage":"", "guessedMiner":"" }, { "height":356303, "txCount":-1, "hash":"000000000000000007fc734cbf1fc04c59cf7ecb6af0707fd5cf5b8d46dc4c75", "coinbaseTx":"H4sIAAAAAAAAAwMAAAAAAAAAAAA=", "size":-1, "nextBlockHash":"000000000000000008792c485a4d004c083350b36cc0c278affb67440dd8a419", "header":{ "blockBits":404165597, "prevBlock":"000000000000000001bbbcc2d3c4f0b7708790f421b77513a5bf836a0e0a8136", "blockVersion":2, "merkleRoot":"585bba95fd50e8d4521c90e3f1b33ae3029cdc9ba50a88395828427c4dec9b36", "blockTimestamp":1431553391, "nonce":1952425675 }, "coinbaseMessage":"", "guessedMiner":"" } ] }
Request JSON structure:
Response JSON structure:
{ "id":3, "jsonrpc":"2.0", "method":"[HASH]->[BLOCK]", "params":{ "sessionKey":"<Session-Key>", "methodParams":{ "gbBlockHashes":[ "000000000000000002af2a6de04d4a1a73973827eae348fe4d3f4d05610ff968", "000000000000000007fc734cbf1fc04c59cf7ecb6af0707fd5cf5b8d46dc4c75" ] } } }
{ "blocks":[ { "height":505012, "txCount":-1, "hash":"000000000000000002af2a6de04d4a1a73973827eae348fe4d3f4d05610ff968", "coinbaseTx":"H4sIAAAAAAAAAwMAAAAAAAAAAAA=", "size":-1, "nextBlockHash":"0000000000000000016ffcb7c28721cafde14b409813e6fb94de70438a65a1e2", "header":{ "blockBits":403108785, "prevBlock":"0000000000000000059938946425a9582aaa0d8fe5f3fdd0d320c8e10be3dfe2", "blockVersion":536870912, "merkleRoot":"95d47f65213fffc98b2419a7b64a34f2384a8ec34f4458b81a1722b1aa320458", "blockTimestamp":1511205051, "nonce":2863327913 }, "coinbaseMessage":"", "guessedMiner":"" }, { "height":356303, "txCount":-1, "hash":"000000000000000007fc734cbf1fc04c59cf7ecb6af0707fd5cf5b8d46dc4c75", "coinbaseTx":"H4sIAAAAAAAAAwMAAAAAAAAAAAA=", "size":-1, "nextBlockHash":"000000000000000008792c485a4d004c083350b36cc0c278affb67440dd8a419", "header":{ "blockBits":404165597, "prevBlock":"000000000000000001bbbcc2d3c4f0b7708790f421b77513a5bf836a0e0a8136", "blockVersion":2, "merkleRoot":"585bba95fd50e8d4521c90e3f1b33ae3029cdc9ba50a88395828427c4dec9b36", "blockTimestamp":1431553391, "nonce":1952425675 }, "coinbaseMessage":"", "guessedMiner":"" } ] }
Get TXID by Hash
Request JSON structure:
Response JSON structure:
curl -X GET -H "Authorization: Bearer <Session-Key>" -k 'https://<domain-name>:<port-number>/v1/block/txids/000000009a4aed3e8ba7a978c6b50fea886fb496d66e696090a91d527200b002/?pagenumber=2&pagesize=1'
{ "txids":[ "59bf8acbc9d60dfae841abecc3882b4181f2bdd8ac6c1d94001165ab3aef50b0" ] }
Request JSON structure:
Response JSON structure:
{ "id":17, "jsonrpc":"2.0", "method":"HASH->[TXID]", "params":{ "sessionKey":"<Session-Key>", "methodParams":{ "hash":"000000009a4aed3e8ba7a978c6b50fea886fb496d66e696090a91d527200b002", "gtPageSize":1, "gtPageNumber":2 } } }
{ "txids":[ "59bf8acbc9d60dfae841abecc3882b4181f2bdd8ac6c1d94001165ab3aef50b0" ] }
Get Transaction by TxID
Request JSON structure:
Response JSON structure:
curl -X GET -H "Authorization: Bearer <Session-Key>" -k 'https://<domain-name>:<port-number>/v1/transaction/3eb24bd76c1077a2d3e664c8a67a9dcc72d5d5828790c48a0bd9d68c44208883'
{ "tx":{ "tx":{ "txInps":[ { "unlockingScript":"48304502200063f2597a43d8b011b02c5e3dbfbb265140c183f13e7cd8e7902d8df7934364022100cdb72e479d95f9a53ba25fca4fbfe4e57a66d0331e99be78de6b3cf7c0125bf5014104664450efb507985a5a3efb94fa6e883028f56b1b1afedbaa8c3b8ac6f68a75e66b3bdcca9a3ca2f3f043b2692c74f8bec718f7816697a4ffe5d7f91b017ae150", "outpointTxID":"a062a6171e8f26f349fb68317e9c49a27c28de4778839ebeae731e63d0007ad1", "value":1399850000, "address":"1L7ELstBNnu8niYTugPYG8oMqNasYBJ8G5", "txInputIndex":0, "outpointIndex":1 } ], "txVersion":1, "txLockTime":0, "txOuts":[ { "lockingScript":"76a91475755dec5d19e9c384230d7763ce394414b7491a88ac", "value":1399520000, "address":"1Bi4fEqHbKBd5HPFtahcKzQCRo9Pab67F5", "outputIndex":0, "txSpendInfo":{ "spendData":[ { "spendingOutputIndex":0, "value":199400000, "outputAddress":"15E6hRrZs3naQorugyqnvRU47eq9zxtRKH" }, { "spendingOutputIndex":1, "value":1320836457, "outputAddress":"1AXaNh5r1osryWH7XGGsvdh3CTEfyM5svy" } ], "spendingBlockHash":"000000000000035a639c789236ea9732ba393cf5176ba2ea000679f76fdd4798", "spendingBlockHeight":224521, "spendingTxId":"665bbdc783747ab4c92bcb687a58a90c5e735502339c493672feead5d171a810", "spendingTxIndex":2 } }, { "lockingScript":"76a914cc471a7e93ac919b0a6dd1283d120fe0570e41b388ac", "value":280000, "address":"1Kd82VTxeWp6hQvPwcQ2DF8RYYz2ez1U16", "outputIndex":1, "txSpendInfo":null } ] }, "txIndex":6, "size":258, "fees":50000, "blockHash":"0000000000000385b4911c5720994f72765bb9d7ca9c340d5fb498cb99fd0467", "merkleBranch":[ { "nodeValue":"5e8c816bce4c13f1d891bb4679713d2713e0c14edb58352b795ae2e881aae6ea", "isLeftNode":false }, { "nodeValue":"d1e1fd84888e4c3f28d5d7ee9da75660aa1eda85db6528ee86583040233b8a42", "isLeftNode":true }, { "nodeValue":"49adbcbbd45b9981e99efb677583b15fba8f67b27bbdd64a25bdba51004dc5e1", "isLeftNode":true }, { "nodeValue":"380992d2d899d77d44ec5486bbff08de75324acf1b39c44bef69de1f38efc66d", "isLeftNode":false }, { "nodeValue":"47616f636a073dbcc0830e4c705cad2884068ab6207a9b49e00b32cf828269e1", "isLeftNode":false }, { "nodeValue":"838d38dfdb6bb2fc95832cb39a9ec79292ff4c83c1fb90956b12e2602c4e451a", "isLeftNode":false }, { "nodeValue":"82efd57187245d8556da205ed624152448af6acc898044c2a2d5f448d4ec48a7", "isLeftNode":false }, { "nodeValue":"04dcf4fb054ecce015fbca2df8bb6f1d707b546afa2bb58ff982d66da4d8d85d", "isLeftNode":false }, { "nodeValue":"718933da4a542da6fb42713aadf36b337ea3c441acb24327d5c7b5225c7b84fa", "isLeftNode":false }, { "nodeValue":"d7acea582ba45a6176d945f068e8e71478b8080dfdfb05552b2f98ec504f31f1", "isLeftNode":true } ], "blockHeight":224252, "txId":"3eb24bd76c1077a2d3e664c8a67a9dcc72d5d5828790c48a0bd9d68c44208883" } }
Request JSON structure:
Response JSON structure:
{ "id":4, "jsonrpc":"2.0", "method":"TXID->TX", "params":{ "sessionKey":"<Session-Key>", "methodParams":{ "gtTxHash":"3eb24bd76c1077a2d3e664c8a67a9dcc72d5d5828790c48a0bd9d68c44208883" } } }
{ "tx":{ "tx":{ "txInps":[ { "unlockingScript":"48304502200063f2597a43d8b011b02c5e3dbfbb265140c183f13e7cd8e7902d8df7934364022100cdb72e479d95f9a53ba25fca4fbfe4e57a66d0331e99be78de6b3cf7c0125bf5014104664450efb507985a5a3efb94fa6e883028f56b1b1afedbaa8c3b8ac6f68a75e66b3bdcca9a3ca2f3f043b2692c74f8bec718f7816697a4ffe5d7f91b017ae150", "outpointTxID":"a062a6171e8f26f349fb68317e9c49a27c28de4778839ebeae731e63d0007ad1", "value":1399850000, "address":"1L7ELstBNnu8niYTugPYG8oMqNasYBJ8G5", "txInputIndex":0, "outpointIndex":1 } ], "txVersion":1, "txLockTime":0, "txOuts":[ { "lockingScript":"76a91475755dec5d19e9c384230d7763ce394414b7491a88ac", "value":1399520000, "address":"1Bi4fEqHbKBd5HPFtahcKzQCRo9Pab67F5", "outputIndex":0, "txSpendInfo":{ "spendData":[ { "spendingOutputIndex":0, "value":199400000, "outputAddress":"15E6hRrZs3naQorugyqnvRU47eq9zxtRKH" }, { "spendingOutputIndex":1, "value":1320836457, "outputAddress":"1AXaNh5r1osryWH7XGGsvdh3CTEfyM5svy" } ], "spendingBlockHash":"000000000000035a639c789236ea9732ba393cf5176ba2ea000679f76fdd4798", "spendingBlockHeight":224521, "spendingTxId":"665bbdc783747ab4c92bcb687a58a90c5e735502339c493672feead5d171a810", "spendingTxIndex":2 } }, { "lockingScript":"76a914cc471a7e93ac919b0a6dd1283d120fe0570e41b388ac", "value":280000, "address":"1Kd82VTxeWp6hQvPwcQ2DF8RYYz2ez1U16", "outputIndex":1, "txSpendInfo":null } ] }, "txIndex":6, "size":258, "fees":50000, "blockHash":"0000000000000385b4911c5720994f72765bb9d7ca9c340d5fb498cb99fd0467", "merkleBranch":[ { "nodeValue":"5e8c816bce4c13f1d891bb4679713d2713e0c14edb58352b795ae2e881aae6ea", "isLeftNode":false }, { "nodeValue":"d1e1fd84888e4c3f28d5d7ee9da75660aa1eda85db6528ee86583040233b8a42", "isLeftNode":true }, { "nodeValue":"49adbcbbd45b9981e99efb677583b15fba8f67b27bbdd64a25bdba51004dc5e1", "isLeftNode":true }, { "nodeValue":"380992d2d899d77d44ec5486bbff08de75324acf1b39c44bef69de1f38efc66d", "isLeftNode":false }, { "nodeValue":"47616f636a073dbcc0830e4c705cad2884068ab6207a9b49e00b32cf828269e1", "isLeftNode":false }, { "nodeValue":"838d38dfdb6bb2fc95832cb39a9ec79292ff4c83c1fb90956b12e2602c4e451a", "isLeftNode":false }, { "nodeValue":"82efd57187245d8556da205ed624152448af6acc898044c2a2d5f448d4ec48a7", "isLeftNode":false }, { "nodeValue":"04dcf4fb054ecce015fbca2df8bb6f1d707b546afa2bb58ff982d66da4d8d85d", "isLeftNode":false }, { "nodeValue":"718933da4a542da6fb42713aadf36b337ea3c441acb24327d5c7b5225c7b84fa", "isLeftNode":false }, { "nodeValue":"d7acea582ba45a6176d945f068e8e71478b8080dfdfb05552b2f98ec504f31f1", "isLeftNode":true } ], "blockHeight":224252, "txId":"3eb24bd76c1077a2d3e664c8a67a9dcc72d5d5828790c48a0bd9d68c44208883" } }
Get Transactions by TxIDs
Request JSON structure:
Response JSON structure:
curl -X GET -H "Authorization: Bearer <Session-Key>" -k 'https://<domain-name>:<port-number>/v1/transactions/?id=3eb24bd76c1077a2d3e664c8a67a9dcc72d5d5828790c48a0bd9d68c44208883&id=4777a10eae2b97d9481a07a46fafe2764ced2bf2d96eaa6eff38e149a02ac698'
{ "txs":[ { "tx":{ "txInps":[ { "unlockingScript":"48304502200063f2597a43d8b011b02c5e3dbfbb265140c183f13e7cd8e7902d8df7934364022100cdb72e479d95f9a53ba25fca4fbfe4e57a66d0331e99be78de6b3cf7c0125bf5014104664450efb507985a5a3efb94fa6e883028f56b1b1afedbaa8c3b8ac6f68a75e66b3bdcca9a3ca2f3f043b2692c74f8bec718f7816697a4ffe5d7f91b017ae150", "outpointTxID":"a062a6171e8f26f349fb68317e9c49a27c28de4778839ebeae731e63d0007ad1", "value":1399850000, "address":"1L7ELstBNnu8niYTugPYG8oMqNasYBJ8G5", "txInputIndex":0, "outpointIndex":1 } ], "txVersion":1, "txLockTime":0, "txOuts":[ { "lockingScript":"76a91475755dec5d19e9c384230d7763ce394414b7491a88ac", "value":1399520000, "address":"1Bi4fEqHbKBd5HPFtahcKzQCRo9Pab67F5", "outputIndex":0, "txSpendInfo":{ "spendData":[ { "spendingOutputIndex":0, "value":199400000, "outputAddress":"15E6hRrZs3naQorugyqnvRU47eq9zxtRKH" }, { "spendingOutputIndex":1, "value":1320836457, "outputAddress":"1AXaNh5r1osryWH7XGGsvdh3CTEfyM5svy" } ], "spendingBlockHash":"000000000000035a639c789236ea9732ba393cf5176ba2ea000679f76fdd4798", "spendingBlockHeight":224521, "spendingTxId":"665bbdc783747ab4c92bcb687a58a90c5e735502339c493672feead5d171a810", "spendingTxIndex":2 } }, { "lockingScript":"76a914cc471a7e93ac919b0a6dd1283d120fe0570e41b388ac", "value":280000, "address":"1Kd82VTxeWp6hQvPwcQ2DF8RYYz2ez1U16", "outputIndex":1, "txSpendInfo":null } ] }, "txIndex":6, "size":258, "fees":50000, "blockHash":"0000000000000385b4911c5720994f72765bb9d7ca9c340d5fb498cb99fd0467", "merkleBranch":[ { "nodeValue":"5e8c816bce4c13f1d891bb4679713d2713e0c14edb58352b795ae2e881aae6ea", "isLeftNode":false }, { "nodeValue":"d1e1fd84888e4c3f28d5d7ee9da75660aa1eda85db6528ee86583040233b8a42", "isLeftNode":true }, { "nodeValue":"49adbcbbd45b9981e99efb677583b15fba8f67b27bbdd64a25bdba51004dc5e1", "isLeftNode":true }, { "nodeValue":"380992d2d899d77d44ec5486bbff08de75324acf1b39c44bef69de1f38efc66d", "isLeftNode":false }, { "nodeValue":"47616f636a073dbcc0830e4c705cad2884068ab6207a9b49e00b32cf828269e1", "isLeftNode":false }, { "nodeValue":"838d38dfdb6bb2fc95832cb39a9ec79292ff4c83c1fb90956b12e2602c4e451a", "isLeftNode":false }, { "nodeValue":"82efd57187245d8556da205ed624152448af6acc898044c2a2d5f448d4ec48a7", "isLeftNode":false }, { "nodeValue":"04dcf4fb054ecce015fbca2df8bb6f1d707b546afa2bb58ff982d66da4d8d85d", "isLeftNode":false }, { "nodeValue":"718933da4a542da6fb42713aadf36b337ea3c441acb24327d5c7b5225c7b84fa", "isLeftNode":false }, { "nodeValue":"d7acea582ba45a6176d945f068e8e71478b8080dfdfb05552b2f98ec504f31f1", "isLeftNode":true } ], "blockHeight":224252, "txId":"3eb24bd76c1077a2d3e664c8a67a9dcc72d5d5828790c48a0bd9d68c44208883" }, { "tx":{ "txInps":[ { "unlockingScript":"48304502201ea76eb7349d296e385e81f87a3d7432287f04d29dc277d87d2c082040389398022100cd3ce3102770fb31909f69a99043d6c2d259ab38a210d8f36e29f4777d62a8e1012103da6d1fe8ca0f53a3376a0a39e36748faf76f212cbcd83142217212f9fab8385e", "outpointTxID":"a72ddc3e7f05271ce6f10736f40aa7a7c871b4d8827f519272115ba51a4e9a30", "value":430000000, "address":"1NvFoa2RLGmDifXm4sEs2y89dmPGdRkk5k", "txInputIndex":0, "outpointIndex":1 } ], "txVersion":1, "txLockTime":0, "txOuts":[ { "lockingScript":"76a914712b54cbeaa34b2ad1108b25c10a704c4d448f5188ac", "value":330000000, "address":"1BKPGPGYkUrCxcxycVw3MBqNEFB6vZK4sf", "outputIndex":0, "txSpendInfo":{ "spendData":[ { "spendingOutputIndex":0, "value":3000000000, "outputAddress":"1M6PXvC4TeoWykbARDpEC1qMnATYBViRUR" } ], "spendingBlockHash":"000000000000011bedc2ba86978257f8986ec69b326ed93b6e7fd9288cac7a25", "spendingBlockHeight":225683, "spendingTxId":"6d7f1205ce37d858045ec9480337fdd203db7f1f75b4777c230058c2527924a7", "spendingTxIndex":7 } }, { "lockingScript":"76a91422991d93e026d8a201bf02f75a4a5d214dea4f5d88ac", "value":100000000, "address":"149wQBE4xE17mC76quN6e9dsVSXwKsUDwa", "outputIndex":1, "txSpendInfo":{ "spendData":[ { "spendingOutputIndex":0, "value":1129950000, "outputAddress":"1Jnugvp1ZwqJupzC5TuquJqrDbfFMqjpY9" } ], "spendingBlockHash":"000000000000037f4ea031f8bf0c997a0a52232cc0fe632327d98edbe572318e", "spendingBlockHeight":224279, "spendingTxId":"2e8747bf231ee192aea9c67de431134d3103d295634361d8da6ab91fe75be84d", "spendingTxIndex":0 } } ] }, "txIndex":4, "size":226, "fees":0, "blockHash":"0000000000000385b4911c5720994f72765bb9d7ca9c340d5fb498cb99fd0467", "merkleBranch":[ { "nodeValue":"a3d03b75a8732c6f5bf87b8052e549fadddea22ec46ce39f217282f3ab50a6a5", "isLeftNode":false }, { "nodeValue":"dd6829cdbc8e21399839fa6d8d3156d3bf7860aab8321271bed600ae28affc60", "isLeftNode":false }, { "nodeValue":"49adbcbbd45b9981e99efb677583b15fba8f67b27bbdd64a25bdba51004dc5e1", "isLeftNode":true }, { "nodeValue":"380992d2d899d77d44ec5486bbff08de75324acf1b39c44bef69de1f38efc66d", "isLeftNode":false }, { "nodeValue":"47616f636a073dbcc0830e4c705cad2884068ab6207a9b49e00b32cf828269e1", "isLeftNode":false }, { "nodeValue":"838d38dfdb6bb2fc95832cb39a9ec79292ff4c83c1fb90956b12e2602c4e451a", "isLeftNode":false }, { "nodeValue":"82efd57187245d8556da205ed624152448af6acc898044c2a2d5f448d4ec48a7", "isLeftNode":false }, { "nodeValue":"04dcf4fb054ecce015fbca2df8bb6f1d707b546afa2bb58ff982d66da4d8d85d", "isLeftNode":false }, { "nodeValue":"718933da4a542da6fb42713aadf36b337ea3c441acb24327d5c7b5225c7b84fa", "isLeftNode":false }, { "nodeValue":"d7acea582ba45a6176d945f068e8e71478b8080dfdfb05552b2f98ec504f31f1", "isLeftNode":true } ], "blockHeight":224252, "txId":"4777a10eae2b97d9481a07a46fafe2764ced2bf2d96eaa6eff38e149a02ac698" } ] }
Request JSON structure:
Response JSON structure:
{ "id":6, "jsonrpc":"2.0", "method":"[TXID]->[TX]", "params":{ "sessionKey":"<Session-Key>", "methodParams":{ "gtTxHashes":[ "3eb24bd76c1077a2d3e664c8a67a9dcc72d5d5828790c48a0bd9d68c44208883", "4777a10eae2b97d9481a07a46fafe2764ced2bf2d96eaa6eff38e149a02ac698" ] } } }
{ "txs":[ { "tx":{ "txInps":[ { "unlockingScript":"48304502200063f2597a43d8b011b02c5e3dbfbb265140c183f13e7cd8e7902d8df7934364022100cdb72e479d95f9a53ba25fca4fbfe4e57a66d0331e99be78de6b3cf7c0125bf5014104664450efb507985a5a3efb94fa6e883028f56b1b1afedbaa8c3b8ac6f68a75e66b3bdcca9a3ca2f3f043b2692c74f8bec718f7816697a4ffe5d7f91b017ae150", "outpointTxID":"a062a6171e8f26f349fb68317e9c49a27c28de4778839ebeae731e63d0007ad1", "value":1399850000, "address":"1L7ELstBNnu8niYTugPYG8oMqNasYBJ8G5", "txInputIndex":0, "outpointIndex":1 } ], "txVersion":1, "txLockTime":0, "txOuts":[ { "lockingScript":"76a91475755dec5d19e9c384230d7763ce394414b7491a88ac", "value":1399520000, "address":"1Bi4fEqHbKBd5HPFtahcKzQCRo9Pab67F5", "outputIndex":0, "txSpendInfo":{ "spendData":[ { "spendingOutputIndex":0, "value":199400000, "outputAddress":"15E6hRrZs3naQorugyqnvRU47eq9zxtRKH" }, { "spendingOutputIndex":1, "value":1320836457, "outputAddress":"1AXaNh5r1osryWH7XGGsvdh3CTEfyM5svy" } ], "spendingBlockHash":"000000000000035a639c789236ea9732ba393cf5176ba2ea000679f76fdd4798", "spendingBlockHeight":224521, "spendingTxId":"665bbdc783747ab4c92bcb687a58a90c5e735502339c493672feead5d171a810", "spendingTxIndex":2 } }, { "lockingScript":"76a914cc471a7e93ac919b0a6dd1283d120fe0570e41b388ac", "value":280000, "address":"1Kd82VTxeWp6hQvPwcQ2DF8RYYz2ez1U16", "outputIndex":1, "txSpendInfo":null } ] }, "txIndex":6, "size":258, "fees":50000, "blockHash":"0000000000000385b4911c5720994f72765bb9d7ca9c340d5fb498cb99fd0467", "merkleBranch":[ { "nodeValue":"5e8c816bce4c13f1d891bb4679713d2713e0c14edb58352b795ae2e881aae6ea", "isLeftNode":false }, { "nodeValue":"d1e1fd84888e4c3f28d5d7ee9da75660aa1eda85db6528ee86583040233b8a42", "isLeftNode":true }, { "nodeValue":"49adbcbbd45b9981e99efb677583b15fba8f67b27bbdd64a25bdba51004dc5e1", "isLeftNode":true }, { "nodeValue":"380992d2d899d77d44ec5486bbff08de75324acf1b39c44bef69de1f38efc66d", "isLeftNode":false }, { "nodeValue":"47616f636a073dbcc0830e4c705cad2884068ab6207a9b49e00b32cf828269e1", "isLeftNode":false }, { "nodeValue":"838d38dfdb6bb2fc95832cb39a9ec79292ff4c83c1fb90956b12e2602c4e451a", "isLeftNode":false }, { "nodeValue":"82efd57187245d8556da205ed624152448af6acc898044c2a2d5f448d4ec48a7", "isLeftNode":false }, { "nodeValue":"04dcf4fb054ecce015fbca2df8bb6f1d707b546afa2bb58ff982d66da4d8d85d", "isLeftNode":false }, { "nodeValue":"718933da4a542da6fb42713aadf36b337ea3c441acb24327d5c7b5225c7b84fa", "isLeftNode":false }, { "nodeValue":"d7acea582ba45a6176d945f068e8e71478b8080dfdfb05552b2f98ec504f31f1", "isLeftNode":true } ], "blockHeight":224252, "txId":"3eb24bd76c1077a2d3e664c8a67a9dcc72d5d5828790c48a0bd9d68c44208883" }, { "tx":{ "txInps":[ { "unlockingScript":"48304502201ea76eb7349d296e385e81f87a3d7432287f04d29dc277d87d2c082040389398022100cd3ce3102770fb31909f69a99043d6c2d259ab38a210d8f36e29f4777d62a8e1012103da6d1fe8ca0f53a3376a0a39e36748faf76f212cbcd83142217212f9fab8385e", "outpointTxID":"a72ddc3e7f05271ce6f10736f40aa7a7c871b4d8827f519272115ba51a4e9a30", "value":430000000, "address":"1NvFoa2RLGmDifXm4sEs2y89dmPGdRkk5k", "txInputIndex":0, "outpointIndex":1 } ], "txVersion":1, "txLockTime":0, "txOuts":[ { "lockingScript":"76a914712b54cbeaa34b2ad1108b25c10a704c4d448f5188ac", "value":330000000, "address":"1BKPGPGYkUrCxcxycVw3MBqNEFB6vZK4sf", "outputIndex":0, "txSpendInfo":{ "spendData":[ { "spendingOutputIndex":0, "value":3000000000, "outputAddress":"1M6PXvC4TeoWykbARDpEC1qMnATYBViRUR" } ], "spendingBlockHash":"000000000000011bedc2ba86978257f8986ec69b326ed93b6e7fd9288cac7a25", "spendingBlockHeight":225683, "spendingTxId":"6d7f1205ce37d858045ec9480337fdd203db7f1f75b4777c230058c2527924a7", "spendingTxIndex":7 } }, { "lockingScript":"76a91422991d93e026d8a201bf02f75a4a5d214dea4f5d88ac", "value":100000000, "address":"149wQBE4xE17mC76quN6e9dsVSXwKsUDwa", "outputIndex":1, "txSpendInfo":{ "spendData":[ { "spendingOutputIndex":0, "value":1129950000, "outputAddress":"1Jnugvp1ZwqJupzC5TuquJqrDbfFMqjpY9" } ], "spendingBlockHash":"000000000000037f4ea031f8bf0c997a0a52232cc0fe632327d98edbe572318e", "spendingBlockHeight":224279, "spendingTxId":"2e8747bf231ee192aea9c67de431134d3103d295634361d8da6ab91fe75be84d", "spendingTxIndex":0 } } ] }, "txIndex":4, "size":226, "fees":0, "blockHash":"0000000000000385b4911c5720994f72765bb9d7ca9c340d5fb498cb99fd0467", "merkleBranch":[ { "nodeValue":"a3d03b75a8732c6f5bf87b8052e549fadddea22ec46ce39f217282f3ab50a6a5", "isLeftNode":false }, { "nodeValue":"dd6829cdbc8e21399839fa6d8d3156d3bf7860aab8321271bed600ae28affc60", "isLeftNode":false }, { "nodeValue":"49adbcbbd45b9981e99efb677583b15fba8f67b27bbdd64a25bdba51004dc5e1", "isLeftNode":true }, { "nodeValue":"380992d2d899d77d44ec5486bbff08de75324acf1b39c44bef69de1f38efc66d", "isLeftNode":false }, { "nodeValue":"47616f636a073dbcc0830e4c705cad2884068ab6207a9b49e00b32cf828269e1", "isLeftNode":false }, { "nodeValue":"838d38dfdb6bb2fc95832cb39a9ec79292ff4c83c1fb90956b12e2602c4e451a", "isLeftNode":false }, { "nodeValue":"82efd57187245d8556da205ed624152448af6acc898044c2a2d5f448d4ec48a7", "isLeftNode":false }, { "nodeValue":"04dcf4fb054ecce015fbca2df8bb6f1d707b546afa2bb58ff982d66da4d8d85d", "isLeftNode":false }, { "nodeValue":"718933da4a542da6fb42713aadf36b337ea3c441acb24327d5c7b5225c7b84fa", "isLeftNode":false }, { "nodeValue":"d7acea582ba45a6176d945f068e8e71478b8080dfdfb05552b2f98ec504f31f1", "isLeftNode":true } ], "blockHeight":224252, "txId":"4777a10eae2b97d9481a07a46fafe2764ced2bf2d96eaa6eff38e149a02ac698" } ] }
Get Raw Transaction by TxID
Request JSON structure:
Response JSON structure
curl -X GET -H "Authorization: Bearer <Session-Key>" -k 'https://<domain-name>:<port-number>/v1/rawtransaction/3eb24bd76c1077a2d3e664c8a67a9dcc72d5d5828790c48a0bd9d68c44208883'
{ "rawTx":{ "txIndex":6, "size":258, "fees":50000, "blockHash":"0000000000000385b4911c5720994f72765bb9d7ca9c340d5fb498cb99fd0467", "txSerialized":"H4sIAAAAAAAAA2NkYGBgvFjFcCFZrnjdvnnNFe73NGoWec6pM8z47flZrV9OfFnSAkagom4PA1cmBYbkT5FVzjc2CG7QibPdv1st0OFg80e7mhvPJ+j2fp/snMKkyHB2u5773Kk/l1ovij/lv//J06q0C8ZyM/dV3Mu2+X5AKPoroyNLmkvA+63sM6Ki7H5P+ZXXYaDxNVta6t/tVT3WXce+dZU+y7a+c2qWzaLPH5w3ZeqU/Nh3XOJ7Y9r0Jf+fXv8pzVj1MOA/EDAx/M4KBrqLQbJspUhpaeybWMmXh1uUecuTz1m6iGz3lOpYc8CVhQGm4oy7VN3kNRNnc+Ve1LAV4n8Qzue4uWMNSBYAw32bggIBAAA=", "txInputs":[ { "unlockingScript":"48304502200063f2597a43d8b011b02c5e3dbfbb265140c183f13e7cd8e7902d8df7934364022100cdb72e479d95f9a53ba25fca4fbfe4e57a66d0331e99be78de6b3cf7c0125bf5014104664450efb507985a5a3efb94fa6e883028f56b1b1afedbaa8c3b8ac6f68a75e66b3bdcca9a3ca2f3f043b2692c74f8bec718f7816697a4ffe5d7f91b017ae150", "outpointTxID":"a062a6171e8f26f349fb68317e9c49a27c28de4778839ebeae731e63d0007ad1", "value":1399850000, "address":"1L7ELstBNnu8niYTugPYG8oMqNasYBJ8G5", "txInputIndex":0, "outpointIndex":1 } ], "merkleBranch":[ { "nodeValue":"5e8c816bce4c13f1d891bb4679713d2713e0c14edb58352b795ae2e881aae6ea", "isLeftNode":false }, { "nodeValue":"d1e1fd84888e4c3f28d5d7ee9da75660aa1eda85db6528ee86583040233b8a42", "isLeftNode":true }, { "nodeValue":"49adbcbbd45b9981e99efb677583b15fba8f67b27bbdd64a25bdba51004dc5e1", "isLeftNode":true }, { "nodeValue":"380992d2d899d77d44ec5486bbff08de75324acf1b39c44bef69de1f38efc66d", "isLeftNode":false }, { "nodeValue":"47616f636a073dbcc0830e4c705cad2884068ab6207a9b49e00b32cf828269e1", "isLeftNode":false }, { "nodeValue":"838d38dfdb6bb2fc95832cb39a9ec79292ff4c83c1fb90956b12e2602c4e451a", "isLeftNode":false }, { "nodeValue":"82efd57187245d8556da205ed624152448af6acc898044c2a2d5f448d4ec48a7", "isLeftNode":false }, { "nodeValue":"04dcf4fb054ecce015fbca2df8bb6f1d707b546afa2bb58ff982d66da4d8d85d", "isLeftNode":false }, { "nodeValue":"718933da4a542da6fb42713aadf36b337ea3c441acb24327d5c7b5225c7b84fa", "isLeftNode":false }, { "nodeValue":"d7acea582ba45a6176d945f068e8e71478b8080dfdfb05552b2f98ec504f31f1", "isLeftNode":true } ], "txOutputs":[ { "lockingScript":"76a91475755dec5d19e9c384230d7763ce394414b7491a88ac", "value":1399520000, "address":"1Bi4fEqHbKBd5HPFtahcKzQCRo9Pab67F5", "outputIndex":0, "txSpendInfo":{ "spendData":[ { "spendingOutputIndex":0, "value":199400000, "outputAddress":"15E6hRrZs3naQorugyqnvRU47eq9zxtRKH" }, { "spendingOutputIndex":1, "value":1320836457, "outputAddress":"1AXaNh5r1osryWH7XGGsvdh3CTEfyM5svy" } ], "spendingBlockHash":"000000000000035a639c789236ea9732ba393cf5176ba2ea000679f76fdd4798", "spendingBlockHeight":224521, "spendingTxId":"665bbdc783747ab4c92bcb687a58a90c5e735502339c493672feead5d171a810", "spendingTxIndex":2 } }, { "lockingScript":"76a914cc471a7e93ac919b0a6dd1283d120fe0570e41b388ac", "value":280000, "address":"1Kd82VTxeWp6hQvPwcQ2DF8RYYz2ez1U16", "outputIndex":1, "txSpendInfo":null } ], "blockHeight":224252, "txId":"3eb24bd76c1077a2d3e664c8a67a9dcc72d5d5828790c48a0bd9d68c44208883" } }
Request JSON structure:
Response JSON structure
{ "id":5, "jsonrpc":"2.0", "method":"TXID->RAWTX", "params":{ "sessionKey":"<Session-Key>", "methodParams":{ "gtRTxHash":"3eb24bd76c1077a2d3e664c8a67a9dcc72d5d5828790c48a0bd9d68c44208883" } } }
{ "rawTx":{ "txIndex":6, "size":258, "fees":50000, "blockHash":"0000000000000385b4911c5720994f72765bb9d7ca9c340d5fb498cb99fd0467", "txSerialized":"H4sIAAAAAAAAA2NkYGBgvFjFcCFZrnjdvnnNFe73NGoWec6pM8z47flZrV9OfFnSAkagom4PA1cmBYbkT5FVzjc2CG7QibPdv1st0OFg80e7mhvPJ+j2fp/snMKkyHB2u5773Kk/l1ovij/lv//J06q0C8ZyM/dV3Mu2+X5AKPoroyNLmkvA+63sM6Ki7H5P+ZXXYaDxNVta6t/tVT3WXce+dZU+y7a+c2qWzaLPH5w3ZeqU/Nh3XOJ7Y9r0Jf+fXv8pzVj1MOA/EDAx/M4KBrqLQbJspUhpaeybWMmXh1uUecuTz1m6iGz3lOpYc8CVhQGm4oy7VN3kNRNnc+Ve1LAV4n8Qzue4uWMNSBYAw32bggIBAAA=", "txInputs":[ { "unlockingScript":"48304502200063f2597a43d8b011b02c5e3dbfbb265140c183f13e7cd8e7902d8df7934364022100cdb72e479d95f9a53ba25fca4fbfe4e57a66d0331e99be78de6b3cf7c0125bf5014104664450efb507985a5a3efb94fa6e883028f56b1b1afedbaa8c3b8ac6f68a75e66b3bdcca9a3ca2f3f043b2692c74f8bec718f7816697a4ffe5d7f91b017ae150", "outpointTxID":"a062a6171e8f26f349fb68317e9c49a27c28de4778839ebeae731e63d0007ad1", "value":1399850000, "address":"1L7ELstBNnu8niYTugPYG8oMqNasYBJ8G5", "txInputIndex":0, "outpointIndex":1 } ], "merkleBranch":[ { "nodeValue":"5e8c816bce4c13f1d891bb4679713d2713e0c14edb58352b795ae2e881aae6ea", "isLeftNode":false }, { "nodeValue":"d1e1fd84888e4c3f28d5d7ee9da75660aa1eda85db6528ee86583040233b8a42", "isLeftNode":true }, { "nodeValue":"49adbcbbd45b9981e99efb677583b15fba8f67b27bbdd64a25bdba51004dc5e1", "isLeftNode":true }, { "nodeValue":"380992d2d899d77d44ec5486bbff08de75324acf1b39c44bef69de1f38efc66d", "isLeftNode":false }, { "nodeValue":"47616f636a073dbcc0830e4c705cad2884068ab6207a9b49e00b32cf828269e1", "isLeftNode":false }, { "nodeValue":"838d38dfdb6bb2fc95832cb39a9ec79292ff4c83c1fb90956b12e2602c4e451a", "isLeftNode":false }, { "nodeValue":"82efd57187245d8556da205ed624152448af6acc898044c2a2d5f448d4ec48a7", "isLeftNode":false }, { "nodeValue":"04dcf4fb054ecce015fbca2df8bb6f1d707b546afa2bb58ff982d66da4d8d85d", "isLeftNode":false }, { "nodeValue":"718933da4a542da6fb42713aadf36b337ea3c441acb24327d5c7b5225c7b84fa", "isLeftNode":false }, { "nodeValue":"d7acea582ba45a6176d945f068e8e71478b8080dfdfb05552b2f98ec504f31f1", "isLeftNode":true } ], "txOutputs":[ { "lockingScript":"76a91475755dec5d19e9c384230d7763ce394414b7491a88ac", "value":1399520000, "address":"1Bi4fEqHbKBd5HPFtahcKzQCRo9Pab67F5", "outputIndex":0, "txSpendInfo":{ "spendData":[ { "spendingOutputIndex":0, "value":199400000, "outputAddress":"15E6hRrZs3naQorugyqnvRU47eq9zxtRKH" }, { "spendingOutputIndex":1, "value":1320836457, "outputAddress":"1AXaNh5r1osryWH7XGGsvdh3CTEfyM5svy" } ], "spendingBlockHash":"000000000000035a639c789236ea9732ba393cf5176ba2ea000679f76fdd4798", "spendingBlockHeight":224521, "spendingTxId":"665bbdc783747ab4c92bcb687a58a90c5e735502339c493672feead5d171a810", "spendingTxIndex":2 } }, { "lockingScript":"76a914cc471a7e93ac919b0a6dd1283d120fe0570e41b388ac", "value":280000, "address":"1Kd82VTxeWp6hQvPwcQ2DF8RYYz2ez1U16", "outputIndex":1, "txSpendInfo":null } ], "blockHeight":224252, "txId":"3eb24bd76c1077a2d3e664c8a67a9dcc72d5d5828790c48a0bd9d68c44208883" } }
Get Raw Transactions by TxIDs
Request JSON structure:
Response JSON structure:
curl -X GET -H "Authorization: Bearer <Session-Key>" -k 'https://<domain-name>:<port-number>/v1/rawtransactions/?id=3eb24bd76c1077a2d3e664c8a67a9dcc72d5d5828790c48a0bd9d68c44208883&id=4777a10eae2b97d9481a07a46fafe2764ced2bf2d96eaa6eff38e149a02ac698'
{ "rawTxs":[ { "txIndex":6, "size":258, "fees":50000, "blockHash":"0000000000000385b4911c5720994f72765bb9d7ca9c340d5fb498cb99fd0467", "txSerialized":"H4sIAAAAAAAAA2NkYGBgvFjFcCFZrnjdvnnNFe73NGoWec6pM8z47flZrV9OfFnSAkagom4PA1cmBYbkT5FVzjc2CG7QibPdv1st0OFg80e7mhvPJ+j2fp/snMKkyHB2u5773Kk/l1ovij/lv//J06q0C8ZyM/dV3Mu2+X5AKPoroyNLmkvA+63sM6Ki7H5P+ZXXYaDxNVta6t/tVT3WXce+dZU+y7a+c2qWzaLPH5w3ZeqU/Nh3XOJ7Y9r0Jf+fXv8pzVj1MOA/EDAx/M4KBrqLQbJspUhpaeybWMmXh1uUecuTz1m6iGz3lOpYc8CVhQGm4oy7VN3kNRNnc+Ve1LAV4n8Qzue4uWMNSBYAw32bggIBAAA=", "txInputs":[ { "unlockingScript":"48304502200063f2597a43d8b011b02c5e3dbfbb265140c183f13e7cd8e7902d8df7934364022100cdb72e479d95f9a53ba25fca4fbfe4e57a66d0331e99be78de6b3cf7c0125bf5014104664450efb507985a5a3efb94fa6e883028f56b1b1afedbaa8c3b8ac6f68a75e66b3bdcca9a3ca2f3f043b2692c74f8bec718f7816697a4ffe5d7f91b017ae150", "outpointTxID":"a062a6171e8f26f349fb68317e9c49a27c28de4778839ebeae731e63d0007ad1", "value":1399850000, "address":"1L7ELstBNnu8niYTugPYG8oMqNasYBJ8G5", "txInputIndex":0, "outpointIndex":1 } ], "merkleBranch":[ { "nodeValue":"5e8c816bce4c13f1d891bb4679713d2713e0c14edb58352b795ae2e881aae6ea", "isLeftNode":false }, { "nodeValue":"d1e1fd84888e4c3f28d5d7ee9da75660aa1eda85db6528ee86583040233b8a42", "isLeftNode":true }, { "nodeValue":"49adbcbbd45b9981e99efb677583b15fba8f67b27bbdd64a25bdba51004dc5e1", "isLeftNode":true }, { "nodeValue":"380992d2d899d77d44ec5486bbff08de75324acf1b39c44bef69de1f38efc66d", "isLeftNode":false }, { "nodeValue":"47616f636a073dbcc0830e4c705cad2884068ab6207a9b49e00b32cf828269e1", "isLeftNode":false }, { "nodeValue":"838d38dfdb6bb2fc95832cb39a9ec79292ff4c83c1fb90956b12e2602c4e451a", "isLeftNode":false }, { "nodeValue":"82efd57187245d8556da205ed624152448af6acc898044c2a2d5f448d4ec48a7", "isLeftNode":false }, { "nodeValue":"04dcf4fb054ecce015fbca2df8bb6f1d707b546afa2bb58ff982d66da4d8d85d", "isLeftNode":false }, { "nodeValue":"718933da4a542da6fb42713aadf36b337ea3c441acb24327d5c7b5225c7b84fa", "isLeftNode":false }, { "nodeValue":"d7acea582ba45a6176d945f068e8e71478b8080dfdfb05552b2f98ec504f31f1", "isLeftNode":true } ], "txOutputs":[ { "lockingScript":"76a91475755dec5d19e9c384230d7763ce394414b7491a88ac", "value":1399520000, "address":"1Bi4fEqHbKBd5HPFtahcKzQCRo9Pab67F5", "outputIndex":0, "txSpendInfo":{ "spendData":[ { "spendingOutputIndex":0, "value":199400000, "outputAddress":"15E6hRrZs3naQorugyqnvRU47eq9zxtRKH" }, { "spendingOutputIndex":1, "value":1320836457, "outputAddress":"1AXaNh5r1osryWH7XGGsvdh3CTEfyM5svy" } ], "spendingBlockHash":"000000000000035a639c789236ea9732ba393cf5176ba2ea000679f76fdd4798", "spendingBlockHeight":224521, "spendingTxId":"665bbdc783747ab4c92bcb687a58a90c5e735502339c493672feead5d171a810", "spendingTxIndex":2 } }, { "lockingScript":"76a914cc471a7e93ac919b0a6dd1283d120fe0570e41b388ac", "value":280000, "address":"1Kd82VTxeWp6hQvPwcQ2DF8RYYz2ez1U16", "outputIndex":1, "txSpendInfo":null } ], "blockHeight":224252, "txId":"3eb24bd76c1077a2d3e664c8a67a9dcc72d5d5828790c48a0bd9d68c44208883" }, { "txIndex":4, "size":226, "fees":0, "blockHash":"0000000000000385b4911c5720994f72765bb9d7ca9c340d5fb498cb99fd0467", "txSerialized":"H4sIAAAAAAAAA2NkYGBgNJjlJ7U0WrBoUmB9040thSeWL+f6Ysb+8ZmMOmu93R3d5YxARdkeBq5MCnLL87abzNXMs4hr/FFlW2KkUc9yae6h8hu1OhwKDhaTZzApMpy1eSygXvDbcML8zJUTnK8duhS52mKRwI3PeZpfymuTVjxkVGS+lSv/4hR/8GLzLC7Lx+kev77nK+rsuWHopFgk9PPXDou4/0DA1JC2WhhoL4Nk2UqRQu2Q068We2tdFOhWPchV4OPr0h/YsYbh4VdWmAqlmbKTH6jdWMS4n+l7lFesou8r/1igCiAAABDsr9jiAAAA", "txInputs":[ { "unlockingScript":"48304502201ea76eb7349d296e385e81f87a3d7432287f04d29dc277d87d2c082040389398022100cd3ce3102770fb31909f69a99043d6c2d259ab38a210d8f36e29f4777d62a8e1012103da6d1fe8ca0f53a3376a0a39e36748faf76f212cbcd83142217212f9fab8385e", "outpointTxID":"a72ddc3e7f05271ce6f10736f40aa7a7c871b4d8827f519272115ba51a4e9a30", "value":430000000, "address":"1NvFoa2RLGmDifXm4sEs2y89dmPGdRkk5k", "txInputIndex":0, "outpointIndex":1 } ], "merkleBranch":[ { "nodeValue":"a3d03b75a8732c6f5bf87b8052e549fadddea22ec46ce39f217282f3ab50a6a5", "isLeftNode":false }, { "nodeValue":"dd6829cdbc8e21399839fa6d8d3156d3bf7860aab8321271bed600ae28affc60", "isLeftNode":false }, { "nodeValue":"49adbcbbd45b9981e99efb677583b15fba8f67b27bbdd64a25bdba51004dc5e1", "isLeftNode":true }, { "nodeValue":"380992d2d899d77d44ec5486bbff08de75324acf1b39c44bef69de1f38efc66d", "isLeftNode":false }, { "nodeValue":"47616f636a073dbcc0830e4c705cad2884068ab6207a9b49e00b32cf828269e1", "isLeftNode":false }, { "nodeValue":"838d38dfdb6bb2fc95832cb39a9ec79292ff4c83c1fb90956b12e2602c4e451a", "isLeftNode":false }, { "nodeValue":"82efd57187245d8556da205ed624152448af6acc898044c2a2d5f448d4ec48a7", "isLeftNode":false }, { "nodeValue":"04dcf4fb054ecce015fbca2df8bb6f1d707b546afa2bb58ff982d66da4d8d85d", "isLeftNode":false }, { "nodeValue":"718933da4a542da6fb42713aadf36b337ea3c441acb24327d5c7b5225c7b84fa", "isLeftNode":false }, { "nodeValue":"d7acea582ba45a6176d945f068e8e71478b8080dfdfb05552b2f98ec504f31f1", "isLeftNode":true } ], "txOutputs":[ { "lockingScript":"76a914712b54cbeaa34b2ad1108b25c10a704c4d448f5188ac", "value":330000000, "address":"1BKPGPGYkUrCxcxycVw3MBqNEFB6vZK4sf", "outputIndex":0, "txSpendInfo":{ "spendData":[ { "spendingOutputIndex":0, "value":3000000000, "outputAddress":"1M6PXvC4TeoWykbARDpEC1qMnATYBViRUR" } ], "spendingBlockHash":"000000000000011bedc2ba86978257f8986ec69b326ed93b6e7fd9288cac7a25", "spendingBlockHeight":225683, "spendingTxId":"6d7f1205ce37d858045ec9480337fdd203db7f1f75b4777c230058c2527924a7", "spendingTxIndex":7 } }, { "lockingScript":"76a91422991d93e026d8a201bf02f75a4a5d214dea4f5d88ac", "value":100000000, "address":"149wQBE4xE17mC76quN6e9dsVSXwKsUDwa", "outputIndex":1, "txSpendInfo":{ "spendData":[ { "spendingOutputIndex":0, "value":1129950000, "outputAddress":"1Jnugvp1ZwqJupzC5TuquJqrDbfFMqjpY9" } ], "spendingBlockHash":"000000000000037f4ea031f8bf0c997a0a52232cc0fe632327d98edbe572318e", "spendingBlockHeight":224279, "spendingTxId":"2e8747bf231ee192aea9c67de431134d3103d295634361d8da6ab91fe75be84d", "spendingTxIndex":0 } } ], "blockHeight":224252, "txId":"4777a10eae2b97d9481a07a46fafe2764ced2bf2d96eaa6eff38e149a02ac698" } ] }
Request JSON structure:
Response JSON structure:
{ "id":7, "jsonrpc":"2.0", "method":"[TXID]->[RAWTX]", "params":{ "sessionKey":"<Session-Key>", "methodParams":{ "gtRTxHashes":[ "3eb24bd76c1077a2d3e664c8a67a9dcc72d5d5828790c48a0bd9d68c44208883", "4777a10eae2b97d9481a07a46fafe2764ced2bf2d96eaa6eff38e149a02ac698" ] } } }
{ "rawTxs":[ { "txIndex":6, "size":258, "fees":50000, "blockHash":"0000000000000385b4911c5720994f72765bb9d7ca9c340d5fb498cb99fd0467", "txSerialized":"H4sIAAAAAAAAA2NkYGBgvFjFcCFZrnjdvnnNFe73NGoWec6pM8z47flZrV9OfFnSAkagom4PA1cmBYbkT5FVzjc2CG7QibPdv1st0OFg80e7mhvPJ+j2fp/snMKkyHB2u5773Kk/l1ovij/lv//J06q0C8ZyM/dV3Mu2+X5AKPoroyNLmkvA+63sM6Ki7H5P+ZXXYaDxNVta6t/tVT3WXce+dZU+y7a+c2qWzaLPH5w3ZeqU/Nh3XOJ7Y9r0Jf+fXv8pzVj1MOA/EDAx/M4KBrqLQbJspUhpaeybWMmXh1uUecuTz1m6iGz3lOpYc8CVhQGm4oy7VN3kNRNnc+Ve1LAV4n8Qzue4uWMNSBYAw32bggIBAAA=", "txInputs":[ { "unlockingScript":"48304502200063f2597a43d8b011b02c5e3dbfbb265140c183f13e7cd8e7902d8df7934364022100cdb72e479d95f9a53ba25fca4fbfe4e57a66d0331e99be78de6b3cf7c0125bf5014104664450efb507985a5a3efb94fa6e883028f56b1b1afedbaa8c3b8ac6f68a75e66b3bdcca9a3ca2f3f043b2692c74f8bec718f7816697a4ffe5d7f91b017ae150", "outpointTxID":"a062a6171e8f26f349fb68317e9c49a27c28de4778839ebeae731e63d0007ad1", "value":1399850000, "address":"1L7ELstBNnu8niYTugPYG8oMqNasYBJ8G5", "txInputIndex":0, "outpointIndex":1 } ], "merkleBranch":[ { "nodeValue":"5e8c816bce4c13f1d891bb4679713d2713e0c14edb58352b795ae2e881aae6ea", "isLeftNode":false }, { "nodeValue":"d1e1fd84888e4c3f28d5d7ee9da75660aa1eda85db6528ee86583040233b8a42", "isLeftNode":true }, { "nodeValue":"49adbcbbd45b9981e99efb677583b15fba8f67b27bbdd64a25bdba51004dc5e1", "isLeftNode":true }, { "nodeValue":"380992d2d899d77d44ec5486bbff08de75324acf1b39c44bef69de1f38efc66d", "isLeftNode":false }, { "nodeValue":"47616f636a073dbcc0830e4c705cad2884068ab6207a9b49e00b32cf828269e1", "isLeftNode":false }, { "nodeValue":"838d38dfdb6bb2fc95832cb39a9ec79292ff4c83c1fb90956b12e2602c4e451a", "isLeftNode":false }, { "nodeValue":"82efd57187245d8556da205ed624152448af6acc898044c2a2d5f448d4ec48a7", "isLeftNode":false }, { "nodeValue":"04dcf4fb054ecce015fbca2df8bb6f1d707b546afa2bb58ff982d66da4d8d85d", "isLeftNode":false }, { "nodeValue":"718933da4a542da6fb42713aadf36b337ea3c441acb24327d5c7b5225c7b84fa", "isLeftNode":false }, { "nodeValue":"d7acea582ba45a6176d945f068e8e71478b8080dfdfb05552b2f98ec504f31f1", "isLeftNode":true } ], "txOutputs":[ { "lockingScript":"76a91475755dec5d19e9c384230d7763ce394414b7491a88ac", "value":1399520000, "address":"1Bi4fEqHbKBd5HPFtahcKzQCRo9Pab67F5", "outputIndex":0, "txSpendInfo":{ "spendData":[ { "spendingOutputIndex":0, "value":199400000, "outputAddress":"15E6hRrZs3naQorugyqnvRU47eq9zxtRKH" }, { "spendingOutputIndex":1, "value":1320836457, "outputAddress":"1AXaNh5r1osryWH7XGGsvdh3CTEfyM5svy" } ], "spendingBlockHash":"000000000000035a639c789236ea9732ba393cf5176ba2ea000679f76fdd4798", "spendingBlockHeight":224521, "spendingTxId":"665bbdc783747ab4c92bcb687a58a90c5e735502339c493672feead5d171a810", "spendingTxIndex":2 } }, { "lockingScript":"76a914cc471a7e93ac919b0a6dd1283d120fe0570e41b388ac", "value":280000, "address":"1Kd82VTxeWp6hQvPwcQ2DF8RYYz2ez1U16", "outputIndex":1, "txSpendInfo":null } ], "blockHeight":224252, "txId":"3eb24bd76c1077a2d3e664c8a67a9dcc72d5d5828790c48a0bd9d68c44208883" }, { "txIndex":4, "size":226, "fees":0, "blockHash":"0000000000000385b4911c5720994f72765bb9d7ca9c340d5fb498cb99fd0467", "txSerialized":"H4sIAAAAAAAAA2NkYGBgNJjlJ7U0WrBoUmB9040thSeWL+f6Ysb+8ZmMOmu93R3d5YxARdkeBq5MCnLL87abzNXMs4hr/FFlW2KkUc9yae6h8hu1OhwKDhaTZzApMpy1eSygXvDbcML8zJUTnK8duhS52mKRwI3PeZpfymuTVjxkVGS+lSv/4hR/8GLzLC7Lx+kev77nK+rsuWHopFgk9PPXDou4/0DA1JC2WhhoL4Nk2UqRQu2Q068We2tdFOhWPchV4OPr0h/YsYbh4VdWmAqlmbKTH6jdWMS4n+l7lFesou8r/1igCiAAABDsr9jiAAAA", "txInputs":[ { "unlockingScript":"48304502201ea76eb7349d296e385e81f87a3d7432287f04d29dc277d87d2c082040389398022100cd3ce3102770fb31909f69a99043d6c2d259ab38a210d8f36e29f4777d62a8e1012103da6d1fe8ca0f53a3376a0a39e36748faf76f212cbcd83142217212f9fab8385e", "outpointTxID":"a72ddc3e7f05271ce6f10736f40aa7a7c871b4d8827f519272115ba51a4e9a30", "value":430000000, "address":"1NvFoa2RLGmDifXm4sEs2y89dmPGdRkk5k", "txInputIndex":0, "outpointIndex":1 } ], "merkleBranch":[ { "nodeValue":"a3d03b75a8732c6f5bf87b8052e549fadddea22ec46ce39f217282f3ab50a6a5", "isLeftNode":false }, { "nodeValue":"dd6829cdbc8e21399839fa6d8d3156d3bf7860aab8321271bed600ae28affc60", "isLeftNode":false }, { "nodeValue":"49adbcbbd45b9981e99efb677583b15fba8f67b27bbdd64a25bdba51004dc5e1", "isLeftNode":true }, { "nodeValue":"380992d2d899d77d44ec5486bbff08de75324acf1b39c44bef69de1f38efc66d", "isLeftNode":false }, { "nodeValue":"47616f636a073dbcc0830e4c705cad2884068ab6207a9b49e00b32cf828269e1", "isLeftNode":false }, { "nodeValue":"838d38dfdb6bb2fc95832cb39a9ec79292ff4c83c1fb90956b12e2602c4e451a", "isLeftNode":false }, { "nodeValue":"82efd57187245d8556da205ed624152448af6acc898044c2a2d5f448d4ec48a7", "isLeftNode":false }, { "nodeValue":"04dcf4fb054ecce015fbca2df8bb6f1d707b546afa2bb58ff982d66da4d8d85d", "isLeftNode":false }, { "nodeValue":"718933da4a542da6fb42713aadf36b337ea3c441acb24327d5c7b5225c7b84fa", "isLeftNode":false }, { "nodeValue":"d7acea582ba45a6176d945f068e8e71478b8080dfdfb05552b2f98ec504f31f1", "isLeftNode":true } ], "txOutputs":[ { "lockingScript":"76a914712b54cbeaa34b2ad1108b25c10a704c4d448f5188ac", "value":330000000, "address":"1BKPGPGYkUrCxcxycVw3MBqNEFB6vZK4sf", "outputIndex":0, "txSpendInfo":{ "spendData":[ { "spendingOutputIndex":0, "value":3000000000, "outputAddress":"1M6PXvC4TeoWykbARDpEC1qMnATYBViRUR" } ], "spendingBlockHash":"000000000000011bedc2ba86978257f8986ec69b326ed93b6e7fd9288cac7a25", "spendingBlockHeight":225683, "spendingTxId":"6d7f1205ce37d858045ec9480337fdd203db7f1f75b4777c230058c2527924a7", "spendingTxIndex":7 } }, { "lockingScript":"76a91422991d93e026d8a201bf02f75a4a5d214dea4f5d88ac", "value":100000000, "address":"149wQBE4xE17mC76quN6e9dsVSXwKsUDwa", "outputIndex":1, "txSpendInfo":{ "spendData":[ { "spendingOutputIndex":0, "value":1129950000, "outputAddress":"1Jnugvp1ZwqJupzC5TuquJqrDbfFMqjpY9" } ], "spendingBlockHash":"000000000000037f4ea031f8bf0c997a0a52232cc0fe632327d98edbe572318e", "spendingBlockHeight":224279, "spendingTxId":"2e8747bf231ee192aea9c67de431134d3103d295634361d8da6ab91fe75be84d", "spendingTxIndex":0 } } ], "blockHeight":224252, "txId":"4777a10eae2b97d9481a07a46fafe2764ced2bf2d96eaa6eff38e149a02ac698" } ] }
Broadcast Raw Transaction
Request JSON structure:
Response JSON structure:
curl -X POST -H "Authorization: Bearer <Session-Key>" -H "Content-type: application/json" -d '{ "rawTx": "H4sIAAAAAAACA2NkYGBg+nv/4u8f7LrTHcL8FtlyKK34HBt0KyKh/FiCTMntjulT/7IAFXW5G7gwKSSc+rhg4hpBqQOWZ/XXR1XcC+Uyb0z70HbcwP7pfR6pq2pMCnkanHW7eY99b9zxh3WhSEs9O5OtwpOzIUe+bo4/83zVrGuMjiwLUyz1j8wP+W/Btk2j1qMqXO/1Lv0qL/603sMXJ3088qSil6f/nuPaQ75OPlO3aPNp7ew43P/sWfuELZKdWnuf7F4v+B8ILFbJf8mMnVy7Jb2g9ebf6/8MZmqzbs1zTDf4u+Qhy4xzgQxwJ8vNyJPdecjL0LDUp7I6vbN5ifNPY5d87fWRSizh/0OynjApuFbdDazZXNj9/+CxCVbFWfODXRSNhTtu7+xfbbZ9yvN7flRyMhsDFExkyOJ3zMlJTc8vqtQHMgISK31qWxgYGyWiWxmaGBiagQRjYzNDRkR+dmpegFFARnF+bmppUaZhI0iKCZuUUVMzWB8zNkljifRmRpAsCzZZE4kMByd+sMvEV4qsnO7IsO7ddC+FsysXfXUt8OLa6n+n3YGXGSZfKxxS6vLm4Ke+Wzzsae/9NoncE3CluTxIDgBSJZnLqgIAAA=="}' -k 'https://<domain-name>:<port-number>/v1/relaytx'
{ "txBroadcast":true }
Request JSON structure:
Response JSON structure:
{ "id":14, "jsonrpc":"2.0", "method":"RELAY_TX", "params":{ "sessionKey":"<Session-Key>", "methodParams":{ "rawTx":"H4sIAAAAAAACA2NkYGBg+nv/4u8f7LrTHcL8FtlyKK34HBt0KyKh/FiCTMntjulT/7IAFXW5G7gwKSSc+rhg4hpBqQOWZ/XXR1XcC+Uyb0z70HbcwP7pfR6pq2pMCnkanHW7eY99b9zxh3WhSEs9O5OtwpOzIUe+bo4/83zVrGuMjiwLUyz1j8wP+W/Btk2j1qMqXO/1Lv0qL/603sMXJ3088qSil6f/nuPaQ75OPlO3aPNp7ew43P/sWfuELZKdWnuf7F4v+B8ILFbJf8mMnVy7Jb2g9ebf6/8MZmqzbs1zTDf4u+Qhy4xzgQxwJ8vNyJPdecjL0LDUp7I6vbN5ifNPY5d87fWRSizh/0OynjApuFbdDazZXNj9/+CxCVbFWfODXRSNhTtu7+xfbbZ9yvN7flRyMhsDFExkyOJ3zMlJTc8vqtQHMgISK31qWxgYGyWiWxmaGBiagQRjYzNDRkR+dmpegFFARnF+bmppUaZhI0iKCZuUUVMzWB8zNkljifRmRpAsCzZZE4kMByd+sMvEV4qsnO7IsO7ddC+FsysXfXUt8OLa6n+n3YGXGSZfKxxS6vLm4Ke+Wzzsae/9NoncE3CluTxIDgBSJZnLqgIAAA==" } } }
{ "txBroadcast":true }
Get Spend Status by Outpoint
Request JSON structure:
Response JSON structure:
curl -X GET -H "Authorization: Bearer <Session-Key>" -k 'https://<domain-name>:<port-number>/v1/transaction/920e20148b0cdf48d6abe5e70306c52708428615b3f39c24e2f83c21b1ae7eaa/index/0'
{ "spendStatus":{ "spendingTxBlockHt":20770, "isSpent":true, "spendingTxID":"cdfd2e9b4ba6d086f4281699bb34f4398697c2fab699a2be0a591ede351b3947", "spendingTxIndex":97 } }
Request JSON structure:
Response JSON structure:
{ "id":15, "jsonrpc":"2.0", "method":"OUTPOINT->SPEND_STATUS", "params":{ "sessionKey":"<Session-Key>", "methodParams":{ "txid":"920e20148b0cdf48d6abe5e70306c52708428615b3f39c24e2f83c21b1ae7eaa", "index":0 } } }
{ "spendStatus":{ "spendingTxBlockHt":20770, "isSpent":true, "spendingTxID":"cdfd2e9b4ba6d086f4281699bb34f4398697c2fab699a2be0a591ede351b3947", "spendingTxIndex":97 } }
Get Transactions By Protocol
Request JSON structure:
Response JSON structure:
curl 'https://<domain-name>:<port-number>/v1/transactions/protocol/50bf07b760b70bab3583f1134b16e4e3c89c39264ff73110cb9b3d321119b0f92c20be4bfc91eaf59f3ef49b65272cee0d92d7e1a598ce21fd8f83084ae65af9605b76430be1db59f257467c?prop2=439b0453&pagesize=10&cursor=' -H 'Accept: application/json, text/plain, _/_' -H 'Authorization: Bearer <session-key>' --insecure
{ "nextCursor":"684515000000126", "ptxs":[ { "tx":{ "txInps":[ { "unlockingScript":"0047304402202834d4d853c406c3861bd84a3a27755fd291c57953fc9b26bb3e58e4798a4e5a022027eb93329719b0a2dc10e4545fddea94cf38b9b0b1a4b517a6412905a5c56c31014df3015121035f1abe28267a09cec440a317bcf335b27da3faf4fb8399f53862ef99e58b37c1410416feda4bf0baf2e2d3c8cba93b62221f2fddb4c972127c62bac0d85af2e3d91901b7ba4a5830735bf94c98dd45011ab3b73ec37c871cb1b8cb9c8ccb832c0eda4104dd92ee485d960f7b25d797e0ddb6786dc6c5791f9608f2c3d7cb52025d90772603c4979f0d5d8ea70c9476093fb6e971f2192bb7b38f3e443b65791d48f2eb604104421ce420edebd97b6dec7967f10d8e0cf1f314752c9e5ed83260c83889ec3b85c0dbaf635e58a30964642076f7b03f631817a83bedb71147b2d59317ecc8c27f41042ddee9933b797fb6e4193241f8b77efd9f7f1c42d2dc397e17284919391a1740941d8c5d9feee0419cb59b6486b39ecf5b7f2e59632d2e5b70b84bf096e3f0bf4104f3a7d3c9f8ae1db75e4b194396adff00886c9e4bf2748eb067088cc3d8eaebadfe2e859221242d2c131997827dbfdc6dc900b1edaf6f221ef2f518e436c9eca141040ddde025606126b1d32e18c6d2ceedd7b74e5b4831df641c8cfcf801b1e4324decfb042b88b558feac7b3c392335b3b219d363328fb640e41d9076ff001253b24104944e631aecaf969ec4dec863482e19c71045651e5dced93cf2d16fa90968b4e91f174e5acec6bd8f621d606f25d947647f6e3cb374b5b75eda3ac4017587f2cb58ae", "outpointTxID":"a57553739b9caaca55708122f8dbe3390dcb12034096f729312a64fa9d9dabbf", "value":47830000, "address":"2MyAwZtFKfPg8PfEdxoYY6WCHtEQ8i4VMET", "txInputIndex":0, "outpointIndex":0 } ], "txVersion":1, "txLockTime":0, "txOuts":[ { "lockingScript":"a91467a2bf6e9bb1f53e7504a55f0d0bf9b4e3e42d2a87", "value":47800000, "address":"2N2hCYxSCsQe9ZChZT35BcuDCcprGWm5q6Z", "outputIndex":0, "txSpendInfo":{ "spendData":[ { "spendingOutputIndex":0, "value":47770000, "outputAddress":"2N8d9p8CMi57zxufRjYBGEJ3KvTKEU5kBEH" }, { "spendingOutputIndex":1, "value":0, "outputAddress":"" } ], "spendingBlockHash":"00000000002390cccfa015ec57bcf776d51917230e245a9e1672ce2501249d03", "spendingBlockHeight":684515, "spendingTxId":"969422f65690f563fed1373510dd76db3b89e19bd130b957c5af74c8b41eb18a", "spendingTxIndex":0 } }, { "lockingScript":"6a4c50bf07b760b70bab3583f1134b16e4e3c89c39264ff73110cb9b3d321119b0f92c20be4bfc91eaf59f3ef49b65272cee0d92d7e1a598ce21fd8f83084ae65af9605b76430be1db59f257467c3e439b0453", "value":0, "address":"", "outputIndex":1, "txSpendInfo":null } ] }, "txIndex":126, "size":752, "fees":30000, "blockHash":"00000000002390cccfa015ec57bcf776d51917230e245a9e1672ce2501249d03", "merkleBranch":[ { "nodeValue":"969422f65690f563fed1373510dd76db3b89e19bd130b957c5af74c8b41eb18a", "isLeftNode":false }, { "nodeValue":"f6938e8fe0aac314150237a73b91f305b67087edeb935d5e39d7db5be2592a81", "isLeftNode":true }, { "nodeValue":"b34e6126c5ae475b1850f5cb9dbd67fd9cb917e64667d77a8f664035aebf898c", "isLeftNode":true }, { "nodeValue":"d57561a8574f46c56a97fe0e9349441a11df9f416098f7b0a54bb00aefd85ca3", "isLeftNode":true }, { "nodeValue":"6896c175d9fda6ad6f7c08a2c1571b50e06a14bb71de75483c7c3bdda54f3697", "isLeftNode":true }, { "nodeValue":"eddbb9cb931bc4d3c38963fbebc2f038f66c1305a30bc4a2545d9f5c90780b04", "isLeftNode":true }, { "nodeValue":"51742f3d9f3e1c55705d890e04d2e33810893c4489617a494290d21379dc5be5", "isLeftNode":true }, { "nodeValue":"a79aae464f02df70b2e2a6b334421473548cf64858409caf16f8aa7f7c9c0488", "isLeftNode":false }, { "nodeValue":"8c2fc4321db5ab5087d9fd6dd8992bf1f7f8a9ce942ca60892af81c367365199", "isLeftNode":true } ], "blockHeight":684515, "txId":"1f35804ccb98e87988c9ffc616f7aa4ea94e5ecf44004469a7195e751dbf3ed3" } ] }
Get Transactions By Protocols
Request JSON structure:
Response JSON structure:
curl 'https://<domain-name>:<port-number>/v1/transactions/protocols?protocol=0000000000000000000000000000000000000000000000000000ffff00000000&protocol=50bf07b760b70bab3583f1134b16e4e3c89c39264ff73110cb9b3d321119b0f92c20be4bfc91eaf59f3ef49b65272cee0d92d7e1a598ce21fd8f83084ae65af9605b76430be1db59f257467c?prop2=439b0453&pagesize=1&cursor=350141000000000' -H 'Accept: application/json, text/plain, */*' -H 'Authorization: Bearer <session-key>' --insecure
{ "nextCursor": "350142000000000", "ptxs": [ { "tx": { "txInps": [ { "unlockingScript": "03be5705062f503253482f", "outpointTxID": "0000000000000000000000000000000000000000000000000000000000000000", "value": 2500000000, "address": "", "txInputIndex": 0, "outpointIndex": -1 } ], "txVersion": 1, "txLockTime": 0, "txOuts": [ { "lockingScript": "a9149ed73b5d79de2faed9ba58bbee2319bbc1fdcef187", "value": 2500122000, "address": "2N7j6bAfPSPQkpDtBejECBtFSUgicbKVP9t", "outputIndex": 0, "txSpendInfo": null }, { "lockingScript": "6a17a9144d8af3adedc43c0cc523e84835f3870821b990f387", "value": 0, "address": "", "outputIndex": 1, "txSpendInfo": null }, { "lockingScript": "6a200000000000000000000000000000000000000000000000000000ffff00000000", "value": 0, "address": "", "outputIndex": 2, "txSpendInfo": null }, { "lockingScript": "6a102624e0644414050011c07d8007000000", "value": 0, "address": "", "outputIndex": 3, "txSpendInfo": null } ] }, "txIndex": 0, "size": 198, "fees": 0, "blockHash": "00000000e79af2d0a94f25a70146b55ac7345d2086124d6f80c3a907bafb010a", "merkleBranch": [ { "nodeValue": "b48568913ff20daee5b9f19eef4d713ee8c41fc1f3bbf38184f7f136a3f3fda7", "isLeftNode": false }, { "nodeValue": "418fa4183030889c0362c79ed24ad410ed6ad62da9114db4b448f280bb7c523d", "isLeftNode": false }, { "nodeValue": "e7c6aeb418ae4d98e1d141510d67c5a538881fc437f7aba36ed972fb9880d191", "isLeftNode": false }, { "nodeValue": "5dd4bca63afda73d5f30c289ab4b14cdad15d5e5d68e2fd8455f76d9acd0b3e8", "isLeftNode": false }, { "nodeValue": "bf8add81ca8dafaefbbc2e5dce8c101ad69c21026c13b6d10c2643e5890ff9fb", "isLeftNode": true } ], "blockHeight": 350142, "txId": "8e25b00ec975f58d2203da6ced427ff0c7f0abca9f72175cc03423c32426e389" } ] }
Get Outputs by Address
Request JSON structure:
Response JSON structure:
curl -X GET -H "Authorization: Bearer <Session-Key>" -k 'https://<domain-name>:<port-number>/v1/address/18TLpiL4UFwmQY8nnnjmh2um11dFzZnBd9/outputs/?pagesize=2'
{ "nextCursor":"69593000000001", "outputs":[ { "spendInfo":{ "spendData":[ { "spendingOutputIndex":0, "value":1645000000, "outputAddress":"1LUobC1AboEqATqAzpoFXYUHuJXCqsHQYf" }, { "spendingOutputIndex":1, "value":5000000, "outputAddress":"1EB4CsyQmpAQ3CRc55Xy517F3MFHpZXb7s" } ], "spendingBlockHash":"0000000000dad95bbfa80486bd8d98fd06c88dafc997ee69453cbbf101cb099f", "spendingBlockHeight":69602, "spendingTxId":"f1f098abe83e48db094a1c40fc4ef92d256baca51792be709364a12db91e3ec3", "spendingTxIndex":0 }, "txIndex":1, "prevOutpoint":[ [ { "opTxHash":"fa62911629287fbee469347230720f779e6642936f490c6985168ee93a8d5cab", "opIndex":1 }, 0, 1655000000 ] ], "value":1650000000, "blockHash":"00000000000aca66edb3a6bbb6c2c408cdef66b863992e452f7127e1467ca584", "address":"18TLpiL4UFwmQY8nnnjmh2um11dFzZnBd9", "outputIndex":1, "blockHeight":69593, "outputTxHash":"3e0c3f43bb1e8aaae2aaf1fd8668e66b053ce62dc91ce544298bdb7da9aae152" } ] }
Request JSON structure:
Response JSON structure:
{ "id":8, "jsonrpc":"2.0", "method":"ADDR->[OUTPUT]", "params":{ "sessionKey":"<Session-key>", "methodParams":{ "gaAddrOutputs":"18TLpiL4UFwmQY8nnnjmh2um11dFzZnBd9", "gaPageSize":2 } } }
{ "nextCursor":"69593000000001", "outputs":[ { "spendInfo":{ "spendData":[ { "spendingOutputIndex":0, "value":1645000000, "outputAddress":"1LUobC1AboEqATqAzpoFXYUHuJXCqsHQYf" }, { "spendingOutputIndex":1, "value":5000000, "outputAddress":"1EB4CsyQmpAQ3CRc55Xy517F3MFHpZXb7s" } ], "spendingBlockHash":"0000000000dad95bbfa80486bd8d98fd06c88dafc997ee69453cbbf101cb099f", "spendingBlockHeight":69602, "spendingTxId":"f1f098abe83e48db094a1c40fc4ef92d256baca51792be709364a12db91e3ec3", "spendingTxIndex":0 }, "txIndex":1, "prevOutpoint":[ [ { "opTxHash":"fa62911629287fbee469347230720f779e6642936f490c6985168ee93a8d5cab", "opIndex":1 }, 0, 1655000000 ] ], "value":1650000000, "blockHash":"00000000000aca66edb3a6bbb6c2c408cdef66b863992e452f7127e1467ca584", "address":"18TLpiL4UFwmQY8nnnjmh2um11dFzZnBd9", "outputIndex":1, "blockHeight":69593, "outputTxHash":"3e0c3f43bb1e8aaae2aaf1fd8668e66b053ce62dc91ce544298bdb7da9aae152" } ] }
Get Outputs by Addresses
Request JSON structure:
Response JSON structure:
curl -X GET -H "Authorization: Bearer <Session-Key>" -k 'https://<domain-name>:<port-number>/v1/addresses/outputs/?address=1GXRNe36nJinKjFWcknnGH3VpDj5hh5AYv&address=19irWGAyKawyFUNvgXEKGKUuAdtpDyXd1b/?pagesize=5'
{ "nextCursor":"152511000000000", "outputs":[ { "spendInfo":{ "spendData":[ { "spendingOutputIndex":0, "value":72899750, "outputAddress":"1CUc22NW6aYRSBh1yL9xYLZteeXjyfd1aC" }, { "spendingOutputIndex":1, "value":83653466, "outputAddress":"1TMrFYsePXBkQ4dSA8VdYpGyC13kcuGGd" }, { "spendingOutputIndex":2, "value":102801725, "outputAddress":"1AAAA1inoADZAF6wJtrvcZLT2nVwt5Zzuo" }, { "spendingOutputIndex":3, "value":105041490, "outputAddress":"1FgWsVb6dGEWZ4zxzpfEWHGUa3yv2Kvfrn" }, { "spendingOutputIndex":4, "value":116451563, "outputAddress":"1DPF1CEZpy9LzAPdb5tAvhhYdorPKARwZn" }, { "spendingOutputIndex":5, "value":160466340, "outputAddress":"1BsQDpBonj14pZ8iGxPA8aK5YJh4DWdt6c" }, { "spendingOutputIndex":6, "value":166093230, "outputAddress":"1MgVcvcy9RwhWbcnq6htSJcnuUbFCDtW7a" }, { "spendingOutputIndex":7, "value":176575784, "outputAddress":"1A415qpUH17p4soRAv7E3BBcmfuQseir1s" }, { "spendingOutputIndex":8, "value":224597357, "outputAddress":"17mgm8rGyz4cRbXpddxa4Kuxi9KSiASVUF" }, { "spendingOutputIndex":9, "value":5276736655, "outputAddress":"1FGNrRbpWkqwYz9rWXR8UD2boHVfkLgeQg" }, { "spendingOutputIndex":10, "value":83145304, "outputAddress":"1AWGTKugYU16jLRrLVhYCV8q3hCHL5yVwh" }, { "spendingOutputIndex":11, "value":91323457, "outputAddress":"1JtioUp4X13d6NPa55CHb3JiKMUJ799pgo" }, { "spendingOutputIndex":12, "value":180336453, "outputAddress":"1PzV9kHvB2vU3np2Ei1YxvPAS8HZppJ5UX" }, { "spendingOutputIndex":13, "value":314102672, "outputAddress":"1Pyx7iysfsEH4A2ZUQnhrZVK88KnnDdZxW" }, { "spendingOutputIndex":14, "value":356954800, "outputAddress":"1K1d1DoqsT7ifenaZqBRyRCB28EocdwJ5M" }, { "spendingOutputIndex":15, "value":367530166, "outputAddress":"1NXk9vEKg8LkcHtHwuZTPhFbUDS6L5Gy29" }, { "spendingOutputIndex":16, "value":383528484, "outputAddress":"1MuyR4bbFqrPoQjrj5n3BK6uNWCWhVU8rN" }, { "spendingOutputIndex":17, "value":491830763, "outputAddress":"14D3pLQPRNs3XEe2JceDzBDyfXCdK26YuB" }, { "spendingOutputIndex":18, "value":961140475, "outputAddress":"1L647iNoWnzFmEsyV12YQTxNwtm5Xmu1PY" }, { "spendingOutputIndex":19, "value":2024569784, "outputAddress":"1E7cYXQx8upvFRw3kaikP8tQKMeFqFMJ86" }, { "spendingOutputIndex":20, "value":105103911, "outputAddress":"1FMkxsZQV1n16CbF6m7GktuFpUseoWZqyz" }, { "spendingOutputIndex":21, "value":129488372, "outputAddress":"1BxBhZcSfsjwwxpKgEHDpXYD6MACWJramV" }, { "spendingOutputIndex":22, "value":143287928, "outputAddress":"1DtJbAES7pFp1gRYGNy76W4ugfb9vG15S1" }, { "spendingOutputIndex":23, "value":159276395, "outputAddress":"1Hr3B7SqKTPbYUWa1wYWG2PKpWn4TMZwKm" }, { "spendingOutputIndex":24, "value":191722612, "outputAddress":"1D6bCS1oRd26yq6Qdpn4oqGdNxYWnbBhh4" }, { "spendingOutputIndex":25, "value":192264626, "outputAddress":"15JVDn2Uz6gf2C1vbeYWwgVP476VdVmoRU" }, { "spendingOutputIndex":26, "value":199036166, "outputAddress":"1vXFL3Mq2gbRpknQAQUc5eKHxioF3gq64" }, { "spendingOutputIndex":27, "value":200035496, "outputAddress":"1KntYuDugU5mt9nfN2VcbZSyCj4rjAfuH9" }, { "spendingOutputIndex":28, "value":208480590, "outputAddress":"171E4WazFo51mgCZCVJoxqSmDz8vSFrxt6" }, { "spendingOutputIndex":29, "value":220282884, "outputAddress":"1Ggni2Txd9RCqutMufSopuTszsYcPP5Uj" }, { "spendingOutputIndex":30, "value":252656995, "outputAddress":"1LQr6YWFDjzgtKfjGbwzNr2nZpxXCt7XRh" }, { "spendingOutputIndex":31, "value":316017135, "outputAddress":"1PyeymUht8vb92WDAUfvTNi2X8ZRgsQj4Q" }, { "spendingOutputIndex":32, "value":356120798, "outputAddress":"15xiz9KQjG6oWcafNkNjvMmLcb4uUYm4kn" }, { "spendingOutputIndex":33, "value":367599760, "outputAddress":"1FChKAU1GeEghEn3mJ94ibaWp3goVq5eR7" }, { "spendingOutputIndex":34, "value":406063417, "outputAddress":"12CtoN1jVdVuk2YyuMyPUPwT9oGs2w7Qji" }, { "spendingOutputIndex":35, "value":617580506, "outputAddress":"1xXPfji6p6yEkgHKGvdes4m7iVe4MRFLW" }, { "spendingOutputIndex":36, "value":648844689, "outputAddress":"1GwGTpEmmskWehcHntDDA7i1sf2RULC426" }, { "spendingOutputIndex":37, "value":723025433, "outputAddress":"1Me1PjdzwWGHkfdEREBWgRH5iznW3b7XpW" }, { "spendingOutputIndex":38, "value":1233006559, "outputAddress":"1HGAnMXJjjytqSgT3mvRhZNUdMvBxPMXUZ" }, { "spendingOutputIndex":39, "value":1602611709, "outputAddress":"1i8HPL4wv6hA5HTb2PQ9tmXgQ4t4Rf5ha" }, { "spendingOutputIndex":40, "value":288808435, "outputAddress":"12k88XHsce99aYDoQUFL5NRukAwnqAZ1qH" }, { "spendingOutputIndex":41, "value":78128006, "outputAddress":"1KqrMi6ZQeYN8bRxMMNSxCvMWqna2vY1mu" }, { "spendingOutputIndex":42, "value":79572157, "outputAddress":"1GFHzkgMJdZcBHjmNvjXq8bQ3r7WgcTLPf" }, { "spendingOutputIndex":43, "value":81990513, "outputAddress":"1LeaepjzFzf7SMbiqczVq8sktDpnEAijjw" }, { "spendingOutputIndex":44, "value":84958602, "outputAddress":"15pcqXN7RAFKwVfyqne8ksG8dDTw5ombrQ" }, { "spendingOutputIndex":45, "value":84970511, "outputAddress":"1F9fDps3eg2cbLv4FRXzwjTxobT6UDvZAD" }, { "spendingOutputIndex":46, "value":86516434, "outputAddress":"12TJibnH3Fw9b5YU5vzSgGUMSKxXEq5Nj8" }, { "spendingOutputIndex":47, "value":92778051, "outputAddress":"13Sxh6WQvR2SZfyFro1ksuFmmfbj2d4vmo" }, { "spendingOutputIndex":48, "value":93081324, "outputAddress":"1GpzbRidy86mgtN8f4x6TWFZqCVcPY7T1J" }, { "spendingOutputIndex":49, "value":94252636, "outputAddress":"1LdEqSM1qbAndBWxanASBUpyVJmLUhYj2t" }, { "spendingOutputIndex":50, "value":98542202, "outputAddress":"1pR5EWDiR8Wrk9nzxLsjcGxHF47yqfXPm" }, { "spendingOutputIndex":51, "value":101184992, "outputAddress":"1LHupSFDGrDezN5kXwLwvQCZw68XUDK9oQ" }, { "spendingOutputIndex":52, "value":103032074, "outputAddress":"1LXXpzTNctMpYNoF4cuqMqBhbxfnaU6BzD" }, { "spendingOutputIndex":53, "value":109064228, "outputAddress":"1ATtHdYywwXYsbb4kGc82cZtGhPcch8VGr" }, { "spendingOutputIndex":54, "value":168461649, "outputAddress":"1AcpumrpKedzESGQFRutWreXhqjRcA2HDz" }, { "spendingOutputIndex":55, "value":169008346, "outputAddress":"1PCNvqWLA1ZKx7Vpr3jLS36ZYFsmQKSR3M" }, { "spendingOutputIndex":56, "value":206600689, "outputAddress":"1Kd9ypLmdNDaEuH6n334gzurFVtrBKecFo" }, { "spendingOutputIndex":57, "value":208373067, "outputAddress":"1M95QgsXrE2VqFeyZEXHthtbaKQcrfXUiA" }, { "spendingOutputIndex":58, "value":217937217, "outputAddress":"1Hc5AcmzDcSWsvoKs9BWr2sXEBMCcp7A4P" }, { "spendingOutputIndex":59, "value":218519032, "outputAddress":"1KYpHybsaBU1x2KpwLmbR7buSSncH7HHc3" }, { "spendingOutputIndex":60, "value":238201617, "outputAddress":"1CkJUZJZRDeP2JawffVr11yuv6kTLvbVBb" }, { "spendingOutputIndex":61, "value":458358039, "outputAddress":"1FPGAxkfHskMq9fg2gbAWhPrnqwXydbX93" }, { "spendingOutputIndex":62, "value":472974109, "outputAddress":"15EGQermwrDiC1qHGJErevXAnpq5ktMFBC" }, { "spendingOutputIndex":63, "value":494544339, "outputAddress":"1Lyx1ggKx2SxbFHkQhtZeEmvvc2fCMFjfs" }, { "spendingOutputIndex":64, "value":586164621, "outputAddress":"17Q5ZBy5N9ke2dU1X7gGGT2vWfKJEm3gW4" }, { "spendingOutputIndex":65, "value":669836941, "outputAddress":"1LphrVc8dz775Ndf1bTq3u1KbrT1Vo9Xy5" }, { "spendingOutputIndex":66, "value":1271279994, "outputAddress":"1LMz6TReofjUkrxnwz3jSPtLDRYpSS4J3E" }, { "spendingOutputIndex":67, "value":73305749, "outputAddress":"1Jry98b9ckBwHSA4Q6wCsnb4G7YVEE2xAw" }, { "spendingOutputIndex":68, "value":73735700, "outputAddress":"1FQmn2YyqMVbYb9TxJW6mMgh5gZYkhTxnG" }, { "spendingOutputIndex":69, "value":74545866, "outputAddress":"1Dto3dbLFNoP31AjbR7yAwAekDkYYCaP46" }, { "spendingOutputIndex":70, "value":80313653, "outputAddress":"1fNxHSMp2bsNq15YJaezhoxVRgArD1vAv" }, { "spendingOutputIndex":71, "value":80840814, "outputAddress":"1GULJcLBPSLNwhCMfoENFK2MwF9vbrNfw6" }, { "spendingOutputIndex":72, "value":87152303, "outputAddress":"14RcMAqagEjZVUKiK4UF7KyHSb4whE2eY4" }, { "spendingOutputIndex":73, "value":101882478, "outputAddress":"1CC6fY7WfAeg5rZyiRaTGce8LYaVaQaePU" }, { "spendingOutputIndex":74, "value":129397410, "outputAddress":"12yqLsUvrULLvejhJMWnTcEQ7xhHCoSEGC" }, { "spendingOutputIndex":75, "value":177016529, "outputAddress":"1Gp4j6Enq3XCHPAg22pXSxBG2DnnMWDH8B" }, { "spendingOutputIndex":76, "value":227835000, "outputAddress":"1AjsBbH9BEJW89vkpYhJYCwq5YDWWSLVw6" }, { "spendingOutputIndex":77, "value":233233536, "outputAddress":"1LVyxWEs4v4PrZUKX3F77FXCjyHv64R965" }, { "spendingOutputIndex":78, "value":249712974, "outputAddress":"1Bqm8t6UvMKWH5q5WuF79gmS8FHWzH3mKp" }, { "spendingOutputIndex":79, "value":251933467, "outputAddress":"1Mvc8sYBCHDJUTdQQAsRnvYiPXg6VNsXNj" }, { "spendingOutputIndex":80, "value":324048674, "outputAddress":"1HSQQ9E3Kp25AdCnJH4jtLAQyzpoZtMtGJ" }, { "spendingOutputIndex":81, "value":455040430, "outputAddress":"18oh1W4a3WpybAW8CCnBqSVgKBdjgQULr2" }, { "spendingOutputIndex":82, "value":537496402, "outputAddress":"13uSqpiva9v8pQcJikkQ1vmszcns8SNjCK" }, { "spendingOutputIndex":83, "value":773722027, "outputAddress":"16giYJmRaiUFWtoXRhg6AX9E3CtGiCFVUy" }, { "spendingOutputIndex":84, "value":1673590644, "outputAddress":"1KroVXPgYBrSg9PdMgFsxCDddd2vecmExF" }, { "spendingOutputIndex":85, "value":2980802314, "outputAddress":"1NEyKg9dkEYXNQfuEYMCv549XjccjCDjPd" }, { "spendingOutputIndex":86, "value":73763579, "outputAddress":"15N4qMPALvDMmTMpkEfn1zby3dcYWcy6to" }, { "spendingOutputIndex":87, "value":94907843, "outputAddress":"1MCnJwscYGov6RoQQoNkrU5yyjGwmWpB4L" }, { "spendingOutputIndex":88, "value":98323209, "outputAddress":"17HNu3mQN1ZBkUtJCs41hjJ8TVeb9gwAvX" }, { "spendingOutputIndex":89, "value":114717933, "outputAddress":"13nR5PpuAwjMKVGnFr1Rs42bttETCWoeCd" }, { "spendingOutputIndex":90, "value":116974920, "outputAddress":"18fHAgALPqcNwgeLd1VcCjjmfQQ8X5MCVt" }, { "spendingOutputIndex":91, "value":117475501, "outputAddress":"1Ls2ECVwAFSbSXf5LEzTiBqDywu3GmC9yL" }, { "spendingOutputIndex":92, "value":119017929, "outputAddress":"1GSLacgmSXt8avVZC2ZRK1J8qsRuZykjdQ" }, { "spendingOutputIndex":93, "value":119345213, "outputAddress":"1DJEm7vnasQtyjh7sm2eaRGooeZwrjyUAW" }, { "spendingOutputIndex":94, "value":123676410, "outputAddress":"1ATvwns9ZbC2uTjezPwiPJ8qYw9Pag7iMx" }, { "spendingOutputIndex":95, "value":126098982, "outputAddress":"12ioJ6cu7RbBJdkxX8Dk3Pu8DeUPqTfzQf" }, { "spendingOutputIndex":96, "value":126733056, "outputAddress":"1N4Acjxz7Zh56EWGxEsz3nvXgUFach78uA" }, { "spendingOutputIndex":97, "value":126927968, "outputAddress":"1471p6KdPCtdGQN7iT2m2QSxitt9mKtMDQ" }, { "spendingOutputIndex":98, "value":139583210, "outputAddress":"1DVhQK4j6MQeU3QWD7VakP7WWCDBDfojnf" }, { "spendingOutputIndex":99, "value":141994233, "outputAddress":"1N7BoSWRYgFefFvXBgHTkB743r39uBjqqi" }, { "spendingOutputIndex":100, "value":146122798, "outputAddress":"1Ex3H6iPPLKfEPin19qhT1Uy2s9i5dPs9i" }, { "spendingOutputIndex":101, "value":150067052, "outputAddress":"1AeRErDn38iw4tYz4Y5Z9atJa8NdsEpMaq" }, { "spendingOutputIndex":102, "value":159953898, "outputAddress":"1MSn7rwKAqZkrczLpg6UsXd1jS2HG1PcGu" }, { "spendingOutputIndex":103, "value":166731167, "outputAddress":"14eGCyBqfWoKPCM6te1LTmMdrV1WSyzjfk" }, { "spendingOutputIndex":104, "value":179744706, "outputAddress":"14ffvzCd6jQqCEMSS2xEaDgCFAX7JvS3WJ" }, { "spendingOutputIndex":105, "value":182631318, "outputAddress":"1N5Wp87yDXwNcdAXTpkfgmCmNjbWAHcSpT" }, { "spendingOutputIndex":106, "value":194665559, "outputAddress":"1DyMS8sW3xf1gEtaddU9ifPhWstNDPS26g" }, { "spendingOutputIndex":107, "value":221326323, "outputAddress":"17jzrD7Rv6UTWo73JMiGMFTFYss5wfnKLJ" }, { "spendingOutputIndex":108, "value":394961236, "outputAddress":"1C7MJfm7gipTF87sjZYnEGgW5D9fiXv3d8" }, { "spendingOutputIndex":109, "value":2565852346, "outputAddress":"1N4c8rFC5okV9GVG7by9AgXwyiHBMcfbGS" }, { "spendingOutputIndex":110, "value":68986461, "outputAddress":"12jaoSx9E4grbSZcXS7NJ44syvCCVG7BBR" }, { "spendingOutputIndex":111, "value":73825159, "outputAddress":"19DGKSuQqnmqRzKKMCWPwCrnBv5kfXVbSD" }, { "spendingOutputIndex":112, "value":74269255, "outputAddress":"19KYnkBmmwquNkLXbyyAcphEbAh3X3yvcc" }, { "spendingOutputIndex":113, "value":74762134, "outputAddress":"18BH22DDjBKkvoZnuxbYr2MaFBWaePqhHu" }, { "spendingOutputIndex":114, "value":75049646, "outputAddress":"1EAktf5LhyWNLWzfmEkD24savdzc4hwCZ9" }, { "spendingOutputIndex":115, "value":89066511, "outputAddress":"1NMrhhYSGtivYhsgKoPfmSUsnp3PA4CD9n" }, { "spendingOutputIndex":116, "value":171106473, "outputAddress":"1Luckyy2PLMDhLvSs2K7i5spMA3ACE4YEt" }, { "spendingOutputIndex":117, "value":269355060, "outputAddress":"137JexCo13UW8LQLCNngFuzjSxCBiArfYs" }, { "spendingOutputIndex":118, "value":282291696, "outputAddress":"1M5pd2hQwSfzS2mhvVQQ2hEmsmTXaZ6gC8" }, { "spendingOutputIndex":119, "value":296060147, "outputAddress":"1FJgRvzhVK17cYytfwrhqALEH8Xxy1L7Z1" }, { "spendingOutputIndex":120, "value":305329591, "outputAddress":"1FEdYFZvuJM3UmuoHahUZSmzWPysSM7qje" }, { "spendingOutputIndex":121, "value":372423024, "outputAddress":"13ACHdwzV4j8PioGkWBvhWwsZjofYB5AdJ" }, { "spendingOutputIndex":122, "value":448136990, "outputAddress":"1FKXnAnHq8E2UMBipAmF3q1naSvYyvcceM" }, { "spendingOutputIndex":123, "value":1001900, "outputAddress":"1NKM1whjsFGwxB44XmwpKrFapYRQ1j2ivk" }, { "spendingOutputIndex":124, "value":581026185, "outputAddress":"12J5a6BekkGNWmKjHnCzj84ZannmrEBWEk" }, { "spendingOutputIndex":125, "value":123026848, "outputAddress":"18aZoh1SAmbVbtbiBbiyyAmKSbsZGS2ypo" }, { "spendingOutputIndex":126, "value":152673901, "outputAddress":"1C1QTJmwuP82nZbzjCtAgYwPQmmjqBoRar" }, { "spendingOutputIndex":127, "value":191119646, "outputAddress":"178BSDWmZCK74b717mcU1NeAQR5pw7brKj" }, { "spendingOutputIndex":128, "value":192666755, "outputAddress":"1JKddMWhVDQzX5Dg89WKuDg8grV1o1qW42" }, { "spendingOutputIndex":129, "value":217162760, "outputAddress":"1KBxbcT4QLeKecfuW5gXDwehVn7kWB5Q2K" }, { "spendingOutputIndex":130, "value":225804380, "outputAddress":"18xVLmCawGdLLLERi9LEDjoRue9NyTQXrt" }, { "spendingOutputIndex":131, "value":246819442, "outputAddress":"19mWx4HQkcNQJXvw2SiKyZFSijfP1ayEBx" }, { "spendingOutputIndex":132, "value":267377638, "outputAddress":"14seLUF7J2M62K18GtHbNeWRYifTfrk37X" }, { "spendingOutputIndex":133, "value":274440311, "outputAddress":"1NNsRfSUxcSSyJ5VSZeWZTshc2LcmLPcDx" }, { "spendingOutputIndex":134, "value":287112190, "outputAddress":"19RtTqLgisZyqJWxNJqkUk6nXmYoG2MQXJ" }, { "spendingOutputIndex":135, "value":299656665, "outputAddress":"165HTadbTgJpTGJuvpjABn9GbqhfGDXWi2" }, { "spendingOutputIndex":136, "value":363147202, "outputAddress":"1PsinL3q9ALGszdYB8mxL5VcS9jmhLeDuo" }, { "spendingOutputIndex":137, "value":385984850, "outputAddress":"1NTFtxFUjkNiaxtapufDUAEgBYuF9jRYYu" }, { "spendingOutputIndex":138, "value":419948104, "outputAddress":"1ELJoe7MMo1e2f1MTMcchr4LiPNG95DeRC" }, { "spendingOutputIndex":139, "value":486428342, "outputAddress":"1Lc45ipAVpUEH7aXYPJCETJ8toKGSd8XxW" }, { "spendingOutputIndex":140, "value":68369579, "outputAddress":"1PckSW8JtBiTv3eEeRbSUxw5uwhvkzGKRu" }, { "spendingOutputIndex":141, "value":69177182, "outputAddress":"1AHNq8FkdhNDSEg5BXagsDcdE1ZDx2LTma" }, { "spendingOutputIndex":142, "value":85068401, "outputAddress":"1KbS6CAt99tYTtsnpPvV75q93K3hNZUbN9" }, { "spendingOutputIndex":143, "value":87642188, "outputAddress":"1CadmpHV4PrkUBCzbYNM5BqyN4pEbqNrud" }, { "spendingOutputIndex":144, "value":100503443, "outputAddress":"12pqYhP45itvQfPbso79Tvcch5qKEbuheG" }, { "spendingOutputIndex":145, "value":102002068, "outputAddress":"1Ee5XNNxiBZv21CzNhVthYkHSmqQwFz7VG" }, { "spendingOutputIndex":146, "value":109732881, "outputAddress":"1KV9diiAQaSKuNzjgoCZyGHSZjY9faj7Lw" }, { "spendingOutputIndex":147, "value":111445936, "outputAddress":"1H99WtWk2jPU291gqAApnzAKDzvx8mL4Ju" }, { "spendingOutputIndex":148, "value":115274369, "outputAddress":"1FUAybsq5mUnd71BBP3Re5oXPVNueu49vu" }, { "spendingOutputIndex":149, "value":119293427, "outputAddress":"1FdMvDFMi581QUj9vDKZHSyU3MCJAAgGz4" }, { "spendingOutputIndex":150, "value":123767422, "outputAddress":"15Lmz2nRbMg3DivuRvRP3g6V4jzXV2sNJy" }, { "spendingOutputIndex":151, "value":168600791, "outputAddress":"19kWQzUavrn7f3tdYapVsaVsYKQJL18Aei" }, { "spendingOutputIndex":152, "value":172522416, "outputAddress":"15kZZVh28AA6Ya3232bCXC9FLMtYFnmHZd" }, { "spendingOutputIndex":153, "value":193281304, "outputAddress":"1HkJnteXo5b8aFFa9zEipYtwHASD9rYyXM" }, { "spendingOutputIndex":154, "value":206964391, "outputAddress":"1JKiWMfocn341K3Pz9Mb4suGMvq9Dx5TKe" }, { "spendingOutputIndex":155, "value":212550122, "outputAddress":"13ggk9GP6jFMqcHeSyM6Pr34XuZ2uiYpmf" }, { "spendingOutputIndex":156, "value":358574606, "outputAddress":"1AroV9DWxKtppu6veDyEkRMM578GaRSzGa" }, { "spendingOutputIndex":157, "value":83677875, "outputAddress":"1N6KMP6PwaZYVhXHEh9FTqDrWUjUuboSsX" }, { "spendingOutputIndex":158, "value":421255332, "outputAddress":"17gTe7MtFjkKo1wdTZfhkjTYqdJBV2wz3A" }, { "spendingOutputIndex":159, "value":526827339, "outputAddress":"16Ht88dWqJ9KZawSborViTLE8nppJnt1at" }, { "spendingOutputIndex":160, "value":547403634, "outputAddress":"19wccgQh6BYVvX7CMbB72qb6fdpG57quvr" } ], "spendingBlockHash":"00000000000007f4c705f7a0dcfc6f54ac6f7742b4abdb484177e106662bbc84", "spendingBlockHeight":156569, "spendingTxId":"9e33084a8713e0872f9d509a19adebe47e6c66da8154533aadf1e4a58272dea0", "spendingTxIndex":39 }, "txIndex":0, "prevOutpoint":[ [ { "opTxHash":"0000000000000000000000000000000000000000000000000000000000000000", "opIndex":-1 }, 0, 5000000000 ] ], "value":1, "blockHash":"000000000000096452f38ba87d8863f0eb419ad13bc9d50dea79a474432d327e", "address":"1GXRNe36nJinKjFWcknnGH3VpDj5hh5AYv", "outputIndex":0, "blockHeight":152511, "outputTxHash":"da9cd6efa6e5ba65509162160e530619b5c81ff4d7c21311fb22909802f6be5c" } ] }
Request JSON structure:
Response JSON structure:
{ "id":9, "jsonrpc":"2.0", "method":"[ADDR]->[OUTPUT]", "params":{ "sessionKey":"<Session-Key>", "methodParams":{ "gasAddrOutputs":[ "1GXRNe36nJinKjFWcknnGH3VpDj5hh5AYv", "19irWGAyKawyFUNvgXEKGKUuAdtpDyXd1b" ], "gasPageSize":5, "lastNominalTxIndex":121129000000003 } } }
{ "nextCursor":"152511000000000", "outputs":[ { "spendInfo":{ "spendData":[ { "spendingOutputIndex":0, "value":72899750, "outputAddress":"1CUc22NW6aYRSBh1yL9xYLZteeXjyfd1aC" }, { "spendingOutputIndex":1, "value":83653466, "outputAddress":"1TMrFYsePXBkQ4dSA8VdYpGyC13kcuGGd" }, { "spendingOutputIndex":2, "value":102801725, "outputAddress":"1AAAA1inoADZAF6wJtrvcZLT2nVwt5Zzuo" }, { "spendingOutputIndex":3, "value":105041490, "outputAddress":"1FgWsVb6dGEWZ4zxzpfEWHGUa3yv2Kvfrn" }, { "spendingOutputIndex":4, "value":116451563, "outputAddress":"1DPF1CEZpy9LzAPdb5tAvhhYdorPKARwZn" }, { "spendingOutputIndex":5, "value":160466340, "outputAddress":"1BsQDpBonj14pZ8iGxPA8aK5YJh4DWdt6c" }, { "spendingOutputIndex":6, "value":166093230, "outputAddress":"1MgVcvcy9RwhWbcnq6htSJcnuUbFCDtW7a" }, { "spendingOutputIndex":7, "value":176575784, "outputAddress":"1A415qpUH17p4soRAv7E3BBcmfuQseir1s" }, { "spendingOutputIndex":8, "value":224597357, "outputAddress":"17mgm8rGyz4cRbXpddxa4Kuxi9KSiASVUF" }, { "spendingOutputIndex":9, "value":5276736655, "outputAddress":"1FGNrRbpWkqwYz9rWXR8UD2boHVfkLgeQg" }, { "spendingOutputIndex":10, "value":83145304, "outputAddress":"1AWGTKugYU16jLRrLVhYCV8q3hCHL5yVwh" }, { "spendingOutputIndex":11, "value":91323457, "outputAddress":"1JtioUp4X13d6NPa55CHb3JiKMUJ799pgo" }, { "spendingOutputIndex":12, "value":180336453, "outputAddress":"1PzV9kHvB2vU3np2Ei1YxvPAS8HZppJ5UX" }, { "spendingOutputIndex":13, "value":314102672, "outputAddress":"1Pyx7iysfsEH4A2ZUQnhrZVK88KnnDdZxW" }, { "spendingOutputIndex":14, "value":356954800, "outputAddress":"1K1d1DoqsT7ifenaZqBRyRCB28EocdwJ5M" }, { "spendingOutputIndex":15, "value":367530166, "outputAddress":"1NXk9vEKg8LkcHtHwuZTPhFbUDS6L5Gy29" }, { "spendingOutputIndex":16, "value":383528484, "outputAddress":"1MuyR4bbFqrPoQjrj5n3BK6uNWCWhVU8rN" }, { "spendingOutputIndex":17, "value":491830763, "outputAddress":"14D3pLQPRNs3XEe2JceDzBDyfXCdK26YuB" }, { "spendingOutputIndex":18, "value":961140475, "outputAddress":"1L647iNoWnzFmEsyV12YQTxNwtm5Xmu1PY" }, { "spendingOutputIndex":19, "value":2024569784, "outputAddress":"1E7cYXQx8upvFRw3kaikP8tQKMeFqFMJ86" }, { "spendingOutputIndex":20, "value":105103911, "outputAddress":"1FMkxsZQV1n16CbF6m7GktuFpUseoWZqyz" }, { "spendingOutputIndex":21, "value":129488372, "outputAddress":"1BxBhZcSfsjwwxpKgEHDpXYD6MACWJramV" }, { "spendingOutputIndex":22, "value":143287928, "outputAddress":"1DtJbAES7pFp1gRYGNy76W4ugfb9vG15S1" }, { "spendingOutputIndex":23, "value":159276395, "outputAddress":"1Hr3B7SqKTPbYUWa1wYWG2PKpWn4TMZwKm" }, { "spendingOutputIndex":24, "value":191722612, "outputAddress":"1D6bCS1oRd26yq6Qdpn4oqGdNxYWnbBhh4" }, { "spendingOutputIndex":25, "value":192264626, "outputAddress":"15JVDn2Uz6gf2C1vbeYWwgVP476VdVmoRU" }, { "spendingOutputIndex":26, "value":199036166, "outputAddress":"1vXFL3Mq2gbRpknQAQUc5eKHxioF3gq64" }, { "spendingOutputIndex":27, "value":200035496, "outputAddress":"1KntYuDugU5mt9nfN2VcbZSyCj4rjAfuH9" }, { "spendingOutputIndex":28, "value":208480590, "outputAddress":"171E4WazFo51mgCZCVJoxqSmDz8vSFrxt6" }, { "spendingOutputIndex":29, "value":220282884, "outputAddress":"1Ggni2Txd9RCqutMufSopuTszsYcPP5Uj" }, { "spendingOutputIndex":30, "value":252656995, "outputAddress":"1LQr6YWFDjzgtKfjGbwzNr2nZpxXCt7XRh" }, { "spendingOutputIndex":31, "value":316017135, "outputAddress":"1PyeymUht8vb92WDAUfvTNi2X8ZRgsQj4Q" }, { "spendingOutputIndex":32, "value":356120798, "outputAddress":"15xiz9KQjG6oWcafNkNjvMmLcb4uUYm4kn" }, { "spendingOutputIndex":33, "value":367599760, "outputAddress":"1FChKAU1GeEghEn3mJ94ibaWp3goVq5eR7" }, { "spendingOutputIndex":34, "value":406063417, "outputAddress":"12CtoN1jVdVuk2YyuMyPUPwT9oGs2w7Qji" }, { "spendingOutputIndex":35, "value":617580506, "outputAddress":"1xXPfji6p6yEkgHKGvdes4m7iVe4MRFLW" }, { "spendingOutputIndex":36, "value":648844689, "outputAddress":"1GwGTpEmmskWehcHntDDA7i1sf2RULC426" }, { "spendingOutputIndex":37, "value":723025433, "outputAddress":"1Me1PjdzwWGHkfdEREBWgRH5iznW3b7XpW" }, { "spendingOutputIndex":38, "value":1233006559, "outputAddress":"1HGAnMXJjjytqSgT3mvRhZNUdMvBxPMXUZ" }, { "spendingOutputIndex":39, "value":1602611709, "outputAddress":"1i8HPL4wv6hA5HTb2PQ9tmXgQ4t4Rf5ha" }, { "spendingOutputIndex":40, "value":288808435, "outputAddress":"12k88XHsce99aYDoQUFL5NRukAwnqAZ1qH" }, { "spendingOutputIndex":41, "value":78128006, "outputAddress":"1KqrMi6ZQeYN8bRxMMNSxCvMWqna2vY1mu" }, { "spendingOutputIndex":42, "value":79572157, "outputAddress":"1GFHzkgMJdZcBHjmNvjXq8bQ3r7WgcTLPf" }, { "spendingOutputIndex":43, "value":81990513, "outputAddress":"1LeaepjzFzf7SMbiqczVq8sktDpnEAijjw" }, { "spendingOutputIndex":44, "value":84958602, "outputAddress":"15pcqXN7RAFKwVfyqne8ksG8dDTw5ombrQ" }, { "spendingOutputIndex":45, "value":84970511, "outputAddress":"1F9fDps3eg2cbLv4FRXzwjTxobT6UDvZAD" }, { "spendingOutputIndex":46, "value":86516434, "outputAddress":"12TJibnH3Fw9b5YU5vzSgGUMSKxXEq5Nj8" }, { "spendingOutputIndex":47, "value":92778051, "outputAddress":"13Sxh6WQvR2SZfyFro1ksuFmmfbj2d4vmo" }, { "spendingOutputIndex":48, "value":93081324, "outputAddress":"1GpzbRidy86mgtN8f4x6TWFZqCVcPY7T1J" }, { "spendingOutputIndex":49, "value":94252636, "outputAddress":"1LdEqSM1qbAndBWxanASBUpyVJmLUhYj2t" }, { "spendingOutputIndex":50, "value":98542202, "outputAddress":"1pR5EWDiR8Wrk9nzxLsjcGxHF47yqfXPm" }, { "spendingOutputIndex":51, "value":101184992, "outputAddress":"1LHupSFDGrDezN5kXwLwvQCZw68XUDK9oQ" }, { "spendingOutputIndex":52, "value":103032074, "outputAddress":"1LXXpzTNctMpYNoF4cuqMqBhbxfnaU6BzD" }, { "spendingOutputIndex":53, "value":109064228, "outputAddress":"1ATtHdYywwXYsbb4kGc82cZtGhPcch8VGr" }, { "spendingOutputIndex":54, "value":168461649, "outputAddress":"1AcpumrpKedzESGQFRutWreXhqjRcA2HDz" }, { "spendingOutputIndex":55, "value":169008346, "outputAddress":"1PCNvqWLA1ZKx7Vpr3jLS36ZYFsmQKSR3M" }, { "spendingOutputIndex":56, "value":206600689, "outputAddress":"1Kd9ypLmdNDaEuH6n334gzurFVtrBKecFo" }, { "spendingOutputIndex":57, "value":208373067, "outputAddress":"1M95QgsXrE2VqFeyZEXHthtbaKQcrfXUiA" }, { "spendingOutputIndex":58, "value":217937217, "outputAddress":"1Hc5AcmzDcSWsvoKs9BWr2sXEBMCcp7A4P" }, { "spendingOutputIndex":59, "value":218519032, "outputAddress":"1KYpHybsaBU1x2KpwLmbR7buSSncH7HHc3" }, { "spendingOutputIndex":60, "value":238201617, "outputAddress":"1CkJUZJZRDeP2JawffVr11yuv6kTLvbVBb" }, { "spendingOutputIndex":61, "value":458358039, "outputAddress":"1FPGAxkfHskMq9fg2gbAWhPrnqwXydbX93" }, { "spendingOutputIndex":62, "value":472974109, "outputAddress":"15EGQermwrDiC1qHGJErevXAnpq5ktMFBC" }, { "spendingOutputIndex":63, "value":494544339, "outputAddress":"1Lyx1ggKx2SxbFHkQhtZeEmvvc2fCMFjfs" }, { "spendingOutputIndex":64, "value":586164621, "outputAddress":"17Q5ZBy5N9ke2dU1X7gGGT2vWfKJEm3gW4" }, { "spendingOutputIndex":65, "value":669836941, "outputAddress":"1LphrVc8dz775Ndf1bTq3u1KbrT1Vo9Xy5" }, { "spendingOutputIndex":66, "value":1271279994, "outputAddress":"1LMz6TReofjUkrxnwz3jSPtLDRYpSS4J3E" }, { "spendingOutputIndex":67, "value":73305749, "outputAddress":"1Jry98b9ckBwHSA4Q6wCsnb4G7YVEE2xAw" }, { "spendingOutputIndex":68, "value":73735700, "outputAddress":"1FQmn2YyqMVbYb9TxJW6mMgh5gZYkhTxnG" }, { "spendingOutputIndex":69, "value":74545866, "outputAddress":"1Dto3dbLFNoP31AjbR7yAwAekDkYYCaP46" }, { "spendingOutputIndex":70, "value":80313653, "outputAddress":"1fNxHSMp2bsNq15YJaezhoxVRgArD1vAv" }, { "spendingOutputIndex":71, "value":80840814, "outputAddress":"1GULJcLBPSLNwhCMfoENFK2MwF9vbrNfw6" }, { "spendingOutputIndex":72, "value":87152303, "outputAddress":"14RcMAqagEjZVUKiK4UF7KyHSb4whE2eY4" }, { "spendingOutputIndex":73, "value":101882478, "outputAddress":"1CC6fY7WfAeg5rZyiRaTGce8LYaVaQaePU" }, { "spendingOutputIndex":74, "value":129397410, "outputAddress":"12yqLsUvrULLvejhJMWnTcEQ7xhHCoSEGC" }, { "spendingOutputIndex":75, "value":177016529, "outputAddress":"1Gp4j6Enq3XCHPAg22pXSxBG2DnnMWDH8B" }, { "spendingOutputIndex":76, "value":227835000, "outputAddress":"1AjsBbH9BEJW89vkpYhJYCwq5YDWWSLVw6" }, { "spendingOutputIndex":77, "value":233233536, "outputAddress":"1LVyxWEs4v4PrZUKX3F77FXCjyHv64R965" }, { "spendingOutputIndex":78, "value":249712974, "outputAddress":"1Bqm8t6UvMKWH5q5WuF79gmS8FHWzH3mKp" }, { "spendingOutputIndex":79, "value":251933467, "outputAddress":"1Mvc8sYBCHDJUTdQQAsRnvYiPXg6VNsXNj" }, { "spendingOutputIndex":80, "value":324048674, "outputAddress":"1HSQQ9E3Kp25AdCnJH4jtLAQyzpoZtMtGJ" }, { "spendingOutputIndex":81, "value":455040430, "outputAddress":"18oh1W4a3WpybAW8CCnBqSVgKBdjgQULr2" }, { "spendingOutputIndex":82, "value":537496402, "outputAddress":"13uSqpiva9v8pQcJikkQ1vmszcns8SNjCK" }, { "spendingOutputIndex":83, "value":773722027, "outputAddress":"16giYJmRaiUFWtoXRhg6AX9E3CtGiCFVUy" }, { "spendingOutputIndex":84, "value":1673590644, "outputAddress":"1KroVXPgYBrSg9PdMgFsxCDddd2vecmExF" }, { "spendingOutputIndex":85, "value":2980802314, "outputAddress":"1NEyKg9dkEYXNQfuEYMCv549XjccjCDjPd" }, { "spendingOutputIndex":86, "value":73763579, "outputAddress":"15N4qMPALvDMmTMpkEfn1zby3dcYWcy6to" }, { "spendingOutputIndex":87, "value":94907843, "outputAddress":"1MCnJwscYGov6RoQQoNkrU5yyjGwmWpB4L" }, { "spendingOutputIndex":88, "value":98323209, "outputAddress":"17HNu3mQN1ZBkUtJCs41hjJ8TVeb9gwAvX" }, { "spendingOutputIndex":89, "value":114717933, "outputAddress":"13nR5PpuAwjMKVGnFr1Rs42bttETCWoeCd" }, { "spendingOutputIndex":90, "value":116974920, "outputAddress":"18fHAgALPqcNwgeLd1VcCjjmfQQ8X5MCVt" }, { "spendingOutputIndex":91, "value":117475501, "outputAddress":"1Ls2ECVwAFSbSXf5LEzTiBqDywu3GmC9yL" }, { "spendingOutputIndex":92, "value":119017929, "outputAddress":"1GSLacgmSXt8avVZC2ZRK1J8qsRuZykjdQ" }, { "spendingOutputIndex":93, "value":119345213, "outputAddress":"1DJEm7vnasQtyjh7sm2eaRGooeZwrjyUAW" }, { "spendingOutputIndex":94, "value":123676410, "outputAddress":"1ATvwns9ZbC2uTjezPwiPJ8qYw9Pag7iMx" }, { "spendingOutputIndex":95, "value":126098982, "outputAddress":"12ioJ6cu7RbBJdkxX8Dk3Pu8DeUPqTfzQf" }, { "spendingOutputIndex":96, "value":126733056, "outputAddress":"1N4Acjxz7Zh56EWGxEsz3nvXgUFach78uA" }, { "spendingOutputIndex":97, "value":126927968, "outputAddress":"1471p6KdPCtdGQN7iT2m2QSxitt9mKtMDQ" }, { "spendingOutputIndex":98, "value":139583210, "outputAddress":"1DVhQK4j6MQeU3QWD7VakP7WWCDBDfojnf" }, { "spendingOutputIndex":99, "value":141994233, "outputAddress":"1N7BoSWRYgFefFvXBgHTkB743r39uBjqqi" }, { "spendingOutputIndex":100, "value":146122798, "outputAddress":"1Ex3H6iPPLKfEPin19qhT1Uy2s9i5dPs9i" }, { "spendingOutputIndex":101, "value":150067052, "outputAddress":"1AeRErDn38iw4tYz4Y5Z9atJa8NdsEpMaq" }, { "spendingOutputIndex":102, "value":159953898, "outputAddress":"1MSn7rwKAqZkrczLpg6UsXd1jS2HG1PcGu" }, { "spendingOutputIndex":103, "value":166731167, "outputAddress":"14eGCyBqfWoKPCM6te1LTmMdrV1WSyzjfk" }, { "spendingOutputIndex":104, "value":179744706, "outputAddress":"14ffvzCd6jQqCEMSS2xEaDgCFAX7JvS3WJ" }, { "spendingOutputIndex":105, "value":182631318, "outputAddress":"1N5Wp87yDXwNcdAXTpkfgmCmNjbWAHcSpT" }, { "spendingOutputIndex":106, "value":194665559, "outputAddress":"1DyMS8sW3xf1gEtaddU9ifPhWstNDPS26g" }, { "spendingOutputIndex":107, "value":221326323, "outputAddress":"17jzrD7Rv6UTWo73JMiGMFTFYss5wfnKLJ" }, { "spendingOutputIndex":108, "value":394961236, "outputAddress":"1C7MJfm7gipTF87sjZYnEGgW5D9fiXv3d8" }, { "spendingOutputIndex":109, "value":2565852346, "outputAddress":"1N4c8rFC5okV9GVG7by9AgXwyiHBMcfbGS" }, { "spendingOutputIndex":110, "value":68986461, "outputAddress":"12jaoSx9E4grbSZcXS7NJ44syvCCVG7BBR" }, { "spendingOutputIndex":111, "value":73825159, "outputAddress":"19DGKSuQqnmqRzKKMCWPwCrnBv5kfXVbSD" }, { "spendingOutputIndex":112, "value":74269255, "outputAddress":"19KYnkBmmwquNkLXbyyAcphEbAh3X3yvcc" }, { "spendingOutputIndex":113, "value":74762134, "outputAddress":"18BH22DDjBKkvoZnuxbYr2MaFBWaePqhHu" }, { "spendingOutputIndex":114, "value":75049646, "outputAddress":"1EAktf5LhyWNLWzfmEkD24savdzc4hwCZ9" }, { "spendingOutputIndex":115, "value":89066511, "outputAddress":"1NMrhhYSGtivYhsgKoPfmSUsnp3PA4CD9n" }, { "spendingOutputIndex":116, "value":171106473, "outputAddress":"1Luckyy2PLMDhLvSs2K7i5spMA3ACE4YEt" }, { "spendingOutputIndex":117, "value":269355060, "outputAddress":"137JexCo13UW8LQLCNngFuzjSxCBiArfYs" }, { "spendingOutputIndex":118, "value":282291696, "outputAddress":"1M5pd2hQwSfzS2mhvVQQ2hEmsmTXaZ6gC8" }, { "spendingOutputIndex":119, "value":296060147, "outputAddress":"1FJgRvzhVK17cYytfwrhqALEH8Xxy1L7Z1" }, { "spendingOutputIndex":120, "value":305329591, "outputAddress":"1FEdYFZvuJM3UmuoHahUZSmzWPysSM7qje" }, { "spendingOutputIndex":121, "value":372423024, "outputAddress":"13ACHdwzV4j8PioGkWBvhWwsZjofYB5AdJ" }, { "spendingOutputIndex":122, "value":448136990, "outputAddress":"1FKXnAnHq8E2UMBipAmF3q1naSvYyvcceM" }, { "spendingOutputIndex":123, "value":1001900, "outputAddress":"1NKM1whjsFGwxB44XmwpKrFapYRQ1j2ivk" }, { "spendingOutputIndex":124, "value":581026185, "outputAddress":"12J5a6BekkGNWmKjHnCzj84ZannmrEBWEk" }, { "spendingOutputIndex":125, "value":123026848, "outputAddress":"18aZoh1SAmbVbtbiBbiyyAmKSbsZGS2ypo" }, { "spendingOutputIndex":126, "value":152673901, "outputAddress":"1C1QTJmwuP82nZbzjCtAgYwPQmmjqBoRar" }, { "spendingOutputIndex":127, "value":191119646, "outputAddress":"178BSDWmZCK74b717mcU1NeAQR5pw7brKj" }, { "spendingOutputIndex":128, "value":192666755, "outputAddress":"1JKddMWhVDQzX5Dg89WKuDg8grV1o1qW42" }, { "spendingOutputIndex":129, "value":217162760, "outputAddress":"1KBxbcT4QLeKecfuW5gXDwehVn7kWB5Q2K" }, { "spendingOutputIndex":130, "value":225804380, "outputAddress":"18xVLmCawGdLLLERi9LEDjoRue9NyTQXrt" }, { "spendingOutputIndex":131, "value":246819442, "outputAddress":"19mWx4HQkcNQJXvw2SiKyZFSijfP1ayEBx" }, { "spendingOutputIndex":132, "value":267377638, "outputAddress":"14seLUF7J2M62K18GtHbNeWRYifTfrk37X" }, { "spendingOutputIndex":133, "value":274440311, "outputAddress":"1NNsRfSUxcSSyJ5VSZeWZTshc2LcmLPcDx" }, { "spendingOutputIndex":134, "value":287112190, "outputAddress":"19RtTqLgisZyqJWxNJqkUk6nXmYoG2MQXJ" }, { "spendingOutputIndex":135, "value":299656665, "outputAddress":"165HTadbTgJpTGJuvpjABn9GbqhfGDXWi2" }, { "spendingOutputIndex":136, "value":363147202, "outputAddress":"1PsinL3q9ALGszdYB8mxL5VcS9jmhLeDuo" }, { "spendingOutputIndex":137, "value":385984850, "outputAddress":"1NTFtxFUjkNiaxtapufDUAEgBYuF9jRYYu" }, { "spendingOutputIndex":138, "value":419948104, "outputAddress":"1ELJoe7MMo1e2f1MTMcchr4LiPNG95DeRC" }, { "spendingOutputIndex":139, "value":486428342, "outputAddress":"1Lc45ipAVpUEH7aXYPJCETJ8toKGSd8XxW" }, { "spendingOutputIndex":140, "value":68369579, "outputAddress":"1PckSW8JtBiTv3eEeRbSUxw5uwhvkzGKRu" }, { "spendingOutputIndex":141, "value":69177182, "outputAddress":"1AHNq8FkdhNDSEg5BXagsDcdE1ZDx2LTma" }, { "spendingOutputIndex":142, "value":85068401, "outputAddress":"1KbS6CAt99tYTtsnpPvV75q93K3hNZUbN9" }, { "spendingOutputIndex":143, "value":87642188, "outputAddress":"1CadmpHV4PrkUBCzbYNM5BqyN4pEbqNrud" }, { "spendingOutputIndex":144, "value":100503443, "outputAddress":"12pqYhP45itvQfPbso79Tvcch5qKEbuheG" }, { "spendingOutputIndex":145, "value":102002068, "outputAddress":"1Ee5XNNxiBZv21CzNhVthYkHSmqQwFz7VG" }, { "spendingOutputIndex":146, "value":109732881, "outputAddress":"1KV9diiAQaSKuNzjgoCZyGHSZjY9faj7Lw" }, { "spendingOutputIndex":147, "value":111445936, "outputAddress":"1H99WtWk2jPU291gqAApnzAKDzvx8mL4Ju" }, { "spendingOutputIndex":148, "value":115274369, "outputAddress":"1FUAybsq5mUnd71BBP3Re5oXPVNueu49vu" }, { "spendingOutputIndex":149, "value":119293427, "outputAddress":"1FdMvDFMi581QUj9vDKZHSyU3MCJAAgGz4" }, { "spendingOutputIndex":150, "value":123767422, "outputAddress":"15Lmz2nRbMg3DivuRvRP3g6V4jzXV2sNJy" }, { "spendingOutputIndex":151, "value":168600791, "outputAddress":"19kWQzUavrn7f3tdYapVsaVsYKQJL18Aei" }, { "spendingOutputIndex":152, "value":172522416, "outputAddress":"15kZZVh28AA6Ya3232bCXC9FLMtYFnmHZd" }, { "spendingOutputIndex":153, "value":193281304, "outputAddress":"1HkJnteXo5b8aFFa9zEipYtwHASD9rYyXM" }, { "spendingOutputIndex":154, "value":206964391, "outputAddress":"1JKiWMfocn341K3Pz9Mb4suGMvq9Dx5TKe" }, { "spendingOutputIndex":155, "value":212550122, "outputAddress":"13ggk9GP6jFMqcHeSyM6Pr34XuZ2uiYpmf" }, { "spendingOutputIndex":156, "value":358574606, "outputAddress":"1AroV9DWxKtppu6veDyEkRMM578GaRSzGa" }, { "spendingOutputIndex":157, "value":83677875, "outputAddress":"1N6KMP6PwaZYVhXHEh9FTqDrWUjUuboSsX" }, { "spendingOutputIndex":158, "value":421255332, "outputAddress":"17gTe7MtFjkKo1wdTZfhkjTYqdJBV2wz3A" }, { "spendingOutputIndex":159, "value":526827339, "outputAddress":"16Ht88dWqJ9KZawSborViTLE8nppJnt1at" }, { "spendingOutputIndex":160, "value":547403634, "outputAddress":"19wccgQh6BYVvX7CMbB72qb6fdpG57quvr" } ], "spendingBlockHash":"00000000000007f4c705f7a0dcfc6f54ac6f7742b4abdb484177e106662bbc84", "spendingBlockHeight":156569, "spendingTxId":"9e33084a8713e0872f9d509a19adebe47e6c66da8154533aadf1e4a58272dea0", "spendingTxIndex":39 }, "txIndex":0, "prevOutpoint":[ [ { "opTxHash":"0000000000000000000000000000000000000000000000000000000000000000", "opIndex":-1 }, 0, 5000000000 ] ], "value":1, "blockHash":"000000000000096452f38ba87d8863f0eb419ad13bc9d50dea79a474432d327e", "address":"1GXRNe36nJinKjFWcknnGH3VpDj5hh5AYv", "outputIndex":0, "blockHeight":152511, "outputTxHash":"da9cd6efa6e5ba65509162160e530619b5c81ff4d7c21311fb22909802f6be5c" } ] }
Get UTXOs by Address
Request JSON structure:
Response JSON structure:
curl -X GET -H "Authorization: Bearer <Session-Key>" -k 'https://<domain-name>:<port-number>/v1/address/1AyAQ9nmeJnAsjpVtPefbDd7oyVitaAKik/utxos/?pagesize=2'
{ "utxos":[ { "spendInfo":null, "txIndex":0, "prevOutpoint":[ [ { "opTxHash":"0000000000000000000000000000000000000000000000000000000000000000", "opIndex":-1 }, 0, 5000000000 ] ], "value":5000000000, "blockHash":"00000000d792554eb5222f19e1d3a91fdf66a3cd4949588cc1fc5bef7441d1c7", "address":"1AyAQ9nmeJnAsjpVtPefbDd7oyVitaAKik", "outputIndex":0, "blockHeight":5545, "outputTxHash":"a8bf17ae1dd9da74876eb348f1f7d9715a30e595eee4c10c6d8a04701935593e" } ], "nextCursor":"a8bf17ae1dd9da74876eb348f1f7d9715a30e595eee4c10c6d8a04701935593e0" }
Request JSON structure:
Response JSON structure:
{ "id":18, "jsonrpc":"2.0", "method":"ADDR->[UTXO]", "params":{ "sessionKey":"<Session-Key>", "methodParams":{ "address":"1AyAQ9nmeJnAsjpVtPefbDd7oyVitaAKik", "pageSize":2 } } }
{ "utxos":[ { "spendInfo":null, "txIndex":0, "prevOutpoint":[ [ { "opTxHash":"0000000000000000000000000000000000000000000000000000000000000000", "opIndex":-1 }, 0, 5000000000 ] ], "value":5000000000, "blockHash":"00000000d792554eb5222f19e1d3a91fdf66a3cd4949588cc1fc5bef7441d1c7", "address":"1AyAQ9nmeJnAsjpVtPefbDd7oyVitaAKik", "outputIndex":0, "blockHeight":5545, "outputTxHash":"a8bf17ae1dd9da74876eb348f1f7d9715a30e595eee4c10c6d8a04701935593e" } ], "nextCursor":"a8bf17ae1dd9da74876eb348f1f7d9715a30e595eee4c10c6d8a04701935593e0" }
Get UTXOs by Addresses
Request JSON structure:
Response JSON structure:
curl -X GET -H "Authorization: Bearer <Session-Key>" -k 'https://<domain-name>:<port-number>/v1/addresses/utxos/?address=1KWj3Jk8xvS6fDdhQBsfmerscSGsS6CMiS&address=13sU7VmtNTyw3K5fA6Aei48kxmCdvtGEWD/?pagesize=5'
{ "utxos":[ { "spendInfo":null, "txIndex":0, "prevOutpoint":[ [ { "opTxHash":"0000000000000000000000000000000000000000000000000000000000000000", "opIndex":-1 }, 0, 5000000000 ] ], "value":5000000000, "blockHash":"00000000ba36eb929dc90170a96ee3efb76cbebee0e0e5c4da9eb0b6e74d9124", "address":"1KWj3Jk8xvS6fDdhQBsfmerscSGsS6CMiS", "outputIndex":0, "blockHeight":19999, "outputTxHash":"c1b09fa6bdc0b12b15cc1400d598ffed29dd33b2e282093a48646d1b7b380c98" } ], "nextCursor":"c1b09fa6bdc0b12b15cc1400d598ffed29dd33b2e282093a48646d1b7b380c980" }
Request JSON structure:
Response JSON structure:
{ "id":19, "jsonrpc":"2.0", "method":"[ADDR]->[UTXO]", "params":{ "sessionKey":"<Session-Key>", "methodParams":{ "addresses":[ "1KWj3Jk8xvS6fDdhQBsfmerscSGsS6CMiS", "13sU7VmtNTyw3K5fA6Aei48kxmCdvtGEWD" ], "pageSize":5 } } }
{ "utxos":[ { "spendInfo":null, "txIndex":0, "prevOutpoint":[ [ { "opTxHash":"0000000000000000000000000000000000000000000000000000000000000000", "opIndex":-1 }, 0, 5000000000 ] ], "value":5000000000, "blockHash":"00000000ba36eb929dc90170a96ee3efb76cbebee0e0e5c4da9eb0b6e74d9124", "address":"1KWj3Jk8xvS6fDdhQBsfmerscSGsS6CMiS", "outputIndex":0, "blockHeight":19999, "outputTxHash":"c1b09fa6bdc0b12b15cc1400d598ffed29dd33b2e282093a48646d1b7b380c98" } ], "nextCursor":"c1b09fa6bdc0b12b15cc1400d598ffed29dd33b2e282093a48646d1b7b380c980" }
Get Outputs by ScriptHash
Request JSON structure:
Response JSON structure:
curl -X GET -H "Authorization: Bearer <Session-Key>" -k 'https://<domain-name>:<port-number>/v1/scripthash/c6eb7edbcaa22415125dcd82cc4db664c41dc544627647a5199e6f1c1fb09ef4/outputs/?pagesize=2'
{ "nextCursor":"7447000000000", "outputs":[ { "spendInfo":null, "txIndex":0, "scriptHash":"c6eb7edbcaa22415125dcd82cc4db664c41dc544627647a5199e6f1c1fb09ef4", "prevOutpoint":[ [ { "opTxHash":"0000000000000000000000000000000000000000000000000000000000000000", "opIndex":-1 }, 0, 5000000000 ] ], "value":5000000000, "blockHash":"0000000070eabb853f079c6f1462ef8beca70bac775ce55a13f193fbd7362299", "outputIndex":0, "blockHeight":7447, "outputTxHash":"e414a466d2ac08b07cb79b3e98885fef9264fa180a8e58639d9441f3c0589f4b" } ] }
Request JSON structure:
Response JSON structure:
{ "id":10, "jsonrpc":"2.0", "method":"SCRIPTHASH->[OUTPUT]", "params":{ "sessionKey":"sessionKey", "methodParams":{ "scriptHash":"c6eb7edbcaa22415125dcd82cc4db664c41dc544627647a5199e6f1c1fb09ef4", "pageSize":2 } } }
{ "nextCursor":"7447000000000", "outputs":[ { "spendInfo":null, "txIndex":0, "scriptHash":"c6eb7edbcaa22415125dcd82cc4db664c41dc544627647a5199e6f1c1fb09ef4", "prevOutpoint":[ [ { "opTxHash":"0000000000000000000000000000000000000000000000000000000000000000", "opIndex":-1 }, 0, 5000000000 ] ], "value":5000000000, "blockHash":"0000000070eabb853f079c6f1462ef8beca70bac775ce55a13f193fbd7362299", "outputIndex":0, "blockHeight":7447, "outputTxHash":"e414a466d2ac08b07cb79b3e98885fef9264fa180a8e58639d9441f3c0589f4b" } ] }
Get Outputs by ScriptHashes
Request JSON structure:
Response JSON structure:
curl -X GET -H "Authorization: Bearer <Session-Key>" -k 'https://<domain-name>:<port-number>/v1/scripthashes/outputs/?scripthash=c6eb7edbcaa22415125dcd82cc4db664c41dc544627647a5199e6f1c1fb09ef4&scripthash=57d291c8a47c7c0c861c4800aeb3d1af6227060ddec55bc58ce26059c4385f19'
{ "nextCursor":"2455000000000", "outputs":[ { "spendInfo":null, "txIndex":0, "scriptHash":"c6eb7edbcaa22415125dcd82cc4db664c41dc544627647a5199e6f1c1fb09ef4", "prevOutpoint":[ [ { "opTxHash":"0000000000000000000000000000000000000000000000000000000000000000", "opIndex":-1 }, 0, 5000000000 ] ], "value":5000000000, "blockHash":"0000000070eabb853f079c6f1462ef8beca70bac775ce55a13f193fbd7362299", "outputIndex":0, "blockHeight":7447, "outputTxHash":"e414a466d2ac08b07cb79b3e98885fef9264fa180a8e58639d9441f3c0589f4b" }, { "spendInfo":null, "txIndex":0, "scriptHash":"57d291c8a47c7c0c861c4800aeb3d1af6227060ddec55bc58ce26059c4385f19", "prevOutpoint":[ [ { "opTxHash":"0000000000000000000000000000000000000000000000000000000000000000", "opIndex":-1 }, 0, 5000000000 ] ], "value":5000000000, "blockHash":"00000000045287838aeb116c2463ae3c6063f1bca7c6746b6edd9c24b5f6263e", "outputIndex":0, "blockHeight":2455, "outputTxHash":"2aa6397bd7069af97f345614ffe354fa3b8ac872a5b7ed36027a130d8016ba93" } ] }
Request JSON structure:
Response JSON structure:
{ "id":11, "jsonrpc":"2.0", "method":"[SCRIPTHASH]->[OUTPUT]", "params":{ "sessionKey":"sessionKey", "methodParams":{ "scriptHashes":[ "c6eb7edbcaa22415125dcd82cc4db664c41dc544627647a5199e6f1c1fb09ef4", "57d291c8a47c7c0c861c4800aeb3d1af6227060ddec55bc58ce26059c4385f19" ], "pageSize":5 } } }
{ "nextCursor":"2455000000000", "outputs":[ { "spendInfo":null, "txIndex":0, "scriptHash":"c6eb7edbcaa22415125dcd82cc4db664c41dc544627647a5199e6f1c1fb09ef4", "prevOutpoint":[ [ { "opTxHash":"0000000000000000000000000000000000000000000000000000000000000000", "opIndex":-1 }, 0, 5000000000 ] ], "value":5000000000, "blockHash":"0000000070eabb853f079c6f1462ef8beca70bac775ce55a13f193fbd7362299", "outputIndex":0, "blockHeight":7447, "outputTxHash":"e414a466d2ac08b07cb79b3e98885fef9264fa180a8e58639d9441f3c0589f4b" }, { "spendInfo":null, "txIndex":0, "scriptHash":"57d291c8a47c7c0c861c4800aeb3d1af6227060ddec55bc58ce26059c4385f19", "prevOutpoint":[ [ { "opTxHash":"0000000000000000000000000000000000000000000000000000000000000000", "opIndex":-1 }, 0, 5000000000 ] ], "value":5000000000, "blockHash":"00000000045287838aeb116c2463ae3c6063f1bca7c6746b6edd9c24b5f6263e", "outputIndex":0, "blockHeight":2455, "outputTxHash":"2aa6397bd7069af97f345614ffe354fa3b8ac872a5b7ed36027a130d8016ba93" } ] }
Get UTXOs by ScriptHash
Request JSON structure:
Response JSON structure:
curl -X GET -H "Authorization: Bearer <Session-Key>" -k 'https://<domain-name>:<port-number>/v1/scripthash/57d291c8a47c7c0c861c4800aeb3d1af6227060ddec55bc58ce26059c4385f19/utxos/?pagesize=2'
{ "utxos":[ { "spendInfo":null, "txIndex":0, "scriptHash":"57d291c8a47c7c0c861c4800aeb3d1af6227060ddec55bc58ce26059c4385f19", "prevOutpoint":[ [ { "opTxHash":"0000000000000000000000000000000000000000000000000000000000000000", "opIndex":-1 }, 0, 5000000000 ] ], "value":5000000000, "blockHash":"00000000045287838aeb116c2463ae3c6063f1bca7c6746b6edd9c24b5f6263e", "outputIndex":0, "blockHeight":2455, "outputTxHash":"2aa6397bd7069af97f345614ffe354fa3b8ac872a5b7ed36027a130d8016ba93" } ], "nextCursor":"2aa6397bd7069af97f345614ffe354fa3b8ac872a5b7ed36027a130d8016ba930" }
Request JSON structure:
Response JSON structure:
{ "id":20, "jsonrpc":"2.0", "method":"SCRIPTHASH->[UTXO]", "params":{ "sessionKey":"<Session-Key>", "methodParams":{ "scriptHash":"57d291c8a47c7c0c861c4800aeb3d1af6227060ddec55bc58ce26059c4385f19", "pageSize":2 } } }
{ "utxos":[ { "spendInfo":null, "txIndex":0, "scriptHash":"57d291c8a47c7c0c861c4800aeb3d1af6227060ddec55bc58ce26059c4385f19", "prevOutpoint":[ [ { "opTxHash":"0000000000000000000000000000000000000000000000000000000000000000", "opIndex":-1 }, 0, 5000000000 ] ], "value":5000000000, "blockHash":"00000000045287838aeb116c2463ae3c6063f1bca7c6746b6edd9c24b5f6263e", "outputIndex":0, "blockHeight":2455, "outputTxHash":"2aa6397bd7069af97f345614ffe354fa3b8ac872a5b7ed36027a130d8016ba93" } ], "nextCursor":"2aa6397bd7069af97f345614ffe354fa3b8ac872a5b7ed36027a130d8016ba930" }
Get UTXOs by ScriptHashes
Request JSON structure:
Response JSON structure:
curl -X GET -H "Authorization: Bearer <Session-Key>" -k 'https://<domain-name>:<port-number>/v1/scripthashes/utxos/?scripthash=c6eb7edbcaa22415125dcd82cc4db664c41dc544627647a5199e6f1c1fb09ef4&scripthash=57d291c8a47c7c0c861c4800aeb3d1af6227060ddec55bc58ce26059c4385f19'
{ "utxos":[ { "spendInfo":null, "txIndex":0, "scriptHash":"c6eb7edbcaa22415125dcd82cc4db664c41dc544627647a5199e6f1c1fb09ef4", "prevOutpoint":[ [ { "opTxHash":"0000000000000000000000000000000000000000000000000000000000000000", "opIndex":-1 }, 0, 5000000000 ] ], "value":5000000000, "blockHash":"0000000070eabb853f079c6f1462ef8beca70bac775ce55a13f193fbd7362299", "outputIndex":0, "blockHeight":7447, "outputTxHash":"e414a466d2ac08b07cb79b3e98885fef9264fa180a8e58639d9441f3c0589f4b" }, { "spendInfo":null, "txIndex":0, "scriptHash":"57d291c8a47c7c0c861c4800aeb3d1af6227060ddec55bc58ce26059c4385f19", "prevOutpoint":[ [ { "opTxHash":"0000000000000000000000000000000000000000000000000000000000000000", "opIndex":-1 }, 0, 5000000000 ] ], "value":5000000000, "blockHash":"00000000045287838aeb116c2463ae3c6063f1bca7c6746b6edd9c24b5f6263e", "outputIndex":0, "blockHeight":2455, "outputTxHash":"2aa6397bd7069af97f345614ffe354fa3b8ac872a5b7ed36027a130d8016ba93" } ], "nextCursor":"2aa6397bd7069af97f345614ffe354fa3b8ac872a5b7ed36027a130d8016ba930" }
Request JSON structure:
Response JSON structure:
{ "id":21, "jsonrpc":"2.0", "method":"[SCRIPTHASH]->[UTXO]", "params":{ "sessionKey":"<Session-Key>", "methodParams":{ "scriptHashes":[ "c6eb7edbcaa22415125dcd82cc4db664c41dc544627647a5199e6f1c1fb09ef4", "57d291c8a47c7c0c861c4800aeb3d1af6227060ddec55bc58ce26059c4385f19" ], "pageSize":5 } } }
{ "utxos":[ { "spendInfo":null, "txIndex":0, "scriptHash":"c6eb7edbcaa22415125dcd82cc4db664c41dc544627647a5199e6f1c1fb09ef4", "prevOutpoint":[ [ { "opTxHash":"0000000000000000000000000000000000000000000000000000000000000000", "opIndex":-1 }, 0, 5000000000 ] ], "value":5000000000, "blockHash":"0000000070eabb853f079c6f1462ef8beca70bac775ce55a13f193fbd7362299", "outputIndex":0, "blockHeight":7447, "outputTxHash":"e414a466d2ac08b07cb79b3e98885fef9264fa180a8e58639d9441f3c0589f4b" }, { "spendInfo":null, "txIndex":0, "scriptHash":"57d291c8a47c7c0c861c4800aeb3d1af6227060ddec55bc58ce26059c4385f19", "prevOutpoint":[ [ { "opTxHash":"0000000000000000000000000000000000000000000000000000000000000000", "opIndex":-1 }, 0, 5000000000 ] ], "value":5000000000, "blockHash":"00000000045287838aeb116c2463ae3c6063f1bca7c6746b6edd9c24b5f6263e", "outputIndex":0, "blockHeight":2455, "outputTxHash":"2aa6397bd7069af97f345614ffe354fa3b8ac872a5b7ed36027a130d8016ba93" } ], "nextCursor":"2aa6397bd7069af97f345614ffe354fa3b8ac872a5b7ed36027a130d8016ba930" }
Get MerkleBranch by TXID
Request JSON structure:
Response JSON structure:
curl -X GET -H "Authorization: Bearer <Session-Key>" -k 'https://<domain-name>:<port-number>/v1/merklebranch/54c693db802d83596e3a0cdec1f99dc01af246ca51b82adaad2f41e0a8fb2131'
{ "merkleBranch":[ { "nodeValue":"fa9413f13fddeabef277a8f654f27a86673cffe87ab1c90930d51fa23b94f926", "isLeftNode":true }, { "nodeValue":"97b57176888398ccfde6ea672ba1fe4f41c186d3cb6a8833bee0df4674d0e46b", "isLeftNode":false }, { "nodeValue":"6b45c0a03f27fe58a946deed22274d93ea90bc49ef0ce0508bf9eecccbe9ad6c", "isLeftNode":false }, { "nodeValue":"f36b8f725f266657db454d8996ebd633c35c01c896cf8f6da91f5443295fa0d8", "isLeftNode":false }, { "nodeValue":"d772606e6716c55ddab4740aa867efc43140d9eb2b8c6419f4b385e91df33de7", "isLeftNode":false }, { "nodeValue":"119599c2724b2d62176bc74582618d4a362199c692863ae30a0940b47180019d", "isLeftNode":false }, { "nodeValue":"d592a7459cf743e9184d28267a8e433d0c980a91ac9c95869c2e1382d8408be0", "isLeftNode":false }, { "nodeValue":"7db7beaf03b2557e4e9289e33bf96444a7670b72998df646a02d902f9a2c31c0", "isLeftNode":false }, { "nodeValue":"f0caff9e93bc0ffe943538e242acdcbcdfb1759f59b0ef06da2ca834187cbb18", "isLeftNode":true } ] }
Request JSON structure:
Response JSON structure:
{ "id":12, "jsonrpc":"2.0", "method":"TXID->[MNODE]", "params":{ "sessionKey":"<Session-Key>", "methodParams":{ "txid":"54c693db802d83596e3a0cdec1f99dc01af246ca51b82adaad2f41e0a8fb2131" } } }
{ "merkleBranch":[ { "nodeValue":"fa9413f13fddeabef277a8f654f27a86673cffe87ab1c90930d51fa23b94f926", "isLeftNode":true }, { "nodeValue":"97b57176888398ccfde6ea672ba1fe4f41c186d3cb6a8833bee0df4674d0e46b", "isLeftNode":false }, { "nodeValue":"6b45c0a03f27fe58a946deed22274d93ea90bc49ef0ce0508bf9eecccbe9ad6c", "isLeftNode":false }, { "nodeValue":"f36b8f725f266657db454d8996ebd633c35c01c896cf8f6da91f5443295fa0d8", "isLeftNode":false }, { "nodeValue":"d772606e6716c55ddab4740aa867efc43140d9eb2b8c6419f4b385e91df33de7", "isLeftNode":false }, { "nodeValue":"119599c2724b2d62176bc74582618d4a362199c692863ae30a0940b47180019d", "isLeftNode":false }, { "nodeValue":"d592a7459cf743e9184d28267a8e433d0c980a91ac9c95869c2e1382d8408be0", "isLeftNode":false }, { "nodeValue":"7db7beaf03b2557e4e9289e33bf96444a7670b72998df646a02d902f9a2c31c0", "isLeftNode":false }, { "nodeValue":"f0caff9e93bc0ffe943538e242acdcbcdfb1759f59b0ef06da2ca834187cbb18", "isLeftNode":true } ] }
Analytics
Request JSON structure:
Response JSON structure:
curl -X POST -H "Authorization: Bearer <session-key>" -H "Content-type: application/json" -d '{ "where":{ "$or":[ { "b.height":{ "$neq":500000, "$lte":500100 } }, { "p.name":{ "$in":[ "4343020560a0d1b00060a0d1b0b0" ] } } ] }, "return":{ "$fields":{ "b.year":"", "p.name":"count" } }, "on":{ "from":{ "node":"protocol", "alias":"p" }, "to":{ "node":"block", "alias":"b" }, "via":{ "relationship":"PRESENT_IN", "alias":"rel" } } }' -k 'https://<domain-name>:<port-number>/v1/query' --insecure
[{"b.year":"2013","count(p.name)":828},{"b.year":"2014","count(p.name)":23560},{"b.year":"2015","count(p.name)":444121},{"b.year":"2016","count(p.name)":12324}]
Query Language
Format of API Body:
{ "where": WhereFormat , "return": ReturnFormat , "on": OnFormat }WhereFormat
JSON (Single) { node1.field1: { op: value1} } JSON (And) { "$and" : { node1.field1: {op11: value11, op12: value12} , node1.field2: {op21: value21} } } JSON (with Or) { "$or" : [ {node1.field1: {op11: value11, op12: value12}} , {node1.field2: {op21: value21}} ] } JSON (Or contains And) { "$or": [ { "$and" : { node1.field1: { op: value1} , node1.field2: { op: value2} } } , { node1.field2: {op: value2}} ] } Note: All the `op` mentioned can have the following values: ["$or", "$and", "$gt", "$gte", "$lt", "$lte", "$in", "$nin", "$eq", "$neq"]ReturnFormat
{"$fields": {"rel.bytes": "avg", "rel.fees": "sum"} }OnFormat
{ "from": { "node": "protocol" , "alias" : "p" } , "to" : { "node": "block", "alias" : "b"} , "via": { "relationship" : "PRESENT_IN" , "alias" : "rel" , "direction": true } }
Examples
Get all protocols present in blocks in range 600001 to 600100
{ "where":{ "$and":{ "b.height":{ "$gte":600001, "$lte":600100 } } }, "return":{ "$fields":{ "rel.bytes":"avg" } }, "on":{ "from":{ "node":"protocol", "alias":"p" }, "to":{ "node":"block", "alias":"b" }, "via":{ "relationship":"PRESENT_IN", "alias":"rel", "direction":true } } }
Get sum(fees) of all blocks in last 12 hours for protocols in [x,y,z]
{ "where":{ "b.timestamp":{ "$gte":12hoursbacktimestamp } }, "return":{ "$fields":{ "rel.fees":"sum" } }, "on":{ "from":{ "node":"protocol", "alias":"p" }, "to":{ "node":"block", "alias":"b" }, "via":{ "relationship":"PRESENT_IN", "alias":"rel", "direction":true } } }
Get average(bytes) of all protocols in last 12 hours for block height 600001 to 600100
{ "where":{ "$and":{ "b.height":{ "$gte":600001, "$lte":600100 }, "b.timestamp":{ "$gte":12hoursbacktimestamp } } }, "return":{ "$fields":{ "rel.bytes":"avg" } }, "on":{ "from":{ "node":"protocol", "alias":"p" }, "to":{ "node":"block", "alias":"b" }, "via":{ "relationship":"PRESENT_IN", "alias":"rel", "direction":true } } }
Get count(txns) of all blocks greater than or equal to 600001 where protocol = "x" (or an IN clause)
{ "where":{ "$and":{ "b.height":{ "$gte":600001 }, "p.name":{ "$eq":["x"] } } }, "return":{ "$fields":{ "rel.tx_count":"count" } }, "on":{ "from":{ "node":"protocol", "alias":"p" }, "to":{ "node":"block", "alias":"b" }, "via":{ "relationship":"PRESENT_IN", "alias":"rel", "direction":true } } }
Get height of all blocks grouped by day for a particular Procotol p1.
{ "where":{ "p.name":{ "$eq":["p1"] } }, "return":{ "$fields":{ "b.day":"", "b.height":"collect" } }, "on":{ "from":{ "node":"protocol", "alias":"p" }, "to":{ "node":"block", "alias":"b" }, "via":{ "relationship":"PRESENT_IN", "alias":"rel", "direction":true } } } Response (dummy data): [ {"b.day":"2/12/1970","collect(b.height)":[1237]} , {"b.day":"1/12/1970","collect(b.height)":[1235,1234]} ]
Get height of all blocks grouped by year for a particular Procotol p1.
{ "where":{ "$or":[ { "b.height":{ "$neq":1247, "$lte":1237 } }, { "p.name":{ "$in":[ "p1" ] } } ] }, "return":{ "$fields":{ "b.year":"", "p.name":"collect" } }, "on":{ "from":{ "node":"protocol", "alias":"p" }, "to":{ "node":"block", "alias":"b" }, "via":{ "relationship":"PRESENT_IN", "alias":"rel" } } } Response (dummy data): [{"b.year":"1970","collect(p.name)":["p1"]},{"b.year":"1970","collect(p.name)":["p1","p1"]}]
Get height of all blocks with year for a particular Procotol p1. (without using collect)
{ "where":{ "p.name":{ "$in":[ "p1" ] } }, "return":{ "$fields":{ "b.day":"", "p.name":"" } }, "on":{ "from":{ "node":"protocol", "alias":"p" }, "to":{ "node":"block", "alias":"b" }, "via":{ "relationship":"PRESENT_IN", "alias":"rel" } } } Response (Dummy data): [{"b.day":"1/12/1970","p.name":"p1"},{"b.day":"2/12/1970","p.name":"p1"},{"b.day":"2/12/1970","p.name":"p1"}]