All voting transactions may be obtained through this API. This is the equivalent of transactions/search
with the body parameter type: 3
.
Copy https://ark.nownodes.io/api/votes?page=1&limit=100
Copy {
"meta": {
"totalCountIsEstimate": true,
"count": 100,
"pageCount": 1058,
"totalCount": 105734,
"next": "/votes?page=2&limit=100&transform=true",
"previous": null,
"self": "/votes?page=1&limit=100&transform=true",
"first": "/votes?page=1&limit=100&transform=true",
"last": "/votes?page=1058&limit=100&transform=true"
},
"data": [
{
"id": "2de690ff2c582044814811f0fe776d80ed658cc34a88468ad70631719f8e8ac4",
"blockId": "63877118f6dffb6a4efdc9c28aba12c5937a0d8b25f8f0be974972680a33471c",
"version": 2,
"type": 3,
"typeGroup": 1,
"amount": "0",
"fee": "600000",
"sender": "AV1Wyaa3vyUUmEunCk4CG1V8Zo9R4zddJT",
"senderPublicKey": "0337b55f87794b48e680434da6085f29aa7472231f152853dfc22428ce8311af5e",
"recipient": "AV1Wyaa3vyUUmEunCk4CG1V8Zo9R4zddJT",
"signature": "e2a9f18e59b8fa67068af146cb5967c4c1694582b3514308f0f2c5b4ca683d20fbcbd0acadb0b55405ab900f4f60e5d54beabe6a028706ba1bf2a23076d41bc4",
"asset": {
"votes": [
"-0210b962cbf8b79f9c03d352dec8681b059ba07cfd190d03e7788cb1b65da11a14"
]
},
"confirmations": 0,
"nonce": "23"
},
{
"id": "1677d4c4631b0ce22692b9e9addafb5a54b2b265807e2cdd644896c34cf15198",
"blockId": "085c8c4fde0cd4d315a0d540e48e7332f6d40016167ddb64e5ab03da1286cb6e",
"version": 2,
"type": 3,
"typeGroup": 1,
"amount": "0",
"fee": "600000",
"sender": "AFtcpzGJ7y3RQ9UTJ8ixs6Rb6m2Y7QFdBN",
"senderPublicKey": "031636dea96ef72af8d15a075277bae773214d0bfa4d36866b14d03298629ff98d",
"recipient": "AFtcpzGJ7y3RQ9UTJ8ixs6Rb6m2Y7QFdBN",
"signature": "2e066e186d7ac1f8be61a9593c1aef0448c37b05a33a55d6c43854634d31d4b8bf6e1c95ff7ff8786c805e0536aaeab3edce562f242279567f242943a57e07ac",
"asset": {
"votes": [
"-0209d9dcc35b47ed9702888065abfc6607aa64569c91a08283eb090ae949fa20fd",
"+02902de3fcb257e9248e2ae668d2e314027f0ca05c1eb21e1c5817c7580014669f"
]
},
...
Votes may be retrieved using their transaction ID. Note the asset
field, which contains the votes
object. The first character of each item in the array indicates if it was a vote: +
, or unvote: -
, followed by the public key of the Delegate.
Copy https://ark.nownodes.io/api/votes/beb8dd43c640f562704090159154b2742afba7eacada9e8edee447e34e7675c6
Copy {
"statusCode": 404,
"error": "Not Found",
"message": "Vote not found"
}