Properties
addNode
addNode: ( peerId: string , address: string ) => Promise < null >
Defined in packages/rpc/lib/Base/index.d.ts:210
Type declaration
( peerId: string , address: string ) : Promise < null >
Parameters
peerId: string
address: string
Returns Promise < null >
calculateDaoMaximumWithdraw
calculate
DaoMaximumWithdraw: ( outPoint: OutPoint , withdrawBlockHash: Hash256 ) => Promise < string >
Defined in packages/rpc/lib/Base/index.d.ts:145
Type declaration
Parameters
Returns Promise < string >
clearBannedAddresses
clearBannedAddresses: ( ) => Promise < null >
Defined in packages/rpc/lib/Base/index.d.ts:174
clearTxPool
clearTxPool: ( ) => Promise < null >
Defined in packages/rpc/lib/Base/index.d.ts:252
dryRunTransaction
Defined in packages/rpc/lib/Base/index.d.ts:144
getBannedAddresses
Defined in packages/rpc/lib/Base/index.d.ts:167
getBlock
Defined in packages/rpc/lib/Base/index.d.ts:51
Type declaration
Parameters
Returns Promise < Block >
getBlockByNumber
Defined in packages/rpc/lib/Base/index.d.ts:135
Type declaration
Parameters
Returns Promise < Block >
getBlockEconomicState
Defined in packages/rpc/lib/Base/index.d.ts:104
getBlockHash
Defined in packages/rpc/lib/Base/index.d.ts:43
Type declaration
Parameters
Returns Promise < Hash >
getBlockchainInfo
Defined in packages/rpc/lib/Base/index.d.ts:270
getCellbaseOutputCapacityDetails
Defined in packages/rpc/lib/Base/index.d.ts:96
getConsensus
Defined in packages/rpc/lib/Base/index.d.ts:127
getCurrentEpoch
get
CurrentEpoch: ( ) => Promise < Epoch >
Defined in packages/rpc/lib/Base/index.d.ts:28
getEpochByNumber
get
EpochByNumber: ( epoch: string | bigint ) => Promise < Epoch >
Defined in packages/rpc/lib/Base/index.d.ts:35
Type declaration
( epoch: string | bigint ) : Promise < Epoch >
Parameters
Returns Promise < Epoch >
getHeader
Defined in packages/rpc/lib/Base/index.d.ts:58
getHeaderByNumber
Defined in packages/rpc/lib/Base/index.d.ts:65
getLiveCell
Defined in packages/rpc/lib/Base/index.d.ts:75
getPeers
Defined in packages/rpc/lib/Base/index.d.ts:161
getTipBlockNumber
Defined in packages/rpc/lib/Base/index.d.ts:13
getTipHeader
Defined in packages/rpc/lib/Base/index.d.ts:20
getTransaction
Defined in packages/rpc/lib/Base/index.d.ts:86
getTransactionProof
Defined in packages/rpc/lib/Base/index.d.ts:112
Type declaration
Parameters
transactionHashes: Hash []
Optional blockHash: Hash
localNodeInfo
Defined in packages/rpc/lib/Base/index.d.ts:152
pingPeers
pingPeers: ( ) => Promise < null >
Defined in packages/rpc/lib/Base/index.d.ts:225
removeNode
removeNode: ( peerId: string ) => Promise < null >
Defined in packages/rpc/lib/Base/index.d.ts:218
Type declaration
( peerId: string ) : Promise < null >
Parameters
Returns Promise < null >
sendTransaction
Defined in packages/rpc/lib/Base/index.d.ts:237
Type declaration
Parameters
Returns Promise < Hash >
setBan
setBan: ( address: string , command: "insert" | "delete" , banTime: string | null , absolute?: undefined | false | true , reason?: undefined | string ) => Promise < null >
Defined in packages/rpc/lib/Base/index.d.ts:188
Type declaration
( address: string , command: "insert" | "delete" , banTime: string | null , absolute?: undefined | false | true , reason?: undefined | string ) : Promise < null >
Parameters
address: string
command: "insert" | "delete"
banTime: string | null
Optional absolute: undefined | false | true
Optional reason: undefined | string
Returns Promise < null >
setNetworkActive
setNetworkActive: ( state: boolean ) => Promise < null >
Defined in packages/rpc/lib/Base/index.d.ts:201
Type declaration
( state: boolean ) : Promise < null >
Parameters
Returns Promise < null >
syncState
Defined in packages/rpc/lib/Base/index.d.ts:194
txPoolInfo
Defined in packages/rpc/lib/Base/index.d.ts:245
verifyTransactionProof
Defined in packages/rpc/lib/Base/index.d.ts:120
Type declaration
Parameters
Returns Promise < Hash [] >
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