Bware Docs
Home
Twitter
Linkedin
Telegram
Search…
About Bware Labs Decentralized API
API Docs
Ethereum API
Binance Smart Chain API
Avalanche API
Moonbeam/Moonriver API
Astar/Shiden APIs
Fantom API
RPC
eth_getBlockByNumber method
eth_getBalance method
eth_blockNumber method
eth_syncing method
Websockets
Polkadot API
Elrond API
Tutorials
Using Bware Labs Platform
Using Bware Labs Endpoint in PolkadotJs
Using Bware Labs Endpoint in Metamask
Using a Bware Labs endpoint in code
Powered By
GitBook
eth_blockNumber method
Returns the number of the most recent block
Parameters
none
Returns
QUANTITY
- integer of the current block number the client is on.
Example
1
// Request
2
curl
-H
"Content-Type: application/json"
-d
'{"id":1, "jsonrpc":"2.0", "method": "eth_blockNumber","params": []}'
https://fantom-mainnet-api.bwarelabs.com/
<
your-endpoint-id
>
3
4
// Response
5
6
{
7
"jsonrpc"
:
"2.0"
,
8
"id"
:83,
9
"jsonrpc"
:
"2.0"
,
10
"result"
:
"0x4b7"
//
1207
11
}
Copied!
Previous
eth_getBalance method
Next
eth_syncing method
Last modified
9mo ago
Copy link
Contents
Parameters
Returns
Example