Configuration
Last updated
Last updated
Returns the unit price of gas in peb that was effective at the given block height.
Parameters
Name | Type | Description |
---|---|---|
Return Value
Promise
returns String
- A numeric string of the gas price in peb.
Example
Returns the chain ID of the chain.
Parameters
Return Value
Promise
returns Number
- Integer of the chain ID of the chain.
Example
Returns the unit price defined in the Klaytn network.
Parameters
Return Value
Promise
returns String
- Number string of the current unit price in peb.
Example
Returns the current client version of a Klaytn node.
Parameters
Return Value
Promise
returns String
- The current client version of a Klaytn node.
Example
Returns the Klaytn protocol version of the node. The current version (as of v1.9.0) of Cypress/Baobab is istanbul/65
.
Parameters
Return Value
Promise
returns String
- The Klaytn protocol version of the node.
Example
Returns true
if the node is indexing sender transaction hash to transaction hash mapping information.
Parameters
Return Value
Promise
returns Boolean
- true
means the node is indexing the sender transaction hash to find the fee-payer-signed transaction. For detailed information, please see Klaytn Platform API - klay_getTransactionBySenderTxHash and Klaytn Transactions - Fee Delegation and SenderTxHash.
Example
Returns true
if the node is writing blockchain data in parallel manner. It is enabled by default.
Parameters
Return Value
Promise
returns Boolean
- true
means the node is writing blockchain data in a parallel manner. Returns false
if the node is writing the data in a serial manner.
Example
Returns the rewardbase of the current node. Rewardbase is the address of the account where the block reward goes to. Only the Klaytn Consensus Nodes (CN) have the rewardbase in their configuration. See Configuration File.
Parameters
Return Value
Promise
returns String
- The rewardbase of the current node.
Example
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
defaultBlock
Number | String
(optional) If you don't pass this parameter, the default block set by caver.klay.defaultBlock will be used.
callback
Function
(optional) Optional callback, returns an error object as the first parameter and the result as the second.
callback
Function
(optional) Optional callback, returns an error object as the first parameter and the result as the second.
callback
Function
(optional) Optional callback, returns an error object as the first parameter and the result as the second.
callback
Function
(optional) Optional callback, returns an error object as the first parameter and the result as the second.
callback
Function
(optional) Optional callback, returns an error object as the first parameter and the result as the second.
callback
Function
(optional) Optional callback function. The callback is fired with an error object as the first parameter and the result as the second.
callback
Function
(optional) Optional callback, returns an error object as the first parameter and the result as the second.
callback
Function
(optional) Optional callback, returns an error object as the first parameter and the result as the second.