Manage Trnasaction

Inquire blocks and transactions.

BlockChain Information

Inquire the overall contents of the blockchain.

  • [Head_block_number] is the latest block number.
$ curl -X POST --data '' http://192.168.100.34:3034/api/getDynamicGlobal
{
  "status": "success",
  "result": {
    "id": 0,
    "head_block_number": 1438206,
    "head_block_id": "0015f1fe20827372bda4db797a0d343f70abf5d3",
    "time": "2021-11-18T05:59:48",
    "current_bobserver": "adctestnetbp01",
    "current_supply": "21000000000.000000 ADC",
    "maximum_block_size": 1333788672,
    "current_aslot": 2253596,
    "recent_slots_filled": "340282366920938463463374607431768211455",
    "participation_count": 128,
    "dapp_transaction_fee": "1.000000 ADC",
    "last_irreversible_block_num": 1438191,
    "current_bproducer_count": 17,
    "next_update_bproducer_owner_time": "1970-01-01T00:00:00",
    "last_dapp_voting_aggregation_time": "2021-11-18T05:07:18",
    "total_transfer": 12054,
    "transaction_fee": "1.000000 ADC",
    "prev_refresh_transaction_fee_block": 1437600,
    "next_refresh_transaction_fee_block": 1438800,
    "refresh_transaction_fee_cycle": 1200,
    "current_reward_turn": 0,
    "miner_account_count": 507,
    "current_reserve_ratio": 200000000,
    "average_block_size": 126
  }
}
Copy
> {"jsonrpc": "2.0", "method": "info", "params": [], "id":1 }
< {
  "id": 1,
  "result": {
    "id": 0,
    "head_block_number": 1438252,
    "head_block_id": "0015f22c30e2a09e30138540df022f9986ed2705",
    "time": "2021-11-18T06:02:06",
    "current_bobserver": "adctestnetbp21",
    "current_supply": "21000000000.000000 ADC",
    "maximum_block_size": 1333788672,
    "current_aslot": 2253642,
    "recent_slots_filled": "340282366920938463463374607431768211455",
    "participation_count": 128,
    "dapp_transaction_fee": "1.000000 ADC",
    "last_irreversible_block_num": 1438235,
    "current_bproducer_count": 17,
    "next_update_bproducer_owner_time": "1970-01-01T00:00:00",
    "last_dapp_voting_aggregation_time": "2021-11-18T05:07:18",
    "total_transfer": 12054,
    "transaction_fee": "1.000000 ADC",
    "prev_refresh_transaction_fee_block": 1437600,
    "next_refresh_transaction_fee_block": 1438800,
    "refresh_transaction_fee_cycle": 1200,
    "current_reward_turn": 0,
    "miner_account_count": 507,
    "current_reserve_ratio": 200000000,
    "average_block_size": 126,
    "bobserver_majority_version": "0.1.0",
    "hardfork_version": "0.1.0",
    "head_block_num": 1438252,
    "head_block_age": "1 second old",
    "participation": "100.00000000000000000"
  }
}
Copy
unlocked >>> info
{
  "id": 0,
  "head_block_number": 1438237,
  "head_block_id": "0015f21d821ddb21d1eca6b19b6bf442f9640dbc",
  "time": "2021-11-18T06:01:21",
  "current_bobserver": "adctestnetbp03",
  "current_supply": "21000000000.000000 ADC",
  "maximum_block_size": 1333788672,
  "current_aslot": 2253627,
  "recent_slots_filled": "340282366920938463463374607431768211455",
  "participation_count": 128,
  "dapp_transaction_fee": "1.000000 ADC",
  "last_irreversible_block_num": 1438217,
  "current_bproducer_count": 17,
  "next_update_bproducer_owner_time": "1970-01-01T00:00:00",
  "last_dapp_voting_aggregation_time": "2021-11-18T05:07:18",
  "total_transfer": 12054,
  "transaction_fee": "1.000000 ADC",
  "prev_refresh_transaction_fee_block": 1437600,
  "next_refresh_transaction_fee_block": 1438800,
  "refresh_transaction_fee_cycle": 1200,
  "current_reward_turn": 0,
  "miner_account_count": 507,
  "current_reserve_ratio": 200000000,
  "average_block_size": 126,
  "bobserver_majority_version": "0.1.0",
  "hardfork_version": "0.1.0",
  "head_block_num": 1438237,
  "head_block_age": "1 second old",
  "participation": "100.00000000000000000"
}
Copy

Block

Search the block contents with the block number.

$ curl -X POST --data 'blockNum=1000' http://192.168.100.34:3034/api/getBlock

{
  "status": "success",
  "result": {
    "previous": "000003e791880d4c2d196401b6af90a955fbc311",
    "timestamp": "2021-09-29T07:57:24",
    "bobserver": "chainmaker",
    "transaction_merkle_root": "0000000000000000000000000000000000000000",
    "extensions": [

    ],
    "bobserver_signature": "2008f8936335a975e436e236801d40c1be3c023ac93d0e09820a2978987fa092752937f3942564f9065736776cedd8932a8b1f45a069ce70f9e4182a4cdf178494",
    "transactions": [

    ],
    "block_id": "000003e87c6d64a19f85f1e8878c1be1ae861ddc",
    "signing_key": "ADC5icoK2tPfK4JjXF6fWYuCPPg6awJd8jQvea6ExPZVAyLN4nyM1",
    "transaction_ids": [

    ]
  }
}
Copy
> {"jsonrpc": "2.0", "method": "get_block", "params": [1000], "id":1 }
< {
  "id": 1,
  "result": {
    "previous": "000003e791880d4c2d196401b6af90a955fbc311",
    "timestamp": "2021-09-29T07:57:24",
    "bobserver": "chainmaker",
    "transaction_merkle_root": "0000000000000000000000000000000000000000",
    "extensions": [

    ],
    "bobserver_signature": "2008f8936335a975e436e236801d40c1be3c023ac93d0e09820a2978987fa092752937f3942564f9065736776cedd8932a8b1f45a069ce70f9e4182a4cdf178494",
    "transactions": [

    ],
    "block_id": "000003e87c6d64a19f85f1e8878c1be1ae861ddc",
    "signing_key": "ADC5icoK2tPfK4JjXF6fWYuCPPg6awJd8jQvea6ExPZVAyLN4nyM1",
    "transaction_ids": [

    ]
  }
}
Copy
unlocked >>> get_block 1000
{
  "previous": "000003e791880d4c2d196401b6af90a955fbc311",
  "timestamp": "2021-09-29T07:57:24",
  "bobserver": "chainmaker",
  "transaction_merkle_root": "0000000000000000000000000000000000000000",
  "extensions": [],
  "bobserver_signature": "2008f8936335a975e436e236801d40c1be3c023ac93d0e09820a2978987fa092752937f3942564f9065736776cedd8932a8b1f45a069ce70f9e4182a4cdf178494",
  "transactions": [],
  "block_id": "000003e87c6d64a19f85f1e8878c1be1ae861ddc",
  "signing_key": "ADC5icoK2tPfK4JjXF6fWYuCPPg6awJd8jQvea6ExPZVAyLN4nyM1",
  "transaction_ids": []
}
Copy

Transaction

Inquire the transaction.

$ curl -X POST --data 'transaction_id=87657ade8100da620d4c443edf2476b26914f0b2' http://192.168.100.34:3034/api/gettransaction
{
  "status": "success",
  "result": {
    "ref_block_num": 60640,
    "ref_block_prefix": 3569187372,
    "expiration": "2021-11-18T04:54:48",
    "operations": [
      [
        "transfer",
        {
          "from": "speedhwang",
          "to": "test011",
          "amount": "100.000000 ADC",
          "memo": "memo"
        }
      ]
    ],
    "extensions": [

    ],
    "signatures": [
      "20751bd76a067ab9ad538aad2d99fbcd268a43165fff089766eaedf7c6e9833a351847351b2df2a953eb58de14602a2b19600b69e8e42f544944d7e06c1e1ef131"
    ],
    "transaction_id": "87657ade8100da620d4c443edf2476b26914f0b2",
    "block_num": 1436897,
    "transaction_num": 0
  }
}
Copy
> {"jsonrpc": "2.0", "method": "get_transaction", "params": ["87657ade8100da620d4c443edf2476b26914f0b2"], "id":1 }
< {
  "id": 1,
  "result": {
    "ref_block_num": 60640,
    "ref_block_prefix": 3569187372,
    "expiration": "2021-11-18T04:54:48",
    "operations": [
      [
        "transfer",
        {
          "from": "speedhwang",
          "to": "test011",
          "amount": "100.000000 ADC",
          "memo": "memo"
        }
      ]
    ],
    "extensions": [

    ],
    "signatures": [
      "20751bd76a067ab9ad538aad2d99fbcd268a43165fff089766eaedf7c6e9833a351847351b2df2a953eb58de14602a2b19600b69e8e42f544944d7e06c1e1ef131"
    ],
    "transaction_id": "87657ade8100da620d4c443edf2476b26914f0b2",
    "block_num": 1436897,
    "transaction_num": 0
  }
}
Copy
unlocked >>> get_transaction 87657ade8100da620d4c443edf2476b26914f0b2
{
  "ref_block_num": 60640,
  "ref_block_prefix": 3569187372,
  "expiration": "2021-11-18T04:54:48",
  "operations": [[
      "transfer",{
        "from": "speedhwang",
        "to": "test011",
        "amount": "100.000000 ADC",
        "memo": "memo"
      }
    ]
  ],
  "extensions": [],
  "signatures": [
    "20751bd76a067ab9ad538aad2d99fbcd268a43165fff089766eaedf7c6e9833a351847351b2df2a953eb58de14602a2b19600b69e8e42f544944d7e06c1e1ef131"
  ],
  "transaction_id": "87657ade8100da620d4c443edf2476b26914f0b2",
  "block_num": 1436897,
  "transaction_num": 0
}
Copy

©2021 ADC. All rights reserved.

Close

Create Post

Close

Edit Post

Close

Post Password

Please enter the password
you entered when writing the post to edit the post.

Close

Post Password

Please enter the password
you entered when creating the post to delete the post.

Close

Please enter a nickname.

Your post has been completed.