API Reference

cfx_gasPrice - Conflux

Returns the current price per gas in Drip.

Parameters

  • none

Returns

QUANTITY - Integer of the current gas price in Drip.


Example

Request

curl -X POST \ --data '{"jsonrpc":"2.0","method":"cfx_gasPrice","id":1}' \ -H "Content-Type: application/json" \ https://cfx-core.unifra.io/v1/ad2eb3c7a9404cc6a35a6641eaf70577

Result

{ "jsonrpc": "2.0", "result": "0x1", "id": 0 }
Path Params
string
required
Body Params
string
Defaults to 2.0
string
Defaults to cfx_gasPrice
array of strings
params
int32
Defaults to 0
Responses

Language
URL
Click Try It! to start a request and see the response here! Or choose an example:
application/json