evadore
  • Evadore
  • Climate Crisis
  • Global Warming
  • Blockchains
  • ReFi
    • What is ReFi?
    • Why ReFi?
  • Eva Chain
    • Content
    • While Starting
    • What is Blockchain?
      • Blockchain Key Benefits
      • Blockchain Network Types
      • Proof-of-Authentication
    • What is Ethereum?
    • What is Solidity?
    • What are Transactions?
    • What is Gas?
    • What is Wallet?
    • Creating Tokens on Evadore
    • Evadore Technical Information
  • Strategy
    • Hydroelectric
    • Solar Energy
    • Wind Energy
    • Carbon Offset Method
    • Carbon Credits
    • Forest
  • Sustainability
    • Sustainability Principles
  • ECOSYSTEM
    • EvaLabs
    • Eva Chain
    • EvaStore
    • EvaPay
    • GreenWallet
    • EvaForest
    • CarbonEva
  • TOKENOMICS
    • TOKENOMICS
  • ROADMAP
    • The Future of Evadore; Updates and Roadmap
    • Evadore's Key Achievements so far include
    • Evadore's future plans and goals include
  • API DOCS
    • RPC API Endpoints
      • Account
      • Logs
      • Stats
      • Block
      • Token
      • Transaction
      • Contract
      • RPC API Endpoints
Powered by GitBook
On this page
  • Get block reward by block number
  • Get estimated block countdown time by block number
  • Get block number by time stamp
  • Get the latest block number
  1. API DOCS
  2. RPC API Endpoints

Block

https://instance_base_url/api?module=block

Get block reward by block number

getblockreward

Returns the block reward and 'uncle' block rewards when applicable.

Example:

https://instance_base_url/api
   ?module=block
   &action=getblockreward
   &blockno={blockNumber}
{
  "message": "OK",
  "result": {
    "blockMiner": "0x13a06d3dfe21e0db5c016c03ea7d2509f7f8d1e3",
    "blockNumber": "2165403",
    "blockReward": "5314181600000000000",
    "timeStamp": "1472533979",
    "uncleInclusionReward": null,
    "uncles": null
  },
  "status": "1"
}

Get estimated block countdown time by block number

getblockcountdown

Returns the estimated time remaining, in seconds, until a certain block is included in blockchain.

Example:

https://instance_base_url/api
   ?module=block
   &action=getblockcountdown
   &blockno={blockNumber}
{
  "message": "OK",
  "result": {
    "CurrentBlock": "115334213",
    "CountdownBlock": "116015880",
    "RemainingBlock": "681667",
    "EstimateTimeInSec": "1363349.0"
  },
  "status": "1"
}

Get block number by time stamp

getblocknobytime

Returns the block number created closest to a provided timestamp.

Example:

https://instance_base_url/api
   ?module=block
   &action=getblocknobytime
   &timestamp={blockTimestamp}
   &closest={before/after}
{
  "message": "OK",
  "result": {
    "blockNumber": "2165403"
  },
  "status": "1"
}

Get the latest block number

eth_block_number

Mimics Ethereum JSON RPC's eth_blockNumber.

Example:

https://instance_base_url/api
   ?module=block
   &action=eth_block_number
{
  "jsonrpc": "2.0",
  "result": "0x103538a",
  "id": 1
}
PreviousStatsNextToken