Config
eth_coinbase
Returns the client coinbase address.
Parameters
None
Return Value
Type
Description
20-byte DATA
The current coinbase address.
Example
// Request
curl -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_coinbase","params":[],"id":1}' http://localhost:8551
// Result
{
"jsonrpc": "2.0",
"id":1,
"result": "0xc94770007dda54cF92009BFF0dE90c06F603a09f"
}
eth_etherbase
Returns the client etherbase address.
Parameters
None
Return Value
Type
Description
20-byte DATA
The current etherbase address.
Example
// Request
curl -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_etherbase","params":[],"id":1}' http://localhost:8551
// Result
{
"jsonrpc": "2.0",
"id":1,
"result": "0xc94770007dda54cF92009BFF0dE90c06F603a09f"
}
eth_chainId
Return current chainId set on the requested node.
Parameters
None
Return Value
Type
Description
QUANTITY
Chain id set on the requested node.
Example
// Request
curl -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}' http://localhost:8551
// Result
{
"jsonrpc": "2.0",
"id":1,
"result": "0x2019"
}
eth_gasPrice
Returns the current price per gas in peb.
NOTE: This API has different behavior from Ethereum's and returns a gas price of Klaytn instead of suggesting a gas price as in Ethereum.
Parameters
None
Return Value
Type
Description
QUANTITY
Integer of the current gas price in peb.
Example
// Request
curl -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_gasPrice","params":[],"id":1}' http://localhost:8551
// Result
{
"jsonrpc": "2.0",
"id":1,
"result": "0xAE9F7BCC00" // 250,000,000,000 peb = 250 ston (Gwei)
}
Last updated