AbstractCreates an instance of ClientJsonRpc.
The URL of the JSON-RPC server.
Optionalconfig: ClientJsonRpcConfigReadonlyrequestorGet fee rate statistics
Get tip block number
Tip block number
Get tip block header
Optionalverbosity: null | numberresult format which allows 0 and 1. (Optional, the default is 1.)
BlockHeader
Get block by block number
The block number.
Optionalverbosity: null | numberresult format which allows 0 and 2. (Optional, the default is 2.)
OptionalwithCycles: null | booleanwhether the return cycles of block transactions. (Optional, default false.)
Block
Get block by block hash
The block hash.
Optionalverbosity: null | numberresult format which allows 0 and 2. (Optional, the default is 2.)
OptionalwithCycles: null | booleanwhether the return cycles of block transactions. (Optional, default false.)
Block
Get header by block number
The block number.
Optionalverbosity: null | numberresult format which allows 0 and 1. (Optional, the default is 1.)
BlockHeader
Get header by block hash
The block hash.
Optionalverbosity: null | numberresult format which allows 0 and 1. (Optional, the default is 1.)
BlockHeader
Estimate cycles of a transaction.
The transaction to estimate.
Consumed cycles
Test a transaction.
The transaction to test.
Optionalvalidator: OutputsValidator"passthrough": Disable validation. "well_known_scripts_only": Only accept well known scripts in the transaction.
Consumed cycles
Send a transaction to node.
The transaction to send.
Optionalvalidator: null | OutputsValidator"passthrough": Disable validation. "well_known_scripts_only": Only accept well known scripts in the transaction.
Transaction hash.
Get a transaction from node.
The hash of the transaction.
The transaction with status.
find cells from node.
The search key of cells.
Optionalorder: "asc" | "desc"The order of cells.
Optionallimit: NumLikeThe max return size of cells.
Optionalafter: stringPagination parameter.
The found cells.
find transactions from node.
get cells capacity from node.
The search key of cells.
The sum of cells capacity.
AbstractaddressReturns the URL of the JSON-RPC server.
The URL of the JSON-RPC server.
AbstractgetOptionalverbosity: null | numberOptionalwithCycles: null | booleanOptionalverbosity: null | numberOptionalwithCycles: null | booleanOptionalverbosity: null | numberOptionalverbosity: null | numberGet a cell by its out point. The cell will be cached if it is found.
The out point of the cell to get.
The cell if it exists, otherwise undefined.
OptionalwithData: null | booleanOptionalincludeTxPool: null | booleanOptionalorder: "asc" | "desc"Optionallimit: NumLikeOptionalafter: stringOptionalorder: "asc" | "desc"Find cells by search key designed for collectable cells. The result also includes cached cells, the order param only works for cells fetched from RPC.
The search key.
Optionalorder: "asc" | "desc"A async generator for yielding cells.
Optionaltype: null | ScriptLikeOptionalorder: "asc" | "desc"Optionalorder: "asc" | "desc"Optionalorder: "asc" | "desc"Optionallimit: numberOptionalorder: "asc" | "desc"Optionallimit: numberOptionalorder: "asc" | "desc"Optionallimit: numberOptionalorder: "asc" | "desc"Optionallimit: numberOptionaltype: null | ScriptLikeOptionalgroupByTransaction: null | falseOptionalorder: "asc" | "desc"Optionallimit: numberOptionaltype: null | ScriptLikeOptionalgroupByTransaction: null | booleanOptionalorder: "asc" | "desc"Optionallimit: numberOptionalorder: "asc" | "desc"Optionallimit: numberOptionalgroupByTransaction: null | falseOptionalorder: "asc" | "desc"Optionallimit: numberOptionalgroupByTransaction: null | booleanOptionalorder: "asc" | "desc"Optionallimit: numberOptionalvalidator: OutputsValidatorOptionaloptions: { maxFeeRate?: NumLike }This method gets specified transaction with its block header (if existed). This is mainly for caching because we need the header to test if we can safely trust the cached tx status.
Get a live cell from node.
The out point of the cell.
OptionalwithData: null | booleanInclude data in the response.
OptionalincludeTxPool: null | booleanInclude cells in the tx pool.
The cell
Builds a sender function for a JSON-RPC method.
The JSON-RPC method.
OptionalinTransformers: (undefined | ((_: any) => unknown))[]An array of input transformers.
OptionaloutTransformer: (_: any) => unknownAn output transformer function.
A function that sends a JSON-RPC request with the given method and transformed parameters.
An abstract class implementing JSON-RPC client functionality for a specific URL and timeout. Provides methods for sending transactions and building JSON-RPC payloads.