-
Notifications
You must be signed in to change notification settings - Fork 790
RPC protocol
The RPC protocol accepts JSON HTTP POST requests. The following are RPC commands along with the responses that are expected.
- Accounts
- Account balance
- Account block count
- Account create
- Account get
- Account history
- Account information
- Account list
- Account move
- Account public key
- Account remove
- Account representative set
- Account representative
- Account weight
- Accounts balances
- Accounts create
- Accounts frontiers
- Accounts pending
- Validate account number checksum
- Blocks
- Bootstrap
- Conversion
- Confirmation
- Delegators
- Frontiers
- Keys
- Ledger
- Network
- Node
- Payments
- Peers
- Pending
- Proof of Work
- Receiving
- Representatives
- Sending
- Statistics
- Unchecked blocks
- Wallet
- Wallet accounts balances
- Wallet add key
- Wallet add watch-only accounts
- Wallet change password
- Wallet change seed
- Wallet contains
- Wallet create
- Wallet destroy
- Wallet export
- Wallet frontiers
- Wallet history
- Wallet ledger
- Wallet lock
- Wallet locked check
- Wallet password enter (unlock wallet)
- Wallet pending
- Wallet representative set
- Wallet representative
- Wallet republish
- Wallet info
- Wallet valid password
- Wallet work get
- RPC callback
Returns how many RAW is owned and how many have not yet been received by account
Request:
{
"action": "account_balance",
"account": "xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000"
}
Response:
{
"balance": "10000",
"pending": "10000"
}
Get number of blocks for a specific account
Request:
{
"action": "account_block_count",
"account": "xrb_3t6k35gi95xu6tergt6p69ck76ogmitsa8mnijtpxm9fkcm736xtoncuohr3"
}
Response:
{
"block_count" : "19"
}
Returns frontier, open block, change representative block, balance, last modified timestamp from local database & block count for account. Only works for accounts that have an entry on the ledger, will return "Account not found" otherwise.
Request:
{
"action": "account_info",
"account": "xrb_3t6k35gi95xu6tergt6p69ck76ogmitsa8mnijtpxm9fkcm736xtoncuohr3"
}
Response:
{
"frontier": "FF84533A571D953A596EA401FD41743AC85D04F406E76FDE4408EAED50B473C5",
"open_block": "991CF190094C00F0B68E2E5F75F6BEE95A2E0BD93CEAA4A6734DB9F19B728948",
"representative_block": "991CF190094C00F0B68E2E5F75F6BEE95A2E0BD93CEAA4A6734DB9F19B728948",
"balance": "235580100176034320859259343606608761791",
"modified_timestamp": "1501793775",
"block_count": "33",
"confirmation_height" : "28" # version 19.0+ only
}
version 19.0+
version 9.0+
Booleans, false by default. Additionally returns representative, voting weight, pending balance for account
Request:
{
"action": "account_info",
"account": "xrb_3t6k35gi95xu6tergt6p69ck76ogmitsa8mnijtpxm9fkcm736xtoncuohr3",
"representative": "true",
"weight": "true",
"pending": "true"
}
Response:
{
"frontier": "FF84533A571D953A596EA401FD41743AC85D04F406E76FDE4408EAED50B473C5",
"open_block": "991CF190094C00F0B68E2E5F75F6BEE95A2E0BD93CEAA4A6734DB9F19B728948",
"representative_block": "991CF190094C00F0B68E2E5F75F6BEE95A2E0BD93CEAA4A6734DB9F19B728948",
"balance": "235580100176034320859259343606608761791",
"modified_timestamp": "1501793775",
"block_count": "33",
"representative": "xrb_3t6k35gi95xu6tergt6p69ck76ogmitsa8mnijtpxm9fkcm736xtoncuohr3",
"weight": "1105577030935649664609129644855132177",
"pending": "2309370929000000000000000000000000"
}
enable_control required
Creates a new account, insert next deterministic key in wallet
Request:
{
"action": "account_create",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F"
}
Response:
{
"account" : "xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000"
}
version 18.0+
unset by default. Indicates which index to create account for starting with 0
Request:
{
"action": "account_create",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
"index": "1"
}
version 9.0+
Boolean, false by default. Disables work generation after creating account
Request:
{
"action": "account_create",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
"work": "false"
}
Get account number for the public key
Request:
{
"action": "account_get",
"key": "3068BB1CA04525BB0E416C485FE6A67FD52540227D267CC8B6E8DA958A7FA039"
}
Response:
{
"account" : "xrb_1e5aqegc1jb7qe964u4adzmcezyo6o146zb8hm6dft8tkp79za3sxwjym5rx"
}
Reports send/receive information for an account. Change blocks are skipped, open blocks will appear as receive (unless raw is set to true - see optional parameters below). Response will start with the latest block for the account (the frontier), and will list all blocks back to the open block of this account when "count" is set to "-1".
Request:
{
"action": "account_history",
"account": "xrb_1ipx847tk8o46pwxt5qjdbncjqcbwcc1rrmqnkztrfjy5k7z4imsrata9est",
"count": "1"
}
Response:
{
"account": "xrb_1ipx847tk8o46pwxt5qjdbncjqcbwcc1rrmqnkztrfjy5k7z4imsrata9est",
"history": [
{
"type": "send",
"account": "xrb_38ztgpejb7yrm7rr586nenkn597s3a1sqiy3m3uyqjicht7kzuhnihdk6zpz",
"amount": "80000000000000000000000000000000000",
"local_timestamp": "1551532723",
"hash": "80392607E85E73CC3E94B4126F24488EBDFEB174944B890C97E8F36D89591DC5"
}
],
"previous": "8D3AB98B301224253750D448B4BD997132400CEDD0A8432F775724F2D9821C72"
}
If the count
limit results in stopping before the end of the account chain, then the response will also contain a previous
field (outside of the history
field) which contains the block hash that would be next to process if count
was larger.
Optional parameters:
-
raw
: if set totrue
instead of the defaultfalse
, instead of outputting a simplified send or receive explanation of blocks (intended for wallets), output all parameters of the block itself as seen in block_create or other APIs returning blocks. It still includes the "account" and "amount" properties you'd see without this option. State/universal blocks in the raw history will also have asubtype
field indicating their equivalent "old" block. Unfortunately, the "account" parameter for open blocks is the account of the source block, not the account of the open block, to preserve similarity with the non-raw history. -
head
: instead of using the latest block for a specified account, use this block as the head of the account instead. Useful for pagination.
Lists all the accounts inside wallet
Request:
{
"action": "account_list",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F"
}
Response:
{
"accounts" : [
"xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000"
]
}
enable_control required
Moves accounts from source to wallet
Request:
{
"action": "account_move",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
"source": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
"accounts" : [
"xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000"
]
}
Response:
{
"moved" : "1"
}
Get the public key for account
Request:
{
"action": "account_key",
"account" : "xrb_1e5aqegc1jb7qe964u4adzmcezyo6o146zb8hm6dft8tkp79za3sxwjym5rx"
}
Response:
{
"key": "3068BB1CA04525BB0E416C485FE6A67FD52540227D267CC8B6E8DA958A7FA039"
}
enable_control required
Remove account from wallet
Request:
{
"action": "account_remove",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
"account": "xrb_39a73oy5ungrhxy5z5oao1xso4zo7dmgpjd4u74xcrx3r1w6rtazuouw6qfi"
}
Response:
{
"removed": "1"
}
Returns the representative for account
Request:
{
"action": "account_representative",
"account": "xrb_39a73oy5ungrhxy5z5oao1xso4zo7dmgpjd4u74xcrx3r1w6rtazuouw6qfi"
}
Response:
{
"representative" : "xrb_16u1uufyoig8777y6r8iqjtrw8sg8maqrm36zzcm95jmbd9i9aj5i8abr8u5"
}
enable_control required
Sets the representative for account in wallet
Request:
{
"action": "account_representative_set",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
"account": "xrb_39a73oy5ungrhxy5z5oao1xso4zo7dmgpjd4u74xcrx3r1w6rtazuouw6qfi",
"representative" : "xrb_16u1uufyoig8777y6r8iqjtrw8sg8maqrm36zzcm95jmbd9i9aj5i8abr8u5"
}
Response:
{
"block": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F"
}
version 9.0+
Work value (16 hexadecimal digits string, 64 bit). Uses work value for block from external source
Returns the voting weight for account
Request:
{
"action": "account_weight",
"account": "xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000"
}
Response:
{
"weight": "10000"
}
Returns how many RAW is owned and how many have not yet been received by accounts list
Request:
{
"action": "accounts_balances",
"accounts": ["xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000", "xrb_3i1aq1cchnmbn9x5rsbap8b15akfh7wj7pwskuzi7ahz8oq6cobd99d4r3b7"]
}
Response:
{
"balances" : {
"xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000":
{
"balance": "10000",
"pending": "10000"
},
"xrb_3i1aq1cchnmbn9x5rsbap8b15akfh7wj7pwskuzi7ahz8oq6cobd99d4r3b7":
{
"balance": "10000000",
"pending": "0"
}
}
}
enable_control required, version 9.0+
Creates new accounts, insert next deterministic keys in wallet up to count
Request:
{
"action": "accounts_create",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
"count": "2"
}
Response:
{
"accounts": [
"xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000",
"xrb_1e5aqegc1jb7qe964u4adzmcezyo6o146zb8hm6dft8tkp79za3s00000000"
]
}
version 11.2+
Boolean, false by default. Enables work generation after creating accounts
Request:
{
"action": "accounts_create",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
"count": "2",
"work": "true"
}
Note: Before version 11.2 work generation was enabled by default, if you want to disable work generation for previous versions, use "work": "false"
Returns a list of pairs of account and block hash representing the head block for accounts list
Request:
{
"action": "accounts_frontiers",
"accounts": ["xrb_3t6k35gi95xu6tergt6p69ck76ogmitsa8mnijtpxm9fkcm736xtoncuohr3", "xrb_3i1aq1cchnmbn9x5rsbap8b15akfh7wj7pwskuzi7ahz8oq6cobd99d4r3b7"]
}
Response:
{
"frontiers" : {
"xrb_3t6k35gi95xu6tergt6p69ck76ogmitsa8mnijtpxm9fkcm736xtoncuohr3": "791AF413173EEE674A6FCF633B5DFC0F3C33F397F0DA08E987D9E0741D40D81A",
"xrb_3i1aq1cchnmbn9x5rsbap8b15akfh7wj7pwskuzi7ahz8oq6cobd99d4r3b7": "6A32397F4E95AF025DE29D9BF1ACE864D5404362258E06489FABDBA9DCCC046F"
}
}
Returns a list of block hashes which have not yet been received by these accounts
Request:
{
"action": "accounts_pending",
"accounts": ["xrb_1111111111111111111111111111111111111111111111111117353trpda", "xrb_3t6k35gi95xu6tergt6p69ck76ogmitsa8mnijtpxm9fkcm736xtoncuohr3"],
"count": 1
}
Response:
{
"blocks" : {
"xrb_1111111111111111111111111111111111111111111111111117353trpda": ["142A538F36833D1CC78B94E11C766F75818F8B940771335C6C1B8AB880C5BB1D"],
"xrb_3t6k35gi95xu6tergt6p69ck76ogmitsa8mnijtpxm9fkcm736xtoncuohr3": ["4C1FEEF0BEA7F50BE35489A1233FE002B212DEA554B55B1B470D78BD8F210C74"]
}
}
version 8.0+
Number (128 bit, decimal). Returns a list of pending block hashes with amount more or equal to threshold
Request:
{
"action": "accounts_pending",
"accounts": ["xrb_1111111111111111111111111111111111111111111111111117353trpda", "xrb_3t6k35gi95xu6tergt6p69ck76ogmitsa8mnijtpxm9fkcm736xtoncuohr3"],
"count": "1",
"threshold": "1000000000000000000000000"
}
Response:
{
"blocks" : {
"xrb_1111111111111111111111111111111111111111111111111117353trpda": {
"142A538F36833D1CC78B94E11C766F75818F8B940771335C6C1B8AB880C5BB1D": "6000000000000000000000000000000"
},
"xrb_3t6k35gi95xu6tergt6p69ck76ogmitsa8mnijtpxm9fkcm736xtoncuohr3": {
"4C1FEEF0BEA7F50BE35489A1233FE002B212DEA554B55B1B470D78BD8F210C74": "106370018000000000000000000000000"
}
}
version 9.0+
Boolean, false by default. Returns a list of pending block hashes with amount and source accounts
Request:
{
"action": "accounts_pending",
"accounts": ["xrb_1111111111111111111111111111111111111111111111111117353trpda", "xrb_3t6k35gi95xu6tergt6p69ck76ogmitsa8mnijtpxm9fkcm736xtoncuohr3"],
"count": "1",
"source": "true"
}
Response:
{
"blocks" : {
"xrb_1111111111111111111111111111111111111111111111111117353trpda": {
"142A538F36833D1CC78B94E11C766F75818F8B940771335C6C1B8AB880C5BB1D": {
"amount": "6000000000000000000000000000000",
"source": "xrb_3dcfozsmekr1tr9skf1oa5wbgmxt81qepfdnt7zicq5x3hk65fg4fqj58mbr"
}
},
"xrb_3t6k35gi95xu6tergt6p69ck76ogmitsa8mnijtpxm9fkcm736xtoncuohr3": {
"4C1FEEF0BEA7F50BE35489A1233FE002B212DEA554B55B1B470D78BD8F210C74": {
"amount": "106370018000000000000000000000000",
"source": "xrb_13ezf4od79h1tgj9aiu4djzcmmguendtjfuhwfukhuucboua8cpoihmh8byo"
}
}
}
version 15.0+
Boolean, false by default. Include active (not confirmed) blocks
Request:
{
"action": "accounts_pending",
"accounts": ["xrb_1111111111111111111111111111111111111111111111111117353trpda", "xrb_3t6k35gi95xu6tergt6p69ck76ogmitsa8mnijtpxm9fkcm736xtoncuohr3"],
"count": "1",
"include_active": "true"
}
Returns how many rai are in the public supply
Request:
{
"action": "available_supply"
}
Response:
{
"available": "10000"
}
Retrieves a json representation of block
Returns block account, amount, balance, block height in account chain & local timestamp since version 18.0
Returns confirmation status & subtype for state block since version 19.0
Request:
{
"action": "block_info",
"hash": "87434F8041869A01C8F6F263B87972D7BA443A72E0A97D7A3FD0CCC2358FD6F9"
}
Response:
{
"block_account": "xrb_1ipx847tk8o46pwxt5qjdbncjqcbwcc1rrmqnkztrfjy5k7z4imsrata9est",
"amount": "30000000000000000000000000000000000",
"balance": "5606157000000000000000000000000000000",
"height": "58",
"local_timestamp": "0",
"confirmed": "false",
"contents" : "{\n
\"type\": \"state\",\n
\"account\": \"xrb_1ipx847tk8o46pwxt5qjdbncjqcbwcc1rrmqnkztrfjy5k7z4imsrata9est\",\n
\"previous\": \"CE898C131AAEE25E05362F247760F8A3ACF34A9796A5AE0D9204E86B0637965E\",\n
\"representative\": \"xrb_1stofnrxuz3cai7ze75o174bpm7scwj9jn3nxsn8ntzg784jf1gzn1jjdkou\",\n
\"balance\": \"5606157000000000000000000000000000000\",\n
\"link\": \"5D1AA8A45F8736519D707FCB375976A7F9AF795091021D7E9C7548D6F45DD8D5\",\n
\"link_as_account\": \"xrb_1qato4k7z3spc8gq1zyd8xeqfbzsoxwo36a45ozbrxcatut7up8ohyardu1z\",\n
\"signature\": \"82D41BC16F313E4B2243D14DFFA2FB04679C540C2095FEE7EAE0F2F26880AD56DD48D87A7CC5DD760C5B2D76EE2C205506AA557BF00B60D8DEE312EC7343A501\",\n
\"work\": \"8a142e07a10996d5\"\n
}\n",
"subtype": "send"
}
Note: The Balance
in contents is a uint128. However, it will be a hex-encoded (like 0000000C9F2C9CD04674EDEA40000000
for 1 Mxrb) when the block is a Send Block. If the block is a State-Block, the same Balance
will be a numeric-string (like 1000000000000000000000000000000
).
version 19.0+
Default "false". If "true", "contents" will contain a JSON subtree instead of a JSON string.
Retrieves a json representations of blocks
Request:
{
"action": "blocks",
"hashes": ["87434F8041869A01C8F6F263B87972D7BA443A72E0A97D7A3FD0CCC2358FD6F9"]
}
Response:
{
"blocks" : {
"87434F8041869A01C8F6F263B87972D7BA443A72E0A97D7A3FD0CCC2358FD6F9": "{\n
\"type\": \"state\",\n
\"account\": \"xrb_1ipx847tk8o46pwxt5qjdbncjqcbwcc1rrmqnkztrfjy5k7z4imsrata9est\",\n
\"previous\": \"CE898C131AAEE25E05362F247760F8A3ACF34A9796A5AE0D9204E86B0637965E\",\n
\"representative\": \"xrb_1stofnrxuz3cai7ze75o174bpm7scwj9jn3nxsn8ntzg784jf1gzn1jjdkou\",\n
\"balance\": \"5606157000000000000000000000000000000\",\n
\"link\": \"5D1AA8A45F8736519D707FCB375976A7F9AF795091021D7E9C7548D6F45DD8D5\",\n
\"link_as_account\": \"xrb_1qato4k7z3spc8gq1zyd8xeqfbzsoxwo36a45ozbrxcatut7up8ohyardu1z\",\n
\"signature\": \"82D41BC16F313E4B2243D14DFFA2FB04679C540C2095FEE7EAE0F2F26880AD56DD48D87A7CC5DD760C5B2D76EE2C205506AA557BF00B60D8DEE312EC7343A501\",\n
\"work\": \"8a142e07a10996d5\"\n
}\n"
}
}
Retrieves a json representations of blocks with block account, transaction amount, block balance, block height in account chain, block local modification timstamp, block confirmation status (since version 19.0), subtype (for state blocks since version 19.0) Request:
{
"action": "blocks_info",
"hashes": ["87434F8041869A01C8F6F263B87972D7BA443A72E0A97D7A3FD0CCC2358FD6F9"]
}
Response:
{
"blocks" : {
"87434F8041869A01C8F6F263B87972D7BA443A72E0A97D7A3FD0CCC2358FD6F9": {
"block_account": "xrb_1ipx847tk8o46pwxt5qjdbncjqcbwcc1rrmqnkztrfjy5k7z4imsrata9est",
"amount": "30000000000000000000000000000000000",
"balance": "5606157000000000000000000000000000000",
"height": "58",
"local_timestamp": "0",
"confirmed": "false",
"contents": "{\n
\"type\": \"state\",\n
\"account\": \"xrb_1ipx847tk8o46pwxt5qjdbncjqcbwcc1rrmqnkztrfjy5k7z4imsrata9est\",\n
\"previous\": \"CE898C131AAEE25E05362F247760F8A3ACF34A9796A5AE0D9204E86B0637965E\",\n
\"representative\": \"xrb_1stofnrxuz3cai7ze75o174bpm7scwj9jn3nxsn8ntzg784jf1gzn1jjdkou\",\n
\"balance\": \"5606157000000000000000000000000000000\",\n
\"link\": \"5D1AA8A45F8736519D707FCB375976A7F9AF795091021D7E9C7548D6F45DD8D5\",\n
\"link_as_account\": \"xrb_1qato4k7z3spc8gq1zyd8xeqfbzsoxwo36a45ozbrxcatut7up8ohyardu1z\",\n
\"signature\": \"82D41BC16F313E4B2243D14DFFA2FB04679C540C2095FEE7EAE0F2F26880AD56DD48D87A7CC5DD760C5B2D76EE2C205506AA557BF00B60D8DEE312EC7343A501\",\n
\"work\": \"8a142e07a10996d5\"\n
}\n",
"subtype": "send"
}
}
}
pending, source: version 9.0+ balance: version 12.0+ Booleans, false by default. Additionally checks if block is pending, returns source account for receive & open blocks (0 for send & change blocks), and returns the balance of the account at the time of the block. Request:
{
"action": "blocks_info",
"hashes": ["E2FB233EF4554077A7BF1AA85851D5BF0B36965D2B0FB504B2BC778AB89917D3"],
"pending": "true",
"source": "true",
"balance": "true"
}
Response:
{
"blocks" : {
"E2FB233EF4554077A7BF1AA85851D5BF0B36965D2B0FB504B2BC778AB89917D3": {
"block_account": "xrb_1qato4k7z3spc8gq1zyd8xeqfbzsoxwo36a45ozbrxcatut7up8ohyardu1z",
"amount": "30000000000000000000000000000000000",
"contents": "{ ...skipped... }",
"pending": "0",
"source_account": "xrb_1ipx847tk8o46pwxt5qjdbncjqcbwcc1rrmqnkztrfjy5k7z4imsrata9est",
"balance": "40200000001000000000000000000000000"
}
}
}
version 19.0+
Default "false". If "true", "contents" will contain a JSON subtree instead of a JSON string.
Returns the account containing block
Request:
{
"action": "block_account",
"hash": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F"
}
Response:
{
"account": "xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000"
}
version 12.2+
Request confirmation for block from known online representative nodes. Check results with Confirmation history
Request:
{
"action": "block_confirm",
"hash": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F"
}
Response:
{
"started": "1"
}
Reports the number of blocks in the ledger and unchecked synchronizing blocks
Request:
{
"action": "block_count"
}
Response:
{
"count": "1000",
"unchecked": "10"
}
Reports the number of blocks in the ledger by type (send, receive, open, change, state)
Request:
{
"action": "block_count_type"
}
Response:
{
"send": "1000",
"receive": "900",
"open": "100",
"change": "50",
"state": "10000"
}
version 13.0+
Returning block hash for given block content
Request:
{
"action": "block_hash",
"block": "{\n
\"type\": \"state\",\n
\"account\": \"xrb_3qgmh14nwztqw4wmcdzy4xpqeejey68chx6nciczwn9abji7ihhum9qtpmdr\",\n
\"previous\": \"F47B23107E5F34B2CE06F562B5C435DF72A533251CB414C51B2B62A8F63A00E4\",\n
\"representative\": \"xrb_1hza3f7wiiqa7ig3jczyxj5yo86yegcmqk3criaz838j91sxcckpfhbhhra1\",\n
\"balance\": \"1000000000000000000000\",\n
\"link\": \"19D3D919475DEED4696B5D13018151D1AF88B2BD3BCFF048B45031C1F36D1858\",\n
\"link_as_account\": \"xrb_18gmu6engqhgtjnppqam181o5nfhj4sdtgyhy36dan3jr9spt84rzwmktafc\",\n
\"signature\": \"3BFBA64A775550E6D49DF1EB8EEC2136DCD74F090E2ED658FBD9E80F17CB1C9F9F7BDE2B93D95558EC2F277FFF15FD11E6E2162A1714731B743D1E941FA4560A\",\n
\"work\": \"cab7404f0b5449d0\"\n
}\n"
}
Response:
{
"hash": "FF0144381CFF0B2C079A115E7ADA7E96F43FD219446E7524C48D1CC9900C4F17"
}
version 19.0+
Default "false". If "true", "block" must contain a JSON subtree instead of a JSON string.
Initialize bootstrap to specific IP address and port
Request:
{
"action": "bootstrap",
"address": "::ffff:138.201.94.249",
"port": "7075"
}
Response:
{
"success": ""
}
version 17.0+
Initialize lazy bootstrap with given block hash
Request:
{
"action": "bootstrap_lazy",
"hash": "FF0144381CFF0B2C079A115E7ADA7E96F43FD219446E7524C48D1CC9900C4F17"
}
Response:
{
"started": "1"
}
Boolean, false by default. Manually force closing of all current bootstraps
Initialize multi-connection bootstrap to random peers
Request:
{
"action": "bootstrap_any"
}
Response:
{
"success": ""
}
version 17.0+
This is an internal/diagnostic RPC, do not rely on its interface being stable
Returning status of current bootstrap attempt
Request:
{
"action": "bootstrap_status"
}
Response:
{
"clients": "5790",
"pulls": "141065",
"pulling": "3",
"connections": "16",
"idle": "0",
"target_connections": "64",
"total_blocks": "536820",
"lazy_mode": "true",
"lazy_blocks": "423388",
"lazy_state_unknown": "2",
"lazy_balances": "0",
"lazy_pulls": "0",
"lazy_stopped": "644",
"lazy_keys": "449",
"lazy_key_1": "A86EB2B479AAF3CD531C8356A1FBE3CB500DFBF5BF292E5E6B8D1048DE199C32"
}
Returns a consecutive list of block hashes in the account chain starting at block up to count. Will list all blocks back to the open block of this chain when count is set to "-1". The requested block hash is included in the answer.
Request:
{
"action": "chain",
"block": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
"count": "1"
}
Response:
{
"blocks" : [
"000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F"
]
}
version 18.0+
Number, 0 by default. Return the account chain block hashes offset by the specified number of blocks
version 18.0+
Boolean, false by default. Returns a list of block hashes in the account chain ending at block up to count (equal to successors)
version 16.0+
Returns list of active elections roots (excluting stopped & aborted elections). Find info about specific root with confirmation_info
Request:
{
"action": "confirmation_active"
}
Response:
{
"confirmations": [
"8031B600827C5CC05FDC911C28BBAC12A0E096CCB30FA8324F56C123676281B28031B600827C5CC05FDC911C28BBAC12A0E096CCB30FA8324F56C123676281B2"
]
}
Number, 0 by default. Returns only active elections with equal or higher announcements count. Useful to find long running elections
version 12.0+
duration, time, confirmation_stats: version 17.0+
Returns hash, tally weight, election duration (in milliseconds), election confirmation timestamp for recent elections winners. Also returns stats: count of elections in history (limited to 2048) & average duration time
Request:
{
"action": "confirmation_history"
}
Response:
{
"confirmation_stats": {
"count": "2",
"average": "5000"
},
"confirmations": [
{
"hash": "EA70B32C55C193345D625F766EEA2FCA52D3F2CCE0B3A30838CC543026BB0FEA",
"duration": "4000",
"time": "1544819986",
"tally": "80394786589602980996311817874549318248"
},
{
"hash": "F2F8DA6D2CA0A4D78EB043A7A29E12BDE5B4CE7DE1B99A93A5210428EE5B8667",
"duration": "6000",
"time": "1544819988",
"tally": "68921714529890443063672782079965877749"
}
]
}
version 16.0+
Returns info about active election by root. Including announcements count, last winner (initially local ledger block), total tally of voted representatives, concurrent blocks with tally & block contents for each
Request:
{
"action": "confirmation_info",
"root": "F8BA8CBE61C679231EB06FA03A0CD7CFBE68746396CBBA169BD9E12725682B44F8BA8CBE61C679231EB06FA03A0CD7CFBE68746396CBBA169BD9E12725682B44"
}
Response:
{
"announcements": "1",
"last_winner": "36CC459675E9FB2DB960C330BAFECB50132DB0394E83C14C7D1359ACB17F5BD2",
"total_tally": "66508449034656215696897986086066451444",
"blocks": {
"36CC459675E9FB2DB960C330BAFECB50132DB0394E83C14C7D1359ACB17F5BD2": {
"tally": "66508449034656215696897986086066451444",
"contents": "{\n \"type\": \"state\",\n \"account\": \"xrb_3mi58wc8p7uptp5gmt8k4wb5qbizm6chx9rzqi7cybbyxdh38cktw9o65883\",\n \"previous\": \"F8BA8CBE61C679231EB06FA03A0CD7CFBE68746396CBBA169BD9E12725682B44\",\n \"representative\": \"xrb_3o7uzba8b9e1wqu5ziwpruteyrs3scyqr761x7ke6w1xctohxfh5du75qgaj\",\n \"balance\": \"61202000000000000000000000000\",\n \"link\": \"CA24AAAA4BEA37D611EC72ABD283113AC133E3DBF8A7A557CFCA4CF9B354932C\",\n \"link_as_account\": \"xrb_3kj6oco6qtjqtrayrwodtc3j4gp38hjxqy79nodwzkkez8sob6sezmmct61s\",\n \"signature\": \"744B338DBCDFC2C4849DA44C468EEF99338F1D2D6BADFF20C0F54CB2DE759B512AFE41010EB212CE67D98E10635C2C08AEA517940862EB7DC58E8DFA43B2B408\",\n \"work\": \"e6d5a6ec29db25d6\"\n}\n"
}
}
}
Boolean, true by default. Disable contents for each block
version 19.0+
Default "false". If "true", "contents" will contain a JSON subtree instead of a JSON string.
Boolean, false by default. Returns list of votes representatives & its weights for each block
Request:
{
"action": "confirmation_info",
"root": "F8BA8CBE61C679231EB06FA03A0CD7CFBE68746396CBBA169BD9E12725682B44",
"representatives": "true"
}
Response:
{
"announcements": "1",
"last_winner": "36CC459675E9FB2DB960C330BAFECB50132DB0394E83C14C7D1359ACB17F5BD2",
"total_tally": "66508449034656215696897986086066451444",
"blocks": {
"36CC459675E9FB2DB960C330BAFECB50132DB0394E83C14C7D1359ACB17F5BD2": {
"tally": "66508449034656215696897986086066451444",
"contents": "{\n \"type\": \"state\",\n \"account\": \"xrb_3mi58wc8p7uptp5gmt8k4wb5qbizm6chx9rzqi7cybbyxdh38cktw9o65883\",\n \"previous\": \"F8BA8CBE61C679231EB06FA03A0CD7CFBE68746396CBBA169BD9E12725682B44\",\n \"representative\": \"xrb_3o7uzba8b9e1wqu5ziwpruteyrs3scyqr761x7ke6w1xctohxfh5du75qgaj\",\n \"balance\": \"61202000000000000000000000000\",\n \"link\": \"CA24AAAA4BEA37D611EC72ABD283113AC133E3DBF8A7A557CFCA4CF9B354932C\",\n \"link_as_account\": \"xrb_3kj6oco6qtjqtrayrwodtc3j4gp38hjxqy79nodwzkkez8sob6sezmmct61s\",\n \"signature\": \"744B338DBCDFC2C4849DA44C468EEF99338F1D2D6BADFF20C0F54CB2DE759B512AFE41010EB212CE67D98E10635C2C08AEA517940862EB7DC58E8DFA43B2B408\",\n \"work\": \"e6d5a6ec29db25d6\"\n}\n",
"representatives": {
"xrb_3pczxuorp48td8645bs3m6c3xotxd3idskrenmi65rbrga5zmkemzhwkaznh": "15542840930304007355829653636255997615",
"xrb_1stofnrxuz3cai7ze75o174bpm7scwj9jn3nxsn8ntzg784jf1gzn1jjdkou": "10262330414015196177405695154517720446",
...
"xrb_151jp8kuecdqq3pudrucx4hk5a6nri1fr7r6sbie8zc1ygid1cc4387q9g45": "0"
}
}
}
}
version 16.0+
Returns information about node elections settings & observed network state: delta tally required to rollback block, percentage of online weight for delta, minimum online weight to confirm block, currently observed online total weight, known peers total weight
Request:
{
"action": "confirmation_quorum"
}
Response:
{
"quorum_delta": "41469707173777717318245825935516662250",
"online_weight_quorum_percent": "50",
"online_weight_minimum": "60000000000000000000000000000000000000",
"online_stake_total": "82939414347555434636491651871033324568",
"peers_stake_total": "69026910610720098597176027400951402360",
"peers_stake_required": "60000000000000000000000000000000000000"
}
version 17.0+
Boolean, false by default. If true, add account/ip/rep weight for each peer considered in the summation of peers_stake_total.
version 19.0+
The effective peer stake needed for quorum. Per v19, this field is computed as max(quorum_delta, online_weight_minimum)
version 8.0+
Returns a list of pairs of delegator names given account a representative and its balance
Request:
{
"action": "delegators",
"account": "xrb_1111111111111111111111111111111111111111111111111117353trpda"
}
Response:
{
"delegators": {
"xrb_13bqhi1cdqq8yb9szneoc38qk899d58i5rcrgdk5mkdm86hekpoez3zxw5sd": "500000000000000000000000000000000000",
"xrb_17k6ug685154an8gri9whhe5kb5z1mf5w6y39gokc1657sh95fegm8ht1zpn": "961647970820730000000000000000000000"
}
}
version 8.0+
Get number of delegators for a specific representative account
Request:
{
"action": "delegators_count",
"account": "xrb_1111111111111111111111111111111111111111111111111117353trpda"
}
Response:
{
"count": "2"
}
Derive deterministic keypair from seed based on index
Request:
{
"action": "deterministic_key",
"seed": "0000000000000000000000000000000000000000000000000000000000000000",
"index": "0"
}
Response:
{
"private": "9F0E444C69F77A49BD0BE89DB92C38FE713E0963165CCA12FAF5712D7657120F",
"public": "C008B814A7D269A1FA3C6528B19201A24D797912DB9996FF02A1FF356E45552B",
"account": "xrb_3i1aq1cchnmbn9x5rsbap8b15akfh7wj7pwskuzi7ahz8oq6cobd99d4r3b7"
}
Returns a list of pairs of account and block hash representing the head block starting at account up to count
Request:
{
"action": "frontiers",
"account": "xrb_1111111111111111111111111111111111111111111111111111hifc8npp",
"count": "1"
}
Response:
{
"frontiers" : {
"xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F"
}
}
Reports the number of accounts in the ledger
Request:
{
"action": "frontier_count"
}
Response:
{
"count": "1000"
}
Deprecated: please use account_history
instead. It provides a head
option which is identical to the history hash
option.
Divide a raw amount down by the Mrai ratio.
Request:
{
"action": "mrai_from_raw",
"amount": "1000000000000000000000000000000"
}
Response:
{
"amount": "1"
}
Multiply an Mrai amount by the Mrai ratio.
Request:
{
"action": "mrai_to_raw",
"amount": "1"
}
Response:
{
"amount": "1000000000000000000000000000000"
}
Divide a raw amount down by the krai ratio.
Request:
{
"action": "krai_from_raw",
"amount": "1000000000000000000000000000"
}
Response:
{
"amount": "1"
}
Multiply an krai amount by the krai ratio.
Request:
{
"action": "krai_to_raw",
"amount": "1"
}
Response:
{
"amount": "1000000000000000000000000000"
}
Divide a raw amount down by the rai ratio.
Request:
{
"action": "rai_from_raw",
"amount": "1000000000000000000000000"
}
Response:
{
"amount": "1"
}
Multiply an rai amount by the rai ratio.
Request:
{
"action": "rai_to_raw",
"amount": "1"
}
Response:
{
"amount": "1000000000000000000000000"
}
enable_control required
Tells the node to send a keepalive packet to address:port
Request:
{
"action": "keepalive",
"address": "::ffff:192.169.0.1",
"port": "1024"
}
Response:
{
}
Generates an adhoc random keypair
Request:
{
"action": "key_create"
}
Response:
{
"private": "781186FB9EF17DB6E3D1056550D9FAE5D5BBADA6A6BC370E4CBB938B1DC71DA3",
"public": "3068BB1CA04525BB0E416C485FE6A67FD52540227D267CC8B6E8DA958A7FA039",
"account": "xrb_1e5aqegc1jb7qe964u4adzmcezyo6o146zb8hm6dft8tkp79za3sxwjym5rx"
}
Derive public key and account number from private key
Request:
{
"action": "key_expand",
"key": "781186FB9EF17DB6E3D1056550D9FAE5D5BBADA6A6BC370E4CBB938B1DC71DA3"
}
Response:
{
"private": "781186FB9EF17DB6E3D1056550D9FAE5D5BBADA6A6BC370E4CBB938B1DC71DA3",
"public": "3068BB1CA04525BB0E416C485FE6A67FD52540227D267CC8B6E8DA958A7FA039",
"account": "xrb_1e5aqegc1jb7qe964u4adzmcezyo6o146zb8hm6dft8tkp79za3sxwjym5rx"
}
enable_control required, version 9.0+
Returns frontier, open block, change representative block, balance, last modified timestamp from local database & block count starting at account up to count
Request:
{
"action": "ledger",
"account": "xrb_1111111111111111111111111111111111111111111111111111hifc8npp",
"count": "1"
}
Response:
{
"accounts": {
"xrb_11119gbh8hb4hj1duf7fdtfyf5s75okzxdgupgpgm1bj78ex3kgy7frt3s9n": {
"frontier": "E71AF3E9DD86BBD8B4620EFA63E065B34D358CFC091ACB4E103B965F95783321",
"open_block": "643B77F1ECEFBDBE1CC909872964C1DBBE23A6149BD3CEF2B50B76044659B60F",
"representative_block": "643B77F1ECEFBDBE1CC909872964C1DBBE23A6149BD3CEF2B50B76044659B60F",
"balance": "0",
"modified_timestamp": "1511476234",
"block_count": "2"
}
}
}
Booleans, false by default. Additionally returns representative, voting weight, pending balance for each account
Request:
{
"action": "ledger",
"account": "xrb_1111111111111111111111111111111111111111111111111111hifc8npp",
"count": "1",
"representative": "true",
"weight": "true",
"pending": "true"
}
Response:
{
"accounts": {
"xrb_11119gbh8hb4hj1duf7fdtfyf5s75okzxdgupgpgm1bj78ex3kgy7frt3s9n": {
"frontier": "E71AF3E9DD86BBD8B4620EFA63E065B34D358CFC091ACB4E103B965F95783321",
"open_block": "643B77F1ECEFBDBE1CC909872964C1DBBE23A6149BD3CEF2B50B76044659B60F",
"representative_block": "643B77F1ECEFBDBE1CC909872964C1DBBE23A6149BD3CEF2B50B76044659B60F",
"balance": "0",
"modified_timestamp": "1511476234",
"block_count": "2",
"representative": "xrb_1anrzcuwe64rwxzcco8dkhpyxpi8kd7zsjc1oeimpc3ppca4mrjtwnqposrs",
"weight": "0",
"pending": "0"
}
}
}
version 11.0+
UNIX timestamp (number), 0 by default. Return only accounts modified in local database after specific timestamp
Boolean, false by default. Additional sorting accounts in descending order
NOTE: The "count" option is ignored if "sorting" is specified
enable_control required, version 9.0+
Creates a json representations of new block based on input data & signed with private key or account in wallet*
Request sample for state block:
{
"action": "block_create",
"type": "state",
"balance": "1000000000000000000000",
"key": "0000000000000000000000000000000000000000000000000000000000000002",
"representative": "xrb_1hza3f7wiiqa7ig3jczyxj5yo86yegcmqk3criaz838j91sxcckpfhbhhra1",
"link": "19D3D919475DEED4696B5D13018151D1AF88B2BD3BCFF048B45031C1F36D1858",
"previous": "F47B23107E5F34B2CE06F562B5C435DF72A533251CB414C51B2B62A8F63A00E4"
}
Parameters for state block:
- balance: final balance for account after block creation, formatted in 'raw' units using a decimal integer. If balance is less than previous, block is considered as send subtype!
- wallet (optional): The wallet ID that the account the block is being created for is in.
- account (optional): The account the block is being created for (xrb_youraccount).
- key (optional): Instead of using "wallet" & "account" parameters, you can directly pass in a private key.
- source (optional): The block hash of the source of funds for this receive block (the send block that this receive block will pocket).
- destination (optional): The account that the sent funds should be accessible to.
- link (optional): Instead of using "source" & "destination" parameters, you can directly pass "link" (source to receive or destination public key to send).
- representative: The account that block account will use as its representative.
- previous: The block hash of the previous block on this account's block chain ("0" for first block).
Warning: It is critical that balance
is the balance of the account after created block!
version 19.0+
Default "false". If "true", "contents" will contain a JSON subtree instead of a JSON string.
Response sample for state block:
{
"hash": "FF0144381CFF0B2C079A115E7ADA7E96F43FD219446E7524C48D1CC9900C4F17",
"block": "{\n
\"type\": \"state\",\n
\"account\": \"xrb_3qgmh14nwztqw4wmcdzy4xpqeejey68chx6nciczwn9abji7ihhum9qtpmdr\",\n
\"previous\": \"F47B23107E5F34B2CE06F562B5C435DF72A533251CB414C51B2B62A8F63A00E4\",\n
\"representative\": \"xrb_1hza3f7wiiqa7ig3jczyxj5yo86yegcmqk3criaz838j91sxcckpfhbhhra1\",\n
\"balance\": \"1000000000000000000000\",\n
\"link\": \"19D3D919475DEED4696B5D13018151D1AF88B2BD3BCFF048B45031C1F36D1858\",\n
\"link_as_account\": \"xrb_18gmu6engqhgtjnppqam181o5nfhj4sdtgyhy36dan3jr9spt84rzwmktafc\",\n
\"signature\": \"3BFBA64A775550E6D49DF1EB8EEC2136DCD74F090E2ED658FBD9E80F17CB1C9F9F7BDE2B93D95558EC2F277FFF15FD11E6E2162A1714731B743D1E941FA4560A\",\n
\"work\": \"cab7404f0b5449d0\"\n
}\n"
}
Request sample for open block:
{
"action": "block_create",
"type": "open",
"key": "0000000000000000000000000000000000000000000000000000000000000001",
"account": "xrb_3kdbxitaj7f6mrir6miiwtw4muhcc58e6tn5st6rfaxsdnb7gr4roudwn951",
"representative": "xrb_1hza3f7wiiqa7ig3jczyxj5yo86yegcmqk3criaz838j91sxcckpfhbhhra1",
"source": "19D3D919475DEED4696B5D13018151D1AF88B2BD3BCFF048B45031C1F36D1858"
}
Parameters for open block:
- wallet (optional): The wallet ID that the account account the block is being created for is in.
- key (optional): Instead of using "wallet" parameter, you can directly pass in a private key.
- account: The account the block is being created for (xrb_youraccount)
- source: The block hash of the source of funds for this receive block (the send block that this receive block will pocket)
- representative: The account that the newly created account will use as its representative.
Response sample for open block:
{
"hash": "F47B23107E5F34B2CE06F562B5C435DF72A533251CB414C51B2B62A8F63A00E4",
"block": "{\n \"type\": \"open\",\n \"source\": \"19D3D919475DEED4696B5D13018151D1AF88B2BD3BCFF048B45031C1F36D1858\",\n \"representative\": \"xrb_1hza3f7wiiqa7ig3jczyxj5yo86yegcmqk3criaz838j91sxcckpfhbhhra1\",\n \"account\": \"xrb_3kdbxitaj7f6mrir6miiwtw4muhcc58e6tn5st6rfaxsdnb7gr4roudwn951\",\n \"work\": \"4ec76c9bda2325ed\",\n \"signature\": \"5974324F8CC42DA56F62FC212A17886BDCB18DE363D04DA84EEDC99CB4A33919D14A2CF9DE9D534FAA6D0B91D01F0622205D898293525E692586C84F2DCF9208\"\n}\n"
}
Request sample for receive block:
{
"action": "block_create",
"type": "receive",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
"account": "xrb_3kdbxitaj7f6mrir6miiwtw4muhcc58e6tn5st6rfaxsdnb7gr4roudwn951",
"source": "19D3D919475DEED4696B5D13018151D1AF88B2BD3BCFF048B45031C1F36D1858",
"previous": "F47B23107E5F34B2CE06F562B5C435DF72A533251CB414C51B2B62A8F63A00E4"
}
Parameters for receive block:
- wallet (optional): The wallet ID that the account account the block is being created for is in.
- key (optional): Instead of using "wallet" parameter, you can directly pass in a private key.
- account: The account the block is being created for (xrb_youraccount)
- source: The block hash of the source of funds for this receive block (the send block that this receive block will pocket)
- previous: The block hash of the previous block on this account's block chain.
Response sample for receive block:
{
"hash": "314BA8D9057678C1F53371C2DB3026C1FAC01EC8E7802FD9A2E8130FC523429E",
"block": "{\n \"type\": \"receive\",\n \"previous\": \"F47B23107E5F34B2CE06F562B5C435DF72A533251CB414C51B2B62A8F63A00E4\",\n \"source\": \"19D3D919475DEED4696B5D13018151D1AF88B2BD3BCFF048B45031C1F36D1858\",\n \"work\": \"6acb5dd43a38d76a\",\n \"signature\": \"A13FD22527771667D5DFF33D69787D734836A3561D8A490C1F4917A05D77EA09860461D5FBFC99246A4EAB5627F119AD477598E22EE021C4711FACF4F3C80D0E\"\n}\n"
}
Request sample for send block:
{
"action": "block_create",
"type": "send",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
"account": "xrb_3kdbxitaj7f6mrir6miiwtw4muhcc58e6tn5st6rfaxsdnb7gr4roudwn951",
"destination": "xrb_18gmu6engqhgtjnppqam181o5nfhj4sdtgyhy36dan3jr9spt84rzwmktafc",
"balance": "20000000000000000000000000000000",
"amount": "10000000000000000000000000000000",
"previous": "314BA8D9057678C1F53371C2DB3026C1FAC01EC8E7802FD9A2E8130FC523429E"
}
Parameters for send block:
- wallet (optional): The wallet ID that the account account the block is being created for is in.
- key (optional): Instead of using "wallet" parameter, you can directly pass in a private key.
- account: The account the block is being created for (xrb_youraccount)
- destination: The account that the sent funds should be accessible to
- balance: The current balance of the account that the send is originating from, formatted in 'raw' units using a decimal integer.
- amount: The amount being sent (must be less than or equal to balance), formatted in 'raw' units using a decimal integer.
- previous: The block hash of the previous block on this account's block chain.
Warning: It is critical that balance
is the balance of the account at the previous
block. If this is not the case, then the amount sent will be different than the amount
parameter. This is because send blocks contain the balance after the send, so nano_node uses balance - amount
. If balance is 1 Nano less than it should be, then 1 Nano more will be sent than should be.
Response sample for send block:
{
"hash": "F958305C0FF0551421D4ABEDCCF302079D020A0A3833E33F185E2B0415D4567A",
"block": "{\n \"type\": \"send\",\n \"previous\": \"314BA8D9057678C1F53371C2DB3026C1FAC01EC8E7802FD9A2E8130FC523429E\",\n \"destination\": \"xrb_18gmu6engqhgtjnppqam181o5nfhj4sdtgyhy36dan3jr9spt84rzwmktafc\",\n \"balance\": \"0000007E37BE2022C0914B2680000000\",\n \"work\": \"478563b2d9facfd4\",\n \"signature\": \"F19CA177EFA8692C8CBF7478CE3213F56E4A85DF760DA7A9E69141849831F8FD79BA9ED89CEC807B690FB4AA42D5008F9DBA7115E63C935401F1F0EFA547BC00\"\n}\n"
}
In the response, the balance field contains the funds that will be left in the sending account afterwards (original balance minus amount sent), formatted in a 32 digit (128bit) zerofilled HEX number.
Request sample for change block:
{
"action": "block_create",
"type": "change",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
"account": "xrb_3kdbxitaj7f6mrir6miiwtw4muhcc58e6tn5st6rfaxsdnb7gr4roudwn951",
"representative": "xrb_18gmu6engqhgtjnppqam181o5nfhj4sdtgyhy36dan3jr9spt84rzwmktafc",
"previous": "F958305C0FF0551421D4ABEDCCF302079D020A0A3833E33F185E2B0415D4567A"
}
Parameters for change block:
- wallet (optional): The wallet ID that the account account the block is being created for is in.
- key (optional): Instead of using "wallet" parameter, you can directly pass in a private key.
- account: The account the block is being created for (xrb_youraccount)
- representative: The account that the newly created account will use as its representative.
- previous: The block hash of the previous block on this account's block chain.
Response sample for change block:
{
"hash": "654FA425CEBFC9E7726089E4EDE7A105462D93DBC915FFB70B50909920A7D286",
"block": "{\n \"type\": \"change\",\n \"previous\": \"F958305C0FF0551421D4ABEDCCF302079D020A0A3833E33F185E2B0415D4567A\",\n \"representative\": \"xrb_18gmu6engqhgtjnppqam181o5nfhj4sdtgyhy36dan3jr9spt84rzwmktafc\",\n \"work\": \"55e5b7a83edc3f4f\",\n \"signature\": \"98B4D56881D9A88B170A6B2976AE21900C26A27F0E2C338D93FDED56183B73D19AA5BEB48E43FCBB8FF8293FDD368CEF50600FECEFD490A0855ED702ED209E04\"\n}\n"
}
Work value (16 hexadecimal digits string, 64 bit). Uses work value for block from external source
enable_control required, version 17.0+
This is an internal/diagnostic RPC, do not rely on its interface being stable
Derive prive, public keys and account number from node ID
Request:
{
"action": "node_id"
}
Response:
{
"private": "2AD75C9DC20EA497E41722290C4DC966ECC4D6C75CAA4E447961F918FD73D8C7",
"public": "78B11E1777B8E7DF9090004376C3EDE008E84680A497C0805F68CA5928626E1C",
"as_account": "xrb_1y7j5rdqhg99uyab1145gu3yur1ax35a3b6qr417yt8cd6n86uiw3d4whty3"
}
enable_control required, version 17.0+
This is an internal/diagnostic RPC, do not rely on its interface being stable
Removing node ID (restart required to take effect)
Request:
{
"action": "node_id_delete"
}
Response:
{
"deleted": "1"
}
Deprecated, to be removed in version 22
Begin a new payment session. Searches wallet for an account that's marked as available and has a 0 balance. If one is found, the account number is returned and is marked as unavailable. If no account is found, a new account is created, placed in the wallet, and returned.
Request:
{
"action": "payment_begin",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F"
}
Response:
{
"account" : "xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000"
}
Deprecated, to be removed in version 22
Marks all accounts in wallet as available for being used as a payment session.
Request:
{
"action": "payment_init",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F"
}
Response:
{
"status" : "Ready"
}
Deprecated, to be removed in version 22
End a payment session. Marks the account as available for use in a payment session.
Request:
{
"action": "payment_end",
"account": "xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000",
"wallet": "FFFD1BAEC8EC20814BBB9059B393051AAA8380F9B5A2E6B2489A277D81789EEE"
}
Response:
{}
Deprecated, to be removed in version 22
Wait for payment of 'amount' to arrive in 'account' or until 'timeout' milliseconds have elapsed.
Request:
{
"action": "payment_wait",
"account": "xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000",
"amount": "1",
"timeout": "1000"
}
Response:
{
"status" : "success"
}
Publish block to the network
Request:
{
"action": "process",
"block": "{
\"type\": \"state\",
\"account\": \"xrb_1qato4k7z3spc8gq1zyd8xeqfbzsoxwo36a45ozbrxcatut7up8ohyardu1z\",
\"previous\": \"6CDDA48608C7843A0AC1122BDD46D9E20E21190986B19EAC23E7F33F2E6A6766\",
\"representative\": \"xrb_3pczxuorp48td8645bs3m6c3xotxd3idskrenmi65rbrga5zmkemzhwkaznh\",
\"balance\": \"40200000001000000000000000000000000\",
\"link\": \"87434F8041869A01C8F6F263B87972D7BA443A72E0A97D7A3FD0CCC2358FD6F9\",
\"link_as_account\": \"xrb_33t5by1653nt196hfwm5q3wq7oxtaix97r7bhox5zn8eratrzoqsny49ftsd\",
\"signature\": \"A5DB164F6B81648F914E49CAB533900C389FAAD64FBB24F6902F9261312B29F730D07E9BCCD21D918301419B4E05B181637CF8419ED4DCBF8EF2539EB2467F07\",
\"work\": \"000bc55b014e807d\"
}"
}
Response:
{
"hash": "E2FB233EF4554077A7BF1AA85851D5BF0B36965D2B0FB504B2BC778AB89917D3"
}
version 13.1+
Boolean, false by default. Manually forcing fork resolution if processed block is not accepted as fork
version 18.0+
String, empty by default. Additional check for state blocks subtype (send/receive/open/change/epoch). I.e. prevent accidental sending to incorrect accounts instead of receiving pending blocks
version 19.0+
Default "false". If "true", "block" must contain a JSON subtree instead of a JSON string.
enable_control required
Receive pending block for account in wallet
Request:
{
"action": "receive",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
"account": "xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000",
"block": "53EAA25CE28FA0E6D55EA9704B32604A736966255948594D55CBB05267CECD48"
}
Response:
{
"block": "EE5286AB32F580AB65FD84A69E107C69FBEB571DEC4D99297E19E3FA5529547B"
}
version 9.0+
Work value (16 hexadecimal digits string, 64 bit). Uses work value for block from external source
enable_control required, version 8.0+
Returns receive minimum for node
Request:
{
"action": "receive_minimum"
}
Response:
{
"amount": "1000000000000000000000000"
}
enable_control required, version 8.0+
Set amount as new receive minimum for node until restart
Request:
{
"action": "receive_minimum_set",
"amount": "1000000000000000000000000000000"
}
Response:
{
"success": ""
}
Returns a list of pairs of representative and its voting weight
Request:
{
"action": "representatives"
}
Response:
{
"representatives" : {
"xrb_1111111111111111111111111111111111111111111111111117353trpda": "3822372327060170000000000000000000000",
"xrb_1111111111111111111111111111111111111111111111111awsq94gtecn": "30999999999999999999999999000000",
"xrb_114nk4rwjctu6n6tr6g6ps61g1w3hdpjxfas4xj1tq6i8jyomc5d858xr1xi": "0"
}
}
version 9.0+
Number. Returns a list of pairs of representative and its voting weight up to count
version 9.0+
Boolean, false by default. Additional sorting representatives in descending order
NOTE: The "count" option is ignored if "sorting" is specified
version 18.0+
Returns a list of online representative accounts that have voted recently
Request:
{
"action": "representatives_online"
}
Response:
{
"representatives" : [
"xrb_1111111111111111111111111111111111111111111111111117353trpda",
"xrb_1111111111111111111111111111111111111111111111111awsq94gtecn",
"xrb_114nk4rwjctu6n6tr6g6ps61g1w3hdpjxfas4xj1tq6i8jyomc5d858xr1xi"
]
}
versions 11.2–17.1
Returns a list of pairs of online representative accounts that have voted recently and empty strings
Response:
{
"representatives" : {
"xrb_1111111111111111111111111111111111111111111111111117353trpda": "",
"xrb_1111111111111111111111111111111111111111111111111awsq94gtecn": "",
"xrb_114nk4rwjctu6n6tr6g6ps61g1w3hdpjxfas4xj1tq6i8jyomc5d858xr1xi": ""
}
}
version 17.0+
Boolean, false by default. Returns voting weight for each representative.
Response:
{
"representatives" : {
"xrb_114nk4rwjctu6n6tr6g6ps61g1w3hdpjxfas4xj1tq6i8jyomc5d858xr1xi": {
"weight": "150462654614686936429917024683496890"
}
}
}
Returns the default representative for wallet
Request:
{
"action": "wallet_representative",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F"
}
Response:
{
"representative" : "xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000"
}
enable_control required
Sets the default representative for wallet (used only for new accounts, already existing accounts use already set representatives)
Request:
{
"action": "wallet_representative_set",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
"representative": "xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000"
}
Response:
{
"set": "1"
}
version 18.0+
Boolean, false by default. Change representative for existing accounts in wallet. May require a lot of time to complete for large wallets due to work generation for change type state blocks
Rebroadcast blocks starting at hash to the network
Request:
{
"action": "republish",
"hash": "991CF190094C00F0B68E2E5F75F6BEE95A2E0BD93CEAA4A6734DB9F19B728948"
}
Response:
{
"blocks": [
"991CF190094C00F0B68E2E5F75F6BEE95A2E0BD93CEAA4A6734DB9F19B728948",
"A170D51B94E00371ACE76E35AC81DC9405D5D04D4CEBC399AEACE07AE05DD293"
]
}
version 8.0+
Boolean, false by default. Additionally rebroadcast source chain blocks for receive/open up to sources depth
Request:
{
"action": "republish",
"hash": "90D0C16AC92DD35814E84BFBCC739A039615D0A42A76EF44ADAEF1D99E9F8A35",
"count": "1",
"sources": "2"
}
Response:
{
"blocks": [
"991CF190094C00F0B68E2E5F75F6BEE95A2E0BD93CEAA4A6734DB9F19B728948",
"A170D51B94E00371ACE76E35AC81DC9405D5D04D4CEBC399AEACE07AE05DD293",
"90D0C16AC92DD35814E84BFBCC739A039615D0A42A76EF44ADAEF1D99E9F8A35"
]
}
version 8.0+
Boolean, false by default. Additionally rebroadcast destination chain blocks from receive up to destinations depth
Request:
{
"action": "republish",
"hash": "A170D51B94E00371ACE76E35AC81DC9405D5D04D4CEBC399AEACE07AE05DD293",
"count": "1",
"destinations": "2"
}
Response:
{
"blocks": [
"A170D51B94E00371ACE76E35AC81DC9405D5D04D4CEBC399AEACE07AE05DD293",
"90D0C16AC92DD35814E84BFBCC739A039615D0A42A76EF44ADAEF1D99E9F8A35",
"18563C814A54535B7C12BF76A0E23291BA3769536634AB90AD0305776A533E8E"
]
}
enable_control required
Tells the node to look for pending blocks for any account in wallet
Request:
{
"action": "search_pending",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F"
}
Response:
{
"started": "1"
}
enable_control required, version 8.0+
Tells the node to look for pending blocks for any account in all available wallets
Request:
{
"action": "search_pending_all"
}
Response:
{
"success": ""
}
enable_control required
Send amount from source in wallet to destination
Request:
{
"action": "send",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
"source": "xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000",
"destination": "xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000",
"amount": "1000000"
}
Response:
{
"block": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F"
}
Proof of Work is precomputed for one transaction in the background. If it has been a while since your last transaction it will send instantly, the next one will need to wait for Proof of Work to be generated.
If the request times out, then the send may or may not have gone through. Most exchange "double withdraw" bugs are caused because a request was incorrectly retried. If you want to the ability to retry a failed send, all send calls must specify the id parameter as follows
version 10.0+
You can (and should) specify a unique id for each spend to provide idempotency. That means that if you call send
two times with the same id, the second request won't send any additional Nano, and will return the first block instead. The id can be any string. This may be a required parameter in the future.
If you accidentally reuse an id, the send will not go through (it will be seen as a duplicate request), so make sure your ids are unique! They must be unique per node, and are not segregated per wallet.
Using the same id for requests with different parameters (wallet, source, destination, and amount) is undefined behavior and may result in an error in the future.
Request:
{
"action": "send",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
"source": "xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000",
"destination": "xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000",
"amount": "1000000",
"id": "7081e2b8fec9146e"
}
Response:
{
"block": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F"
}
Sending the request again will yield the same block, and will not affect the ledger.
In the future, the response may also indicate if the block is new. However, that has not yet been implemented.
version 9.0+
Work value (16 hexadecimal digits string, 64 bit). Uses work value for block from external source
Request:
{
"action": "send",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
"source": "xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000",
"destination": "xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000",
"amount": "1000000",
"work": "2bf29ef00786a6bc"
}
version 18.0+
Signing provided block with private key or key of account from wallet
Request 1:
{
"action": "sign",
"key": "1D3759BB2CA187A66875D3B8497624159A576FD315E07F702B99B92BC59FC14A",
"block": "{
\"type\": \"state\",
\"account\": \"xrb_1qato4k7z3spc8gq1zyd8xeqfbzsoxwo36a45ozbrxcatut7up8ohyardu1z\",
\"previous\": \"6CDDA48608C7843A0AC1122BDD46D9E20E21190986B19EAC23E7F33F2E6A6766\",
\"representative\": \"xrb_3pczxuorp48td8645bs3m6c3xotxd3idskrenmi65rbrga5zmkemzhwkaznh\",
\"balance\": \"40200000001000000000000000000000000\",
\"link\": \"87434F8041869A01C8F6F263B87972D7BA443A72E0A97D7A3FD0CCC2358FD6F9\",
\"link_as_account\": \"xrb_33t5by1653nt196hfwm5q3wq7oxtaix97r7bhox5zn8eratrzoqsny49ftsd\",
\"signature\": \"A5DB164F6B81648F914E49CAB533900C389FAAD64FBB24F6902F9261312B29F730D07E9BCCD21D918301419B4E05B181637CF8419ED4DCBF8EF2539EB2467F07\",
\"work\": \"000bc55b014e807d\"
}"
}
Request 2:
{
"action": "sign",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
"account": "xrb_18ky5chy5ws89oi46ki4zjy6x5ezpmj98zg6icwke9bmuy99nosieyqf8c1h",
"block": "{
\"type\": \"state\",
\"account\": \"xrb_1qato4k7z3spc8gq1zyd8xeqfbzsoxwo36a45ozbrxcatut7up8ohyardu1z\",
\"previous\": \"6CDDA48608C7843A0AC1122BDD46D9E20E21190986B19EAC23E7F33F2E6A6766\",
\"representative\": \"xrb_3pczxuorp48td8645bs3m6c3xotxd3idskrenmi65rbrga5zmkemzhwkaznh\",
\"balance\": \"40200000001000000000000000000000000\",
\"link\": \"87434F8041869A01C8F6F263B87972D7BA443A72E0A97D7A3FD0CCC2358FD6F9\",
\"link_as_account\": \"xrb_33t5by1653nt196hfwm5q3wq7oxtaix97r7bhox5zn8eratrzoqsny49ftsd\",
\"signature\": \"A5DB164F6B81648F914E49CAB533900C389FAAD64FBB24F6902F9261312B29F730D07E9BCCD21D918301419B4E05B181637CF8419ED4DCBF8EF2539EB2467F07\",
\"work\": \"000bc55b014e807d\"
}"
}
Response:
{
"signature": "2A71F3877033F5966735F260E906BFCB7FA82CDD543BCD1224F180F85A96FC26CB3F0E4180E662332A0DFE4EE6A0F798A71C401011E635604E532383EC08C70D",
"block": "{
\"type\": \"state\",
\"account\": \"xrb_1qato4k7z3spc8gq1zyd8xeqfbzsoxwo36a45ozbrxcatut7up8ohyardu1z\",
\"previous\": \"6CDDA48608C7843A0AC1122BDD46D9E20E21190986B19EAC23E7F33F2E6A6766\",
\"representative\": \"xrb_3pczxuorp48td8645bs3m6c3xotxd3idskrenmi65rbrga5zmkemzhwkaznh\",
\"balance\": \"40200000001000000000000000000000000\",
\"link\": \"87434F8041869A01C8F6F263B87972D7BA443A72E0A97D7A3FD0CCC2358FD6F9\",
\"link_as_account\": \"xrb_33t5by1653nt196hfwm5q3wq7oxtaix97r7bhox5zn8eratrzoqsny49ftsd\",
\"signature\": \"2A71F3877033F5966735F260E906BFCB7FA82CDD543BCD1224F180F85A96FC26CB3F0E4180E662332A0DFE4EE6A0F798A71C401011E635604E532383EC08C70D\",
\"work\": \"000bc55b014e807d\"
}"
}
version 19.0+
Default "false". If "true", the input "block" must contain a JSON subtree instead of a JSON string. In addition, the response block will be a JSON subtree.
Requires config.json modification. Set "enable_sign_hash" to "true"
Request:
{
"action": "sign",
"hash": "E2FB233EF4554077A7BF1AA85851D5BF0B36965D2B0FB504B2BC778AB89917D3"
}
Response:
{
"signature": "2A71F3877033F5966735F260E906BFCB7FA82CDD543BCD1224F180F85A96FC26CB3F0E4180E662332A0DFE4EE6A0F798A71C401011E635604E532383EC08C70D"
}
version 12.2+
For configuration and other details, please see Statistics
Request counters:
{
"action": "stats",
"type": "counters"
}
Counters response:
{
"type": "counters",
"created": "2018.03.29 01:46:36",
"entries": [
{
"time": "01:46:36",
"type": "traffic",
"detail": "all",
"dir": "in",
"value": "3122792"
},
{
"time": "01:46:36",
"type": "traffic",
"detail": "all",
"dir": "out",
"value": "203184"
}
...
]
}
version 18.0+ also returns "stat_duration_seconds": the number of seconds since startup or since the last "stats_clear" call
Request samples:
{
"action": "stats",
"type": "samples"
}
Samples response:
{
"type": "samples",
"created": "2018.03.29 01:47:08",
"entries": [
{
"time": "01:47:04",
"type": "traffic",
"detail": "all",
"dir": "in",
"value": "59480"
},
{
"time": "01:47:05",
"type": "traffic",
"detail": "all",
"dir": "in",
"value": "44496"
}
...
]
}
version 18.0+
NOTE: This call is for debug purposes only and is unstable as returned objects may be frequently changed.
Request objects:
{
"action": "stats",
"type": "objects"
}
Objects response:
{
"node": {
"ledger": {
"bootstrap_weights": {
"count": "125",
"size": "7000"
}
}
"peers": {
"peers": {
"count": "38",
"size": "7296"
},
"attempts": {
"count": "95",
"size": "3800"
},
},
.
.
...
}
}
version 18.0+ Clears all collected statistics. The "stat_duration_seconds" value in the "stats" action is also reset.
Request:
{
"action": "stats_clear"
}
Response:
{
"success": ""
}
enable_control required
Method to safely shutdown node
Request:
{
"action": "stop"
}
Response:
{
"success": ""
}
Check whether account is a valid account number
Request:
{
"action": "validate_account_number",
"account": "xrb_1111111111111111111111111111111111111111111111111117353trpda"
}
Response:
{
"valid" : "1"
}
Returns a list of block hashes in the account chain ending at block up to count
Request:
{
"action": "successors",
"block": "991CF190094C00F0B68E2E5F75F6BEE95A2E0BD93CEAA4A6734DB9F19B728948",
"count": "1"
}
Response:
{
"blocks" : [
"991CF190094C00F0B68E2E5F75F6BEE95A2E0BD93CEAA4A6734DB9F19B728948"
]
}
version 18.0+
Number, 0 by default. Return the account chain block hashes offset by the specified number of blocks
version 18.0+
Boolean, false by default. Returns a consecutive list of block hashes in the account chain starting at block up to count (equal to chain)
Returns version information for RPC, Store, Protocol (network) & Node (Major & Minor version)
RPC Version always retruns "1" as of 01/11/2018
Request:
{
"action": "version"
}
Response:
{
"rpc_version" : "1",
"store_version": "11",
"protocol_version": "15",
"node_vendor": "RaiBlocks 17.0"
}
Returns a list of pairs of peer IPv6:port and its node protocol network version
Request:
{
"action": "peers"
}
version 8.0+
Response:
{
"peers": {
"[::ffff:172.17.0.1]:32841": "16"
}
}
Response before 8.0+:
{
"peers": [
"[::ffff:172.17.0.1]:32841"
]
}
version 18.0+
Boolean, false by default. Returns a list of peers IPv6:port with its node protocol network version and node ID
Response:
{
"peers": {
"[::ffff:172.17.0.1]:32841": {
"protocol_version": "16",
"node_id": "xrb_1y7j5rdqhg99uyab1145gu3yur1ax35a3b6qr417yt8cd6n86uiw3d4whty3"
}
}
}
Returns a list of block hashes which have not yet been received by this account.
{
"action": "pending",
"account": "xrb_1111111111111111111111111111111111111111111111111117353trpda",
"count": "1"
}
Response:
{
"blocks" : [ "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F" ]
}
version 8.0+
Number (128 bit, decimal). Returns a list of pending block hashes with amount more or equal to threshold
Request:
{
"action": "pending",
"account": "xrb_1111111111111111111111111111111111111111111111111117353trpda",
"count": "1",
"threshold": "1000000000000000000000000"
}
Response:
{
"blocks" : {
"000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F": "6000000000000000000000000000000"
}
}
version 9.0+
Boolean, false by default. Returns a list of pending block hashes with amount and source accounts
Request:
{
"action": "pending",
"account": "xrb_1111111111111111111111111111111111111111111111111117353trpda",
"count": "1",
"source": "true"
}
Response:
{
"blocks" : {
"000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F": {
"amount": "6000000000000000000000000000000",
"source": "xrb_3dcfozsmekr1tr9skf1oa5wbgmxt81qepfdnt7zicq5x3hk65fg4fqj58mbr"
}
}
}
version 15.0+
Boolean, false by default. Include active blocks without finished confirmations
Request:
{
"action": "pending",
"account": "xrb_1111111111111111111111111111111111111111111111111117353trpda",
"count": "1",
"include_active": "true"
}
version 19.0+
Boolean, false by default. Additionally sorts the blocks by their amounts in descending order.
version 8.0+
Check whether block is pending by hash
Request:
{
"action": "pending_exists",
"hash": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F"
}
Response:
{
"exists" : "1"
}
version 8.0+
Returns a list of pairs of unchecked synchronizing block hash and its json representation up to count
Request:
{
"action": "unchecked",
"count": "1"
}
Response:
{
"blocks": {
"87434F8041869A01C8F6F263B87972D7BA443A72E0A97D7A3FD0CCC2358FD6F9": "{\n
\"type\": \"state\",\n
\"account\": \"xrb_1ipx847tk8o46pwxt5qjdbncjqcbwcc1rrmqnkztrfjy5k7z4imsrata9est\",\n
\"previous\": \"CE898C131AAEE25E05362F247760F8A3ACF34A9796A5AE0D9204E86B0637965E\",\n
\"representative\": \"xrb_1stofnrxuz3cai7ze75o174bpm7scwj9jn3nxsn8ntzg784jf1gzn1jjdkou\",\n
\"balance\": \"5606157000000000000000000000000000000\",\n
\"link\": \"5D1AA8A45F8736519D707FCB375976A7F9AF795091021D7E9C7548D6F45DD8D5\",\n
\"link_as_account\": \"xrb_1qato4k7z3spc8gq1zyd8xeqfbzsoxwo36a45ozbrxcatut7up8ohyardu1z\",\n
\"signature\": \"82D41BC16F313E4B2243D14DFFA2FB04679C540C2095FEE7EAE0F2F26880AD56DD48D87A7CC5DD760C5B2D76EE2C205506AA557BF00B60D8DEE312EC7343A501\",\n
\"work\": \"8a142e07a10996d5\"\n
}\n"
}
}
enable_control required, version 8.0+
Clear unchecked synchronizing blocks
Request:
{
"action": "unchecked_clear"
}
Response:
{
"success": ""
}
version 8.0+
Retrieves a json representation of unchecked synchronizing block by hash
Request:
{
"action": "unchecked_get",
"hash": "87434F8041869A01C8F6F263B87972D7BA443A72E0A97D7A3FD0CCC2358FD6F9"
}
Response:
{
"contents" : "{\n
\"type\": \"state\",\n
\"account\": \"xrb_1ipx847tk8o46pwxt5qjdbncjqcbwcc1rrmqnkztrfjy5k7z4imsrata9est\",\n
\"previous\": \"CE898C131AAEE25E05362F247760F8A3ACF34A9796A5AE0D9204E86B0637965E\",\n
\"representative\": \"xrb_1stofnrxuz3cai7ze75o174bpm7scwj9jn3nxsn8ntzg784jf1gzn1jjdkou\",\n
\"balance\": \"5606157000000000000000000000000000000\",\n
\"link\": \"5D1AA8A45F8736519D707FCB375976A7F9AF795091021D7E9C7548D6F45DD8D5\",\n
\"link_as_account\": \"xrb_1qato4k7z3spc8gq1zyd8xeqfbzsoxwo36a45ozbrxcatut7up8ohyardu1z\",\n
\"signature\": \"82D41BC16F313E4B2243D14DFFA2FB04679C540C2095FEE7EAE0F2F26880AD56DD48D87A7CC5DD760C5B2D76EE2C205506AA557BF00B60D8DEE312EC7343A501\",\n
\"work\": \"8a142e07a10996d5\"\n
}\n"
}
version 19.0+
Default "false". If "true", "contents" will contain a JSON subtree instead of a JSON string.
version 8.0+
Retrieves unchecked database keys, blocks hashes & a json representations of unchecked pending blocks starting from key up to count
Request:
{
"action": "unchecked_keys",
"key": "CE898C131AAEE25E05362F247760F8A3ACF34A9796A5AE0D9204E86B0637965E",
"count": "1"
}
Response:
{
"unchecked": [
{
"key": "CE898C131AAEE25E05362F247760F8A3ACF34A9796A5AE0D9204E86B0637965E",
"hash": "87434F8041869A01C8F6F263B87972D7BA443A72E0A97D7A3FD0CCC2358FD6F9",
"contents": "{\n
\"type\": \"state\",\n
\"account\": \"xrb_1ipx847tk8o46pwxt5qjdbncjqcbwcc1rrmqnkztrfjy5k7z4imsrata9est\",\n
\"previous\": \"CE898C131AAEE25E05362F247760F8A3ACF34A9796A5AE0D9204E86B0637965E\",\n
\"representative\": \"xrb_1stofnrxuz3cai7ze75o174bpm7scwj9jn3nxsn8ntzg784jf1gzn1jjdkou\",\n
\"balance\": \"5606157000000000000000000000000000000\",\n
\"link\": \"5D1AA8A45F8736519D707FCB375976A7F9AF795091021D7E9C7548D6F45DD8D5\",\n
\"link_as_account\": \"xrb_1qato4k7z3spc8gq1zyd8xeqfbzsoxwo36a45ozbrxcatut7up8ohyardu1z\",\n
\"signature\": \"82D41BC16F313E4B2243D14DFFA2FB04679C540C2095FEE7EAE0F2F26880AD56DD48D87A7CC5DD760C5B2D76EE2C205506AA557BF00B60D8DEE312EC7343A501\",\n
\"work\": \"8a142e07a10996d5\"\n
}\n"
}
]
}
version 19.0+
Default "false". If "true", "contents" will contain a JSON subtree instead of a JSON string.
enable_control required, version 19.0+
Returns the total pending balance for unopened accounts in the local database, starting at account (optional) up to count (optional), sorted by account number. Notes: By default excludes the burn account.
Request:
{
"action": "unopened",
"account": "xrb_1111111111111111111111111111111111111111111111111111hifc8npp",
"count": "1"
}
Response:
{
"accounts": {
"xrb_1111111111111111111111111111111111111111111111111111hifc8npp": "207034077034226183413773082289554618448"
}
}
version 18.0+
Return node uptime in seconds
Request:
{
"action": "uptime"
}
Response:
{
"seconds": "6000"
}
enable_control required
Add an adhoc private key key to wallet
Request:
{
"action": "wallet_add",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
"key": "34F0A37AAD20F4A260F0A5B3CB3D7FB50673212263E58A380BC10474BB039CE4"
}
Response:
{
"account" : "xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000"
}
version 9.0+
Boolean, false by default. Disables work generation after adding account
Request:
{
"action": "wallet_add",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
"key": "34F0A37AAD20F4A260F0A5B3CB3D7FB50673212263E58A380BC10474BB039CE4",
"work": "false"
}
enable_control required, version 11.0+
Add watch-only accounts to wallet
Request:
{
"action": "wallet_add_watch",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
"accounts": [
"xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000",
"xrb_111111111111111111111111111111111111111111111111111000000000"
]
}
Response:
{
"success" : ""
}
Replaced with Wallet info
Returns how many rai is owned and how many have not yet been received by all accounts in wallet
Request:
{
"action": "wallet_balances",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F"
}
Response:
{
"balances" : {
"xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000": {
"balance": "10000",
"pending": "10000"
}
}
}
version 9.0+
Number (128 bit, decimal). Returns wallet accounts balances more or equal to threshold
enable_control required
Changes seed for wallet to seed. Notes: Clear all deterministic accounts in wallet! To restore account from new seed use RPC Accounts create
Request:
{
"action": "wallet_change_seed",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
"seed": "74F2B37AAD20F4A260F0A5B3CB3D7FB51673212263E58A380BC10474BB039CEE"
}
Response:
{
"success" : "",
"last_restored_account": "xrb_1mhdfre3zczr86mp44jd3xft1g1jg66jwkjtjqixmh6eajfexxti7nxcot9c",
"restored_count": "1"
}
version 18.0+
Number, 0 by default. Manually set count of accounts to restore from seed
Check whether wallet contains account
Request:
{
"action": "wallet_contains",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
"account": "xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000"
}
Response:
{
"exists" : "1"
}
enable_control required
Creates a new random wallet id
Request:
{
"action": "wallet_create"
}
Response:
{
"wallet" : "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F"
}
version 18.0+
Seed value (64 hexadecimal digits string, 256 bit). Changes seed for a new wallet to seed, returning last restored account from given seed & restored count
enable_control required
Destroys wallet and all contained accounts
Request:
{
"action": "wallet_destroy",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F"
}
Response:
{
"destroyed": "1"
}
Return a json representation of wallet
Request:
{
"action": "wallet_export",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F"
}
Response:
{
"json" : "{\"0000000000000000000000000000000000000000000000000000000000000000\": \"0000000000000000000000000000000000000000000000000000000000000001\"}"
}
Returns a list of pairs of account and block hash representing the head block starting for accounts from wallet
Request:
{
"action": "wallet_frontiers",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F"
}
Response:
{
"frontiers" : {
"xrb_3e3j5tkog48pnny9dmfzj1r16pg8t1e76dz5tmac6iq689wyjfpi00000000": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F"
}
}
version 15.0+
Returns the sum of all accounts balances in wallet, number of accounts in wallet, number of deterministic & adhoc (non-deterministic) accounts, deterministic index (index of last account derived from seed. Equal to deterministic accounts number if no accounts were removed)
Request:
{
"action": "wallet_info",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F"
}
Response:
{
"balance": "10000",
"pending": "10000",
"accounts_count": "3",
"adhoc_count": "1",
"deterministic_count": "2",
"deterministic_index": "2"
}
version 18.0+
Reports send/receive information for accounts in wallet. Change blocks are skipped, open blocks will appear as receive. Response will start with most recent blocks according to local ledger.
Request:
{
"action": "wallet_history",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F"
}
Response:
{
"history":
[
{
"type": "send",
"account": "xrb_1qato4k7z3spc8gq1zyd8xeqfbzsoxwo36a45ozbrxcatut7up8ohyardu1z",
"amount": "30000000000000000000000000000000000",
"block_account": "xrb_1ipx847tk8o46pwxt5qjdbncjqcbwcc1rrmqnkztrfjy5k7z4imsrata9est"
"hash": "87434F8041869A01C8F6F263B87972D7BA443A72E0A97D7A3FD0CCC2358FD6F9"
"local_timestamp": "1527698508"
},
"type": "send",
"account": "xrb_38ztgpejb7yrm7rr586nenkn597s3a1sqiy3m3uyqjicht7kzuhnihdk6zpz",
"amount": "40000000000000000000000000000000000",
"block_account": "xrb_1ipx847tk8o46pwxt5qjdbncjqcbwcc1rrmqnkztrfjy5k7z4imsrata9est"
"hash": "CE898C131AAEE25E05362F247760F8A3ACF34A9796A5AE0D9204E86B0637965E"
"local_timestamp": "1527698492"
}
]
}
UNIX timestamp (number), 0 by default. Return only accounts modified in local database after specific timestamp
enable_control required, version 11.0+
Returns frontier, open block, change representative block, balance, last modified timestamp from local database & block count for accounts from wallet
Request:
{
"action": "wallet_ledger",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F"
}
Response:
{
"accounts": {
"xrb_11119gbh8hb4hj1duf7fdtfyf5s75okzxdgupgpgm1bj78ex3kgy7frt3s9n": {
"frontier": "E71AF3E9DD86BBD8B4620EFA63E065B34D358CFC091ACB4E103B965F95783321",
"open_block": "643B77F1ECEFBDBE1CC909872964C1DBBE23A6149BD3CEF2B50B76044659B60F",
"representative_block": "643B77F1ECEFBDBE1CC909872964C1DBBE23A6149BD3CEF2B50B76044659B60F",
"balance": "0",
"modified_timestamp": "1511476234",
"block_count": "2"
}
}
}
Booleans, false by default. Additionally returns representative, voting weight, pending balance for each account
Request:
{
"action": "wallet_ledger",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
"representative": "true",
"weight": "true",
"pending": "true"
}
Response:
{
"accounts": {
"xrb_11119gbh8hb4hj1duf7fdtfyf5s75okzxdgupgpgm1bj78ex3kgy7frt3s9n": {
"frontier": "E71AF3E9DD86BBD8B4620EFA63E065B34D358CFC091ACB4E103B965F95783321",
"open_block": "643B77F1ECEFBDBE1CC909872964C1DBBE23A6149BD3CEF2B50B76044659B60F",
"representative_block": "643B77F1ECEFBDBE1CC909872964C1DBBE23A6149BD3CEF2B50B76044659B60F",
"balance": "0",
"modified_timestamp": "1511476234",
"block_count": "2",
"representative": "xrb_1anrzcuwe64rwxzcco8dkhpyxpi8kd7zsjc1oeimpc3ppca4mrjtwnqposrs",
"weight": "0",
"pending": "0"
}
}
}
UNIX timestamp (number), 0 by default. Return only accounts modified in local database after specific timestamp
enable_control required, version 8.0+
Returns a list of block hashes which have not yet been received by accounts in this wallet
Request:
{
"action": "wallet_pending",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F"
"count": "1"
}
Response:
{
"blocks" : {
"xrb_1111111111111111111111111111111111111111111111111117353trpda": ["142A538F36833D1CC78B94E11C766F75818F8B940771335C6C1B8AB880C5BB1D"],
"xrb_3t6k35gi95xu6tergt6p69ck76ogmitsa8mnijtpxm9fkcm736xtoncuohr3": ["4C1FEEF0BEA7F50BE35489A1233FE002B212DEA554B55B1B470D78BD8F210C74"]
}
}
Number (128 bit, decimal). Returns a list of pending block hashes with amount more or equal to threshold
Request:
{
"action": "wallet_pending",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
"count": "1",
"threshold": "1000000000000000000000000"
}
Response:
{
"blocks" : {
"xrb_1111111111111111111111111111111111111111111111111117353trpda": {
"142A538F36833D1CC78B94E11C766F75818F8B940771335C6C1B8AB880C5BB1D": "6000000000000000000000000000000"
},
"xrb_3t6k35gi95xu6tergt6p69ck76ogmitsa8mnijtpxm9fkcm736xtoncuohr3": {
"4C1FEEF0BEA7F50BE35489A1233FE002B212DEA554B55B1B470D78BD8F210C74": "106370018000000000000000000000000"
}
}
version 9.0+
Boolean, false by default. Returns a list of pending block hashes with amount and source accounts
Request:
{
"action": "wallet_pending",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
"count": "1",
"source": "true"
}
Response:
{
"blocks" : {
"xrb_1111111111111111111111111111111111111111111111111117353trpda": {
"142A538F36833D1CC78B94E11C766F75818F8B940771335C6C1B8AB880C5BB1D": {
"amount": "6000000000000000000000000000000",
"source": "xrb_3dcfozsmekr1tr9skf1oa5wbgmxt81qepfdnt7zicq5x3hk65fg4fqj58mbr"
}
},
"xrb_3t6k35gi95xu6tergt6p69ck76ogmitsa8mnijtpxm9fkcm736xtoncuohr3": {
"4C1FEEF0BEA7F50BE35489A1233FE002B212DEA554B55B1B470D78BD8F210C74": {
"amount": "106370018000000000000000000000000",
"source": "xrb_13ezf4od79h1tgj9aiu4djzcmmguendtjfuhwfukhuucboua8cpoihmh8byo"
}
}
}
version 15.0+
Boolean, false by default. Include active blocks without finished confirmations
Request:
{
"action": "wallet_pending",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
"count": "1",
"include_active": "true"
}
enable_control required, version 8.0+
Rebroadcast blocks for accounts from wallet starting at frontier down to count to the network
Request:
{
"action": "wallet_republish",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
"count": "2"
}
Response:
{
"blocks": [
"991CF190094C00F0B68E2E5F75F6BEE95A2E0BD93CEAA4A6734DB9F19B728948",
"A170D51B94E00371ACE76E35AC81DC9405D5D04D4CEBC399AEACE07AE05DD293",
"90D0C16AC92DD35814E84BFBCC739A039615D0A42A76EF44ADAEF1D99E9F8A35"
]
}
enable_control required, version 8.0+
Returns a list of pairs of account and work from wallet
Request:
{
"action": "wallet_work_get",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F"
}
Response:
{
"works": {
"xrb_1111111111111111111111111111111111111111111111111111hifc8npp": "432e5cf728c90f4f"
}
}
enable_control required
Changes the password for wallet to password
Request:
{
"action": "password_change",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
"password": "test"
}
Response:
{
"changed" : "1"
}
Enters the password in to wallet
Request:
{
"action": "password_enter",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
"password": "test"
}
Response:
{
"valid" : "1"
}
Checks whether the password entered for wallet is valid
Request:
{
"action": "password_valid",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F"
}
Response:
{
"valid" : "1"
}
enable_control required, version 9.0+
Locks wallet
Request:
{
"action": "wallet_lock",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F"
}
Response:
{
"locked" : "1"
}
Checks whether wallet is locked
Request:
{
"action": "wallet_locked",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F"
}
Response:
{
"locked" : "0"
}
enable_control required
Stop generating work for block
Request:
{
"action": "work_cancel",
"hash": "718CC2121C3E641059BC1C2CFC45666C99E8AE922F7A807B7D07B62C995D79E2"
}
Response:
{
}
enable_control required
Generates work for block
Request:
{
"action": "work_generate",
"hash": "718CC2121C3E641059BC1C2CFC45666C99E8AE922F7A807B7D07B62C995D79E2"
}
Response:
{
"work": "2bf29ef00786a6bc"
}
version 14.0+
Boolean, false by default. If the optional use_peers
parameter is set to true
, then the node will query its work peers (if it has any).
Without this parameter, the node will only generate work locally.
version 19.0+
Difficulty value (16 hexadecimal digits string, 64 bit). Uses difficulty value to generate work
enable_control required, version 8.0+
Retrieves work for account in wallet
Request:
{
"action": "work_get",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
"account": "xrb_1111111111111111111111111111111111111111111111111111hifc8npp"
}
Response:
{
"work": "432e5cf728c90f4f"
}
enable_control required, version 8.0+
Set work for account in wallet
Request:
{
"action": "work_set",
"wallet": "000D1BAEC8EC208142C99059B393051BAC8380F9B5A2E6B2489A277D81789F3F",
"account": "xrb_1111111111111111111111111111111111111111111111111111hifc8npp",
"work": "0000000000000000"
}
Response:
{
"success": ""
}
enable_control required, version 8.0+
Add specific IP address and port as work peer for node until restart
Request:
{
"action": "work_peer_add",
"address": "::ffff:172.17.0.1",
"port": "7076"
}
Response:
{
"success": ""
}
enable_control required, version 8.0+
Request:
{
"action": "work_peers"
}
Response:
{
"work_peers": [
"::ffff:172.17.0.1:7076"
]
}
enable_control required, version 8.0+
Clear work peers node list until restart
Request:
{
"action": "work_peers_clear"
}
Response:
{
"success": ""
}
Check whether work is valid for block
Request:
{
"action": "work_validate",
"work": "2bf29ef00786a6bc",
"hash": "718CC2121C3E641059BC1C2CFC45666C99E8AE922F7A807B7D07B62C995D79E2"
}
Response:
{
"valid": "1"
}
version 19.0+
Difficulty value (16 hexadecimal digits string, 64 bit). Uses difficulty value to validate work
Send JSON POST requests with every confirmed block to callback server http://callback_address:callback_port<callback_target> defined in config.json. Callback target should include a leading slash. Block object is returned as a string issue/749
Sample:
https://localhost:8080/callback
{
"account": "xrb_1ipx847tk8o46pwxt5qjdbncjqcbwcc1rrmqnkztrfjy5k7z4imsrata9est",
"hash": "B785D56473DE6330AC9A2071F19BD44BCAF1DE5C200A826B4BBCC85E588620FB",
"block": "{\n
\"type\": \"state\",\n
\"account\": \"xrb_1ipx847tk8o46pwxt5qjdbncjqcbwcc1rrmqnkztrfjy5k7z4imsrata9est\",\n
\"previous\": \"82D68AE43E3E04CBBF9ED150999A347C2ABBE74B38D6E506C18DF7B1994E06C2\",\n
\"representative\": \"xrb_1stofnrxuz3cai7ze75o174bpm7scwj9jn3nxsn8ntzg784jf1gzn1jjdkou\",\n
\"balance\": \"5256159500000000000000000000000000000\",\n
\"link\": \"8B95FEB05496327471F4729F0B0919E1994F9116FD213F44C76F696B7ECD386A\",\n
\"link_as_account\": \"xrb_34woztr7b7jkgjrzawnz3e6jmresbyajfzb39x4eguubffzetg5c96f3s16p\",\n
\"signature\": \"FBE5CC5491B54FE9CD8C48312A7A6D3945835FD97F4526571E9BED50E407A27ED8FB0E4AA0BF67E2831B8DB32A74E686A62BF4EC162E8FBB6E665196135C050B\",\n
\"work\": \"824ca671ce7067ac\"\n
}\n",
"amount": "2500000000000000000000000000000"
}
Send state blocks have special fields "is_send" & "subtype"
{
"account": "xrb_1ipx847tk8o46pwxt5qjdbncjqcbwcc1rrmqnkztrfjy5k7z4imsrata9est",
"hash": "82D68AE43E3E04CBBF9ED150999A347C2ABBE74B38D6E506C18DF7B1994E06C2",
"block": "{\n
\"type\": \"state\",\n
\"account\": \"xrb_1ipx847tk8o46pwxt5qjdbncjqcbwcc1rrmqnkztrfjy5k7z4imsrata9est\",\n
\"previous\": \"BE716FE4E21E0DC923ED67543601090A17547474CBA6D6F4B3FD6C113775860F\",\n
\"representative\": \"xrb_1stofnrxuz3cai7ze75o174bpm7scwj9jn3nxsn8ntzg784jf1gzn1jjdkou\",\n
\"balance\": \"5256157000000000000000000000000000000\",\n
\"link\": \"5D1AA8A45F8736519D707FCB375976A7F9AF795091021D7E9C7548D6F45DD8D5\",\n
\"link_as_account\": \"xrb_1qato4k7z3spc8gq1zyd8xeqfbzsoxwo36a45ozbrxcatut7up8ohyardu1z\",\n
\"signature\": \"5AF10D3DDD0E3D7A0EF18670560D194C35A519943150650BBBE0CBDB2A47A1E41817DA69112F996A9898E11F1D79EF51C041BD57C1686B81E7F9DFCCFFBAB000\",\n
\"work\": \"13ae0ea3e2af9004\"\n
}\n",
"amount": "90000000000000000000000000000000000",
"is_send": "true",
"subtype": "send"
}
Note: You should fetch the block using the hash provided in the callback rather than trust this data is valid, and check that data instead, since a malicious 3rd party can also make a fake callback request to your endpoint.