eth_blockNumber
POSThttps://api-gateway.skymavis.com/rpc/
Returns the number of the most recent block.
Parameters:
This method doesn't accept any parameters.
Returns:
result
: a hex string representing the current block number the client is on.
Request
Query Parameters
apikey stringrequired
Your API key
- application/json
Body
id integer
jsonrpc string
method string
Responses
- 200
Successful response
- application/json
- Schema
- Example (from schema)
Schema
jsonrpc string
id integer
result string
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x2396cc0"
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://api-gateway.skymavis.com/rpc/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_blockNumber"
}'
ResponseClear