Comment on page
klay_gasPrice
Returns the current price per gas in peb.
None
Type | Description |
---|---|
QUANTITY | Integer of the current gas price in peb. |
// Request
curl -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"klay_gasPrice","params":[],"id":1}' http://klaytn.blockpi.network/v1/rpc/your-api-key
// Result
{
"jsonrpc": "2.0",
"id":1,
"result": "0xAE9F7BCC00" // 750,000,000,000 peb = 750 ston
}
Last modified 1yr ago