Closed blukat29 closed 5 months ago
null
if the state at the requested block is not available.null
if the state at the requested block is not available.null
if KIP-103 is configured and the hardfork block passed but memo field is not set in the contract. It is 0 if KIP-103 is not configured or the hardfork block is larger than the requested block.null
if KIP-160 is configured and the hardfork block passed but memo field is not set in the contract. It is 0 if KIP-160 is not configured or the hardfork block is larger than the requested block.null
if some components cannot be determined.null
if some components cannot be determined.> klay.getTotalSupply("latest")
{
burntFee: "0x29ec817ffd11a9cd3a4b3",
deadBurn: "0x40c166a428511ad626d306",
kip103Burn: "0x111d0449fb2a238eca3b1720",
kip160Burn: "0x0",
number: "0x93295ce",
totalBurnt: "0x11606478b75245c43d358ed9",
totalMinted: "0x249a79581de10f4cd3000000",
totalSupply: "0x133a14df668ec98895ca7127",
zeroBurn: "0x0"
}
Requests for docs
klay_gasPrice, klay_gasPriceAt, eth_gasPrice
under [Gas] not [Configuration]For example in https://docs.klaytn.foundation/docs/references/json-rpc/debug/trace-transaction/,
[Request > params > TracingOptions]
tracer string Possible values: [null, 4byteTracer, callTracer, fastCallTracer, evmdisTracer, noopTracer, opcountTracer, prestateTracer, revertTracer, unigramTracer, bigramTracer, trigramTracer, custom javascript tracer code] (1) If this field is empty or null, then the structLog tracer is used where the execution of every opcode is shown in detail. This null tracer is extremely heavy and usually too verbose for any debugging purpose, so it is advised to use other predefined tracers. (2) This field can be the name of one of the predefined tracers shown below.
(3) otherwise this field is interpreted as a piece of javascript code. You can find more about custom JS tracer here and here. Below is an example custom tracer that prints the gasUsed after each opcode "{gasUsed: [], step: function(log) { this.gasUsed.push(log.getGas()); }, result: function() { return this.gasUsed; }, fault: function() {}}"
. Note that some nodes with --rpc.unsafe-debug.disable
option will prohibit custom tracer.
[Responses > result]
debug_trace*
APIs