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.
It is disabled by default and can be enabled by --sendertxhashindexing
.
Supported on Klaytn (mainnet) only.
Parameters
Request
None
Result
Type | Description |
---|---|
20-byte DATA | Address. |
API Endpoint
The format of a Klaytn API endpoint is
https://open-platform.nodereal.io/{{apiKey}}/klaytn/
Here is an example:
https://open-platform.nodereal.io/4c0a1c23661a4e26bcbcwed461e34ea9/klaytn/
Example
// Request
curl https://open-platform.nodereal.io/{{apiKey}}/klaytn/ \
-X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","method":"klay_rewardbase","id":1}'
// Result - If requested from non-CN nodes
{
"jsonrpc":"2.0",
"id":1,
"error":{
"code":-32000,
"message":"rewardbase must be explicitly specified"
}
}
// Result - If requested from CN nodes
{
"jsonrpc":"2.0",
"id":1,
"result":"0x96Fd91f34Cc8da9f6338C106Ba37aA8B48FB4Fa5"
}