Inquire blocks and transactions.
Inquire the overall contents of the blockchain.
$ curl -X POST --data '' http://127.0.0.1:3045/api/getDynamicGlobal
{
"status": "success",
"result": {
"id": 0,
"head_block_number": 455166,
"head_block_id": "0006f1fef6cd70a217ca6afaaa2e945bcfe45651",
"time": "2024-06-26T01:38:03",
"current_bobserver": "rysentestnet19",
"current_supply": "500000000.00000000 RSN",
"maximum_block_size": 1333788672,
"current_aslot": 779561,
"recent_slots_filled": "340282366920938463463374607431768211455",
"participation_count": 128,
"dapp_transaction_fee": "0.00000000 RSN",
"last_irreversible_block_num": 455143,
"current_bproducer_count": 17,
"next_update_bproducer_owner_time": "1970-01-01T00:00:00",
"last_dapp_voting_aggregation_time": "2024-06-26T01:31:09",
"total_transfer": 10,
"transaction_fee": "0.00000000 RSN",
"prev_refresh_transaction_fee_block": 454800,
"next_refresh_transaction_fee_block": 456000,
"refresh_transaction_fee_cycle": 1200,
"current_reward_turn": 0,
"miner_account_count": 0,
"current_reserve_ratio": 200000000,
"average_block_size": 124
}
}
> {"jsonrpc": "2.0", "method": "info", "params": [], "id":1 }
< {
"id": 0,
"head_block_number": 455211,
"head_block_id": "0006f22bfcd132598eee48fa83a3aeafbf2c1190",
"time": "2024-06-26T01:40:18",
"current_bobserver": "rysentestnet21",
"current_supply": "500000000.00000000 RSN",
"maximum_block_size": 1333788672,
"current_aslot": 779606,
"recent_slots_filled": "340282366920938463463374607431768211455",
"participation_count": 128,
"dapp_transaction_fee": "0.00000000 RSN",
"last_irreversible_block_num": 455188,
"current_bproducer_count": 17,
"next_update_bproducer_owner_time": "1970-01-01T00:00:00",
"last_dapp_voting_aggregation_time": "2024-06-26T01:31:09",
"total_transfer": 10,
"transaction_fee": "0.00000000 RSN",
"prev_refresh_transaction_fee_block": 454800,
"next_refresh_transaction_fee_block": 456000,
"refresh_transaction_fee_cycle": 1200,
"current_reward_turn": 0,
"miner_account_count": 0,
"current_reserve_ratio": 200000000,
"average_block_size": 124,
"bobserver_majority_version": "0.1.0",
"hardfork_version": "0.1.0",
"head_block_num": 455211,
"head_block_age": "0 second old",
"participation": "100.00000000000000000"
}
unlocked >>> info
{
"id": 0,
"head_block_number": 455211,
"head_block_id": "0006f22bfcd132598eee48fa83a3aeafbf2c1190",
"time": "2024-06-26T01:40:18",
"current_bobserver": "rysentestnet21",
"current_supply": "500000000.00000000 RSN",
"maximum_block_size": 1333788672,
"current_aslot": 779606,
"recent_slots_filled": "340282366920938463463374607431768211455",
"participation_count": 128,
"dapp_transaction_fee": "0.00000000 RSN",
"last_irreversible_block_num": 455188,
"current_bproducer_count": 17,
"next_update_bproducer_owner_time": "1970-01-01T00:00:00",
"last_dapp_voting_aggregation_time": "2024-06-26T01:31:09",
"total_transfer": 10,
"transaction_fee": "0.00000000 RSN",
"prev_refresh_transaction_fee_block": 454800,
"next_refresh_transaction_fee_block": 456000,
"refresh_transaction_fee_cycle": 1200,
"current_reward_turn": 0,
"miner_account_count": 0,
"current_reserve_ratio": 200000000,
"average_block_size": 124,
"bobserver_majority_version": "0.1.0",
"hardfork_version": "0.1.0",
"head_block_num": 455211,
"head_block_age": "0 second old",
"participation": "100.00000000000000000"
}
Search the block contents with the block number.
$ curl -X POST --data 'blockNum=100' http://127.0.0.1:3045/api/getBlock
{
"status": "success",
"result": {
"previous": "000003e7d17b42e00dbe8740d2bd530bb3ed80d1",
"timestamp": "2024-06-10T07:03:21",
"bobserver": "rysentestnet01",
"transaction_merkle_root": "0000000000000000000000000000000000000000",
"extensions": [
],
"bobserver_signature": "1f76fbbcf731874b9bf5882e2593e147a63da350fe007e50c3cc2e01091905e76d445c43b40eaf3f425c061c0c977da0daf9a2f82bffe24fbaa04ffb01cf6d6315",
"transactions": [
],
"block_id": "000003e89c1757787d8abc8c46b6a0a66f7e6184",
"signing_key": "PUB7jfoQFxqeu7NEb1UjX3ipQEfamuCNX1jR9F5Hynmhmp7ZnF9Li",
"transaction_ids": [
]
}
}
> {"jsonrpc": "2.0", "method": "get_block", "params": [100], "id":1 }
< {
"previous": "00000063f088913a5c1bf9607f4910199c0c6b53",
"timestamp": "2024-06-10T06:17:09",
"bobserver": "rysentestnet09",
"transaction_merkle_root": "0000000000000000000000000000000000000000",
"extensions": [[
1,
"0.1.0"
]
],
"bobserver_signature": "1f3e6f84140cd12c106b9a0ddff210e5bbad26fbb3b93df763e1980d1c1bd1bf7d3c3393bf6ce697b923bad4c69f8ee960caba06d0e0acb51962408b27a5e91282",
"transactions": [],
"block_id": "000000648db32b89974edbbba77ced5741f9e39c",
"signing_key": "PUB52FyzR82Mfqxj6bvuopNoxcypPaA9eAcsSJDv48mjtjkS8z9G5",
"transaction_ids": []
}
unlocked >>> get_block 100
{
"previous": "00000063f088913a5c1bf9607f4910199c0c6b53",
"timestamp": "2024-06-10T06:17:09",
"bobserver": "rysentestnet09",
"transaction_merkle_root": "0000000000000000000000000000000000000000",
"extensions": [[
1,
"0.1.0"
]
],
"bobserver_signature": "1f3e6f84140cd12c106b9a0ddff210e5bbad26fbb3b93df763e1980d1c1bd1bf7d3c3393bf6ce697b923bad4c69f8ee960caba06d0e0acb51962408b27a5e91282",
"transactions": [],
"block_id": "000000648db32b89974edbbba77ced5741f9e39c",
"signing_key": "PUB52FyzR82Mfqxj6bvuopNoxcypPaA9eAcsSJDv48mjtjkS8z9G5",
"transaction_ids": []
}
Inquire the transaction.
$ curl -X POST --data 'transaction_id=9f5822f40ac0174ca05b7873fa50d27aab33fec2' http://127.0.0.1:3045/api/gettransaction
{
"status": "success",
"result": {
"ref_block_num": 7257,
"ref_block_prefix": 925940418,
"expiration": "2024-06-24T04:14:36",
"operations": [
[
"transfer",
{
"from": "ARW7Px5g4buTYNf4omezZmDKVoVxvMV8N25HZaB7RWGYDoGJwMUus",
"to": "ARW65wfUawrS8WdajdPfzSQmYENJXXEBKTJnMJLPpjEgcMJZzovkS",
"amount": "0.00800000 RSN",
"memo": "666"
}
]
],
"extensions": [
],
"signatures": [
"1f75940fa8315d4debeaa5694618a89d9ee6fd8cea387a608d78d5c6dc65bee22f743bd8ce914a37f92810826e31041373feb20f8cf88b2edea9e349b8d7b08ffc"
],
"transaction_id": "9f5822f40ac0174ca05b7873fa50d27aab33fec2",
"block_num": 400498,
"transaction_num": 0
}
}
> {"jsonrpc": "2.0", "method": "get_transaction", "params": ["9f5822f40ac0174ca05b7873fa50d27aab33fec2"], "id":1 }
< {
"ref_block_num": 7257,
"ref_block_prefix": 925940418,
"expiration": "2024-06-24T04:14:36",
"operations": [[
"transfer",{
"from": "ARW7Px5g4buTYNf4omezZmDKVoVxvMV8N25HZaB7RWGYDoGJwMUus",
"to": "ARW65wfUawrS8WdajdPfzSQmYENJXXEBKTJnMJLPpjEgcMJZzovkS",
"amount": "0.00800000 RSN",
"memo": "666"
}
]
],
"extensions": [],
"signatures": [
"1f75940fa8315d4debeaa5694618a89d9ee6fd8cea387a608d78d5c6dc65bee22f743bd8ce914a37f92810826e31041373feb20f8cf88b2edea9e349b8d7b08ffc"
],
"transaction_id": "9f5822f40ac0174ca05b7873fa50d27aab33fec2",
"block_num": 400498,
"transaction_num": 0
}
unlocked >>> get_transaction 9f5822f40ac0174ca05b7873fa50d27aab33fec2
{
"ref_block_num": 7257,
"ref_block_prefix": 925940418,
"expiration": "2024-06-24T04:14:36",
"operations": [[
"transfer",{
"from": "ARW7Px5g4buTYNf4omezZmDKVoVxvMV8N25HZaB7RWGYDoGJwMUus",
"to": "ARW65wfUawrS8WdajdPfzSQmYENJXXEBKTJnMJLPpjEgcMJZzovkS",
"amount": "0.00800000 RSN",
"memo": "666"
}
]
],
"extensions": [],
"signatures": [
"1f75940fa8315d4debeaa5694618a89d9ee6fd8cea387a608d78d5c6dc65bee22f743bd8ce914a37f92810826e31041373feb20f8cf88b2edea9e349b8d7b08ffc"
],
"transaction_id": "9f5822f40ac0174ca05b7873fa50d27aab33fec2",
"block_num": 400498,
"transaction_num": 0
}
Please enter a nickname.
Your post has been completed.