HomeGuidesAPI ReferenceChangelog
GuidesAPI ReferenceCommunityDiscordBlogFAQBug BountyAnnouncementsChange Log
API Reference

eth_gasPrice

Returns the current energy price in sun.

Parameters
None

Returns
Integer of the current energy price in sun.

Example

curl -X POST '47.95.206.44:50545/jsonrpc' --data '{"jsonrpc": "2.0", "id": 1, "method": "eth_gasPrice", "params": []}'

Result

{"jsonrpc":"2.0","id":1,"result":"0x8c"}