# Ledger

Maintainer

lyd00

vite-crzn

# ledger_getAccountBlocks

Return account blocks by address

  • Parameters:

    • Address : Account address
    • Hash : Hash of account block, optional. For the latest block, filling in null
    • TokenTypeId : Token type id, optional. This is used to get the transactions associated with certain token. Otherwise, filling in null
    • uint64 : Number of account blocks
  • Return:

    • list<AccountBlock> : Detail of AccountBlock is described in Common Models
  • Example:

{
	"jsonrpc": "2.0",
	"id": 17,
	"method": "ledger_getAccountBlocks",
	"params": ["vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10", null, null, 3]
}
{
    "jsonrpc": "2.0",
    "id": 17,
    "result": [
        {
            "blockType": 4,
            "height": "21846",
            "hash": "7c534db9946950197dbce8654c0538278ec38e2b1bb3e229c84df26cf936a739",
            "previousHash": "5a78365f4f7e9c29d57c8f087c9691bfff63a4889cde5d03a89cb24d34abbdf3",
            "address": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
            "publicKey": "dTwfba0WWN2amkGLuMaanCNiGgJsT0ArM//zaDO3Mro=",
            "producer": "vite_8370865362e739fb71615b8b33f9e394d85743093bdfaede6c",
            "fromAddress": "vite_ea6a2f80f3469a001586cca12ac1676bb24484153c419d3db9",
            "toAddress": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
            "sendBlockHash": "37702663fbad5d405d78b9c53bd3206f4040ac17843852fef0d125973030318c",
            "tokenId": "tti_5649544520544f4b454e6e40",
            "amount": "0",
            "fee": "0",
            "data": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
            "difficulty": null,
            "nonce": null,
            "signature": "FLPFkplSkoq31iJpYeNho2MyZR1BKmOD3V54U9XV3PTRWnjm5e7sOnCNWW8EgCMPbK+WYImxPueYfnZXEcnDAw==",
            "quotaByStake": "33184",
            "totalQuota": "33184",
            "vmLogHash": null,
            "triggeredSendBlockList": [
                {
                    "blockType": 2,
                    "height": "0",
                    "hash": "dda7b2c0d2d6c1c1ca3c9bdb061dd4a14ee892d29ab0cdd7fc552c1e57d6f0d2",
                    "previousHash": "0000000000000000000000000000000000000000000000000000000000000000",
                    "address": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
                    "publicKey": null,
                    "producer": "vite_3345524abf6bbe1809449224b5972c41790b6cf2e22fcb5caf",
                    "fromAddress": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
                    "toAddress": "vite_ea6a2f80f3469a001586cca12ac1676bb24484153c419d3db9",
                    "sendBlockHash": "0000000000000000000000000000000000000000000000000000000000000000",
                    "tokenId": "tti_5649544520544f4b454e6e40",
                    "amount": "61984000000000000000000",
                    "fee": "0",
                    "data": null,
                    "difficulty": null,
                    "nonce": null,
                    "signature": null,
                    "quotaByStake": "0",
                    "totalQuota": "0",
                    "vmLogHash": null,
                    "triggeredSendBlockList": null,
                    "tokenInfo": {
                        "tokenName": "VITE",
                        "tokenSymbol": "VITE",
                        "totalSupply": "999344176075854028300627070",
                        "decimals": 18,
                        "owner": "vite_0000000000000000000000000000000000000004d28108e76b",
                        "tokenId": "tti_5649544520544f4b454e6e40",
                        "maxSupply": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                        "ownerBurnOnly": false,
                        "isReIssuable": true,
                        "index": 0,
                        "isOwnerBurnOnly": false
                    },
                    "confirmations": "3605345",
                    "firstSnapshotHash": "33d527c8f6ba7fdef69a6bf6171b53ae000460e08486bb25fb88d44f4c789147",
                    "receiveBlockHeight": "38",
                    "receiveBlockHash": "7a6e4ab1420c3a1d319431ba77757f780578622c938afd1eb7bc8bdc4fe947fc",
                    "timestamp": 1562208615
                }
            ],
            "tokenInfo": {
                "tokenName": "VITE",
                "tokenSymbol": "VITE",
                "totalSupply": "999344176075854028300627070",
                "decimals": 18,
                "owner": "vite_0000000000000000000000000000000000000004d28108e76b",
                "tokenId": "tti_5649544520544f4b454e6e40",
                "maxSupply": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "ownerBurnOnly": false,
                "isReIssuable": true,
                "index": 0,
                "isOwnerBurnOnly": false
            },
            "confirmations": "3605345",
            "firstSnapshotHash": "33d527c8f6ba7fdef69a6bf6171b53ae000460e08486bb25fb88d44f4c789147",
            "receiveBlockHeight": null,
            "receiveBlockHash": null,
            "timestamp": 1562208615
        },
        {
            "blockType": 4,
            "height": "21845",
            "hash": "5a78365f4f7e9c29d57c8f087c9691bfff63a4889cde5d03a89cb24d34abbdf3",
            "previousHash": "4d2c1bc90e235b5a5fdec69bda0ebe6494f0c01b2af53accaa1beff00b9fa976",
            "address": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
            "publicKey": "1cgxEjT1L3x+mPzKsBnV4DSPiU+RTmY7akbrTCxcArE=",
            "producer": "vite_165a295e214421ef1276e79990533953e901291d29b2d4851f",
            "fromAddress": "vite_f74d18fc6431cb9d813c62a47a9063c4b9488219dc22c2736d",
            "toAddress": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
            "sendBlockHash": "fc2c937d542fd5b02aeadb0acb3a2f015e1cc92b94873304ab8642f703e4c059",
            "tokenId": "tti_5649544520544f4b454e6e40",
            "amount": "16000000000000000000",
            "fee": "0",
            "data": "eo15oJWpGqoIm4hP9riEZRvcSXLUs8QKC7XBStD6yyAA",
            "difficulty": null,
            "nonce": null,
            "signature": "XccA38Yxcgt1EZDdSNrgcZNC3YJ088HKNBdTt72noa1F+SbEBxmWnUjSKj5h/FlO/3SXrYnt0rU97L8JkY3lBA==",
            "quotaByStake": "105710",
            "totalQuota": "105710",
            "vmLogHash": "56d05270b0d62a8dac3a01908177ed6e47899eced76bc9fa7716e808d6068705",
            "triggeredSendBlockList": [
                {
                    "blockType": 2,
                    "height": "0",
                    "hash": "6cb62e1576bfc6652251a89b540972aceaa678f51ef4b92156b5d1a387f8b178",
                    "previousHash": "0000000000000000000000000000000000000000000000000000000000000000",
                    "address": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
                    "publicKey": null,
                    "producer": "vite_3345524abf6bbe1809449224b5972c41790b6cf2e22fcb5caf",
                    "fromAddress": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
                    "toAddress": "vite_f74d18fc6431cb9d813c62a47a9063c4b9488219dc22c2736d",
                    "sendBlockHash": "0000000000000000000000000000000000000000000000000000000000000000",
                    "tokenId": "tti_5649544520544f4b454e6e40",
                    "amount": "30000000000000000000",
                    "fee": "0",
                    "data": null,
                    "difficulty": null,
                    "nonce": null,
                    "signature": null,
                    "quotaByStake": "0",
                    "totalQuota": "0",
                    "vmLogHash": null,
                    "triggeredSendBlockList": null,
                    "tokenInfo": {
                        "tokenName": "VITE",
                        "tokenSymbol": "VITE",
                        "totalSupply": "999344176075854028300627070",
                        "decimals": 18,
                        "owner": "vite_0000000000000000000000000000000000000004d28108e76b",
                        "tokenId": "tti_5649544520544f4b454e6e40",
                        "maxSupply": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                        "ownerBurnOnly": false,
                        "isReIssuable": true,
                        "index": 0,
                        "isOwnerBurnOnly": false
                    },
                    "confirmations": "3607047",
                    "firstSnapshotHash": "462da9711b54219036d26b6cf8533a510e75680089a2a1ec54201bf14bdce16c",
                    "receiveBlockHeight": "547",
                    "receiveBlockHash": "3536cd55cb61723bf29d1ac193d39e6f049c2475370a91b8a68a7750e5d57bf5",
                    "timestamp": 1562206877
                }
            ],
            "tokenInfo": {
                "tokenName": "VITE",
                "tokenSymbol": "VITE",
                "totalSupply": "999344176075854028300627070",
                "decimals": 18,
                "owner": "vite_0000000000000000000000000000000000000004d28108e76b",
                "tokenId": "tti_5649544520544f4b454e6e40",
                "maxSupply": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "ownerBurnOnly": false,
                "isReIssuable": true,
                "index": 0,
                "isOwnerBurnOnly": false
            },
            "confirmations": "3607047",
            "firstSnapshotHash": "462da9711b54219036d26b6cf8533a510e75680089a2a1ec54201bf14bdce16c",
            "receiveBlockHeight": null,
            "receiveBlockHash": null,
            "timestamp": 1562206877
        },
        {
            "blockType": 4,
            "height": "21844",
            "hash": "4d2c1bc90e235b5a5fdec69bda0ebe6494f0c01b2af53accaa1beff00b9fa976",
            "previousHash": "b91ce0f015e7d89e87925762a8996326a979b27f7d2d7ed8d22c327937584ee4",
            "address": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
            "publicKey": "O4QZHbAsZQ4KHHzxEPuLdnVT+DiJomRrG6+zYSUSZRc=",
            "producer": "vite_10513d54e0c38a304ad9e7902c82277328b4df76dd31871f37",
            "fromAddress": "vite_f74d18fc6431cb9d813c62a47a9063c4b9488219dc22c2736d",
            "toAddress": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
            "sendBlockHash": "080b41f1cb5194df8d5b8903a6ed987f36291d172f93a8c67c75a87a3769308d",
            "tokenId": "tti_5649544520544f4b454e6e40",
            "amount": "16000000000000000000",
            "fee": "0",
            "data": "wao4N2P26LmbJEmmYuINTMJoQ1MX0+EWEXSTK5CHCh4A",
            "difficulty": null,
            "nonce": null,
            "signature": "RUo6punEG3XzqO/2bL3vOlOMXM9xpvUxToEBgqtP7GLYYr/9ZxrK5GamaaUHA/OyXq8jwrrX5hf1z/F8nT1BCw==",
            "quotaByStake": "116522",
            "totalQuota": "116522",
            "vmLogHash": "e449ac3a53689813ef73d149f8ebb83f3fdc77812d21aaf399575dca353de895",
            "triggeredSendBlockList": [
                {
                    "blockType": 2,
                    "height": "0",
                    "hash": "1a92be3b93725056f9df1906e1fcd1fc123f704d879b020f836daa41eacc42dd",
                    "previousHash": "0000000000000000000000000000000000000000000000000000000000000000",
                    "address": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
                    "publicKey": null,
                    "producer": "vite_3345524abf6bbe1809449224b5972c41790b6cf2e22fcb5caf",
                    "fromAddress": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
                    "toAddress": "vite_f74d18fc6431cb9d813c62a47a9063c4b9488219dc22c2736d",
                    "sendBlockHash": "0000000000000000000000000000000000000000000000000000000000000000",
                    "tokenId": "tti_5649544520544f4b454e6e40",
                    "amount": "4000000000000000000",
                    "fee": "0",
                    "data": null,
                    "difficulty": null,
                    "nonce": null,
                    "signature": null,
                    "quotaByStake": "0",
                    "totalQuota": "0",
                    "vmLogHash": null,
                    "triggeredSendBlockList": null,
                    "tokenInfo": {
                        "tokenName": "VITE",
                        "tokenSymbol": "VITE",
                        "totalSupply": "999344176075854028300627070",
                        "decimals": 18,
                        "owner": "vite_0000000000000000000000000000000000000004d28108e76b",
                        "tokenId": "tti_5649544520544f4b454e6e40",
                        "maxSupply": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                        "ownerBurnOnly": false,
                        "isReIssuable": true,
                        "index": 0,
                        "isOwnerBurnOnly": false
                    },
                    "confirmations": "3607067",
                    "firstSnapshotHash": "dd23c7d1c866311a41977fc008830558ad34d9bcd790ce4dad6367ee52dfedc6",
                    "receiveBlockHeight": "545",
                    "receiveBlockHash": "6172267c757d6234c833aaa05f393ba4a733e584a83ac8c43acf2c6c2da8510f",
                    "timestamp": 1562206856
                }
            ],
            "tokenInfo": {
                "tokenName": "VITE",
                "tokenSymbol": "VITE",
                "totalSupply": "999344176075854028300627070",
                "decimals": 18,
                "owner": "vite_0000000000000000000000000000000000000004d28108e76b",
                "tokenId": "tti_5649544520544f4b454e6e40",
                "maxSupply": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "ownerBurnOnly": false,
                "isReIssuable": true,
                "index": 0,
                "isOwnerBurnOnly": false
            },
            "confirmations": "3607067",
            "firstSnapshotHash": "dd23c7d1c866311a41977fc008830558ad34d9bcd790ce4dad6367ee52dfedc6",
            "receiveBlockHeight": null,
            "receiveBlockHash": null,
            "timestamp": 1562206856
        }
    ]
}

# ledger_getAccountBlockByHash

Return account block by hash

  • Parameters:

    • Hash : Hash of account block
  • Return:

    • AccountBlock : Detail of AccountBlock is described in Common Models
  • Example:

{
	"jsonrpc": "2.0",
	"id": 17,
	"method": "ledger_getAccountBlockByHash",
	"params": ["7c534db9946950197dbce8654c0538278ec38e2b1bb3e229c84df26cf936a739"]
}
{
    "jsonrpc": "2.0",
    "id": 17,
    "result": {
        "blockType": 4,
        "height": "21846",
        "hash": "7c534db9946950197dbce8654c0538278ec38e2b1bb3e229c84df26cf936a739",
        "previousHash": "5a78365f4f7e9c29d57c8f087c9691bfff63a4889cde5d03a89cb24d34abbdf3",
        "address": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
        "publicKey": "dTwfba0WWN2amkGLuMaanCNiGgJsT0ArM//zaDO3Mro=",
        "producer": "vite_8370865362e739fb71615b8b33f9e394d85743093bdfaede6c",
        "fromAddress": "vite_ea6a2f80f3469a001586cca12ac1676bb24484153c419d3db9",
        "toAddress": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
        "sendBlockHash": "37702663fbad5d405d78b9c53bd3206f4040ac17843852fef0d125973030318c",
        "tokenId": "tti_5649544520544f4b454e6e40",
        "amount": "0",
        "fee": "0",
        "data": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
        "difficulty": null,
        "nonce": null,
        "signature": "FLPFkplSkoq31iJpYeNho2MyZR1BKmOD3V54U9XV3PTRWnjm5e7sOnCNWW8EgCMPbK+WYImxPueYfnZXEcnDAw==",
        "quotaByStake": "33184",
        "totalQuota": "33184",
        "vmLogHash": null,
        "triggeredSendBlockList": [
            {
                "blockType": 2,
                "height": "0",
                "hash": "dda7b2c0d2d6c1c1ca3c9bdb061dd4a14ee892d29ab0cdd7fc552c1e57d6f0d2",
                "previousHash": "0000000000000000000000000000000000000000000000000000000000000000",
                "address": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
                "publicKey": null,
                "producer": "vite_3345524abf6bbe1809449224b5972c41790b6cf2e22fcb5caf",
                "fromAddress": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
                "toAddress": "vite_ea6a2f80f3469a001586cca12ac1676bb24484153c419d3db9",
                "sendBlockHash": "0000000000000000000000000000000000000000000000000000000000000000",
                "tokenId": "tti_5649544520544f4b454e6e40",
                "amount": "61984000000000000000000",
                "fee": "0",
                "data": null,
                "difficulty": null,
                "nonce": null,
                "signature": null,
                "quotaByStake": "0",
                "totalQuota": "0",
                "vmLogHash": null,
                "triggeredSendBlockList": null,
                "tokenInfo": {
                    "tokenName": "VITE",
                    "tokenSymbol": "VITE",
                    "totalSupply": "999369292029736282857580488",
                    "decimals": 18,
                    "owner": "vite_0000000000000000000000000000000000000004d28108e76b",
                    "tokenId": "tti_5649544520544f4b454e6e40",
                    "maxSupply": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                    "ownerBurnOnly": false,
                    "isReIssuable": true,
                    "index": 0,
                    "isOwnerBurnOnly": false
                },
                "confirmations": "3622745",
                "firstSnapshotHash": "33d527c8f6ba7fdef69a6bf6171b53ae000460e08486bb25fb88d44f4c789147",
                "receiveBlockHeight": "38",
                "receiveBlockHash": "7a6e4ab1420c3a1d319431ba77757f780578622c938afd1eb7bc8bdc4fe947fc",
                "timestamp": 1562208615
            }
        ],
        "tokenInfo": {
            "tokenName": "VITE",
            "tokenSymbol": "VITE",
            "totalSupply": "999369292029736282857580488",
            "decimals": 18,
            "owner": "vite_0000000000000000000000000000000000000004d28108e76b",
            "tokenId": "tti_5649544520544f4b454e6e40",
            "maxSupply": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
            "ownerBurnOnly": false,
            "isReIssuable": true,
            "index": 0,
            "isOwnerBurnOnly": false
        },
        "confirmations": "3622745",
        "firstSnapshotHash": "33d527c8f6ba7fdef69a6bf6171b53ae000460e08486bb25fb88d44f4c789147",
        "receiveBlockHeight": null,
        "receiveBlockHash": null,
        "timestamp": 1562208615
    }
}

# ledger_getAccountBlockByHeight

Return account block by height

  • Parameters:

    • Address : Account address
    • uint64 : Height of account block
  • Return:

    • AccountBlock : Detail of AccountBlock is described in Common Models
  • Example:

{
	"jsonrpc": "2.0",
	"id": 17,
	"method": "ledger_getAccountBlockByHeight",
	"params": ["vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10", 21846]
}
{
    "jsonrpc": "2.0",
    "id": 17,
    "result": {
        "blockType": 4,
        "height": "21846",
        "hash": "7c534db9946950197dbce8654c0538278ec38e2b1bb3e229c84df26cf936a739",
        "previousHash": "5a78365f4f7e9c29d57c8f087c9691bfff63a4889cde5d03a89cb24d34abbdf3",
        "address": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
        "publicKey": "dTwfba0WWN2amkGLuMaanCNiGgJsT0ArM//zaDO3Mro=",
        "producer": "vite_8370865362e739fb71615b8b33f9e394d85743093bdfaede6c",
        "fromAddress": "vite_ea6a2f80f3469a001586cca12ac1676bb24484153c419d3db9",
        "toAddress": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
        "sendBlockHash": "37702663fbad5d405d78b9c53bd3206f4040ac17843852fef0d125973030318c",
        "tokenId": "tti_5649544520544f4b454e6e40",
        "amount": "0",
        "fee": "0",
        "data": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
        "difficulty": null,
        "nonce": null,
        "signature": "FLPFkplSkoq31iJpYeNho2MyZR1BKmOD3V54U9XV3PTRWnjm5e7sOnCNWW8EgCMPbK+WYImxPueYfnZXEcnDAw==",
        "quotaByStake": "33184",
        "totalQuota": "33184",
        "vmLogHash": null,
        "triggeredSendBlockList": [
            {
                "blockType": 2,
                "height": "0",
                "hash": "dda7b2c0d2d6c1c1ca3c9bdb061dd4a14ee892d29ab0cdd7fc552c1e57d6f0d2",
                "previousHash": "0000000000000000000000000000000000000000000000000000000000000000",
                "address": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
                "publicKey": null,
                "producer": "vite_3345524abf6bbe1809449224b5972c41790b6cf2e22fcb5caf",
                "fromAddress": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
                "toAddress": "vite_ea6a2f80f3469a001586cca12ac1676bb24484153c419d3db9",
                "sendBlockHash": "0000000000000000000000000000000000000000000000000000000000000000",
                "tokenId": "tti_5649544520544f4b454e6e40",
                "amount": "61984000000000000000000",
                "fee": "0",
                "data": null,
                "difficulty": null,
                "nonce": null,
                "signature": null,
                "quotaByStake": "0",
                "totalQuota": "0",
                "vmLogHash": null,
                "triggeredSendBlockList": null,
                "tokenInfo": {
                    "tokenName": "VITE",
                    "tokenSymbol": "VITE",
                    "totalSupply": "999998383901711633310557566",
                    "decimals": 18,
                    "owner": "vite_0000000000000000000000000000000000000004d28108e76b",
                    "tokenId": "tti_5649544520544f4b454e6e40",
                    "maxSupply": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                    "ownerBurnOnly": false,
                    "isReIssuable": true,
                    "index": 0,
                    "isOwnerBurnOnly": false
                },
                "confirmations": "4299959",
                "firstSnapshotHash": "33d527c8f6ba7fdef69a6bf6171b53ae000460e08486bb25fb88d44f4c789147",
                "receiveBlockHeight": "38",
                "receiveBlockHash": "7a6e4ab1420c3a1d319431ba77757f780578622c938afd1eb7bc8bdc4fe947fc",
                "timestamp": 1562208615
            }
        ],
        "tokenInfo": {
            "tokenName": "VITE",
            "tokenSymbol": "VITE",
            "totalSupply": "999998383901711633310557566",
            "decimals": 18,
            "owner": "vite_0000000000000000000000000000000000000004d28108e76b",
            "tokenId": "tti_5649544520544f4b454e6e40",
            "maxSupply": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
            "ownerBurnOnly": false,
            "isReIssuable": true,
            "index": 0,
            "isOwnerBurnOnly": false
        },
        "confirmations": "4299954",
        "firstSnapshotHash": "33d527c8f6ba7fdef69a6bf6171b53ae000460e08486bb25fb88d44f4c789147",
        "receiveBlockHeight": null,
        "receiveBlockHash": null,
        "timestamp": 1562208615
    }
}

# ledger_getAccountBlocksByAddress

Return account blocks in descent order by address

  • Parameters:

    • Address : Account address
    • uint64 : Page index, start with 0
    • uint64 : Page size
  • Return:

    • List< AccountBlock >: Detail of AccountBlock is described in Common Models
  • Example:

{
	"jsonrpc": "2.0",
	"id": 17,
	"method": "ledger_getAccountBlocksByAddress",
	"params": ["vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10", 0, 3]
}
{
    "jsonrpc": "2.0",
    "id": 17,
    "result": [
        {
            "blockType": 4,
            "height": "21846",
            "hash": "7c534db9946950197dbce8654c0538278ec38e2b1bb3e229c84df26cf936a739",
            "previousHash": "5a78365f4f7e9c29d57c8f087c9691bfff63a4889cde5d03a89cb24d34abbdf3",
            "address": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
            "publicKey": "dTwfba0WWN2amkGLuMaanCNiGgJsT0ArM//zaDO3Mro=",
            "producer": "vite_8370865362e739fb71615b8b33f9e394d85743093bdfaede6c",
            "fromAddress": "vite_ea6a2f80f3469a001586cca12ac1676bb24484153c419d3db9",
            "toAddress": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
            "sendBlockHash": "37702663fbad5d405d78b9c53bd3206f4040ac17843852fef0d125973030318c",
            "tokenId": "tti_5649544520544f4b454e6e40",
            "amount": "0",
            "fee": "0",
            "data": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
            "difficulty": null,
            "nonce": null,
            "signature": "FLPFkplSkoq31iJpYeNho2MyZR1BKmOD3V54U9XV3PTRWnjm5e7sOnCNWW8EgCMPbK+WYImxPueYfnZXEcnDAw==",
            "quotaByStake": "33184",
            "totalQuota": "33184",
            "vmLogHash": null,
            "triggeredSendBlockList": [
                {
                    "blockType": 2,
                    "height": "0",
                    "hash": "dda7b2c0d2d6c1c1ca3c9bdb061dd4a14ee892d29ab0cdd7fc552c1e57d6f0d2",
                    "previousHash": "0000000000000000000000000000000000000000000000000000000000000000",
                    "address": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
                    "publicKey": null,
                    "producer": "vite_3345524abf6bbe1809449224b5972c41790b6cf2e22fcb5caf",
                    "fromAddress": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
                    "toAddress": "vite_ea6a2f80f3469a001586cca12ac1676bb24484153c419d3db9",
                    "sendBlockHash": "0000000000000000000000000000000000000000000000000000000000000000",
                    "tokenId": "tti_5649544520544f4b454e6e40",
                    "amount": "61984000000000000000000",
                    "fee": "0",
                    "data": null,
                    "difficulty": null,
                    "nonce": null,
                    "signature": null,
                    "quotaByStake": "0",
                    "totalQuota": "0",
                    "vmLogHash": null,
                    "triggeredSendBlockList": null,
                    "tokenInfo": {
                        "tokenName": "VITE",
                        "tokenSymbol": "VITE",
                        "totalSupply": "1000032113155962510026863838",
                        "decimals": 18,
                        "owner": "vite_0000000000000000000000000000000000000004d28108e76b",
                        "tokenId": "tti_5649544520544f4b454e6e40",
                        "maxSupply": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                        "ownerBurnOnly": false,
                        "isReIssuable": true,
                        "index": 0,
                        "isOwnerBurnOnly": false
                    },
                    "confirmations": "4368185",
                    "firstSnapshotHash": "33d527c8f6ba7fdef69a6bf6171b53ae000460e08486bb25fb88d44f4c789147",
                    "receiveBlockHeight": "38",
                    "receiveBlockHash": "7a6e4ab1420c3a1d319431ba77757f780578622c938afd1eb7bc8bdc4fe947fc",
                    "timestamp": 1562208615
                }
            ],
            "tokenInfo": {
                "tokenName": "VITE",
                "tokenSymbol": "VITE",
                "totalSupply": "1000032113155962510026863838",
                "decimals": 18,
                "owner": "vite_0000000000000000000000000000000000000004d28108e76b",
                "tokenId": "tti_5649544520544f4b454e6e40",
                "maxSupply": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "ownerBurnOnly": false,
                "isReIssuable": true,
                "index": 0,
                "isOwnerBurnOnly": false
            },
            "confirmations": "4368185",
            "firstSnapshotHash": "33d527c8f6ba7fdef69a6bf6171b53ae000460e08486bb25fb88d44f4c789147",
            "receiveBlockHeight": null,
            "receiveBlockHash": null,
            "timestamp": 1562208615
        },
        {
            "blockType": 4,
            "height": "21845",
            "hash": "5a78365f4f7e9c29d57c8f087c9691bfff63a4889cde5d03a89cb24d34abbdf3",
            "previousHash": "4d2c1bc90e235b5a5fdec69bda0ebe6494f0c01b2af53accaa1beff00b9fa976",
            "address": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
            "publicKey": "1cgxEjT1L3x+mPzKsBnV4DSPiU+RTmY7akbrTCxcArE=",
            "producer": "vite_165a295e214421ef1276e79990533953e901291d29b2d4851f",
            "fromAddress": "vite_f74d18fc6431cb9d813c62a47a9063c4b9488219dc22c2736d",
            "toAddress": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
            "sendBlockHash": "fc2c937d542fd5b02aeadb0acb3a2f015e1cc92b94873304ab8642f703e4c059",
            "tokenId": "tti_5649544520544f4b454e6e40",
            "amount": "16000000000000000000",
            "fee": "0",
            "data": "eo15oJWpGqoIm4hP9riEZRvcSXLUs8QKC7XBStD6yyAA",
            "difficulty": null,
            "nonce": null,
            "signature": "XccA38Yxcgt1EZDdSNrgcZNC3YJ088HKNBdTt72noa1F+SbEBxmWnUjSKj5h/FlO/3SXrYnt0rU97L8JkY3lBA==",
            "quotaByStake": "105710",
            "totalQuota": "105710",
            "vmLogHash": "56d05270b0d62a8dac3a01908177ed6e47899eced76bc9fa7716e808d6068705",
            "triggeredSendBlockList": [
                {
                    "blockType": 2,
                    "height": "0",
                    "hash": "6cb62e1576bfc6652251a89b540972aceaa678f51ef4b92156b5d1a387f8b178",
                    "previousHash": "0000000000000000000000000000000000000000000000000000000000000000",
                    "address": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
                    "publicKey": null,
                    "producer": "vite_3345524abf6bbe1809449224b5972c41790b6cf2e22fcb5caf",
                    "fromAddress": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
                    "toAddress": "vite_f74d18fc6431cb9d813c62a47a9063c4b9488219dc22c2736d",
                    "sendBlockHash": "0000000000000000000000000000000000000000000000000000000000000000",
                    "tokenId": "tti_5649544520544f4b454e6e40",
                    "amount": "30000000000000000000",
                    "fee": "0",
                    "data": null,
                    "difficulty": null,
                    "nonce": null,
                    "signature": null,
                    "quotaByStake": "0",
                    "totalQuota": "0",
                    "vmLogHash": null,
                    "triggeredSendBlockList": null,
                    "tokenInfo": {
                        "tokenName": "VITE",
                        "tokenSymbol": "VITE",
                        "totalSupply": "1000032113155962510026863838",
                        "decimals": 18,
                        "owner": "vite_0000000000000000000000000000000000000004d28108e76b",
                        "tokenId": "tti_5649544520544f4b454e6e40",
                        "maxSupply": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                        "ownerBurnOnly": false,
                        "isReIssuable": true,
                        "index": 0,
                        "isOwnerBurnOnly": false
                    },
                    "confirmations": "4369892",
                    "firstSnapshotHash": "462da9711b54219036d26b6cf8533a510e75680089a2a1ec54201bf14bdce16c",
                    "receiveBlockHeight": "547",
                    "receiveBlockHash": "3536cd55cb61723bf29d1ac193d39e6f049c2475370a91b8a68a7750e5d57bf5",
                    "timestamp": 1562206877
                }
            ],
            "tokenInfo": {
                "tokenName": "VITE",
                "tokenSymbol": "VITE",
                "totalSupply": "1000032113155962510026863838",
                "decimals": 18,
                "owner": "vite_0000000000000000000000000000000000000004d28108e76b",
                "tokenId": "tti_5649544520544f4b454e6e40",
                "maxSupply": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "ownerBurnOnly": false,
                "isReIssuable": true,
                "index": 0,
                "isOwnerBurnOnly": false
            },
            "confirmations": "4369891",
            "firstSnapshotHash": "462da9711b54219036d26b6cf8533a510e75680089a2a1ec54201bf14bdce16c",
            "receiveBlockHeight": null,
            "receiveBlockHash": null,
            "timestamp": 1562206877
        },
        {
            "blockType": 4,
            "height": "21844",
            "hash": "4d2c1bc90e235b5a5fdec69bda0ebe6494f0c01b2af53accaa1beff00b9fa976",
            "previousHash": "b91ce0f015e7d89e87925762a8996326a979b27f7d2d7ed8d22c327937584ee4",
            "address": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
            "publicKey": "O4QZHbAsZQ4KHHzxEPuLdnVT+DiJomRrG6+zYSUSZRc=",
            "producer": "vite_10513d54e0c38a304ad9e7902c82277328b4df76dd31871f37",
            "fromAddress": "vite_f74d18fc6431cb9d813c62a47a9063c4b9488219dc22c2736d",
            "toAddress": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
            "sendBlockHash": "080b41f1cb5194df8d5b8903a6ed987f36291d172f93a8c67c75a87a3769308d",
            "tokenId": "tti_5649544520544f4b454e6e40",
            "amount": "16000000000000000000",
            "fee": "0",
            "data": "wao4N2P26LmbJEmmYuINTMJoQ1MX0+EWEXSTK5CHCh4A",
            "difficulty": null,
            "nonce": null,
            "signature": "RUo6punEG3XzqO/2bL3vOlOMXM9xpvUxToEBgqtP7GLYYr/9ZxrK5GamaaUHA/OyXq8jwrrX5hf1z/F8nT1BCw==",
            "quotaByStake": "116522",
            "totalQuota": "116522",
            "vmLogHash": "e449ac3a53689813ef73d149f8ebb83f3fdc77812d21aaf399575dca353de895",
            "triggeredSendBlockList": [
                {
                    "blockType": 2,
                    "height": "0",
                    "hash": "1a92be3b93725056f9df1906e1fcd1fc123f704d879b020f836daa41eacc42dd",
                    "previousHash": "0000000000000000000000000000000000000000000000000000000000000000",
                    "address": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
                    "publicKey": null,
                    "producer": "vite_3345524abf6bbe1809449224b5972c41790b6cf2e22fcb5caf",
                    "fromAddress": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
                    "toAddress": "vite_f74d18fc6431cb9d813c62a47a9063c4b9488219dc22c2736d",
                    "sendBlockHash": "0000000000000000000000000000000000000000000000000000000000000000",
                    "tokenId": "tti_5649544520544f4b454e6e40",
                    "amount": "4000000000000000000",
                    "fee": "0",
                    "data": null,
                    "difficulty": null,
                    "nonce": null,
                    "signature": null,
                    "quotaByStake": "0",
                    "totalQuota": "0",
                    "vmLogHash": null,
                    "triggeredSendBlockList": null,
                    "tokenInfo": {
                        "tokenName": "VITE",
                        "tokenSymbol": "VITE",
                        "totalSupply": "1000032113155962510026863838",
                        "decimals": 18,
                        "owner": "vite_0000000000000000000000000000000000000004d28108e76b",
                        "tokenId": "tti_5649544520544f4b454e6e40",
                        "maxSupply": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                        "ownerBurnOnly": false,
                        "isReIssuable": true,
                        "index": 0,
                        "isOwnerBurnOnly": false
                    },
                    "confirmations": "4369916",
                    "firstSnapshotHash": "dd23c7d1c866311a41977fc008830558ad34d9bcd790ce4dad6367ee52dfedc6",
                    "receiveBlockHeight": "545",
                    "receiveBlockHash": "6172267c757d6234c833aaa05f393ba4a733e584a83ac8c43acf2c6c2da8510f",
                    "timestamp": 1562206856
                }
            ],
            "tokenInfo": {
                "tokenName": "VITE",
                "tokenSymbol": "VITE",
                "totalSupply": "1000032113155962510026863838",
                "decimals": 18,
                "owner": "vite_0000000000000000000000000000000000000004d28108e76b",
                "tokenId": "tti_5649544520544f4b454e6e40",
                "maxSupply": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "ownerBurnOnly": false,
                "isReIssuable": true,
                "index": 0,
                "isOwnerBurnOnly": false
            },
            "confirmations": "4369913",
            "firstSnapshotHash": "dd23c7d1c866311a41977fc008830558ad34d9bcd790ce4dad6367ee52dfedc6",
            "receiveBlockHeight": null,
            "receiveBlockHash": null,
            "timestamp": 1562206856
        }
    ]
}

# ledger_getLatestAccountBlock

Return the latest account block

  • Parameters:

    • Address : Account address
  • Return:

    • AccountBlock : Detail of AccountBlock is described in Common Models
  • Example:

{
	"jsonrpc": "2.0",
	"id": 17,
	"method": "ledger_getLatestAccountBlock",
	"params": ["vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10"]
}
{
    "jsonrpc": "2.0",
    "id": 17,
    "result": {
        "blockType": 4,
        "height": "21846",
        "hash": "7c534db9946950197dbce8654c0538278ec38e2b1bb3e229c84df26cf936a739",
        "previousHash": "5a78365f4f7e9c29d57c8f087c9691bfff63a4889cde5d03a89cb24d34abbdf3",
        "address": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
        "publicKey": "dTwfba0WWN2amkGLuMaanCNiGgJsT0ArM//zaDO3Mro=",
        "producer": "vite_8370865362e739fb71615b8b33f9e394d85743093bdfaede6c",
        "fromAddress": "vite_ea6a2f80f3469a001586cca12ac1676bb24484153c419d3db9",
        "toAddress": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
        "sendBlockHash": "37702663fbad5d405d78b9c53bd3206f4040ac17843852fef0d125973030318c",
        "tokenId": "tti_5649544520544f4b454e6e40",
        "amount": "0",
        "fee": "0",
        "data": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
        "difficulty": null,
        "nonce": null,
        "signature": "FLPFkplSkoq31iJpYeNho2MyZR1BKmOD3V54U9XV3PTRWnjm5e7sOnCNWW8EgCMPbK+WYImxPueYfnZXEcnDAw==",
        "quotaByStake": "33184",
        "totalQuota": "33184",
        "vmLogHash": null,
        "triggeredSendBlockList": [
            {
                "blockType": 2,
                "height": "0",
                "hash": "dda7b2c0d2d6c1c1ca3c9bdb061dd4a14ee892d29ab0cdd7fc552c1e57d6f0d2",
                "previousHash": "0000000000000000000000000000000000000000000000000000000000000000",
                "address": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
                "publicKey": null,
                "producer": "vite_3345524abf6bbe1809449224b5972c41790b6cf2e22fcb5caf",
                "fromAddress": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
                "toAddress": "vite_ea6a2f80f3469a001586cca12ac1676bb24484153c419d3db9",
                "sendBlockHash": "0000000000000000000000000000000000000000000000000000000000000000",
                "tokenId": "tti_5649544520544f4b454e6e40",
                "amount": "61984000000000000000000",
                "fee": "0",
                "data": null,
                "difficulty": null,
                "nonce": null,
                "signature": null,
                "quotaByStake": "0",
                "totalQuota": "0",
                "vmLogHash": null,
                "triggeredSendBlockList": null,
                "tokenInfo": {
                    "tokenName": "VITE",
                    "tokenSymbol": "VITE",
                    "totalSupply": "1000045942413038967590996145",
                    "decimals": 18,
                    "owner": "vite_0000000000000000000000000000000000000004d28108e76b",
                    "tokenId": "tti_5649544520544f4b454e6e40",
                    "maxSupply": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                    "ownerBurnOnly": false,
                    "isReIssuable": true,
                    "index": 0,
                    "isOwnerBurnOnly": false
                },
                "confirmations": "4420249",
                "firstSnapshotHash": "33d527c8f6ba7fdef69a6bf6171b53ae000460e08486bb25fb88d44f4c789147",
                "receiveBlockHeight": "38",
                "receiveBlockHash": "7a6e4ab1420c3a1d319431ba77757f780578622c938afd1eb7bc8bdc4fe947fc",
                "timestamp": 1562208615
            }
        ],
        "tokenInfo": {
            "tokenName": "VITE",
            "tokenSymbol": "VITE",
            "totalSupply": "1000045942413038967590996145",
            "decimals": 18,
            "owner": "vite_0000000000000000000000000000000000000004d28108e76b",
            "tokenId": "tti_5649544520544f4b454e6e40",
            "maxSupply": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
            "ownerBurnOnly": false,
            "isReIssuable": true,
            "index": 0,
            "isOwnerBurnOnly": false
        },
        "confirmations": "4420245",
        "firstSnapshotHash": "33d527c8f6ba7fdef69a6bf6171b53ae000460e08486bb25fb88d44f4c789147",
        "receiveBlockHeight": null,
        "receiveBlockHash": null,
        "timestamp": 1562208615
    }
}

# ledger_getSnapshotChainHeight

Return current snapshot chain height

  • Parameters: none

  • Return:

    • string of uint64 : The current height of snapshot chain
  • Example:

{
	"jsonrpc": "2.0",
	"id": 1,
	"method": "ledger_getSnapshotChainHeight",
	"params": null
}

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "1816565"
}
{
	"jsonrpc": "2.0",
	"id": 1,
	"method": "ledger_getSnapshotChainHeight",
	"params": null
}

# ledger_getSnapshotBlockByHash

Return snapshot block by hash

  • Parameters:

    • Hash Hash of snapshot block
  • Returns: Object : Snapshot block

    • producer : string Snapshot block producer
    • hash : Hash Hash of snapshot block
    • previousHash : Hash Hash of previous snapshot block
    • height : uint64 Height of snapshot block
    • publicKey : ed25519.PublicKey Producer's public key
    • signature : []byte Signature
    • timestamp : time Timestamp of snapshot block produced
    • seed : uint64 Random seed generated by the same producer in prior round
    • nextSeedHash : Hash Hash of random seed generated in current round
    • snapshotData : map[types.Address]HashHeight Snapshot content
  • Example:

{
    "jsonrpc": "2.0",
    "id": 2,
    "method": "ledger_getSnapshotBlockByHash",
    "params": ["579db20cb0ef854bba4636d6eaff499ae106ecd918826072a75d47f3e7cbe857"]
}
{
    "jsonrpc": "2.0",
    "id": 2,
    "result": {
        "producer": "vite_94badf80abab06dc1cdb4d21038a6799040bb2feb154f730cb",
        "hash": "579db20cb0ef854bba4636d6eaff499ae106ecd918826072a75d47f3e7cbe857",
        "previousHash": "18cf03a6c5d5128bc0a419f23713689cb279165d057759640c700c28c9315470",
        "height": 1807756,
        "publicKey": "zpwPhKs0jClH2JYqn3HieI3SPqm97PMKZlsive8PjBw=",
        "signature": "EzgWq2h2h+qkIHhsKSHK7IMIn3M9bAVR3Sy8ZpaLx2U7BJ6mjVhKIuerEKLcEsY9qbPfc9IYgJ9YYpd1uVK4Dw==",
        "seed": 15994478024988707574,
        "nextSeedHash": "360f20aa86891f67fdab4da09fc4068521c7ffb581f54761f602c2771ecdb097",
        "snapshotData": {
            "vite_61088b1d4d334271f0ead08a1eec17b08e7ef25141dd427787": {
                "height": 9596,
                "hash": "b8a272bcebb5176fc5b918b6d1e4fc9aca5fd6a0be1fcea99386c6f8ae98a5c1"
            },
            "vite_866d14993fd17f8090d1b0b99e13318c0f99fdd180d3b6cca9": {
                "height": 777,
                "hash": "c78843e347f5927d255f4b57704335dc43222041bf5f27d45980ac83fcf1dbb3"
            }
        },
        "timestamp": 1560422154
    }
}

# ledger_getSnapshotBlockByHeight

Return snapshot block by height

  • Parameters:

    • uint64 Height of snapshot block
  • Returns: Object : Snapshot block

    • producer : string Snapshot block producer
    • hash : Hash Hash of snapshot block
    • previousHash : Hash Hash of previous snapshot block
    • height : uint64 Height of snapshot block
    • publicKey : ed25519.PublicKey Producer's public key
    • signature : []byte Signature
    • timestamp : time Timestamp of snapshot block produced
    • seed : uint64 Random seed generated by the same producer in prior round
    • nextSeedHash : Hash Hash of random seed generated in current round
    • snapshotData : map[types.Address]HashHeight Snapshot content
  • Example:

{
	"jsonrpc": "2.0",
	"id": 2,
	"method": "ledger_getSnapshotBlockByHeight",
	"params": [6363411]
}
{
    "jsonrpc": "2.0",
    "id": 17,
    "result": {
        "hash": "1cf965e7b9a8ab4a3758e7c2fa97890ce8724cfd071cd0b0966c1be17cfc48ad",
        "previousHash": "ce0e8595aace97b2732126afd104c889d71f87586740f401135f1ff58309363e",
        "height": 6363411,
        "publicKey": "uPBd4umnBsp0rGrKQWWsabcawNYEjPh3MKXnGNVTMWs=",
        "signature": "JcYfU1LWuZTgKgpMrQ1T6uUuw3krUImikmgTqoyEDXubYt00ND/loABQ7KoQkBh8PYQOvVrPZtBjVlTGWJx6DQ==",
        "timestamp": "1558012705",
        "stateHash": "93f40fc8892855ae46134c85f7a5010308da9cb7a07337b2a68da34473c04492",
        "seed": 15994478024988707574,
        "nextSeedHash": "360f20aa86891f67fdab4da09fc4068521c7ffb581f54761f602c2771ecdb097",
        "snapshotData": {
            "vite_56fd05b23ff26cd7b0a40957fb77bde60c9fd6ebc35f809c23": {
                "height": 31578,
                "hash": "91fa958eb01f82b93ef4077a938fe9f9b5e1c2555979045e0a3c3b06721e69cc"
            },
            "vite_eef384a5fc40e0fbe282411e1d8e70c0f3c0e4a4f783448780": {
                "height": 894,
                "hash": "347a08b2e7666db832b1e0f69972f9dd1875fe6c1d3fc03aa55ab07e9a4858ae"
            }
        }
    }
}

# ledger_getChunks

Return snapshot blocks and snapshot account blocks by height range

  • Parameters:

    • string Start height, inclusive
    • string End height, inclusive
  • Returns:

    • SnapshotBlock : Snapshot block
      • producer : string Snapshot block producer
      • hash : Hash Hash of snapshot block
      • previousHash : Hash Hash of previous snapshot block
      • height : uint64 Height of snapshot block
      • publicKey : ed25519.PublicKey Producer's public key
      • signature : []byte Signature
      • timestamp : time Timestamp of snapshot block produced
      • seed : uint64 andom seed generated by the same producer in prior round
      • nextSeedHash : Hash ash of random seed generated in current round
      • snapshotData : map[types.Address]HashHeight Snapshot content
    • AccountBlocks : Snapshot account blocks. Detail of AccountBlock is described in Common models v1
  • Example:

{
	"jsonrpc": "2.0",
	"id": 1,
	"method": "ledger_getChunks",
	"params": ["100","101"]
}
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": [
        {
            "AccountBlocks": null,
            "SnapshotBlock": {
                "producer": "vite_c1d11e6eda9a9b80e388a38e0ac541cbc3333736233b4eaaab",
                "hash": "ca09e12f7a14bce2d22cfe87f557536fd3a4d77d1b3e84e6a46dd0820d9d3c58",
                "height": 100,
                "publicKey": "h3B0rM7qM8ZZzfLwFxfmrEFlO8J4X7dP8j+TDxfEgyc=",
                "signature": "9INk9B3b3ZF3iOCU9mY2RYy0kEpGMSxx/ohiDwPqz9MLOA7R7C4Lo5ioROXV5DdhRhaEm+xca2RApmoM9vfrAA==",
                "seed": 0,
                "version": 0,
                "previousHash": "75e9e5212729d9df18a402166b7125a5b0557bd3485d21d61ec146f07309a539",
                "nextSeedHash": null,
                "snapshotData": null,
                "timestamp": 1558458875
            }
        },
        {
            "AccountBlocks": [
                {
                    "blockType": 2,
                    "hash": "603e64f972960cd886a1dc77308b9a7d127cb462567b1ecd2ef68b4330a6d0c0",
                    "prevHash": "592a1e46ad746fd7d0b12b6e51ad62ffaea42574e494f8ffeab611f11021efc0",
                    "height": 4,
                    "accountAddress": "vite_483eed4ba0b5cd984d480ca048d5ee8ef5fa6b0ae23774c09b",
                    "publicKey": "oDxoxc75R4NnzWb4Vj3P9kmSercIquNzZlPlDnhRN2M=",
                    "toAddress": "vite_0000000000000000000000000000000000000003f6af7459b9",
                    "amount": 1000000000000000000000,
                    "tokenId": "tti_5649544520544f4b454e6e40",
                    "fromBlockHash": "0000000000000000000000000000000000000000000000000000000000000000",
                    "data": "jefc/QAAAAAAAAAAAAAA14lDHx2CBQbIP9U5oK6YY9aWE4IB",
                    "quota": 82000,
                    "fee": 0,
                    "logHash": null,
                    "difficulty": null,
                    "nonce": null,
                    "sendBlockList": [],
                    "signature": "hWfLf7vXqIevTPdu6acc0PVVyNYxGtN9OU73F7Vn8+ZJ5vN6Lo76q1yalt5+OdqDRA4IzlQ8ruTNgvuwT0ooCw=="
                },
                {
                    "blockType": 2,
                    "hash": "76840a3fd02e42d3d141d740c68739f5bec13a9acbc5d78e64777e6965df382c",
                    "prevHash": "c28bdd238e71dec3c86110d95f5a4d091ea8573242535d75e212aa1613ce2fc9",
                    "height": 21,
                    "accountAddress": "vite_a78e37a7212980a20c9d9e0c59463f1cb10f344555510a70ff",
                    "publicKey": "HDfU0xOGFVuvdvluB498hPgB8vMbK/ONUQyE3qGb82E=",
                    "toAddress": "vite_a9226a1f7bd6d97950f694c2de815573326528bfe0680495f3",
                    "amount": 0,
                    "tokenId": "tti_5649544520544f4b454e6e40",
                    "fromBlockHash": "0000000000000000000000000000000000000000000000000000000000000000",
                    "data": null,
                    "quota": 0,
                    "fee": 0,
                    "logHash": null,
                    "difficulty": 67108863,
                    "nonce": "Vn6bHNt5P34=",
                    "sendBlockList": [],
                    "signature": "p+Bb5JjLFT8NyZ3grmHZN42n5iZ5Erru8e8l/++UPX60QmG+JbLT946ZNf9tSJxKQhq6J85GmCjnmm+PGHZRBg=="
                },
                {
                    "blockType": 4,
                    "hash": "3a92628fdff90bf3b597f7f293f77ed8f722753e6f904475fe2c47f772569ad5",
                    "prevHash": "3fe8600baef2c93b3ac4744c775f4abb956bd5e70cea749bc653501582febdb1",
                    "height": 2,
                    "accountAddress": "vite_a9226a1f7bd6d97950f694c2de815573326528bfe0680495f3",
                    "publicKey": "h8odG95Y8cUuxzTO7Z5UTssVIYxyBi7vEAT5SGdPjCs=",
                    "toAddress": "vite_0000000000000000000000000000000000000000a4f3a0cb58",
                    "amount": null,
                    "tokenId": "tti_000000000000000000004cfd",
                    "fromBlockHash": "76840a3fd02e42d3d141d740c68739f5bec13a9acbc5d78e64777e6965df382c",
                    "data": null,
                    "quota": 0,
                    "fee": 0,
                    "logHash": null,
                    "difficulty": 67108863,
                    "nonce": "smmvZ4YAbt0=",
                    "sendBlockList": [],
                    "signature": "JeI89sAgiuuPKRwDrrtRU+A7zMyNMp82rzfxllB/+r3sGm8rhs0qu6sxMY9a3qtIjo7N0A/rlldJYFTi9ImEDg=="
                }
            ],
            "SnapshotBlock": {
                "producer": "vite_995769283a01ba8d00258dbb5371c915df59c8657335bfb1b2",
                "hash": "a5ff0bfb140599d4509ec33b122ff0902b4f528d78b6d95c6805789f4480bba5",
                "height": 101,
                "publicKey": "OIlqJYQZ4AEMjdU1qjQDFOeSph5Alnk4tkYE78I+Cg4=",
                "signature": "F9uB7hr+rgBFLEzjM7Y1DWhXTfn5NueHRwQiojwRraGJ14/OARMSVZME6/v+59P/fcuV5Id2Y/AAUdXGLZQ6BQ==",
                "seed": 16825645928731316356,
                "version": 0,
                "previousHash": "ca09e12f7a14bce2d22cfe87f557536fd3a4d77d1b3e84e6a46dd0820d9d3c58",
                "nextSeedHash": "5196cce99462b1b80c988b3a787077897d5a517822095db8ce8e98f5f6fe1f90",
                "snapshotData": {
                    "vite_483eed4ba0b5cd984d480ca048d5ee8ef5fa6b0ae23774c09b": {
                        "height": 4,
                        "hash": "603e64f972960cd886a1dc77308b9a7d127cb462567b1ecd2ef68b4330a6d0c0"
                    },
                    "vite_a78e37a7212980a20c9d9e0c59463f1cb10f344555510a70ff": {
                        "height": 21,
                        "hash": "76840a3fd02e42d3d141d740c68739f5bec13a9acbc5d78e64777e6965df382c"
                    },
                    "vite_a9226a1f7bd6d97950f694c2de815573326528bfe0680495f3": {
                        "height": 2,
                        "hash": "3a92628fdff90bf3b597f7f293f77ed8f722753e6f904475fe2c47f772569ad5"
                    }
                },
                "timestamp": 1558458924
            }
        }
    ]
}

# ledger_getAccountInfoByAddress

Return account info by address

  • Parameters:

    • Address : Account address
  • Return:

    • AccountInfo : Detail of AccountInfo is described in Common Models
  • Example:

{
	"jsonrpc": "2.0",
	"id": 17,
	"method": "ledger_getAccountInfoByAddress",
	"params": ["vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10"]
}
{
    "jsonrpc": "2.0",
    "id": 17,
    "result": {
        "address": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
        "blockCount": "21846",
        "balanceInfoMap": {
            "tti_5649544520544f4b454e6e40": {
                "tokenInfo": {
                    "tokenName": "VITE",
                    "tokenSymbol": "VITE",
                    "totalSupply": "1001699224353751966255398604",
                    "decimals": 18,
                    "owner": "vite_0000000000000000000000000000000000000004d28108e76b",
                    "tokenId": "tti_5649544520544f4b454e6e40",
                    "maxSupply": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                    "ownerBurnOnly": false,
                    "isReIssuable": true,
                    "index": 0,
                    "isOwnerBurnOnly": false
                },
                "balance": "0"
            }
        }
    }
}

# ledger_getLatestSnapshotHash

Return latest snapshot block hash

  • Return:

    • Hash : Hash of latest snapshot block
  • Example:

{
	"jsonrpc": "2.0",
	"id": 17,
	"method": "ledger_getLatestSnapshotHash"
}
{
    "jsonrpc": "2.0",
    "id": 17,
    "result": "d580deefe3ce5ec9340d163543f93130f2e40ccd4546da8246baba6d0dc25d1f"
}

# ledger_sendRawTransaction

Send a raw transaction by filling in an account block

  • Parameters: Object : AccountBlock Mandatory:

    • blockType : byte Block type
    • height : string Height
    • hash : Hash Hash of AccountBlock
    • previousHash : Hash Hash of previous block in the account chain. Fill 0 if there is no previous block
    • address : Address Account address
    • publicKey : []byte Account's public key
    • signature : []byte Signature

    Optional: below fields should be filled upon sending transaction through pow, otherwise can be ignored or filled with null

    • difficulty : *string PoW difficulty
    • nonce : []byte Nonce

    Optional: below fields should be filled depending on the transaction type (send or receive)

    • sendBlockHash : Hash Hash of corresponding request transaction. Required for response transaction
    • toAddress : Address Account address to send the transaction to. Required for request transaction
    • tokenId : TokenTypeId The token ID in which the transaction is settled. Required for request transaction
    • amount : *string Transaction amount. Required for request transaction
    • fee : *string Transaction fee. Fill "0" or null for all transactions
    • data : []byte Additional data the transaction carries. This field can be specified in request transaction for user account as additional comment or formalized data used to call a contract. Ignore or fill with null if not used.
  • Returns:

    • AccountBlock : Detail of AccountBlock is described in Common Models
  • Example:

{
	"jsonrpc": "2.0",
	"id": 17,
	"method": "ledger_sendRawTransaction",
	"params": [{
        "blockType": 2,
        "height": "2",
        "hash": "67f4d528a5194c46d594221d3d992257a3004ccdee7c5d7b2748d77e06a80caf",
        "previousHash": "d517e8d4dc9c676876b72ad0cbb4c45890804aa438edd1f171ffc66276202a95",
        "address": "vite_ab24ef68b84e642c0ddca06beec81c9acb1977bbd7da27a87a",
        "publicKey": "WHZinxslscE+WaIqrUjGu2scOvorgD4Q+DQOOcDBv4M=",
        "toAddress": "vite_0000000000000000000000000000000000000003f6af7459b9",
        "sendBlockHash": "0000000000000000000000000000000000000000000000000000000000000000",
        "tokenId": "tti_5649544520544f4b454e6e40",
        "amount": "1000000000000000000000000",
        "fee": "0",
        "data": "jefc/QAAAAAAAAAAAAAAqyTvaLhOZCwN3KBr7sgcmssZd7sA",
        "signature": "F5VzYwsNSr6ex2sl9hDaX67kP9g4TewMWcw7Tp57VkE1LQZO0i1toYEsXJ3MgcZdsvP67EymXXn1wpwhxnS3CQ=="
    }]
}
{
    "jsonrpc": "2.0",
    "id": 2,
    "result": [
       {
            "blockType": 2,
            "height": "2",
            "hash": "67f4d528a5194c46d594221d3d992257a3004ccdee7c5d7b2748d77e06a80caf",
            "previousHash": "d517e8d4dc9c676876b72ad0cbb4c45890804aa438edd1f171ffc66276202a95",
            "address": "vite_ab24ef68b84e642c0ddca06beec81c9acb1977bbd7da27a87a",
            "publicKey": "WHZinxslscE+WaIqrUjGu2scOvorgD4Q+DQOOcDBv4M=",
            "producer": "vite_ab24ef68b84e642c0ddca06beec81c9acb1977bbd7da27a87a",
            "fromAddress": "vite_ab24ef68b84e642c0ddca06beec81c9acb1977bbd7da27a87a",
            "toAddress": "vite_0000000000000000000000000000000000000003f6af7459b9",
            "sendBlockHash": "0000000000000000000000000000000000000000000000000000000000000000",
            "tokenId": "tti_5649544520544f4b454e6e40",
            "amount": "1000000000000000000000000",
            "fee": "0",
            "data": "jefc/QAAAAAAAAAAAAAAqyTvaLhOZCwN3KBr7sgcmssZd7sA",
            "difficulty": null,
            "nonce": null,
            "signature": "F5VzYwsNSr6ex2sl9hDaX67kP9g4TewMWcw7Tp57VkE1LQZO0i1toYEsXJ3MgcZdsvP67EymXXn1wpwhxnS3CQ==",
            "quotaByStake": "105000",
            "totalQuota": "105000",
            "vmLogHash": null,
            "triggeredSendBlockList": null,
            "tokenInfo": {
                "tokenName": "Vite Token",
                "tokenSymbol": "VITE",
                "totalSupply": "999925000000000000000000000",
                "decimals": 18,
                "owner": "vite_ab24ef68b84e642c0ddca06beec81c9acb1977bbd7da27a87a",
                "tokenId": "tti_5649544520544f4b454e6e40",
                "maxSupply": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "ownerBurnOnly": false,
                "isReIssuable": true,
                "index": 0,
                "isOwnerBurnOnly": false
            },
            "confirmations": "1793337",
            "firstSnapshotHash": "f5033a11251672f413cb01d9c52dc53eaa98f0731065405d0c2c8ca80c6bbe06",
            "receiveBlockHeight": "2",
            "receiveBlockHash": "656c7cd0f5c306b96dc8e6fc461364213b5ce0c7fdb485d489df5771771566bc",
            "timestamp": 1567513226
        }
    ]
}

# ledger_getUnreceivedBlocksByAddress

Return all unreceived transactions by address

  • Parameters:

    • Address : Account address
    • uint64 : Page index, start with 0
    • uint64 : Page size
  • Return:

    • list<AccountBlock> : Detail of AccountBlock is described in Common Models
  • Example:

{
    "jsonrpc": "2.0",
    "id": 2,
    "method": "ledger_getUnreceivedBlocksByAddress",
    "params": [
        "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
        0, 
        1
    ]
}
{
    "jsonrpc": "2.0",
    "id": 2,
    "result": [
        {
            "blockType": 2,
            "height": "556",
            "hash": "12ec1d40a6c7560ba77b3764977c609189299dcf63d6586b50374714d0b8e013",
            "previousHash": "9a6c20d7d7fc927d89de6d9991a7904330007751f9d7d24dec141cbdb8b9e5ef",
            "address": "vite_f74d18fc6431cb9d813c62a47a9063c4b9488219dc22c2736d",
            "publicKey": "yNr85NJpkjKoaobFuWwIcoIdQR+ZRPrG5myrBhGxG5Q=",
            "producer": "vite_f74d18fc6431cb9d813c62a47a9063c4b9488219dc22c2736d",
            "fromAddress": "vite_f74d18fc6431cb9d813c62a47a9063c4b9488219dc22c2736d",
            "toAddress": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
            "sendBlockHash": "0000000000000000000000000000000000000000000000000000000000000000",
            "tokenId": "tti_5649544520544f4b454e6e40",
            "amount": "16000000000000000000",
            "fee": "0",
            "data": "9HgjCQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABvBbWdOyAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG8FtZ07IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAbwW1nTsgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABvBbWdOyAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG8FtZ07IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAbwW1nTsgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABvBbWdOyAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG8FtZ07IAAA=",
            "difficulty": "124419654",
            "nonce": "QxyYTRkNbco=",
            "signature": "sgcYMzD3L0KsEOeA9DckCPcOHeC7tTjiJdEcjS97guMKkOqHznnZ1naWkmDFJrtaNij1weRWMZ/27Y4rYc/DAw==",
            "quotaByStake": "0",
            "totalQuota": "38680",
            "vmLogHash": null,
            "triggeredSendBlockList": null,
            "tokenInfo": {
                "tokenName": "VITE",
                "tokenSymbol": "VITE",
                "totalSupply": "1001186579383872099206960787",
                "decimals": 18,
                "owner": "vite_0000000000000000000000000000000000000004d28108e76b",
                "tokenId": "tti_5649544520544f4b454e6e40",
                "maxSupply": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                "ownerBurnOnly": false,
                "isReIssuable": true,
                "index": 0,
                "isOwnerBurnOnly": false
            },
            "confirmations": "5345754",
            "firstSnapshotHash": "ab88339a58d481a3b132f5c3c69ba14ab5b31d77b8860985b17951e990e190b4",
            "receiveBlockHeight": null,
            "receiveBlockHash": null,
            "timestamp": 1562219525
        }
    ]
}

# ledger_getUnreceivedBlocksInBatch

Return unreceived transactions in batch

  • Parameters:

    • PagingQueryBatch : Account address
      • Address : Account address
      • uint64 : Page index, start with 0
      • uint64 : Page size
  • Return:

    • map<string Address, list<AccountBlock>> Detail of AccountBlock is described in Common Models
  • Example:

{
    "jsonrpc": "2.0",
    "id": 2,
    "method": "ledger_getUnreceivedBlocksInBatch",
    "params": [
        [{
    		"address": "vite_00000000000000000000000000000000000000042d7ef71894", 
    		"pageNumber": 0 ,
    		"pageCount": 1
    	},{
    		"address": "vite_68c5edf9069efe327e01e925790d868c7f7972d815016cf18a", 
    		"pageNumber": 0 ,
    		"pageCount": 1
    	}
    	]
    ]	
}
{
    "jsonrpc": "2.0",
    "id": 2,
    "result": {
        "vite_68c5edf9069efe327e01e925790d868c7f7972d815016cf18a": [
            {
                "blockType": 2,
                "height": "170",
                "hash": "81a9a5e2747e28584db752a814bde0ee8894604df3707a9067e13f8297a090d5",
                "previousHash": "55e7088d3405aebed75c9e311303f52bbbc1827b11d86fd7840406e4f4bc42f8",
                "address": "vite_ba2ae946be1f56a8c83ce3e1d80a53d8137c264684d5dd7610",
                "publicKey": "u7OxKqv0EqysClekERWf8FK3NgsEVnS6dq0Cu53en4o=",
                "producer": "vite_ba2ae946be1f56a8c83ce3e1d80a53d8137c264684d5dd7610",
                "fromAddress": "vite_ba2ae946be1f56a8c83ce3e1d80a53d8137c264684d5dd7610",
                "toAddress": "vite_68c5edf9069efe327e01e925790d868c7f7972d815016cf18a",
                "sendBlockHash": "0000000000000000000000000000000000000000000000000000000000000000",
                "tokenId": "tti_5649544520544f4b454e6e40",
                "amount": "0",
                "fee": "0",
                "data": "6SXjDQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAbwW1nTsgAAA",
                "difficulty": null,
                "nonce": null,
                "signature": "8qNYBI2+rQOH6LmS+Skl5/lXCLaW3bZHVGfS8IFraol5LiGuukmjfzsiNGQTDpB7MN006K9VcCGE05eZKeyVAg==",
                "quotaByStake": "23448",
                "totalQuota": "23448",
                "vmLogHash": null,
                "triggeredSendBlockList": null,
                "tokenInfo": {
                    "tokenName": "VITE",
                    "tokenSymbol": "VITE",
                    "totalSupply": "1001186579383872099206960787",
                    "decimals": 18,
                    "owner": "vite_0000000000000000000000000000000000000004d28108e76b",
                    "tokenId": "tti_5649544520544f4b454e6e40",
                    "maxSupply": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                    "ownerBurnOnly": false,
                    "isReIssuable": true,
                    "index": 0,
                    "isOwnerBurnOnly": false
                },
                "confirmations": "5257692",
                "firstSnapshotHash": "9c9a436d1d8b06c8a9955955890877b40c5e493c4054f59d36a3bfabf315772f",
                "receiveBlockHeight": null,
                "receiveBlockHash": null,
                "timestamp": 1562309573
            }
        ]
    }
}

# ledger_getUnreceivedTransactionSummaryByAddress

Return unreceived transaction summary by address

  • Parameters:

    • Address - Account address
  • Return:

    • AccountInfo : Detail of AccountInfo is described in Common Models
  • Example:

{
    "jsonrpc": "2.0",
    "id": 2,
    "method": "ledger_getUnreceivedTransactionSummaryByAddress",
    "params": [
        "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10"
    ]
}
{
    "jsonrpc": "2.0",
    "id": 2,
    "result": {
        "address": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
        "blockCount": "6",
        "balanceInfoMap": {
            "tti_5649544520544f4b454e6e40": {
                "tokenInfo": {
                    "tokenName": "VITE",
                    "tokenSymbol": "VITE",
                    "totalSupply": "1001186579383872099206960787",
                    "decimals": 18,
                    "owner": "vite_0000000000000000000000000000000000000004d28108e76b",
                    "tokenId": "tti_5649544520544f4b454e6e40",
                    "maxSupply": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                    "ownerBurnOnly": false,
                    "isReIssuable": true,
                    "index": 0,
                    "isOwnerBurnOnly": false
                },
                "balance": "96000000000000000000",
                "transactionCount": "6"
            }
        }
    }
}

# ledger_getUnreceivedTransactionSummaryInBatch

Return unreceived transaction summary in batch

  • Parameters:

    • list<Address> - List of account address
  • Return:

    • list<AccountInfo> : Detail of AccountInfo is described in Common Models
  • Example:

{
    "jsonrpc": "2.0",
    "id": 2,
    "method": "ledger_getUnreceivedTransactionSummaryInBatch",
    "params": [[
        "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
        "vite_68c5edf9069efe327e01e925790d868c7f7972d815016cf18a"
        ]
    ]
}
{
    "jsonrpc": "2.0",
    "id": 2,
    "result": [
        {
            "address": "vite_0b573f9d1fca7d830fc0d1552e3ff7b7f44455e38c8218fd10",
            "blockCount": "6",
            "balanceInfoMap": {
                "tti_5649544520544f4b454e6e40": {
                    "tokenInfo": {
                        "tokenName": "VITE",
                        "tokenSymbol": "VITE",
                        "totalSupply": "1001186579383872099206960787",
                        "decimals": 18,
                        "owner": "vite_0000000000000000000000000000000000000004d28108e76b",
                        "tokenId": "tti_5649544520544f4b454e6e40",
                        "maxSupply": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                        "ownerBurnOnly": false,
                        "isReIssuable": true,
                        "index": 0,
                        "isOwnerBurnOnly": false
                    },
                    "balance": "96000000000000000000",
                    "transactionCount": "6"
                }
            }
        },
        {
            "address": "vite_68c5edf9069efe327e01e925790d868c7f7972d815016cf18a",
            "blockCount": "1",
            "balanceInfoMap": {
                "tti_5649544520544f4b454e6e40": {
                    "tokenInfo": {
                        "tokenName": "VITE",
                        "tokenSymbol": "VITE",
                        "totalSupply": "1001186579383872099206960787",
                        "decimals": 18,
                        "owner": "vite_0000000000000000000000000000000000000004d28108e76b",
                        "tokenId": "tti_5649544520544f4b454e6e40",
                        "maxSupply": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
                        "ownerBurnOnly": false,
                        "isReIssuable": true,
                        "index": 0,
                        "isOwnerBurnOnly": false
                    },
                    "balance": "0",
                    "transactionCount": "1"
                }
            }
        }
    ]
}

# ledger_getVmLogs

Return event logs generated in the given response block of contract

  • Parameters:

    • Hash : Hash of contract account block
  • Return:

    • List<VmLog> : Event logs
  • Example:

{
	"jsonrpc": "2.0",
	"id": 17,
	"method": "ledger_getVmLogs",
	"params": ["5a78365f4f7e9c29d57c8f087c9691bfff63a4889cde5d03a89cb24d34abbdf3"]
}
{
    "jsonrpc": "2.0",
    "id": 17,
    "result": [
        {
            "topics": [
                "00d73e74672366b05e8980c144e4c523f171cee9fcae60041d97ae1f540a4de5",
                "0000000000000000000000f74d18fc6431cb9d813c62a47a9063c4b948821900"
            ],
            "data": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABoFVpDZ24AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=="
        }
    ]
}

# ledger_getVmLogsByFilter

Return event logs generated in contract response blocks by specified height range and topics

  • Parameters:

    • FilterParam
      • addressHeightRange : map[Address]Range Query logs of the specified contract account address with given range. At least one address must be specified.
        • fromHeight : uint64 Start height. 0 means starting from the latest block
        • toHeight : uint64 End height. 0 means no specific ending block
      • topics : [][]Hash Prefix of topics
  • Returns:

    • Array<VmlogMessage>
    • result : Array<VmlogMessage>
      • accountBlockHash : Hash Hash of account block
      • accountBlockHeight : uint64 Height of account block
      • address : Address Address of account
      • vmlog : VmLog Event log of smart contract
        • topics : Array<string hash> Event signature and indexed field. The signature can be generated from ABI
        • data : string base64 Non-indexed field of event, can be decoded based on ABI
      • removed : bool If true , the log has been rolled back
{
	"jsonrpc": "2.0",
	"id": 1,
	"method": "ledger_getVmLogsByFilter",
	"params": [{
		"addressHeightRange":{
			"vite_8810e12ec2d4d61e7568cac25ebd5dd44735d36a405b94f1fa":{
				"fromHeight":"1",
				"toHeight":"10"
			}
		}
	}]
}
{
  "jsonrpc":"2.0",
  "id":1,
  "result": [
    {
      "vmlog": {
        "topics": [
          "28e6ea56797f4a1b22a1d1986cb6c22e80099ba8e4fd14d42accfaedfe5f6640"
        ],
        "data": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGQQurTFV9WklB2DRvsX8wLCgyoVomYHSCebb9Br/hQ+RAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwYLIcJLnbQjGl+qeU7YWlTWwfsoF6mescP5xz2fDTEg="
      },
      "accountBlockHash": "e4917f357a4588ec1752797ee5516939f46078f5356b14422d4a9dfe45f88bf5",
      "accountBlockHeight": "10",
      "address": "vite_8810e12ec2d4d61e7568cac25ebd5dd44735d36a405b94f1fa",
      "removed": false
    }
  ]
}

# ledger_getPoWDifficulty

Return PoW difficulty for sending transaction

This method first calculates the required amount of quota based on transaction parameters, and then determines whether the account has sufficient quota. If no, it returns PoW difficulty that is necessary for sending the transaction.

If the method returns with error, usually it is because the transaction data is too long, or the transaction is not able to obtain quota by calculating PoW. For example, if PoW has been calculated for the previous transaction, the new transaction of the account is not permitted to do PoW again in the same snapshot block.

  • Parameters:

    • GetPoWDifficultyParams
      • address : string address Address of account
      • previousHash : string hash Hash of the previous account block
      • blockType : byte Block type
      • toAddress : string address Address of transaction's recipient, required for request transaction
      • data : string base64 Additional data that the transaction may carry, optional
  • Returns:

    • GetPoWDifficultyResult
      • requiredQuota : string uint64 Quota required for sending the transaction
      • difficulty : string bigint PoW difficulty. If '' , sending the transaction does not need PoW
      • qc : string bigint Congestion factor * 1e18
      • isCongestion : bool If true , there is a network congestion. In this case, sending the transaction will consume more quota
  • Example:

{
	"jsonrpc": "2.0",
	"id": 1,
	"method": "ledger_getPoWDifficulty",
	"params": [{
		"address":"vite_ab24ef68b84e642c0ddca06beec81c9acb1977bbd7da27a87a",
		"previousHash":"7b5dcb470889997100e0e09cd292d221ad1c11bb0daf8b9fa39a2d1f90210aa0",
		"blockType":2,
		"toAddress":"vite_0000000000000000000000000000000000000004d28108e76b",
		"data":"8pxs4gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAAAAAAICy1ooG9SwPu0VPZ17lQ1+3hyUgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFc3VwZXIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",
	}]
}
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "requiredQuota": 32152,
        "difficulty": "102920708",
        "qc": "1000000000000000000",
        "isCongestion": false
    }
}