Skip to content

BitCoen Explorer API

Andrey Nedobylsky edited this page Aug 11, 2018 · 9 revisions

Explorer API provides some public exploring methods.

Base API endpoint: http://explorer.bitcoen.io/api_v1

/?method=getInfo

Returns main info about network

  • status - "ok" or "error"
  • data - if status = "ok" data contains information about network
    • maxBlock - Last network block index
    • peers - Array of actual network peers
    • options - Basic information about chain config
      • genesisTiemstamp - Network genesis timestamp
      • precision - Token precision
    • block - Last block in blockchain
      • index - Block index
      • hash - Block Hash
      • previousHash - Previous Block Hash
      • sign - Block sign or empty when block mined by LCPoA consensus
      • timestamp - Block timestamp
      • startTimestamp - Block mining start timestamp (Equals to timestamp for Trusted consensus)
      • data - Block data

/?method=getWalletInfo&wallet=WALLET_ADDRESS

  • WALLET_ADDRESS - Tiny or full wallet address

Returns info about address and balance

  • status - "ok" or "error"
  • data - if status = "ok" data contains information about wallet
    • balance - Wallet balance
    • block - Wallet block
    • id - Wallet address
    • keysPair - Wallet keys (only public)
      • public - Wallet publci key

/?method=getWalletTransactions&wallet=WALLET_ADDRESS

  • WALLET_ADDRESS - Tiny or full wallet address

Returns income and outcome wallet transactions

  • status - "ok" or "error"
  • data - if status = "ok" data contains information about wallet transactions
    • income - Array of income wallet transactions
      • [] - Transaction
        • amount - Transaction amount in Mil
        • block - Transaction block
        • block - Transaction block
        • from - Transaction sender wallet id
        • to - Transaction recipient wallet id
        • timestamp - Transaction timestamp
        • fromTimestamp - Transaction activation timestamp
        • txh - Transaction hash
    • outcome - Array of outcome wallet transactions
      • [] - Transaction
        • amount - Transaction amount in Mil
        • block - Transaction block
        • block - Transaction block
        • from - Transaction sender wallet id
        • to - Transaction recipient wallet id
        • timestamp - Transaction timestamp
        • fromTimestamp - Transaction activation timestamp
        • txh - Transaction hash

/?method=getTransactionByHash&hash=HASH

  • HASH - Transaction hash

Returns info about transaction

  • status - "ok" or "error"
  • data - if status = "ok" data contains information about transaction
      • amount - Transaction amount in Mil
      • block - Transaction block
      • block - Transaction block
      • from - Transaction sender wallet id
      • to - Transaction recipient wallet id
      • timestamp - Transaction timestamp
      • fromTimestamp - Transaction activation timestamp
      • txh - Transaction hash

/?method=getTransactionsByBlockIndex&id=INDEX

  • INDEX - Block index

Returns all transactions in block

  • status - "ok" or "error"
  • data - if status = "ok" data contains array of transactions
      • [] - Transaction
        • amount - Transaction amount in Mil
        • block - Transaction block
        • block - Transaction block
        • from - Transaction sender wallet id
        • to - Transaction recipient wallet id
        • timestamp - Transaction timestamp
        • fromTimestamp - Transaction activation timestamp
        • txh - Transaction hash

Clone this wiki locally