Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
docker run -p 26660:26660 -v /path/to/data:/data registry.gitlab.com/accumulatenetwork/accumulate/simulator{
"recordType": "account",
"account": {
"type": "tokenIssuer",
"url": "acc://ACME",
"authorities": [
{
"url": "acc://dn.acme/operators",
"disabled": true
},
{
"url": "acc://staking.acme/book"
}
],
"symbol": "ACME",
"precision": 8,
"issued": "24452643448428198",
"supplyLimit": "50000000000000000"
},
"pending": {
"recordType": "range",
"records": [
{
"recordType": "txID",
"value": "acc://d0049b680a8acf4636e62eb46a973fc7efb0d913af0e34b06fce614d5bda495f@acme"
}
],
"start": 0,
"total": 1
}
}GET /query/{account}?include_receipt={include receipt}{
"jsonrpc": "2.0",
"id": 1,
"method": "query",
"params": {
"scope": "<account>",
"query": {
"queryType": "default",
"includeReceipt": <include receipt>
}
}
}curl http://127.0.1.1:26660/v3 -X POST -s --data-raw '{"jsonrpc": "2.0", "id": 1, "method": "query", "params": {"scope": "dn.acme/anchors", "query": { "queryType": "chain", "name": "main", "index": 15 }}}' | jq .result.value.message.transaction{
"header": {
"principal": "acc://dn.acme/anchors"
},
"body": {
"type": "directoryAnchor",
"source": "acc://dn.acme",
"minorBlockIndex": 44,
"rootChainIndex": 72,
"rootChainAnchor": "21b157d9d0fe394c3cedcfdd3dc77a32b88c74185440d9c5c3e98e0f1d33becd",
"stateTreeAnchor": "a74671f84126e3ed604bbd6f17523646bf88e24539db5fc81052278c591e52a8",
"makeMajorBlockTime": "0001-01-01T00:00:00Z"
}
}curl http://127.0.1.1:26660/v3 -X POST -s --data-raw '{"jsonrpc": "2.0", "id": 1, "method": "query", "params": {"scope": "5eee79bf10e13d26532067ff93473aced45e68942f4cc58e/ACME", "query": { "queryType": "chain", "name": "main", "index": 0, "includeReceipt": true }}}' | jq .result.recei{
"start": "142893cf5282cfdacc6860226049c39f892e87e74153dc1a633cd41f847eef5b",
"end": "142893cf5282cfdacc6860226049c39f892e87e74153dc1a633cd41f847eef5b",
"anchor": "63891df81e9cd2b94a1027eb5d3d05554aff9824a4bcb24da44c2448e7f2a8a9",
"entries": [ /* ... */ ],
"localBlock": 18,
"localBlockTime": "2024-04-18T17:51:48Z"
}curl http://127.0.1.1:26660/v3 -X POST -s --data-raw '{"jsonrpc": "2.0", "id": 1, "method": "query", "params": {"scope": "dn.acme/anchors", "query": { "queryType": "anchorSearch", "anchor": "63891df81e9cd2b94a1027eb5d3d05554aff9824a4bcb24da44c2448e7f2a8a9", "includeReceipt": { "forHeight": 72 } }}}' | jq .result.records[0].receipt{
"start": "63891df81e9cd2b94a1027eb5d3d05554aff9824a4bcb24da44c2448e7f2a8a9",
"end": "63891df81e9cd2b94a1027eb5d3d05554aff9824a4bcb24da44c2448e7f2a8a9",
"anchor": "21b157d9d0fe394c3cedcfdd3dc77a32b88c74185440d9c5c3e98e0f1d33becd",
"entries": [ /* ... */ ],
"localBlock": 44,
"localBlockTime": "2024-04-18T17:52:15Z"
}TX="68f30ce91773ed3a3dbd9f52ddfe7ae22f546467249612e76663d8fe39504c47@inv-icp-adi-2.acme/deal-logs"
curl https://mainnet.accumulatenetwork.io/v3 -X POST -s --data-raw '{"jsonrpc": "2.0", "id": 1, "method": "query", "params": {"scope": "'$TX'", "query": {"queryType": "chain", "includeReceipt": true}}}' | jq .result.records[0]{
"recordType": "chainEntry",
"account": "acc://inv-icp-adi-2.acme/deal-logs",
"name": "main",
"type": "transaction",
"index": 142587,
"entry": "68f30ce91773ed3a3dbd9f52ddfe7ae22f546467249612e76663d8fe39504c47",
"receipt": {
"start": "68f30ce91773ed3a3dbd9f52ddfe7ae22f546467249612e76663d8fe39504c47",
"end": "68f30ce91773ed3a3dbd9f52ddfe7ae22f546467249612e76663d8fe39504c47",
"anchor": "83d6c876589eaa28dd9a1270ebc4063e250ceefb4f7cdf02a6f9fde13bf11e13",
"entries": [ /* ... */ ],
"localBlock": 19965385,
"localBlockTime": "2024-04-10T19:53:10Z"
},
"state": [ /* ... */ ]
}ANCHOR="83d6c876589eaa28dd9a1270ebc4063e250ceefb4f7cdf02a6f9fde13bf11e13"
curl https://mainnet.accumulatenetwork.io/v3 -X POST -s --data-raw '{"jsonrpc": "2.0", "id": 1, "method": "query", "params": {"scope": "dn.acme/anchors", "query": { "queryType": "anchorSearch", "anchor": "'$ANCHOR'", "includeReceipt": true }}}' | jq .result.records[0]{
"recordType": "chainEntry",
"name": "anchor(chandrayaan)-root",
"type": "anchor",
"index": 138397,
"entry": "83d6c876589eaa28dd9a1270ebc4063e250ceefb4f7cdf02a6f9fde13bf11e13",
"receipt": {
"start": "83d6c876589eaa28dd9a1270ebc4063e250ceefb4f7cdf02a6f9fde13bf11e13",
"end": "83d6c876589eaa28dd9a1270ebc4063e250ceefb4f7cdf02a6f9fde13bf11e13",
"anchor": "c63394eee75724c3fd01c124576ecf6ddafae817a534b99aa2f208c7c8f3872e",
"entries": [ /* ... */ ],
"localBlock": 21633361,
"localBlockTime": "2024-04-10T19:53:29Z"
},
"state": [ /* ... */ ]
}curl https://mainnet.accumulatenetwork.io/v3 -X POST --data-raw '
{
"jsonrpc": "2.0",
"method": "query",
"params": {
"scope": "ACME"
},
"id":1
}'
# Result:
# {
# "jsonrpc": "2.0",
# "result": {
# "recordType": "account",
# "account": {
# "type": "tokenIssuer",
# "url": "acc://ACME",
# "authorities": [
# {
# "url": "acc://dn.acme/operators",
# "disabled": true
# },
# {
# "url": "acc://staking.acme/book"
# }
# ],
# "symbol": "ACME",
# "precision": 8,
# "issued": "24452643448428198",
# "supplyLimit": "50000000000000000"
# },
# "pending": {
# "recordType": "range",
# "records": [
# {
# "recordType": "txID",
# "value": "acc://d0049b680a8acf4636e62eb46a973fc7efb0d913af0e34b06fce614d5bda495f@acme"
# }
# ],
# "start": 0,
# "total": 1
# }
# },
# "id": 1
# }