Skip to content
Ethereum-Compatible Interface

eth_gasPriceTry API

POST eth_gasPrice (eth_gasPrice)
Return Values

Result: VoidChain chainneedpropertyvalue

gasPrice in VoidChainnomeaning, not requiredbidding, this APIbyVoidChainredefineddefine, supportunlimitedmetaspaceaccess, defaultgetVoidChain No. 0metaspace, normaltransactionexactlyreturn0x0 compatible withEthereumAPIseamlessly compatible

gasPrice VoidChainproperty definition

-------------------

¦ 4bytes(uint) ¦ 4bytes(uint) ¦ 4bytes(uint) ¦

¦ sliceno ¦ subtype ¦maintype ¦

Sliceno metaspace number

subtype: transactionsubtype

maintype: transactionmaintype

Example Code
Request
{
"jsonrpc": "2.0",
"method": "eth_gasPrice",
"params": [],
"id": "1"
}
Response
{
 "jsonrpc":  "2.0",
 "id":  1,
 "result":  "0x0"
}

On this page