eth_gasPrice method

Returns the current gas price in wei

Parameters

none

Returns

QUANTITY - integer of the current gas price in wei.

Example

// Request
curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "gasPrice","params": []}' https://bsc-api.bwarelabs.com/<your-endpoint-id>

// Response
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "0x2540be400"

Last updated