description |
---|
GasPrice |
Returns the current gas price.
Returns
String
- Number string of the current gas price.
Sample Curl Request
curl -d '{
"jsonrpc":"2.0",
"method":"hmy_gasPrice",
"params":[],
"id":1
}' -H 'Content-Type:application/json' -X POST 'https://api.s0.b.hmny.io'
Sample Curl Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x1"
}
Returns
- String - Decimal big.Int string of the current gas price.
Sample Curl Request
curl -d '{
"jsonrpc":"2.0",
"method":"hmyv2_gasPrice",
"params":[],
"id":1
}' -H 'Content-Type:application/json' localhost:9500
Sample Curl Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "1"
}