dry run the transaction and return the execution cycles, this method will not check the transaction
validaty, but only run the lock script and type script and then return the execution cycles.
param
the raw transaction whose cycles is going to be calculated
returns
dry run result, including cycles the transaction used.
estimateCycles
run a transaction and return the execution consumed cycles
This method will not check the transaction validity, but only run the lock script and type script and then return the execution cycles.
A median time is calculated for a consecutive block sequence. blockHash indicates the highest block of the sequence.
returns
the past median time by block hash.
When the given block hash is not on the current canonical chain, this RPC returns null;
otherwise returns the median time of the consecutive 37 blocks where the given block_hash has the highest height.
Note that the given block is included in the median time.
The included block number range is [MAX(block - 36, 0), block].
Returns each component of the created CKB in this block's cellbase, which is issued to
a block N - 1 - ProposalWindow.farthest, where this block's height is N.
Specify the number (1 - 101) of confirmed blocks to be counted. If the number is even, automatically add one. If not specified, defaults to 2
returns
the feeRate statistics of confirmed blocks on the chain If the query finds the corresponding historical data, the corresponding statistics are returned, containing the mean and median, in shannons per kilo-weight. If not, it returns null.
rpc to send a new transaction into transaction pool
param
a raw transaction includes cell deps, inputs, outputs, version, and witnesses,
detailed info could be found in ckb-types
param
Validates the transaction outputs before entering the tx-pool,
an optional string parameter (enum: default | passthrough ),
null and passthrough mean skipping outputs validation
a fork block or null. When the RPC returns a block, the block hash must equal to the parameter blockHash.
Please note that due to the technical nature of the peer to peer sync, the RPC may return null or a fork block result on different nodes with same block_hash even they are fully synced to the canonical chain.
And because of chain reorganization, for the same block_hash, the RPC may sometimes return null and sometimes return the fork block.
When verbosity is 2, it returns a JSON object as the result. See BlockView for the schema.
When verbosity is 0, it returns a 0x-prefixed hex string as the result. The string encodes the block serialized by molecule using schema table Block.
addNode
DefaultRPC
attempt to add a node to the peer list and try to connect
the peer id of target node
the address of target node