APIs

You can call this api by http service.

For example, to call BlockAPI.getBlockHeaderByNumber,

curl 47.102.121.72:30315/block/getBlockHeaderByNumber \
    -X POST \
    -H "Content-Type:application/json" \
    -d '{"number":"100"}'

Url path is <host>:<port>/<apiPrefix>/<functionName>, you can find apiPrefix and functionName in each api docs.

Account

  • apiPrefix: account
  • get an account(balance/storage/code) by its address at specific height(optional, default to latest)
  • query accounts’ history transactions

Admin

  • apiPrefix: admin
  • mange peers manually
  • consider turn it off or bind it to a local address

Block

  • apiPrefix: block
  • query blocks
  • query chain state

Contract

  • apiPrefix: contract
  • call a contract’s method

Miner

  • apiPrefix: miner
  • miner voting

Personal

  • apiPrefix: personal
  • private keystore management
  • consider turn it off or bind it to a local address if not necessary.

Transaction

  • apiPrefix: transaction
  • query transactions and receipts
  • send signed transactions