Path parameters
Your API key for authentication
curl https://site1.moralis-nodes.com/polygon/:apiKey \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x4b7"
}
Returns the number of most recent block.
curl https://site1.moralis-nodes.com/polygon/:apiKey \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x4b7"
}