Search
Preparing search index...
The search index is not available
lumos
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
rpc
Package rpc
Index
References
Bigint
OrHex
String
Type
Exception
Bigint
OrHex
String
Type
Exception
Hex
String
Without0x
Exception
Hex
String
Without0x
Exception
Id
Not
Match
Exception
Id
Not
Match
Exception
Id
Not
Matched
InBatch
Exception
Id
Not
Matched
InBatch
Exception
Method
InBatch
Not
Found
Exception
Method
InBatch
Not
Found
Exception
Outputs
Validator
Type
Exception
Outputs
Validator
Type
Exception
Page
Size
Too
Large
Exception
Page
Size
Too
Large
Exception
Page
Size
Too
Small
Exception
Page
Size
Too
Small
Exception
Payload
InBatch
Exception
Payload
InBatch
Exception
RPC
RPC
Response
Exception
Response
Exception
String
Hash
Type
Exception
String
Hash
Type
Exception
Namespaces
CKBComponents
CKBComponents
RPC
RPC
Enumerations
Error
Code
Error
Code
Classes
Base
Base
Bigint
OrHex
String
Type
Exception
Bigint
OrHex
String
Type
Exception
CKBRPC
CKBRPC
Hex
String
Without0x
Exception
Hex
String
Without0x
Exception
Id
Not
Match
Exception
Id
Not
Match
Exception
Id
Not
Matched
InBatch
Exception
Id
Not
Matched
InBatch
Exception
Method
Method
Method
InBatch
Not
Found
Exception
Method
InBatch
Not
Found
Exception
Outputs
Validator
Type
Exception
Outputs
Validator
Type
Exception
Page
Size
Too
Large
Exception
Page
Size
Too
Large
Exception
Page
Size
Too
Small
Exception
Page
Size
Too
Small
Exception
Payload
InBatch
Exception
Payload
InBatch
Exception
Response
Exception
Response
Exception
String
Hash
Type
Exception
String
Hash
Type
Exception
Interfaces
Rpc
Propertes
Rpc
Propertes
Type aliases
Method
Schema
Method
Schema
RPCConfig
RPCConfig
Variables
ERROR_
LABEL
Params
Formatter
Params
Formatter
Result
Formatter
Result
Formatter
_default
_default
_default
_default
_default
_default
_default
_default
app
formatter
rpc
Properties
schemas
to
Alert
Message
to
Array
to
Banned
Address
to
Banned
Addresses
to
Block
to
Block
Economic
State
to
Block
Filter
to
Blockchain
Info
to
Capacity
ByLock
Hash
to
Cell
to
Cell
Dep
to
Cell
Including
Out
Point
to
Cellbase
Output
Capacity
Details
to
Cells
to
Cells
Capacity
to
Cells
Including
Out
Point
to
Consensus
to
Dep
Type
to
Epoch
to
Estimate
Cycles
to
Fee
Rate
to
Fee
Rate
Statistics
to
Fork
Block
Result
to
Get
Cells
Result
to
Get
Transactions
Result
to
Hash
to
Header
to
Input
to
Live
Cell
to
Live
Cell
With
Status
to
Live
Cells
ByLock
Hash
to
Local
Node
Info
to
Lock
Hash
Index
State
to
Lock
Hash
Index
States
to
Nullable
to
Number
to
Out
Point
to
Output
to
Peers
to
Raw
TxPool
to
Remote
Node
Info
to
Script
to
Sync
State
to
Tip
to
Transaction
And
Witness
Proof
to
Transaction
Point
to
Transaction
Proof
to
Transaction
With
Status
to
Transactions
ByLock
Hash
to
TxPool
Info
to
Uncle
Block
Functions
is
TxPool
Ids
is
Ungrouped
Indexer
Transaction
main
to
Alert
Message
to
Array
to
Banned
Address
to
Banned
Addresses
to
Block
to
Block
Economic
State
to
Block
Filter
to
Blockchain
Info
to
Capacity
ByLock
Hash
to
Cell
to
Cell
Dep
to
Cell
Including
Out
Point
to
Cellbase
Output
Capacity
Details
to
Cells
to
Cells
Capacity
to
Cells
Including
Out
Point
to
Consensus
to
Dep
Type
to
Epoch
to
Estimate
Cycles
to
Fee
Rate
to
Fee
Rate
Statistics
to
Fork
Block
Result
to
Get
Cells
Result
to
Get
Transactions
Result
to
Hash
to
Header
to
Indexer
Cell
to
Indexer
Transaction
to
Input
to
Live
Cell
to
Live
Cell
With
Status
to
Live
Cells
ByLock
Hash
to
Local
Node
Info
to
Lock
Hash
Index
State
to
Lock
Hash
Index
States
to
Nullable
to
Number
to
Out
Point
to
Output
to
Peers
to
Raw
TxPool
to
Remote
Node
Info
to
Script
to
Sync
State
to
Tip
to
Transaction
to
Transaction
to
Transaction
And
Witness
Proof
to
Transaction
Point
to
Transaction
Proof
to
Transaction
With
Status
to
Transactions
ByLock
Hash
to
TxPool
Info
to
Uncle
Block
Object literals
formatter
rpc
Properties
schemas
References
Bigint
OrHex
String
Type
Exception
Re-exports
BigintOrHexStringTypeException
Bigint
OrHex
String
Type
Exception
Re-exports
BigintOrHexStringTypeException
Hex
String
Without0x
Exception
Re-exports
HexStringWithout0xException
Hex
String
Without0x
Exception
Re-exports
HexStringWithout0xException
Id
Not
Match
Exception
Re-exports
IdNotMatchException
Id
Not
Match
Exception
Re-exports
IdNotMatchException
Id
Not
Matched
InBatch
Exception
Re-exports
IdNotMatchedInBatchException
Id
Not
Matched
InBatch
Exception
Re-exports
IdNotMatchedInBatchException
Method
InBatch
Not
Found
Exception
Re-exports
MethodInBatchNotFoundException
Method
InBatch
Not
Found
Exception
Re-exports
MethodInBatchNotFoundException
Outputs
Validator
Type
Exception
Re-exports
OutputsValidatorTypeException
Outputs
Validator
Type
Exception
Re-exports
OutputsValidatorTypeException
Page
Size
Too
Large
Exception
Re-exports
PageSizeTooLargeException
Page
Size
Too
Large
Exception
Re-exports
PageSizeTooLargeException
Page
Size
Too
Small
Exception
Re-exports
PageSizeTooSmallException
Page
Size
Too
Small
Exception
Re-exports
PageSizeTooSmallException
Payload
InBatch
Exception
Re-exports
PayloadInBatchException
Payload
InBatch
Exception
Re-exports
PayloadInBatchException
RPC
Renames and re-exports
CKBRPC
RPC
Renames and re-exports
CKBRPC
Response
Exception
Re-exports
ResponseException
Response
Exception
Re-exports
ResponseException
String
Hash
Type
Exception
Re-exports
StringHashTypeException
String
Hash
Type
Exception
Re-exports
StringHashTypeException
Type aliases
Method
Schema
Method
Schema
:
{
method
:
string
;
paramsFormatters
:
(
(
arg
:
any
)
=>
any
)
[]
;
resultFormatters
:
(
arg
:
any
)
=>
any
}
Type declaration
method
:
string
params
Formatters
:
(
(
arg
:
any
)
=>
any
)
[]
result
Formatters
:
(
arg
:
any
)
=>
any
(
arg
:
any
)
:
any
Parameters
arg:
any
Returns
any
Method
Schema
Method
Schema
:
{
method
:
string
;
paramsFormatters
:
(
(
arg
:
any
)
=>
any
)
[]
;
resultFormatters
:
(
arg
:
any
)
=>
any
}
Type declaration
method
:
string
params
Formatters
:
(
(
arg
:
any
)
=>
any
)
[]
result
Formatters
:
(
arg
:
any
)
=>
any
(
arg
:
any
)
:
any
Parameters
arg:
any
Returns
any
RPCConfig
RPCConfig
:
{
timeout
:
number
}
Type declaration
timeout
:
number
RPCConfig
RPCConfig
:
{
timeout
:
number
}
Type declaration
timeout
:
number
Variables
Const
ERROR_
LABEL
ERROR_
LABEL
:
"Batch Request"
= "Batch Request"
Const
Params
Formatter
Params
Formatter
:
{
toArray
:
(
format
?:
(
(
args
:
any
)
=>
any
)
|
undefined
)
=>
(
arg
:
any
)
=>
any
;
toBoolean
:
(
value
:
boolean
)
=>
boolean
;
toCellDep
:
(
cellDep
:
CellDep
)
=>
CellDep
;
toDepType
:
(
type
:
"depGroup"
|
"code"
)
=>
"code"
|
"dep_group"
;
toGetCellsSearchKey
:
(
data
:
GetCellsSearchKey
<
boolean
>
)
=>
GetCellsSearchKey
;
toGetTransactionsSearchKey
:
(
data
:
GetTransactionsSearchKey
<
boolean
>
)
=>
GetTransactionsSearchKey
;
toHash
:
(
hash
:
string
)
=>
string
;
toInput
:
(
input
:
Input
)
=>
CellInput
;
toNumber
:
(
number
:
string
|
bigint
)
=>
string
;
toOptional
:
(
format
?:
(
(
args
:
any
)
=>
any
)
|
undefined
)
=>
(
arg
:
any
)
=>
any
;
toOrder
:
(
order
:
"asc"
|
"desc"
)
=>
"asc"
|
"desc"
;
toOutPoint
:
(
outPoint
:
OutPoint
)
=>
OutPoint
;
toOutput
:
(
output
:
Output
)
=>
CellOutput
;
toOutputsValidator
:
(
outputsValidator
:
OutputsValidator
)
=>
OutputsValidator
;
toPageNumber
:
(
pageNo
?:
string
|
bigint
)
=>
string
;
toPageSize
:
(
pageSize
?:
string
|
bigint
)
=>
string
;
toRawTransaction
:
(
transaction
:
RawTransaction
)
=>
RawTransaction
;
toReverseOrder
:
(
reverse
?:
undefined
|
false
|
true
)
=>
boolean
;
toScript
:
(
script
:
Script
)
=>
Script
;
toSearchFilter
:
(
data
:
SearchFilter
)
=>
SearchFilter
;
toSearchKey
:
(
data
:
SearchKey
)
=>
SearchKey
;
toTransactionAndWitnessProof
:
(
proof
:
TransactionAndWitnessProof
)
=>
TransactionAndWitnessProof
;
toTransactionProof
:
(
proof
:
TransactionProof
)
=>
TransactionProof
}
Type declaration
to
Array
:
(
format
?:
(
(
args
:
any
)
=>
any
)
|
undefined
)
=>
(
arg
:
any
)
=>
any
(
format
?:
(
(
args
:
any
)
=>
any
)
|
undefined
)
:
(
arg
:
any
)
=>
any
Parameters
Optional
format:
(
(
args
:
any
)
=>
any
)
|
undefined
Returns
(
arg
:
any
)
=>
any
(
arg
:
any
)
:
any
Parameters
arg:
any
Returns
any
to
Boolean
:
(
value
:
boolean
)
=>
boolean
(
value
:
boolean
)
:
boolean
Parameters
value:
boolean
Returns
boolean
to
Cell
Dep
:
(
cellDep
:
CellDep
)
=>
CellDep
(
cellDep
:
CellDep
)
:
CellDep
Parameters
cellDep:
CellDep
Returns
CellDep
to
Dep
Type
:
(
type
:
"depGroup"
|
"code"
)
=>
"code"
|
"dep_group"
(
type
:
"depGroup"
|
"code"
)
:
"code"
|
"dep_group"
Parameters
type:
"depGroup"
|
"code"
Returns
"code"
|
"dep_group"
to
Get
Cells
Search
Key
:
(
data
:
GetCellsSearchKey
<
boolean
>
)
=>
GetCellsSearchKey
(
data
:
GetCellsSearchKey
<
boolean
>
)
:
GetCellsSearchKey
Parameters
data:
GetCellsSearchKey
<
boolean
>
Returns
GetCellsSearchKey
to
Get
Transactions
Search
Key
:
(
data
:
GetTransactionsSearchKey
<
boolean
>
)
=>
GetTransactionsSearchKey
(
data
:
GetTransactionsSearchKey
<
boolean
>
)
:
GetTransactionsSearchKey
Parameters
data:
GetTransactionsSearchKey
<
boolean
>
Returns
GetTransactionsSearchKey
to
Hash
:
(
hash
:
string
)
=>
string
(
hash
:
string
)
:
string
Parameters
hash:
string
Returns
string
to
Input
:
(
input
:
Input
)
=>
CellInput
(
input
:
Input
)
:
CellInput
Parameters
input:
Input
Returns
CellInput
to
Number
:
(
number
:
string
|
bigint
)
=>
string
(
number
:
string
|
bigint
)
:
string
Parameters
number:
string
|
bigint
Returns
string
to
Optional
:
(
format
?:
(
(
args
:
any
)
=>
any
)
|
undefined
)
=>
(
arg
:
any
)
=>
any
(
format
?:
(
(
args
:
any
)
=>
any
)
|
undefined
)
:
(
arg
:
any
)
=>
any
Parameters
Optional
format:
(
(
args
:
any
)
=>
any
)
|
undefined
Returns
(
arg
:
any
)
=>
any
(
arg
:
any
)
:
any
Parameters
arg:
any
Returns
any
to
Order
:
(
order
:
"asc"
|
"desc"
)
=>
"asc"
|
"desc"
(
order
:
"asc"
|
"desc"
)
:
"asc"
|
"desc"
Parameters
order:
"asc"
|
"desc"
Returns
"asc"
|
"desc"
to
Out
Point
:
(
outPoint
:
OutPoint
)
=>
OutPoint
(
outPoint
:
OutPoint
)
:
OutPoint
Parameters
outPoint:
OutPoint
Returns
OutPoint
to
Output
:
(
output
:
Output
)
=>
CellOutput
(
output
:
Output
)
:
CellOutput
Parameters
output:
Output
Returns
CellOutput
to
Outputs
Validator
:
(
outputsValidator
:
OutputsValidator
)
=>
OutputsValidator
(
outputsValidator
:
OutputsValidator
)
:
OutputsValidator
Parameters
outputsValidator:
OutputsValidator
Returns
OutputsValidator
to
Page
Number
:
(
pageNo
?:
string
|
bigint
)
=>
string
(
pageNo
?:
string
|
bigint
)
:
string
Parameters
Optional
pageNo:
string
|
bigint
Returns
string
to
Page
Size
:
(
pageSize
?:
string
|
bigint
)
=>
string
(
pageSize
?:
string
|
bigint
)
:
string
Parameters
Optional
pageSize:
string
|
bigint
Returns
string
to
Raw
Transaction
:
(
transaction
:
RawTransaction
)
=>
RawTransaction
(
transaction
:
RawTransaction
)
:
RawTransaction
Parameters
transaction:
RawTransaction
Returns
RawTransaction
to
Reverse
Order
:
(
reverse
?:
undefined
|
false
|
true
)
=>
boolean
(
reverse
?:
undefined
|
false
|
true
)
:
boolean
Parameters
Optional
reverse:
undefined
|
false
|
true
Returns
boolean
to
Script
:
(
script
:
Script
)
=>
Script
(
script
:
Script
)
:
Script
Parameters
script:
Script
Returns
Script
to
Search
Filter
:
(
data
:
SearchFilter
)
=>
SearchFilter
(
data
:
SearchFilter
)
:
SearchFilter
Parameters
data:
SearchFilter
Returns
SearchFilter
to
Search
Key
:
(
data
:
SearchKey
)
=>
SearchKey
(
data
:
SearchKey
)
:
SearchKey
Parameters
data:
SearchKey
Returns
SearchKey
to
Transaction
And
Witness
Proof
:
(
proof
:
TransactionAndWitnessProof
)
=>
TransactionAndWitnessProof
(
proof
:
TransactionAndWitnessProof
)
:
TransactionAndWitnessProof
Parameters
proof:
TransactionAndWitnessProof
Returns
TransactionAndWitnessProof
to
Transaction
Proof
:
(
proof
:
TransactionProof
)
=>
TransactionProof
(
proof
:
TransactionProof
)
:
TransactionProof
Parameters
proof:
TransactionProof
Returns
TransactionProof
Const
Params
Formatter
Params
Formatter
:
{
toArray
:
any
;
toBoolean
:
any
;
toCellDep
:
any
;
toDepType
:
any
;
toGetCellsSearchKey
:
any
;
toGetTransactionsSearchKey
:
any
;
toHash
:
any
;
toInput
:
any
;
toNumber
:
any
;
toOptional
:
any
;
toOrder
:
any
;
toOutPoint
:
any
;
toOutput
:
any
;
toOutputsValidator
:
any
;
toPageNumber
:
any
;
toPageSize
:
any
;
toRawTransaction
:
any
;
toReverseOrder
:
any
;
toScript
:
any
;
toSearchFilter
:
any
;
toSearchKey
:
any
;
toTransactionAndWitnessProof
:
any
;
toTransactionProof
:
any
}
= paramsFormatter
Type declaration
to
Array
:
function
to
Array
(
format
?:
undefined
|
(
(
args
:
any
)
=>
any
)
)
:
(Anonymous function)
Parameters
Optional
format:
undefined
|
(
(
args
:
any
)
=>
any
)
Returns
(Anonymous function)
to
Boolean
:
function
to
Boolean
(
value
:
boolean
)
:
boolean
Parameters
value:
boolean
Returns
boolean
to
Cell
Dep
:
function
to
Cell
Dep
(
cellDep
:
CellDep
)
:
CellDep
Parameters
cellDep:
CellDep
Returns
CellDep
to
Dep
Type
:
function
to
Dep
Type
(
type
:
DepType
)
:
"code"
|
"dep_group"
Parameters
type:
DepType
Returns
"code"
|
"dep_group"
to
Get
Cells
Search
Key
:
function
to
Get
Cells
Search
Key
(
data
:
GetCellsSearchKey
)
:
GetCellsSearchKey
Parameters
data:
GetCellsSearchKey
Returns
GetCellsSearchKey
to
Get
Transactions
Search
Key
:
function
to
Get
Transactions
Search
Key
(
data
:
GetTransactionsSearchKey
)
:
GetTransactionsSearchKey
Parameters
data:
GetTransactionsSearchKey
Returns
GetTransactionsSearchKey
to
Hash
:
function
to
Hash
(
hash
:
string
)
:
Hash256
Parameters
hash:
string
Returns
Hash256
to
Input
:
function
to
Input
(
input
:
CellInput
)
:
CellInput
Parameters
input:
CellInput
Returns
CellInput
to
Number
:
function
to
Number
(
number
:
Number
|
bigint
)
:
Number
Parameters
number:
Number
|
bigint
Returns
Number
to
Optional
:
function
to
Optional
(
format
?:
undefined
|
(
(
args
:
any
)
=>
any
)
)
:
(Anonymous function)
Parameters
Optional
format:
undefined
|
(
(
args
:
any
)
=>
any
)
Returns
(Anonymous function)
to
Order
:
function
to
Order
(
order
:
Order
)
:
"asc"
|
"desc"
Parameters
order:
Order
Returns
"asc"
|
"desc"
to
Out
Point
:
function
to
Out
Point
(
outPoint
:
OutPoint
)
:
OutPoint
Parameters
outPoint:
OutPoint
Returns
OutPoint
to
Output
:
function
to
Output
(
output
:
CellOutput
)
:
CellOutput
Parameters
output:
CellOutput
Returns
CellOutput
to
Outputs
Validator
:
function
to
Outputs
Validator
(
outputsValidator
:
OutputsValidator
)
:
undefined
|
"default"
|
"passthrough"
Parameters
outputsValidator:
OutputsValidator
Returns
undefined
|
"default"
|
"passthrough"
to
Page
Number
:
function
to
Page
Number
(
pageNo
?:
string
|
bigint
)
:
string
Parameters
Default value
pageNo:
string
|
bigint
= "0x1"
Returns
string
to
Page
Size
:
function
to
Page
Size
(
pageSize
?:
string
|
bigint
)
:
string
Parameters
Default value
pageSize:
string
|
bigint
= "0x32"
Returns
string
to
Raw
Transaction
:
function
to
Raw
Transaction
(
transaction
:
RawTransaction
)
:
RawTransaction
Parameters
transaction:
RawTransaction
Returns
RawTransaction
to
Reverse
Order
:
function
to
Reverse
Order
(
reverse
?:
boolean
)
:
boolean
Parameters
Default value
reverse:
boolean
= false
Returns
boolean
to
Script
:
function
to
Script
(
script
:
Script
)
:
Script
Parameters
script:
Script
Returns
Script
to
Search
Filter
:
function
to
Search
Filter
(
data
:
SearchFilter
)
:
SearchFilter
Parameters
data:
SearchFilter
Returns
SearchFilter
to
Search
Key
:
function
to
Search
Key
(
data
:
SearchKey
)
:
SearchKey
Parameters
data:
SearchKey
Returns
SearchKey
to
Transaction
And
Witness
Proof
:
function
to
Transaction
And
Witness
Proof
(
proof
:
TransactionAndWitnessProof
)
:
TransactionAndWitnessProof
Parameters
proof:
TransactionAndWitnessProof
Returns
TransactionAndWitnessProof
to
Transaction
Proof
:
function
to
Transaction
Proof
(
proof
:
TransactionProof
)
:
TransactionProof
Parameters
proof:
TransactionProof
Returns
TransactionProof
Const
Result
Formatter
Result
Formatter
:
typeof
resultFormatter
Const
Result
Formatter
Result
Formatter
:
"/vercel/path0/packages/rpc/src/resultFormatter"
= resultFormatter
Const
_default
_default
:
{
getBlock
:
{
method
:
string
;
paramsFormatters
:
(
(
hash
:
string
)
=>
string
)
[]
;
resultFormatters
:
(
block
:
Block
)
=>
Block
}
;
getBlockByNumber
:
{
method
:
string
;
paramsFormatters
:
(
(
number
:
string
|
bigint
)
=>
string
)
[]
;
resultFormatters
:
(
block
:
Block
)
=>
Block
}
;
getBlockEconomicState
:
{
method
:
string
;
paramsFormatters
:
(
(
hash
:
string
)
=>
string
)
[]
;
resultFormatters
:
(
blockEconomicState
:
BlockEconomicState
)
=>
BlockEconomicState
}
;
getBlockHash
:
{
method
:
string
;
paramsFormatters
:
(
(
number
:
string
|
bigint
)
=>
string
)
[]
}
;
getCellbaseOutputCapacityDetails
:
{
method
:
string
;
paramsFormatters
:
(
(
hash
:
string
)
=>
string
)
[]
;
resultFormatters
:
(
details
:
CellbaseOutputCapacityDetails
)
=>
CellbaseOutputCapacityDetails
}
;
getConsensus
:
{
method
:
string
;
paramsFormatters
:
never
[]
;
resultFormatters
:
(
consensus
:
Consensus
)
=>
Consensus
}
;
getCurrentEpoch
:
{
method
:
string
;
paramsFormatters
:
never
[]
;
resultFormatters
:
(
epoch
:
Epoch
)
=>
Epoch
}
;
getEpochByNumber
:
{
method
:
string
;
paramsFormatters
:
(
(
number
:
string
|
bigint
)
=>
string
)
[]
;
resultFormatters
:
(
epoch
:
Epoch
)
=>
Epoch
}
;
getHeader
:
{
method
:
string
;
paramsFormatters
:
(
(
hash
:
string
)
=>
string
)
[]
;
resultFormatters
:
(
header
:
Header
)
=>
Header
}
;
getHeaderByNumber
:
{
method
:
string
;
paramsFormatters
:
(
(
number
:
string
|
bigint
)
=>
string
)
[]
;
resultFormatters
:
(
header
:
Header
)
=>
Header
}
;
getLiveCell
:
{
method
:
string
;
paramsFormatters
:
(
(
outPoint
:
OutPoint
)
=>
OutPoint
)
[]
;
resultFormatters
:
(
cellWithStatus
:
{
cell
:
LiveCell
;
status
:
string
}
)
=>
{
cell
:
LiveCell
;
status
:
string
}
}
;
getTipBlockNumber
:
{
method
:
string
;
paramsFormatters
:
never
[]
;
resultFormatters
:
(
number
:
string
)
=>
string
}
;
getTipHeader
:
{
method
:
string
;
paramsFormatters
:
never
[]
;
resultFormatters
:
(
header
:
Header
)
=>
Header
}
;
getTransaction
:
{
method
:
string
;
paramsFormatters
:
(
(
hash
:
string
)
=>
string
)
[]
;
resultFormatters
:
(
txWithStatus
:
TransactionWithStatus
)
=>
{
transaction
:
RawTransaction
&
{
witnesses
:
Witness
[]
}
;
txStatus
:
{
blockHash
:
string
|
undefined
;
status
:
TransactionStatus
}
}
}
;
getTransactionProof
:
{
method
:
string
;
paramsFormatters
:
(
(
arg
:
any
)
=>
any
)
[]
;
resultFormatters
:
(
proof
:
TransactionProof
)
=>
TransactionProof
}
;
verifyTransactionProof
:
{
method
:
string
;
paramsFormatters
:
(
(
proof
:
TransactionProof
)
=>
TransactionProof
)
[]
}
}
Type declaration
get
Block
:
{
method
:
string
;
paramsFormatters
:
(
(
hash
:
string
)
=>
string
)
[]
;
resultFormatters
:
(
block
:
Block
)
=>
Block
}
method
:
string
params
Formatters
:
(
(
hash
:
string
)
=>
string
)
[]
result
Formatters
:
(
block
:
Block
)
=>
Block
(
block
:
Block
)
:
Block
Parameters
block:
Block
Returns
Block
get
Block
ByNumber
:
{
method
:
string
;
paramsFormatters
:
(
(
number
:
string
|
bigint
)
=>
string
)
[]
;
resultFormatters
:
(
block
:
Block
)
=>
Block
}
method
:
string
params
Formatters
:
(
(
number
:
string
|
bigint
)
=>
string
)
[]
result
Formatters
:
(
block
:
Block
)
=>
Block
(
block
:
Block
)
:
Block
Parameters
block:
Block
Returns
Block
get
Block
Economic
State
:
{
method
:
string
;
paramsFormatters
:
(
(
hash
:
string
)
=>
string
)
[]
;
resultFormatters
:
(
blockEconomicState
:
BlockEconomicState
)
=>
BlockEconomicState
}
method
:
string
params
Formatters
:
(
(
hash
:
string
)
=>
string
)
[]
result
Formatters
:
(
blockEconomicState
:
BlockEconomicState
)
=>
BlockEconomicState
(
blockEconomicState
:
BlockEconomicState
)
:
BlockEconomicState
Parameters
blockEconomicState:
BlockEconomicState
Returns
BlockEconomicState
get
Block
Hash
:
{
method
:
string
;
paramsFormatters
:
(
(
number
:
string
|
bigint
)
=>
string
)
[]
}
method
:
string
params
Formatters
:
(
(
number
:
string
|
bigint
)
=>
string
)
[]
get
Cellbase
Output
Capacity
Details
:
{
method
:
string
;
paramsFormatters
:
(
(
hash
:
string
)
=>
string
)
[]
;
resultFormatters
:
(
details
:
CellbaseOutputCapacityDetails
)
=>
CellbaseOutputCapacityDetails
}
method
:
string
params
Formatters
:
(
(
hash
:
string
)
=>
string
)
[]
result
Formatters
:
(
details
:
CellbaseOutputCapacityDetails
)
=>
CellbaseOutputCapacityDetails
(
details
:
CellbaseOutputCapacityDetails
)
:
CellbaseOutputCapacityDetails
Parameters
details:
CellbaseOutputCapacityDetails
Returns
CellbaseOutputCapacityDetails
get
Consensus
:
{
method
:
string
;
paramsFormatters
:
never
[]
;
resultFormatters
:
(
consensus
:
Consensus
)
=>
Consensus
}
method
:
string
params
Formatters
:
never
[]
result
Formatters
:
(
consensus
:
Consensus
)
=>
Consensus
(
consensus
:
Consensus
)
:
Consensus
Parameters
consensus:
Consensus
Returns
Consensus
get
Current
Epoch
:
{
method
:
string
;
paramsFormatters
:
never
[]
;
resultFormatters
:
(
epoch
:
Epoch
)
=>
Epoch
}
method
:
string
params
Formatters
:
never
[]
result
Formatters
:
(
epoch
:
Epoch
)
=>
Epoch
(
epoch
:
Epoch
)
:
Epoch
Parameters
epoch:
Epoch
Returns
Epoch
get
Epoch
ByNumber
:
{
method
:
string
;
paramsFormatters
:
(
(
number
:
string
|
bigint
)
=>
string
)
[]
;
resultFormatters
:
(
epoch
:
Epoch
)
=>
Epoch
}
method
:
string
params
Formatters
:
(
(
number
:
string
|
bigint
)
=>
string
)
[]
result
Formatters
:
(
epoch
:
Epoch
)
=>
Epoch
(
epoch
:
Epoch
)
:
Epoch
Parameters
epoch:
Epoch
Returns
Epoch
get
Header
:
{
method
:
string
;
paramsFormatters
:
(
(
hash
:
string
)
=>
string
)
[]
;
resultFormatters
:
(
header
:
Header
)
=>
Header
}
method
:
string
params
Formatters
:
(
(
hash
:
string
)
=>
string
)
[]
result
Formatters
:
(
header
:
Header
)
=>
Header
(
header
:
Header
)
:
Header
Parameters
header:
Header
Returns
Header
get
Header
ByNumber
:
{
method
:
string
;
paramsFormatters
:
(
(
number
:
string
|
bigint
)
=>
string
)
[]
;
resultFormatters
:
(
header
:
Header
)
=>
Header
}
method
:
string
params
Formatters
:
(
(
number
:
string
|
bigint
)
=>
string
)
[]
result
Formatters
:
(
header
:
Header
)
=>
Header
(
header
:
Header
)
:
Header
Parameters
header:
Header
Returns
Header
get
Live
Cell
:
{
method
:
string
;
paramsFormatters
:
(
(
outPoint
:
OutPoint
)
=>
OutPoint
)
[]
;
resultFormatters
:
(
cellWithStatus
:
{
cell
:
LiveCell
;
status
:
string
}
)
=>
{
cell
:
LiveCell
;
status
:
string
}
}
method
:
string
params
Formatters
:
(
(
outPoint
:
OutPoint
)
=>
OutPoint
)
[]
result
Formatters
:
(
cellWithStatus
:
{
cell
:
LiveCell
;
status
:
string
}
)
=>
{
cell
:
LiveCell
;
status
:
string
}
(
cellWithStatus
:
{
cell
:
LiveCell
;
status
:
string
}
)
:
{
cell
:
LiveCell
;
status
:
string
}
Parameters
cellWithStatus:
{
cell
:
LiveCell
;
status
:
string
}
cell
:
LiveCell
status
:
string
Returns
{
cell
:
LiveCell
;
status
:
string
}
cell
:
LiveCell
status
:
string
get
Tip
Block
Number
:
{
method
:
string
;
paramsFormatters
:
never
[]
;
resultFormatters
:
(
number
:
string
)
=>
string
}
method
:
string
params
Formatters
:
never
[]
result
Formatters
:
(
number
:
string
)
=>
string
(
number
:
string
)
:
string
Parameters
number:
string
Returns
string
get
Tip
Header
:
{
method
:
string
;
paramsFormatters
:
never
[]
;
resultFormatters
:
(
header
:
Header
)
=>
Header
}
method
:
string
params
Formatters
:
never
[]
result
Formatters
:
(
header
:
Header
)
=>
Header
(
header
:
Header
)
:
Header
Parameters
header:
Header
Returns
Header
get
Transaction
:
{
method
:
string
;
paramsFormatters
:
(
(
hash
:
string
)
=>
string
)
[]
;
resultFormatters
:
(
txWithStatus
:
TransactionWithStatus
)
=>
{
transaction
:
RawTransaction
&
{
witnesses
:
Witness
[]
}
;
txStatus
:
{
blockHash
:
string
|
undefined
;
status
:
TransactionStatus
}
}
}
method
:
string
params
Formatters
:
(
(
hash
:
string
)
=>
string
)
[]
result
Formatters
:
(
txWithStatus
:
TransactionWithStatus
)
=>
{
transaction
:
RawTransaction
&
{
witnesses
:
Witness
[]
}
;
txStatus
:
{
blockHash
:
string
|
undefined
;
status
:
TransactionStatus
}
}
(
txWithStatus
:
TransactionWithStatus
)
:
{
transaction
:
RawTransaction
&
{
witnesses
:
Witness
[]
}
;
txStatus
:
{
blockHash
:
string
|
undefined
;
status
:
TransactionStatus
}
}
Parameters
txWithStatus:
TransactionWithStatus
Returns
{
transaction
:
RawTransaction
&
{
witnesses
:
Witness
[]
}
;
txStatus
:
{
blockHash
:
string
|
undefined
;
status
:
TransactionStatus
}
}
transaction
:
RawTransaction
&
{
witnesses
:
Witness
[]
}
tx
Status
:
{
blockHash
:
string
|
undefined
;
status
:
TransactionStatus
}
block
Hash
:
string
|
undefined
status
:
TransactionStatus
get
Transaction
Proof
:
{
method
:
string
;
paramsFormatters
:
(
(
arg
:
any
)
=>
any
)
[]
;
resultFormatters
:
(
proof
:
TransactionProof
)
=>
TransactionProof
}
method
:
string
params
Formatters
:
(
(
arg
:
any
)
=>
any
)
[]
result
Formatters
:
(
proof
:
TransactionProof
)
=>
TransactionProof
(
proof
:
TransactionProof
)
:
TransactionProof
Parameters
proof:
TransactionProof
Returns
TransactionProof
verify
Transaction
Proof
:
{
method
:
string
;
paramsFormatters
:
(
(
proof
:
TransactionProof
)
=>
TransactionProof
)
[]
}
method
:
string
params
Formatters
:
(
(
proof
:
TransactionProof
)
=>
TransactionProof
)
[]
Const
_default
_default
:
{
calculateDaoMaximumWithdraw
:
{
method
:
string
;
paramsFormatters
:
(
(
(
hash
:
string
)
=>
string
)
|
(
(
outPoint
:
OutPoint
)
=>
OutPoint
)
)
[]
}
;
dryRunTransaction
:
{
method
:
string
;
paramsFormatters
:
(
(
transaction
:
RawTransaction
&
{
witnesses
:
Witness
[]
}
)
=>
RawTransaction
)
[]
}
}
Type declaration
calculate
Dao
Maximum
Withdraw
:
{
method
:
string
;
paramsFormatters
:
(
(
(
hash
:
string
)
=>
string
)
|
(
(
outPoint
:
OutPoint
)
=>
OutPoint
)
)
[]
}
method
:
string
params
Formatters
:
(
(
(
hash
:
string
)
=>
string
)
|
(
(
outPoint
:
OutPoint
)
=>
OutPoint
)
)
[]
dry
Run
Transaction
:
{
method
:
string
;
paramsFormatters
:
(
(
transaction
:
RawTransaction
&
{
witnesses
:
Witness
[]
}
)
=>
RawTransaction
)
[]
}
method
:
string
params
Formatters
:
(
(
transaction
:
RawTransaction
&
{
witnesses
:
Witness
[]
}
)
=>
RawTransaction
)
[]
Const
_default
_default
:
{
addNode
:
{
method
:
string
;
paramsFormatters
:
never
[]
}
;
clearBannedAddresses
:
{
method
:
string
;
paramsFormatters
:
never
[]
}
;
getBannedAddresses
:
{
method
:
string
;
paramsFormatters
:
never
[]
;
resultFormatters
:
(
bannedAddresses
:
Array
)
=>
Array
}
;
getPeers
:
{
method
:
string
;
paramsFormatters
:
never
[]
;
resultFormatters
:
(
nodes
:
RemoteNodeInfo
[]
)
=>
RemoteNode
[]
}
;
localNodeInfo
:
{
method
:
string
;
paramsFormatters
:
never
[]
;
resultFormatters
:
(
info
:
LocalNodeInfo
)
=>
LocalNode
}
;
pingPeers
:
{
method
:
string
;
paramsFormatters
:
never
[]
}
;
removeNode
:
{
method
:
string
;
paramsFormatters
:
never
[]
}
;
setBan
:
{
method
:
string
;
paramsFormatters
:
never
[]
}
;
setNetworkActive
:
{
method
:
string
;
paramsFormatters
:
(
(
value
:
boolean
)
=>
boolean
)
[]
}
;
syncState
:
{
method
:
string
;
paramsFormatters
:
never
[]
;
resultFormatters
:
(
state
:
SyncState
)
=>
SyncState
}
}
Type declaration
add
Node
:
{
method
:
string
;
paramsFormatters
:
never
[]
}
method
:
string
params
Formatters
:
never
[]
clear
Banned
Addresses
:
{
method
:
string
;
paramsFormatters
:
never
[]
}
method
:
string
params
Formatters
:
never
[]
get
Banned
Addresses
:
{
method
:
string
;
paramsFormatters
:
never
[]
;
resultFormatters
:
(
bannedAddresses
:
Array
)
=>
Array
}
method
:
string
params
Formatters
:
never
[]
result
Formatters
:
(
bannedAddresses
:
Array
)
=>
Array
(
bannedAddresses
:
Array
)
:
Array
Parameters
bannedAddresses:
Array
Returns
Array
get
Peers
:
{
method
:
string
;
paramsFormatters
:
never
[]
;
resultFormatters
:
(
nodes
:
RemoteNodeInfo
[]
)
=>
RemoteNode
[]
}
method
:
string
params
Formatters
:
never
[]
result
Formatters
:
(
nodes
:
RemoteNodeInfo
[]
)
=>
RemoteNode
[]
(
nodes
:
RemoteNodeInfo
[]
)
:
RemoteNode
[]
Parameters
nodes:
RemoteNodeInfo
[]
Returns
RemoteNode
[]
local
Node
Info
:
{
method
:
string
;
paramsFormatters
:
never
[]
;
resultFormatters
:
(
info
:
LocalNodeInfo
)
=>
LocalNode
}
method
:
string
params
Formatters
:
never
[]
result
Formatters
:
(
info
:
LocalNodeInfo
)
=>
LocalNode
(
info
:
LocalNodeInfo
)
:
LocalNode
Parameters
info:
LocalNodeInfo
Returns
LocalNode
ping
Peers
:
{
method
:
string
;
paramsFormatters
:
never
[]
}
method
:
string
params
Formatters
:
never
[]
remove
Node
:
{
method
:
string
;
paramsFormatters
:
never
[]
}
method
:
string
params
Formatters
:
never
[]
set
Ban
:
{
method
:
string
;
paramsFormatters
:
never
[]
}
method
:
string
params
Formatters
:
never
[]
set
Network
Active
:
{
method
:
string
;
paramsFormatters
:
(
(
value
:
boolean
)
=>
boolean
)
[]
}
method
:
string
params
Formatters
:
(
(
value
:
boolean
)
=>
boolean
)
[]
sync
State
:
{
method
:
string
;
paramsFormatters
:
never
[]
;
resultFormatters
:
(
state
:
SyncState
)
=>
SyncState
}
method
:
string
params
Formatters
:
never
[]
result
Formatters
:
(
state
:
SyncState
)
=>
SyncState
(
state
:
SyncState
)
:
SyncState
Parameters
state:
SyncState
Returns
SyncState
Const
_default
_default
:
{
clearTxPool
:
{
method
:
string
;
paramsFormatters
:
never
[]
}
;
getRawTxPool
:
{
method
:
string
;
paramsFormatters
:
never
[]
;
resultFormatters
:
(
rawTxPool
:
{}
|
{}
)
=>
TxPoolIds
|
TxPoolVerbosity
}
;
sendTransaction
:
{
method
:
string
;
paramsFormatters
:
(
(
(
transaction
:
RawTransaction
&
{
witnesses
:
Witness
[]
}
)
=>
RawTransaction
)
|
(
(
outputsValidator
:
undefined
|
"default"
|
"passthrough"
)
=>
undefined
|
"default"
|
"passthrough"
)
)
[]
;
resultFormatters
:
(
hash
:
string
)
=>
string
}
;
txPoolInfo
:
{
method
:
string
;
paramsFormatters
:
never
[]
;
resultFormatters
:
(
info
:
TxPoolInfo
)
=>
TxPoolInfo
}
}
Type declaration
clear
TxPool
:
{
method
:
string
;
paramsFormatters
:
never
[]
}
method
:
string
params
Formatters
:
never
[]
get
Raw
TxPool
:
{
method
:
string
;
paramsFormatters
:
never
[]
;
resultFormatters
:
(
rawTxPool
:
{}
|
{}
)
=>
TxPoolIds
|
TxPoolVerbosity
}
method
:
string
params
Formatters
:
never
[]
result
Formatters
:
(
rawTxPool
:
{}
|
{}
)
=>
TxPoolIds
|
TxPoolVerbosity
(
rawTxPool
:
{}
|
{}
)
:
TxPoolIds
|
TxPoolVerbosity
Parameters
rawTxPool:
{}
|
{}
Returns
TxPoolIds
|
TxPoolVerbosity
send
Transaction
:
{
method
:
string
;
paramsFormatters
:
(
(
(
transaction
:
RawTransaction
&
{
witnesses
:
Witness
[]
}
)
=>
RawTransaction
)
|
(
(
outputsValidator
:
undefined
|
"default"
|
"passthrough"
)
=>
undefined
|
"default"
|
"passthrough"
)
)
[]
;
resultFormatters
:
(
hash
:
string
)
=>
string
}
method
:
string
params
Formatters
:
(
(
(
transaction
:
RawTransaction
&
{
witnesses
:
Witness
[]
}
)
=>
RawTransaction
)
|
(
(
outputsValidator
:
undefined
|
"default"
|
"passthrough"
)
=>
undefined
|
"default"
|
"passthrough"
)
)
[]
result
Formatters
:
(
hash
:
string
)
=>
string
(
hash
:
string
)
:
string
Parameters
hash:
string
Returns
string
tx
Pool
Info
:
{
method
:
string
;
paramsFormatters
:
never
[]
;
resultFormatters
:
(
info
:
TxPoolInfo
)
=>
TxPoolInfo
}
method
:
string
params
Formatters
:
never
[]
result
Formatters
:
(
info
:
TxPoolInfo
)
=>
TxPoolInfo
(
info
:
TxPoolInfo
)
:
TxPoolInfo
Parameters
info:
TxPoolInfo
Returns
TxPoolInfo
Const
_default
_default
:
{
getBlockchainInfo
:
{
method
:
string
;
paramsFormatters
:
never
[]
;
resultFormatters
:
(
info
:
BlockchainInfo
)
=>
ChainInfo
}
}
Type declaration
get
Blockchain
Info
:
{
method
:
string
;
paramsFormatters
:
never
[]
;
resultFormatters
:
(
info
:
BlockchainInfo
)
=>
ChainInfo
}
method
:
string
params
Formatters
:
never
[]
result
Formatters
:
(
info
:
BlockchainInfo
)
=>
ChainInfo
(
info
:
BlockchainInfo
)
:
ChainInfo
Parameters
info:
BlockchainInfo
Returns
ChainInfo
Const
_default
_default
:
{
IdNotMatchException
:
typeof
IdNotMatchException
;
ResponseException
:
typeof
ResponseException
}
Type declaration
Id
Not
Match
Exception
:
typeof
IdNotMatchException
Response
Exception
:
typeof
ResponseException
Const
_default
_default
:
{
IdNotMatchedInBatchException
:
typeof
IdNotMatchedInBatchException
;
MethodInBatchNotFoundException
:
typeof
MethodInBatchNotFoundException
;
PayloadInBatchException
:
typeof
PayloadInBatchException
}
Type declaration
Id
Not
Matched
InBatch
Exception
:
typeof
IdNotMatchedInBatchException
Method
InBatch
Not
Found
Exception
:
typeof
MethodInBatchNotFoundException
Payload
InBatch
Exception
:
typeof
PayloadInBatchException
Const
_default
_default
:
{
BigintOrHexStringTypeException
:
typeof
BigintOrHexStringTypeException
;
HexStringWithout0xException
:
typeof
HexStringWithout0xException
;
OutputsValidatorTypeException
:
typeof
OutputsValidatorTypeException
;
PageSizeTooLargeException
:
typeof
PageSizeTooLargeException
;
PageSizeTooSmallException
:
typeof
PageSizeTooSmallException
;
StringHashTypeException
:
typeof
StringHashTypeException
}
Type declaration
Bigint
OrHex
String
Type
Exception
:
typeof
BigintOrHexStringTypeException
Hex
String
Without0x
Exception
:
typeof
HexStringWithout0xException
Outputs
Validator
Type
Exception
:
typeof
OutputsValidatorTypeException
Page
Size
Too
Large
Exception
:
typeof
PageSizeTooLargeException
Page
Size
Too
Small
Exception
:
typeof
PageSizeTooSmallException
String
Hash
Type
Exception
:
typeof
StringHashTypeException
Const
app
app
:
Express
= express()
Const
formatter
formatter
:
{
toArray
:
(
format
?:
(
(
args
:
any
)
=>
any
)
|
undefined
)
=>
(
arg
:
any
)
=>
any
;
toBoolean
:
(
value
:
boolean
)
=>
boolean
;
toCellDep
:
(
cellDep
:
CellDep
)
=>
CellDep
;
toDepType
:
(
type
:
DepType
)
=>
"code"
|
"dep_group"
;
toGetCellsSearchKey
:
(
data
:
GetCellsSearchKey
)
=>
GetCellsSearchKey
;
toGetTransactionsSearchKey
:
(
data
:
GetTransactionsSearchKey
)
=>
GetTransactionsSearchKey
;
toHash
:
(
hash
:
string
)
=>
Hash256
;
toInput
:
(
input
:
CellInput
)
=>
CellInput
;
toNumber
:
(
number
:
Number
|
bigint
)
=>
Number
;
toOptional
:
(
format
?:
(
(
args
:
any
)
=>
any
)
|
undefined
)
=>
(
arg
:
any
)
=>
any
;
toOrder
:
(
order
:
Order
)
=>
"asc"
|
"desc"
;
toOutPoint
:
(
outPoint
:
OutPoint
)
=>
OutPoint
;
toOutput
:
(
output
:
CellOutput
)
=>
CellOutput
;
toOutputsValidator
:
(
outputsValidator
:
OutputsValidator
)
=>
OutputsValidator
;
toPageNumber
:
(
pageNo
?:
string
|
bigint
)
=>
string
;
toPageSize
:
(
pageSize
?:
string
|
bigint
)
=>
string
;
toRawTransaction
:
(
transaction
:
RawTransaction
)
=>
RawTransaction
;
toReverseOrder
:
(
reverse
?:
undefined
|
false
|
true
)
=>
boolean
;
toScript
:
(
script
:
Script
)
=>
Script
;
toSearchFilter
:
(
data
:
SearchFilter
)
=>
SearchFilter
;
toSearchKey
:
(
data
:
SearchKey
)
=>
SearchKey
;
toTransactionAndWitnessProof
:
(
proof
:
TransactionAndWitnessProof
)
=>
TransactionAndWitnessProof
;
toTransactionProof
:
(
proof
:
TransactionProof
)
=>
TransactionProof
}
Type declaration
to
Array
:
(
format
?:
(
(
args
:
any
)
=>
any
)
|
undefined
)
=>
(
arg
:
any
)
=>
any
(
format
?:
(
(
args
:
any
)
=>
any
)
|
undefined
)
:
(
arg
:
any
)
=>
any
Parameters
Optional
format:
(
(
args
:
any
)
=>
any
)
|
undefined
Returns
(
arg
:
any
)
=>
any
(
arg
:
any
)
:
any
Parameters
arg:
any
Returns
any
to
Boolean
:
(
value
:
boolean
)
=>
boolean
(
value
:
boolean
)
:
boolean
Parameters
value:
boolean
Returns
boolean
to
Cell
Dep
:
(
cellDep
:
CellDep
)
=>
CellDep
(
cellDep
:
CellDep
)
:
CellDep
Parameters
cellDep:
CellDep
Returns
CellDep
to
Dep
Type
:
(
type
:
DepType
)
=>
"code"
|
"dep_group"
(
type
:
DepType
)
:
"code"
|
"dep_group"
Parameters
type:
DepType
Returns
"code"
|
"dep_group"
to
Get
Cells
Search
Key
:
(
data
:
GetCellsSearchKey
)
=>
GetCellsSearchKey
(
data
:
GetCellsSearchKey
)
:
GetCellsSearchKey
Parameters
data:
GetCellsSearchKey
Returns
GetCellsSearchKey
to
Get
Transactions
Search
Key
:
(
data
:
GetTransactionsSearchKey
)
=>
GetTransactionsSearchKey
(
data
:
GetTransactionsSearchKey
)
:
GetTransactionsSearchKey
Parameters
data:
GetTransactionsSearchKey
Returns
GetTransactionsSearchKey
to
Hash
:
(
hash
:
string
)
=>
Hash256
(
hash
:
string
)
:
Hash256
Parameters
hash:
string
Returns
Hash256
to
Input
:
(
input
:
CellInput
)
=>
CellInput
(
input
:
CellInput
)
:
CellInput
Parameters
input:
CellInput
Returns
CellInput
to
Number
:
(
number
:
Number
|
bigint
)
=>
Number
(
number
:
Number
|
bigint
)
:
Number
Parameters
number:
Number
|
bigint
Returns
Number
to
Optional
:
(
format
?:
(
(
args
:
any
)
=>
any
)
|
undefined
)
=>
(
arg
:
any
)
=>
any
(
format
?:
(
(
args
:
any
)
=>
any
)
|
undefined
)
:
(
arg
:
any
)
=>
any
Parameters
Optional
format:
(
(
args
:
any
)
=>
any
)
|
undefined
Returns
(
arg
:
any
)
=>
any
(
arg
:
any
)
:
any
Parameters
arg:
any
Returns
any
to
Order
:
(
order
:
Order
)
=>
"asc"
|
"desc"
(
order
:
Order
)
:
"asc"
|
"desc"
Parameters
order:
Order
Returns
"asc"
|
"desc"
to
Out
Point
:
(
outPoint
:
OutPoint
)
=>
OutPoint
(
outPoint
:
OutPoint
)
:
OutPoint
Parameters
outPoint:
OutPoint
Returns
OutPoint
to
Output
:
(
output
:
CellOutput
)
=>
CellOutput
(
output
:
CellOutput
)
:
CellOutput
Parameters
output:
CellOutput
Returns
CellOutput
to
Outputs
Validator
:
(
outputsValidator
:
OutputsValidator
)
=>
OutputsValidator
(
outputsValidator
:
OutputsValidator
)
:
OutputsValidator
Parameters
outputsValidator:
OutputsValidator
Returns
OutputsValidator
to
Page
Number
:
(
pageNo
?:
string
|
bigint
)
=>
string
(
pageNo
?:
string
|
bigint
)
:
string
Parameters
Optional
pageNo:
string
|
bigint
Returns
string
to
Page
Size
:
(
pageSize
?:
string
|
bigint
)
=>
string
(
pageSize
?:
string
|
bigint
)
:
string
Parameters
Optional
pageSize:
string
|
bigint
Returns
string
to
Raw
Transaction
:
(
transaction
:
RawTransaction
)
=>
RawTransaction
(
transaction
:
RawTransaction
)
:
RawTransaction
Parameters
transaction:
RawTransaction
Returns
RawTransaction
to
Reverse
Order
:
(
reverse
?:
undefined
|
false
|
true
)
=>
boolean
(
reverse
?:
undefined
|
false
|
true
)
:
boolean
Parameters
Optional
reverse:
undefined
|
false
|
true
Returns
boolean
to
Script
:
(
script
:
Script
)
=>
Script
(
script
:
Script
)
:
Script
Parameters
script:
Script
Returns
Script
to
Search
Filter
:
(
data
:
SearchFilter
)
=>
SearchFilter
(
data
:
SearchFilter
)
:
SearchFilter
Parameters
data:
SearchFilter
Returns
SearchFilter
to
Search
Key
:
(
data
:
SearchKey
)
=>
SearchKey
(
data
:
SearchKey
)
:
SearchKey
Parameters
data:
SearchKey
Returns
SearchKey
to
Transaction
And
Witness
Proof
:
(
proof
:
TransactionAndWitnessProof
)
=>
TransactionAndWitnessProof
(
proof
:
TransactionAndWitnessProof
)
:
TransactionAndWitnessProof
Parameters
proof:
TransactionAndWitnessProof
Returns
TransactionAndWitnessProof
to
Transaction
Proof
:
(
proof
:
TransactionProof
)
=>
TransactionProof
(
proof
:
TransactionProof
)
:
TransactionProof
Parameters
proof:
TransactionProof
Returns
TransactionProof
Const
rpc
Properties
rpc
Properties
:
RpcPropertes
Const
schemas
schemas
:
Record
<
string
,
MethodSchema
>
Const
to
Alert
Message
to
Alert
Message
:
(
alertMessage
:
AlertMessage
)
=>
AlertMessage
Type declaration
(
alertMessage
:
AlertMessage
)
:
AlertMessage
Parameters
alertMessage:
AlertMessage
Returns
AlertMessage
Const
to
Array
to
Array
:
<I, O>
(
format
?:
(
(
args
:
I
)
=>
O
)
|
undefined
)
=>
(
arg
:
I
[]
)
=>
I
[]
|
O
[]
Type declaration
<I, O>
(
format
?:
(
(
args
:
I
)
=>
O
)
|
undefined
)
:
(
arg
:
I
[]
)
=>
I
[]
|
O
[]
Type parameters
I
O
Parameters
Optional
format:
(
(
args
:
I
)
=>
O
)
|
undefined
Returns
(
arg
:
I
[]
)
=>
I
[]
|
O
[]
(
arg
:
I
[]
)
:
I
[]
|
O
[]
Parameters
arg:
I
[]
Returns
I
[]
|
O
[]
Const
to
Banned
Address
to
Banned
Address
:
(
bannedAddress
:
BannedAddress
)
=>
BannedAddress
Type declaration
(
bannedAddress
:
BannedAddress
)
:
BannedAddress
Parameters
bannedAddress:
BannedAddress
Returns
BannedAddress
Const
to
Banned
Addresses
to
Banned
Addresses
:
(
bannedAddresses
:
BannedAddresses
)
=>
BannedAddresses
Type declaration
(
bannedAddresses
:
BannedAddresses
)
:
BannedAddresses
Parameters
bannedAddresses:
BannedAddresses
Returns
BannedAddresses
Const
to
Block
to
Block
:
(
block
:
Block
)
=>
Block
Type declaration
(
block
:
Block
)
:
Block
Parameters
block:
Block
Returns
Block
Const
to
Block
Economic
State
to
Block
Economic
State
:
(
blockEconomicState
:
BlockEconomicState
)
=>
BlockEconomicState
Type declaration
(
blockEconomicState
:
BlockEconomicState
)
:
BlockEconomicState
Parameters
blockEconomicState:
BlockEconomicState
Returns
BlockEconomicState
Const
to
Block
Filter
to
Block
Filter
:
(
blockFilter
:
BlockFilter
)
=>
BlockFilter
Type declaration
(
blockFilter
:
BlockFilter
)
:
BlockFilter
Parameters
blockFilter:
BlockFilter
Returns
BlockFilter
Const
to
Blockchain
Info
to
Blockchain
Info
:
(
info
:
BlockchainInfo
)
=>
BlockchainInfo
Type declaration
(
info
:
BlockchainInfo
)
:
BlockchainInfo
Parameters
info:
BlockchainInfo
Returns
BlockchainInfo
Const
to
Capacity
ByLock
Hash
to
Capacity
ByLock
Hash
:
(
capacityByLockHash
:
CapacityByLockHash
)
=>
CapacityByLockHash
Type declaration
(
capacityByLockHash
:
CapacityByLockHash
)
:
CapacityByLockHash
Parameters
capacityByLockHash:
CapacityByLockHash
Returns
CapacityByLockHash
Const
to
Cell
to
Cell
:
(
cell
:
Cell
)
=>
Cell
Type declaration
(
cell
:
Cell
)
:
Cell
Parameters
cell:
Cell
Returns
Cell
Const
to
Cell
Dep
to
Cell
Dep
:
(
cellDep
:
CellDep
)
=>
CellDep
Type declaration
(
cellDep
:
CellDep
)
:
CellDep
Parameters
cellDep:
CellDep
Returns
CellDep
Const
to
Cell
Including
Out
Point
to
Cell
Including
Out
Point
:
(
cell
:
CellIncludingOutPoint
)
=>
{
blockHash
:
string
;
capacity
:
string
;
cellbase
:
boolean
;
lock
:
Script
;
outPoint
:
OutPoint
;
outputDataLen
:
string
}
Type declaration
(
cell
:
CellIncludingOutPoint
)
:
{
blockHash
:
string
;
capacity
:
string
;
cellbase
:
boolean
;
lock
:
Script
;
outPoint
:
OutPoint
;
outputDataLen
:
string
}
Parameters
cell:
CellIncludingOutPoint
Returns
{
blockHash
:
string
;
capacity
:
string
;
cellbase
:
boolean
;
lock
:
Script
;
outPoint
:
OutPoint
;
outputDataLen
:
string
}
block
Hash
:
string
capacity
:
string
cellbase
:
boolean
lock
:
Script
out
Point
:
OutPoint
output
Data
Len
:
string
Const
to
Cellbase
Output
Capacity
Details
to
Cellbase
Output
Capacity
Details
:
(
details
:
CellbaseOutputCapacityDetails
)
=>
CellbaseOutputCapacityDetails
Type declaration
(
details
:
CellbaseOutputCapacityDetails
)
:
CellbaseOutputCapacityDetails
Parameters
details:
CellbaseOutputCapacityDetails
Returns
CellbaseOutputCapacityDetails
Const
to
Cells
to
Cells
:
(
cells
:
Cell
[]
)
=>
Cell
[]
Type declaration
(
cells
:
Cell
[]
)
:
Cell
[]
Parameters
cells:
Cell
[]
Returns
Cell
[]
Const
to
Cells
Capacity
to
Cells
Capacity
:
(
cellsCapacity
:
CellsCapacity
)
=>
CellsCapacity
Type declaration
(
cellsCapacity
:
CellsCapacity
)
:
CellsCapacity
Parameters
cellsCapacity:
CellsCapacity
Returns
CellsCapacity
Const
to
Cells
Including
Out
Point
to
Cells
Including
Out
Point
:
(
cells
:
CellIncludingOutPoint
[]
)
=>
CellIncludingOutPoint
[]
Type declaration
(
cells
:
CellIncludingOutPoint
[]
)
:
CellIncludingOutPoint
[]
Parameters
cells:
CellIncludingOutPoint
[]
Returns
CellIncludingOutPoint
[]
Const
to
Consensus
to
Consensus
:
(
consensus
:
Consensus
)
=>
Consensus
Type declaration
(
consensus
:
Consensus
)
:
Consensus
Parameters
consensus:
Consensus
Returns
Consensus
Const
to
Dep
Type
to
Dep
Type
:
(
type
:
DepType
)
=>
DepType
Type declaration
(
type
:
DepType
)
:
DepType
Parameters
type:
DepType
Returns
DepType
Const
to
Epoch
to
Epoch
:
(
epoch
:
Epoch
)
=>
Epoch
Type declaration
(
epoch
:
Epoch
)
:
Epoch
Parameters
epoch:
Epoch
Returns
Epoch
Const
to
Estimate
Cycles
to
Estimate
Cycles
:
(
cycle
:
EstimateCycles
)
=>
EstimateCycles
Type declaration
(
cycle
:
EstimateCycles
)
:
EstimateCycles
Parameters
cycle:
EstimateCycles
Returns
EstimateCycles
Const
to
Fee
Rate
to
Fee
Rate
:
(
feeRateObj
:
FeeRate
)
=>
FeeRate
Type declaration
(
feeRateObj
:
FeeRate
)
:
FeeRate
Parameters
feeRateObj:
FeeRate
Returns
FeeRate
Const
to
Fee
Rate
Statistics
to
Fee
Rate
Statistics
:
(
statistics
:
FeeRateStatistics
)
=>
FeeRateStatistics
Type declaration
(
statistics
:
FeeRateStatistics
)
:
FeeRateStatistics
Parameters
statistics:
FeeRateStatistics
Returns
FeeRateStatistics
Const
to
Fork
Block
Result
to
Fork
Block
Result
:
(
result
:
BlockView
|
SerializedBlock
)
=>
BlockView
|
SerializedBlock
Type declaration
(
result
:
BlockView
|
SerializedBlock
)
:
BlockView
|
SerializedBlock
Parameters
result:
BlockView
|
SerializedBlock
Returns
BlockView
|
SerializedBlock
Const
to
Get
Cells
Result
to
Get
Cells
Result
:
(
getCellsResult
:
GetLiveCellsResult
)
=>
GetLiveCellsResult
Type declaration
(
getCellsResult
:
GetLiveCellsResult
)
:
GetLiveCellsResult
Parameters
getCellsResult:
GetLiveCellsResult
Returns
GetLiveCellsResult
Const
to
Get
Transactions
Result
to
Get
Transactions
Result
:
<Goruped>
(
getTransactionsResult
:
GetTransactionsResult
<
Goruped
>
)
=>
GetTransactionsResult
<
Goruped
>
Type declaration
<Goruped>
(
getTransactionsResult
:
GetTransactionsResult
<
Goruped
>
)
:
GetTransactionsResult
<
Goruped
>
Type parameters
Goruped
:
boolean
Parameters
getTransactionsResult:
GetTransactionsResult
<
Goruped
>
Returns
GetTransactionsResult
<
Goruped
>
Const
to
Hash
to
Hash
:
(
hash
:
Hash256
)
=>
Hash256
Type declaration
(
hash
:
Hash256
)
:
Hash256
Parameters
hash:
Hash256
Returns
Hash256
Const
to
Header
to
Header
:
(
header
:
Header
)
=>
BlockHeader
Type declaration
(
header
:
Header
)
:
BlockHeader
Parameters
header:
Header
Returns
BlockHeader
Const
to
Input
to
Input
:
(
input
:
CellInput
)
=>
CellInput
Type declaration
(
input
:
CellInput
)
:
CellInput
Parameters
input:
CellInput
Returns
CellInput
Const
to
Live
Cell
to
Live
Cell
:
(
liveCell
:
LiveCell
)
=>
LiveCell
Type declaration
(
liveCell
:
LiveCell
)
:
LiveCell
Parameters
liveCell:
LiveCell
Returns
LiveCell
Const
to
Live
Cell
With
Status
to
Live
Cell
With
Status
:
(
cellWithStatus
:
{
cell
:
LiveCell
;
status
:
string
}
)
=>
{
cell
:
LiveCell
;
status
:
string
}
Type declaration
(
cellWithStatus
:
{
cell
:
LiveCell
;
status
:
string
}
)
:
{
cell
:
LiveCell
;
status
:
string
}
Parameters
cellWithStatus:
{
cell
:
LiveCell
;
status
:
string
}
cell
:
LiveCell
status
:
string
Returns
{
cell
:
LiveCell
;
status
:
string
}
cell
:
LiveCell
status
:
string
Const
to
Live
Cells
ByLock
Hash
to
Live
Cells
ByLock
Hash
:
(
cells
:
LiveCellsByLockHash
)
=>
LiveCellsByLockHash
Type declaration
(
cells
:
LiveCellsByLockHash
)
:
LiveCellsByLockHash
Parameters
cells:
LiveCellsByLockHash
Returns
LiveCellsByLockHash
Const
to
Local
Node
Info
to
Local
Node
Info
:
(
info
:
LocalNodeInfo
)
=>
LocalNodeInfo
Type declaration
(
info
:
LocalNodeInfo
)
:
LocalNodeInfo
Parameters
info:
LocalNodeInfo
Returns
LocalNodeInfo
Const
to
Lock
Hash
Index
State
to
Lock
Hash
Index
State
:
(
index
:
LockHashIndexState
)
=>
LockHashIndexState
Type declaration
(
index
:
LockHashIndexState
)
:
LockHashIndexState
Parameters
index:
LockHashIndexState
Returns
LockHashIndexState
Const
to
Lock
Hash
Index
States
to
Lock
Hash
Index
States
:
(
states
:
LockHashIndexStates
)
=>
LockHashIndexStates
Type declaration
(
states
:
LockHashIndexStates
)
:
LockHashIndexStates
Parameters
states:
LockHashIndexStates
Returns
LockHashIndexStates
Const
to
Nullable
to
Nullable
:
<I, O>
(
format
?:
(
(
args
:
I
)
=>
O
)
|
undefined
)
=>
(
origin
:
I
|
null
)
=>
I
|
O
|
null
Type declaration
<I, O>
(
format
?:
(
(
args
:
I
)
=>
O
)
|
undefined
)
:
(
origin
:
I
|
null
)
=>
I
|
O
|
null
Type parameters
I
O
Parameters
Optional
format:
(
(
args
:
I
)
=>
O
)
|
undefined
Returns
(
origin
:
I
|
null
)
=>
I
|
O
|
null
(
origin
:
I
|
null
)
:
I
|
O
|
null
Parameters
origin:
I
|
null
Returns
I
|
O
|
null
Const
to
Number
to
Number
:
(
number
:
BlockNumber
)
=>
BlockNumber
Type declaration
(
number
:
BlockNumber
)
:
BlockNumber
Parameters
number:
BlockNumber
Returns
BlockNumber
Const
to
Out
Point
to
Out
Point
:
(
outPoint
:
OutPoint
)
=>
OutPoint
Type declaration
(
outPoint
:
OutPoint
)
:
OutPoint
Parameters
outPoint:
OutPoint
Returns
OutPoint
Const
to
Output
to
Output
:
(
output
:
CellOutput
)
=>
CellOutput
Type declaration
(
output
:
CellOutput
)
:
CellOutput
Parameters
output:
CellOutput
Returns
CellOutput
Const
to
Peers
to
Peers
:
(
nodes
:
RemoteNodeInfo
[]
)
=>
RemoteNodeInfo
[]
Type declaration
(
nodes
:
RemoteNodeInfo
[]
)
:
RemoteNodeInfo
[]
Parameters
nodes:
RemoteNodeInfo
[]
Returns
RemoteNodeInfo
[]
Const
to
Raw
TxPool
to
Raw
TxPool
:
(
rawTxPool
:
RawTxPool
)
=>
RawTxPool
Type declaration
(
rawTxPool
:
RawTxPool
)
:
RawTxPool
Parameters
rawTxPool:
RawTxPool
Returns
RawTxPool
Const
to
Remote
Node
Info
to
Remote
Node
Info
:
(
info
:
RemoteNodeInfo
)
=>
RemoteNodeInfo
Type declaration
(
info
:
RemoteNodeInfo
)
:
RemoteNodeInfo
Parameters
info:
RemoteNodeInfo
Returns
RemoteNodeInfo
Const
to
Script
to
Script
:
(
script
:
Script
)
=>
Script
Type declaration
(
script
:
Script
)
:
Script
Parameters
script:
Script
Returns
Script
Const
to
Sync
State
to
Sync
State
:
(
state
:
SyncState
)
=>
SyncState
Type declaration
(
state
:
SyncState
)
:
SyncState
Parameters
state:
SyncState
Returns
SyncState
Const
to
Tip
to
Tip
:
(
tip
:
Tip
)
=>
Tip
Type declaration
(
tip
:
Tip
)
:
Tip
Parameters
tip:
Tip
Returns
Tip
Const
to
Transaction
And
Witness
Proof
to
Transaction
And
Witness
Proof
:
(
proof
:
TransactionAndWitnessProof
)
=>
TransactionAndWitnessProof
Type declaration
(
proof
:
TransactionAndWitnessProof
)
:
TransactionAndWitnessProof
Parameters
proof:
TransactionAndWitnessProof
Returns
TransactionAndWitnessProof
Const
to
Transaction
Point
to
Transaction
Point
:
(
transactionPoint
:
TransactionPoint
)
=>
TransactionPoint
Type declaration
(
transactionPoint
:
TransactionPoint
)
:
TransactionPoint
Parameters
transactionPoint:
TransactionPoint
Returns
TransactionPoint
Const
to
Transaction
Proof
to
Transaction
Proof
:
(
proof
:
TransactionProof
)
=>
TransactionProof
Type declaration
(
proof
:
TransactionProof
)
:
TransactionProof
Parameters
proof:
TransactionProof
Returns
TransactionProof
Const
to
Transaction
With
Status
to
Transaction
With
Status
:
(
txWithStatus
:
TransactionWithStatus
)
=>
{
transaction
:
RawTransaction
;
txStatus
:
{
blockHash
:
string
|
undefined
;
status
:
TransactionStatus
}
}
Type declaration
(
txWithStatus
:
TransactionWithStatus
)
:
{
transaction
:
RawTransaction
;
txStatus
:
{
blockHash
:
string
|
undefined
;
status
:
TransactionStatus
}
}
Parameters
txWithStatus:
TransactionWithStatus
Returns
{
transaction
:
RawTransaction
;
txStatus
:
{
blockHash
:
string
|
undefined
;
status
:
TransactionStatus
}
}
transaction
:
RawTransaction
tx
Status
:
{
blockHash
:
string
|
undefined
;
status
:
TransactionStatus
}
block
Hash
:
string
|
undefined
status
:
TransactionStatus
Const
to
Transactions
ByLock
Hash
to
Transactions
ByLock
Hash
:
(
transactions
:
TransactionsByLockHash
)
=>
TransactionsByLockHash
Type declaration
(
transactions
:
TransactionsByLockHash
)
:
TransactionsByLockHash
Parameters
transactions:
TransactionsByLockHash
Returns
TransactionsByLockHash
Const
to
TxPool
Info
to
TxPool
Info
:
(
info
:
TxPoolInfo
)
=>
TxPoolInfo
Type declaration
(
info
:
TxPoolInfo
)
:
TxPoolInfo
Parameters
info:
TxPoolInfo
Returns
TxPoolInfo
Const
to
Uncle
Block
to
Uncle
Block
:
(
uncleBlock
:
UncleBlock
)
=>
UncleBlock
Type declaration
(
uncleBlock
:
UncleBlock
)
:
UncleBlock
Parameters
uncleBlock:
UncleBlock
Returns
UncleBlock
Functions
Const
is
TxPool
Ids
is
TxPool
Ids
(
rawTxPool
:
RawTxPool
)
:
rawTxPool
is
RPC.TxPoolIds
Parameters
rawTxPool:
RawTxPool
Returns
rawTxPool
is
RPC.TxPoolIds
Const
is
Ungrouped
Indexer
Transaction
is
Ungrouped
Indexer
Transaction
(
value
:
GroupedIndexerTransaction
|
UngroupedIndexerTransaction
)
:
value
is
UngroupedIndexerTransaction
Parameters
value:
GroupedIndexerTransaction
|
UngroupedIndexerTransaction
Returns
value
is
UngroupedIndexerTransaction
Const
main
main
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Const
to
Alert
Message
to
Alert
Message
(
alertMessage
:
AlertMessage
)
:
AlertMessage
Parameters
alertMessage:
AlertMessage
Returns
AlertMessage
Const
to
Array
to
Array<I, O>
(
format
?:
undefined
|
(
(
args
:
I
)
=>
O
)
)
:
(Anonymous function)
Type parameters
I
O
Parameters
Optional
format:
undefined
|
(
(
args
:
I
)
=>
O
)
Returns
(Anonymous function)
Const
to
Banned
Address
to
Banned
Address
(
bannedAddress
:
BannedAddress
)
:
BannedAddress
Parameters
bannedAddress:
BannedAddress
Returns
BannedAddress
Const
to
Banned
Addresses
to
Banned
Addresses
(
bannedAddresses
:
BannedAddresses
)
:
BannedAddresses
Parameters
bannedAddresses:
BannedAddresses
Returns
BannedAddresses
Const
to
Block
to
Block
(
block
:
Block
)
:
Block
Parameters
block:
Block
Returns
Block
Const
to
Block
Economic
State
to
Block
Economic
State
(
blockEconomicState
:
BlockEconomicState
)
:
BlockEconomicState
Parameters
blockEconomicState:
BlockEconomicState
Returns
BlockEconomicState
Const
to
Block
Filter
to
Block
Filter
(
blockFilter
:
BlockFilter
)
:
BlockFilter
Parameters
blockFilter:
BlockFilter
Returns
BlockFilter
Const
to
Blockchain
Info
to
Blockchain
Info
(
info
:
BlockchainInfo
)
:
BlockchainInfo
Parameters
info:
BlockchainInfo
Returns
BlockchainInfo
Const
to
Capacity
ByLock
Hash
to
Capacity
ByLock
Hash
(
capacityByLockHash
:
CapacityByLockHash
)
:
CapacityByLockHash
Parameters
capacityByLockHash:
CapacityByLockHash
Returns
CapacityByLockHash
Const
to
Cell
to
Cell
(
cell
:
Cell
)
:
Cell
Parameters
cell:
Cell
Returns
Cell
Const
to
Cell
Dep
to
Cell
Dep
(
cellDep
:
CellDep
)
:
CellDep
Parameters
cellDep:
CellDep
Returns
CellDep
Const
to
Cell
Including
Out
Point
to
Cell
Including
Out
Point
(
cell
:
CellIncludingOutPoint
)
:
{
blockHash
:
string
;
lock
:
Script
;
outPoint
:
OutPoint
;
outputDataLen
:
string
}
Parameters
cell:
CellIncludingOutPoint
Returns
{
blockHash
:
string
;
lock
:
Script
;
outPoint
:
OutPoint
;
outputDataLen
:
string
}
block
Hash
:
string
lock
:
Script
out
Point
:
OutPoint
output
Data
Len
:
string
Const
to
Cellbase
Output
Capacity
Details
to
Cellbase
Output
Capacity
Details
(
details
:
CellbaseOutputCapacityDetails
)
:
CellbaseOutputCapacityDetails
Parameters
details:
CellbaseOutputCapacityDetails
Returns
CellbaseOutputCapacityDetails
Const
to
Cells
to
Cells
(
cells
:
Cell
[]
)
:
Cell
[]
Parameters
cells:
Cell
[]
Returns
Cell
[]
Const
to
Cells
Capacity
to
Cells
Capacity
(
cellsCapacity
:
CellsCapacity
)
:
CellsCapacity
Parameters
cellsCapacity:
CellsCapacity
Returns
CellsCapacity
Const
to
Cells
Including
Out
Point
to
Cells
Including
Out
Point
(
cells
:
CellIncludingOutPoint
[]
)
:
CellIncludingOutPoint
[]
Parameters
cells:
CellIncludingOutPoint
[]
Returns
CellIncludingOutPoint
[]
Const
to
Consensus
to
Consensus
(
consensus
:
Consensus
)
:
Consensus
Parameters
consensus:
Consensus
Returns
Consensus
Const
to
Dep
Type
to
Dep
Type
(
type
:
DepType
)
:
DepType
Parameters
type:
DepType
Returns
DepType
Const
to
Epoch
to
Epoch
(
epoch
:
Epoch
)
:
Epoch
Parameters
epoch:
Epoch
Returns
Epoch
Const
to
Estimate
Cycles
to
Estimate
Cycles
(
cycle
:
EstimateCycles
)
:
EstimateCycles
Parameters
cycle:
EstimateCycles
Returns
EstimateCycles
Const
to
Fee
Rate
to
Fee
Rate
(
feeRateObj
:
FeeRate
)
:
FeeRate
Parameters
feeRateObj:
FeeRate
Returns
FeeRate
Const
to
Fee
Rate
Statistics
to
Fee
Rate
Statistics
(
statistics
:
FeeRateStatistics
)
:
FeeRateStatistics
Parameters
statistics:
FeeRateStatistics
Returns
FeeRateStatistics
Const
to
Fork
Block
Result
to
Fork
Block
Result
(
result
:
BlockView
|
SerializedBlock
)
:
BlockView
|
SerializedBlock
Parameters
result:
BlockView
|
SerializedBlock
Returns
BlockView
|
SerializedBlock
Const
to
Get
Cells
Result
to
Get
Cells
Result
(
getCellsResult
:
GetLiveCellsResult
)
:
GetLiveCellsResult
Parameters
getCellsResult:
GetLiveCellsResult
Returns
GetLiveCellsResult
Const
to
Get
Transactions
Result
to
Get
Transactions
Result<Goruped>
(
getTransactionsResult
:
GetTransactionsResult
<
Goruped
>
)
:
GetTransactionsResult
<
Goruped
>
Type parameters
Goruped
:
boolean
Parameters
getTransactionsResult:
GetTransactionsResult
<
Goruped
>
Returns
GetTransactionsResult
<
Goruped
>
Const
to
Hash
to
Hash
(
hash
:
Hash256
)
:
Hash256
Parameters
hash:
Hash256
Returns
Hash256
Const
to
Header
to
Header
(
header
:
Header
)
:
BlockHeader
Parameters
header:
Header
Returns
BlockHeader
Const
to
Indexer
Cell
to
Indexer
Cell
(
indexerCell
:
IndexerCell
)
:
IndexerCell
Parameters
indexerCell:
IndexerCell
Returns
IndexerCell
Const
to
Indexer
Transaction
to
Indexer
Transaction
(
indexerTransaction
:
GroupedIndexerTransaction
|
UngroupedIndexerTransaction
)
:
GroupedIndexerTransaction
|
UngroupedIndexerTransaction
Parameters
indexerTransaction:
GroupedIndexerTransaction
|
UngroupedIndexerTransaction
Returns
GroupedIndexerTransaction
|
UngroupedIndexerTransaction
Const
to
Input
to
Input
(
input
:
CellInput
)
:
CellInput
Parameters
input:
CellInput
Returns
CellInput
Const
to
Live
Cell
to
Live
Cell
(
liveCell
:
LiveCell
)
:
LiveCell
Parameters
liveCell:
LiveCell
Returns
LiveCell
Const
to
Live
Cell
With
Status
to
Live
Cell
With
Status
(
cellWithStatus
:
{
cell
:
LiveCell
;
status
:
string
}
)
:
{
cell
:
LiveCell
;
status
:
string
}
Parameters
cellWithStatus:
{
cell
:
LiveCell
;
status
:
string
}
cell
:
LiveCell
status
:
string
Returns
{
cell
:
LiveCell
;
status
:
string
}
cell
:
LiveCell
status
:
string
Const
to
Live
Cells
ByLock
Hash
to
Live
Cells
ByLock
Hash
(
cells
:
LiveCellsByLockHash
)
:
LiveCellsByLockHash
Parameters
cells:
LiveCellsByLockHash
Returns
LiveCellsByLockHash
Const
to
Local
Node
Info
to
Local
Node
Info
(
info
:
LocalNodeInfo
)
:
LocalNodeInfo
Parameters
info:
LocalNodeInfo
Returns
LocalNodeInfo
Const
to
Lock
Hash
Index
State
to
Lock
Hash
Index
State
(
index
:
LockHashIndexState
)
:
LockHashIndexState
Parameters
index:
LockHashIndexState
Returns
LockHashIndexState
Const
to
Lock
Hash
Index
States
to
Lock
Hash
Index
States
(
states
:
LockHashIndexStates
)
:
LockHashIndexStates
Parameters
states:
LockHashIndexStates
Returns
LockHashIndexStates
Const
to
Nullable
to
Nullable<I, O>
(
format
?:
undefined
|
(
(
args
:
I
)
=>
O
)
)
:
(Anonymous function)
Type parameters
I
O
Parameters
Optional
format:
undefined
|
(
(
args
:
I
)
=>
O
)
Returns
(Anonymous function)
Const
to
Number
to
Number
(
number
:
BlockNumber
)
:
BlockNumber
Parameters
number:
BlockNumber
Returns
BlockNumber
Const
to
Out
Point
to
Out
Point
(
outPoint
:
OutPoint
)
:
OutPoint
Parameters
outPoint:
OutPoint
Returns
OutPoint
Const
to
Output
to
Output
(
output
:
CellOutput
)
:
CellOutput
Parameters
output:
CellOutput
Returns
CellOutput
Const
to
Peers
to
Peers
(
nodes
:
RemoteNodeInfo
[]
)
:
RemoteNodeInfo
[]
Parameters
nodes:
RemoteNodeInfo
[]
Returns
RemoteNodeInfo
[]
Const
to
Raw
TxPool
to
Raw
TxPool
(
rawTxPool
:
RawTxPool
)
:
RawTxPool
Parameters
rawTxPool:
RawTxPool
Returns
RawTxPool
Const
to
Remote
Node
Info
to
Remote
Node
Info
(
info
:
RemoteNodeInfo
)
:
RemoteNodeInfo
Parameters
info:
RemoteNodeInfo
Returns
RemoteNodeInfo
Const
to
Script
to
Script
(
script
:
Script
)
:
Script
Parameters
script:
Script
Returns
Script
Const
to
Sync
State
to
Sync
State
(
state
:
SyncState
)
:
SyncState
Parameters
state:
SyncState
Returns
SyncState
Const
to
Tip
to
Tip
(
tip
:
Tip
)
:
Tip
Parameters
tip:
Tip
Returns
Tip
to
Transaction
to
Transaction
(
tx
:
RawTransaction
)
:
RawTransaction
to
Transaction
(
tx
:
Transaction
)
:
Transaction
Parameters
tx:
RawTransaction
Returns
RawTransaction
Parameters
tx:
Transaction
Returns
Transaction
to
Transaction
to
Transaction
(
tx
:
RawTransaction
)
:
RawTransaction
to
Transaction
(
tx
:
Transaction
)
:
Transaction
Parameters
tx:
RawTransaction
Returns
RawTransaction
Parameters
tx:
Transaction
Returns
Transaction
Const
to
Transaction
And
Witness
Proof
to
Transaction
And
Witness
Proof
(
proof
:
TransactionAndWitnessProof
)
:
TransactionAndWitnessProof
Parameters
proof:
TransactionAndWitnessProof
Returns
TransactionAndWitnessProof
Const
to
Transaction
Point
to
Transaction
Point
(
transactionPoint
:
TransactionPoint
)
:
TransactionPoint
Parameters
transactionPoint:
TransactionPoint
Returns
TransactionPoint
Const
to
Transaction
Proof
to
Transaction
Proof
(
proof
:
TransactionProof
)
:
TransactionProof
Parameters
proof:
TransactionProof
Returns
TransactionProof
Const
to
Transaction
With
Status
to
Transaction
With
Status
(
txWithStatus
:
TransactionWithStatus
)
:
{
transaction
:
RawTransaction
&
{
witnesses
:
Witness
[]
}
;
txStatus
:
object
}
Parameters
txWithStatus:
TransactionWithStatus
Returns
{
transaction
:
RawTransaction
&
{
witnesses
:
Witness
[]
}
;
txStatus
:
object
}
transaction
:
RawTransaction
&
{
witnesses
:
Witness
[]
}
tx
Status
:
object
block
Hash
:
undefined
|
string
status
:
TransactionStatus
Const
to
Transactions
ByLock
Hash
to
Transactions
ByLock
Hash
(
transactions
:
TransactionsByLockHash
)
:
TransactionsByLockHash
Parameters
transactions:
TransactionsByLockHash
Returns
TransactionsByLockHash
Const
to
TxPool
Info
to
TxPool
Info
(
info
:
TxPoolInfo
)
:
TxPoolInfo
Parameters
info:
TxPoolInfo
Returns
TxPoolInfo
Const
to
Uncle
Block
to
Uncle
Block
(
uncleBlock
:
UncleBlock
)
:
UncleBlock
Parameters
uncleBlock:
UncleBlock
Returns
UncleBlock
Object literals
Const
formatter
formatter
:
object
to
Array
to
Array
(
format
?:
undefined
|
(
(
args
:
any
)
=>
any
)
)
:
(Anonymous function)
Parameters
Optional
format:
undefined
|
(
(
args
:
any
)
=>
any
)
Returns
(Anonymous function)
to
Boolean
to
Boolean
(
value
:
boolean
)
:
boolean
Parameters
value:
boolean
Returns
boolean
to
Cell
Dep
to
Cell
Dep
(
cellDep
:
CellDep
)
:
CellDep
Parameters
cellDep:
CellDep
Returns
CellDep
to
Dep
Type
to
Dep
Type
(
type
:
DepType
)
:
"code"
|
"dep_group"
Parameters
type:
DepType
Returns
"code"
|
"dep_group"
to
Get
Cells
Search
Key
to
Get
Cells
Search
Key
(
data
:
GetCellsSearchKey
)
:
GetCellsSearchKey
Parameters
data:
GetCellsSearchKey
Returns
GetCellsSearchKey
to
Get
Transactions
Search
Key
to
Get
Transactions
Search
Key
(
data
:
GetTransactionsSearchKey
)
:
GetTransactionsSearchKey
Parameters
data:
GetTransactionsSearchKey
Returns
GetTransactionsSearchKey
to
Hash
to
Hash
(
hash
:
string
)
:
Hash256
Parameters
hash:
string
Returns
Hash256
to
Input
to
Input
(
input
:
CellInput
)
:
CellInput
Parameters
input:
CellInput
Returns
CellInput
to
Number
to
Number
(
number
:
Number
|
bigint
)
:
Number
Parameters
number:
Number
|
bigint
Returns
Number
to
Optional
to
Optional
(
format
?:
undefined
|
(
(
args
:
any
)
=>
any
)
)
:
(Anonymous function)
Parameters
Optional
format:
undefined
|
(
(
args
:
any
)
=>
any
)
Returns
(Anonymous function)
to
Order
to
Order
(
order
:
Order
)
:
"asc"
|
"desc"
Parameters
order:
Order
Returns
"asc"
|
"desc"
to
Out
Point
to
Out
Point
(
outPoint
:
OutPoint
)
:
OutPoint
Parameters
outPoint:
OutPoint
Returns
OutPoint
to
Output
to
Output
(
output
:
CellOutput
)
:
CellOutput
Parameters
output:
CellOutput
Returns
CellOutput
to
Outputs
Validator
to
Outputs
Validator
(
outputsValidator
:
OutputsValidator
)
:
undefined
|
"default"
|
"passthrough"
Parameters
outputsValidator:
OutputsValidator
Returns
undefined
|
"default"
|
"passthrough"
to
Page
Number
to
Page
Number
(
pageNo
?:
string
|
bigint
)
:
string
Parameters
Default value
pageNo:
string
|
bigint
= "0x1"
Returns
string
to
Page
Size
to
Page
Size
(
pageSize
?:
string
|
bigint
)
:
string
Parameters
Default value
pageSize:
string
|
bigint
= "0x32"
Returns
string
to
Raw
Transaction
to
Raw
Transaction
(
transaction
:
RawTransaction
)
:
RawTransaction
Parameters
transaction:
RawTransaction
Returns
RawTransaction
to
Reverse
Order
to
Reverse
Order
(
reverse
?:
boolean
)
:
boolean
Parameters
Default value
reverse:
boolean
= false
Returns
boolean
to
Script
to
Script
(
script
:
Script
)
:
Script
Parameters
script:
Script
Returns
Script
to
Search
Filter
to
Search
Filter
(
data
:
SearchFilter
)
:
SearchFilter
Parameters
data:
SearchFilter
Returns
SearchFilter
to
Search
Key
to
Search
Key
(
data
:
SearchKey
)
:
SearchKey
Parameters
data:
SearchKey
Returns
SearchKey
to
Transaction
And
Witness
Proof
to
Transaction
And
Witness
Proof
(
proof
:
TransactionAndWitnessProof
)
:
TransactionAndWitnessProof
Parameters
proof:
TransactionAndWitnessProof
Returns
TransactionAndWitnessProof
to
Transaction
Proof
to
Transaction
Proof
(
proof
:
TransactionProof
)
:
TransactionProof
Parameters
proof:
TransactionProof
Returns
TransactionProof
Const
rpc
Properties
rpc
Properties
:
object
Const
schemas
schemas
:
object
estimate
Cycles
estimate
Cycles
:
object
method
method
:
string
= "estimate_cycles"
params
Formatters
params
Formatters
:
(Anonymous function)
[]
= [paramsFmts.toRawTransaction]
result
Formatters
result
Formatters
:
toEstimateCycles
= resultFmts.toEstimateCycles
get
Block
Filter
get
Block
Filter
:
object
method
method
:
string
= "get_block_filter"
params
Formatters
params
Formatters
:
(Anonymous function)
[]
= [paramsFmts.toHash]
result
Formatters
result
Formatters
:
(Anonymous function)
= resultFmts.toNullable(resultFmts.toBlockFilter)
get
Block
Median
Time
get
Block
Median
Time
:
object
method
method
:
string
= "get_block_median_time"
params
Formatters
params
Formatters
:
(Anonymous function)
[]
= [paramsFmts.toHash]
result
Formatters
result
Formatters
:
(Anonymous function)
= resultFmts.toNullable(resultFmts.toNumber)
get
Cells
get
Cells
:
object
method
method
:
string
= "get_cells"
params
Formatters
params
Formatters
:
(
(Anonymous function)
|
(Anonymous function)
|
(Anonymous function)
|
(Anonymous function)
)
[]
= [paramsFmts.toGetCellsSearchKey,paramsFmts.toOrder,paramsFmts.toNumber,paramsFmts.toOptional(paramsFmts.toHash),]
result
Formatters
result
Formatters
:
toGetCellsResult
= resultFmts.toGetCellsResult
get
Cells
Capacity
get
Cells
Capacity
:
object
method
method
:
string
= "get_cells_capacity"
params
Formatters
params
Formatters
:
(Anonymous function)
[]
= [paramsFmts.toSearchKey]
result
Formatters
result
Formatters
:
toCellsCapacity
= resultFmts.toCellsCapacity
get
Fee
Rate
Statics
get
Fee
Rate
Statics
:
object
method
method
:
string
= "get_fee_rate_statics"
params
Formatters
params
Formatters
:
(Anonymous function)
[]
= [paramsFmts.toOptional(paramsFmts.toNumber)]
result
Formatters
result
Formatters
:
(Anonymous function)
= resultFmts.toNullable(resultFmts.toFeeRateStatistics)
get
Fee
Rate
Statistics
get
Fee
Rate
Statistics
:
object
method
method
:
string
= "get_fee_rate_statistics"
params
Formatters
params
Formatters
:
(Anonymous function)
[]
= [paramsFmts.toOptional(paramsFmts.toNumber)]
result
Formatters
result
Formatters
:
(Anonymous function)
= resultFmts.toNullable(resultFmts.toFeeRateStatistics)
get
Fork
Block
get
Fork
Block
:
object
method
method
:
string
= "get_fork_block"
params
Formatters
params
Formatters
:
(
(Anonymous function)
|
(Anonymous function)
)
[]
= [paramsFmts.toHash,paramsFmts.toOptional(paramsFmts.toNumber),]
result
Formatters
result
Formatters
:
(Anonymous function)
= resultFmts.toNullable(resultFmts.toForkBlockResult)
get
Indexer
Tip
get
Indexer
Tip
:
object
method
method
:
string
= "get_indexer_tip"
params
Formatters
params
Formatters
:
never
[]
= []
result
Formatters
result
Formatters
:
toTip
= resultFmts.toTip
get
Transaction
And
Witness
Proof
get
Transaction
And
Witness
Proof
:
object
method
method
:
string
= "get_transaction_and_witness_proof"
params
Formatters
params
Formatters
:
(Anonymous function)
[]
= [paramsFmts.toArray(paramsFmts.toHash),paramsFmts.toOptional(paramsFmts.toHash),]
result
Formatters
result
Formatters
:
toTransactionAndWitnessProof
= resultFmts.toTransactionAndWitnessProof
get
Transactions
get
Transactions
:
object
method
method
:
string
= "get_transactions"
params
Formatters
params
Formatters
:
(
(Anonymous function)
|
(Anonymous function)
|
(Anonymous function)
|
(Anonymous function)
)
[]
= [paramsFmts.toGetTransactionsSearchKey,paramsFmts.toOrder,paramsFmts.toNumber,paramsFmts.toOptional(paramsFmts.toHash),]
result
Formatters
result
Formatters
:
toGetTransactionsResult
= resultFmts.toGetTransactionsResult
verify
Transaction
And
Witness
Proof
verify
Transaction
And
Witness
Proof
:
object
method
method
:
string
= "verify_transaction_and_witness_proof"
params
Formatters
params
Formatters
:
(Anonymous function)
[]
= [paramsFmts.toTransactionAndWitnessProof]
result
Formatters
result
Formatters
:
(Anonymous function)
= resultFmts.toArray(resultFmts.toHash)
Globals
base
bi
ckb-
indexer
codec
common-
scripts
config-
manager
debugger
e2e-
test
experiment-
tx-
assembler
hd
hd-
cache
helpers
light-
client
lumos
molecule
rpc
CKBComponents
CKBComponents
RPC
RPC
testkit
toolkit
transaction-
manager
base
bi
ckb-
indexer
codec
common-
scripts
config-
manager
debugger
e2e-
test
experiment-
tx-
assembler
hd
hd-
cache
helpers
light-
client
lumos
molecule
rpc
Bigint
OrHex
String
Type
Exception
Bigint
OrHex
String
Type
Exception
Hex
String
Without0x
Exception
Hex
String
Without0x
Exception
Id
Not
Match
Exception
Id
Not
Match
Exception
Id
Not
Matched
InBatch
Exception
Id
Not
Matched
InBatch
Exception
Method
InBatch
Not
Found
Exception
Method
InBatch
Not
Found
Exception
Outputs
Validator
Type
Exception
Outputs
Validator
Type
Exception
Page
Size
Too
Large
Exception
Page
Size
Too
Large
Exception
Page
Size
Too
Small
Exception
Page
Size
Too
Small
Exception
Payload
InBatch
Exception
Payload
InBatch
Exception
RPC
RPC
Response
Exception
Response
Exception
String
Hash
Type
Exception
String
Hash
Type
Exception
CKBComponents
CKBComponents
RPC
RPC
Error
Code
Error
Code
Base
Base
Bigint
OrHex
String
Type
Exception
Bigint
OrHex
String
Type
Exception
CKBRPC
CKBRPC
Hex
String
Without0x
Exception
Hex
String
Without0x
Exception
Id
Not
Match
Exception
Id
Not
Match
Exception
Id
Not
Matched
InBatch
Exception
Id
Not
Matched
InBatch
Exception
Method
Method
Method
InBatch
Not
Found
Exception
Method
InBatch
Not
Found
Exception
Outputs
Validator
Type
Exception
Outputs
Validator
Type
Exception
Page
Size
Too
Large
Exception
Page
Size
Too
Large
Exception
Page
Size
Too
Small
Exception
Page
Size
Too
Small
Exception
Payload
InBatch
Exception
Payload
InBatch
Exception
Response
Exception
Response
Exception
String
Hash
Type
Exception
String
Hash
Type
Exception
Rpc
Propertes
Rpc
Propertes
Method
Schema
Method
Schema
RPCConfig
RPCConfig
ERROR_
LABEL
Params
Formatter
Params
Formatter
Result
Formatter
Result
Formatter
_default
_default
_default
_default
_default
_default
_default
_default
app
formatter
rpc
Properties
schemas
to
Alert
Message
to
Array
to
Banned
Address
to
Banned
Addresses
to
Block
to
Block
Economic
State
to
Block
Filter
to
Blockchain
Info
to
Capacity
ByLock
Hash
to
Cell
to
Cell
Dep
to
Cell
Including
Out
Point
to
Cellbase
Output
Capacity
Details
to
Cells
to
Cells
Capacity
to
Cells
Including
Out
Point
to
Consensus
to
Dep
Type
to
Epoch
to
Estimate
Cycles
to
Fee
Rate
to
Fee
Rate
Statistics
to
Fork
Block
Result
to
Get
Cells
Result
to
Get
Transactions
Result
to
Hash
to
Header
to
Input
to
Live
Cell
to
Live
Cell
With
Status
to
Live
Cells
ByLock
Hash
to
Local
Node
Info
to
Lock
Hash
Index
State
to
Lock
Hash
Index
States
to
Nullable
to
Number
to
Out
Point
to
Output
to
Peers
to
Raw
TxPool
to
Remote
Node
Info
to
Script
to
Sync
State
to
Tip
to
Transaction
And
Witness
Proof
to
Transaction
Point
to
Transaction
Proof
to
Transaction
With
Status
to
Transactions
ByLock
Hash
to
TxPool
Info
to
Uncle
Block
is
TxPool
Ids
is
Ungrouped
Indexer
Transaction
main
to
Alert
Message
to
Array
to
Banned
Address
to
Banned
Addresses
to
Block
to
Block
Economic
State
to
Block
Filter
to
Blockchain
Info
to
Capacity
ByLock
Hash
to
Cell
to
Cell
Dep
to
Cell
Including
Out
Point
to
Cellbase
Output
Capacity
Details
to
Cells
to
Cells
Capacity
to
Cells
Including
Out
Point
to
Consensus
to
Dep
Type
to
Epoch
to
Estimate
Cycles
to
Fee
Rate
to
Fee
Rate
Statistics
to
Fork
Block
Result
to
Get
Cells
Result
to
Get
Transactions
Result
to
Hash
to
Header
to
Indexer
Cell
to
Indexer
Transaction
to
Input
to
Live
Cell
to
Live
Cell
With
Status
to
Live
Cells
ByLock
Hash
to
Local
Node
Info
to
Lock
Hash
Index
State
to
Lock
Hash
Index
States
to
Nullable
to
Number
to
Out
Point
to
Output
to
Peers
to
Raw
TxPool
to
Remote
Node
Info
to
Script
to
Sync
State
to
Tip
to
Transaction
to
Transaction
to
Transaction
And
Witness
Proof
to
Transaction
Point
to
Transaction
Proof
to
Transaction
With
Status
to
Transactions
ByLock
Hash
to
TxPool
Info
to
Uncle
Block
formatter
rpc
Properties
schemas
testkit
toolkit
transaction-
manager
Generated using
TypeDoc