Configuration
klay_chainID
Returns the chain ID of the chain.
Parameters
None
Return Value
QUANTITY
Integer of the chain ID of the chain.
Example
klay_clientVersion
Returns the current client version of a Klaytn node.
Parameters
None
Return Value
String
The current client version of a Klaytn node.
Example
klay_gasPrice
Returns a suggestion for a gas price in peb.
Parameters
None
Return Value
QUANTITY
Integer of the current gas price in peb.
Example
klay_gasPriceAt
Returns different values based on the condition described below. The unit of the return value is peb.
If
baseFee
is undefined in the header, it returns the unit price from the governance parameterIf the block is a pending block, it returns the gas price of the txpool.
Otherwise, it returns the base fee of the given block.
Parameters
NUMBER
Block number. If omitted, latest unit price will be returned.
Return Value
QUANTITY
Integer of the current gas price in peb.
Example
klay_isParallelDBWrite
Returns true
if the node is writing blockchain data in parallel manner. It is enabled by default.
Parameters
None
Return Value
Boolean
true
means the node is writing blockchain data in parallel manner. It is false
if the node is writing the data in serial manner.
Example
klay_isSenderTxHashIndexingEnabled
Returns true
if the node is indexing sender transaction hash to transaction hash mapping information. It is disabled by default and can be enabled by --sendertxhashindexing
.
Parameters
None
Return Value
Boolean
true
means the node is indexing sender transaction hash to transaction hash mapping information.
Example
klay_protocolVersion
Returns the Klaytn protocol version of the node. The current version (as of v1.9.0) of Cypress/Baobab is istanbul/65
.
Parameters
None
Return Value
String
The Klaytn protocol version of the node.
Example
klay_rewardbase
Returns the rewardbase of the current node. Rewardbase is the address of the account where the block rewards goes to. It is only required for CNs.
Parameters
None
Return Value
20-byte DATA
Address.
Example
Last updated