Fee module: Endpoint reference

This page summarizes all available API endpoints of the Fee module.

Endpoints can be invoked as explained in the Connecting via endpoints guide.

fee_getFeeTokenID

Returns the token ID of the token used to pay transaction fees.

  • Specification

  • Node CLI

  • cURL

No parameters.

klayr-core endpoint:invoke fee_getFeeTokenID
curl --location --request POST 'http://localhost:7887/rpc' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "id": "1",
    "method": "fee_getFeeTokenID",
    "params": {}
}'
Response
Example output
{"tokenID":"0000000100000000"}

fee_getMinFeePerByte

Returns the minimum transaction fee per Byte.

  • Specification

  • Node CLI

  • cURL

No parameters.

klayr-core endpoint:invoke fee_getMinFeePerByte
curl --location --request POST 'http://localhost:7887/rpc' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "id": "1",
    "method": "fee_getMinFeePerByte",
    "params": {}
}'
Response
Example output
{ "minFeePerByte": 1000 }