Properties
addNode
addNode: ( peerId: string , address: string ) => Promise < null >
Defined in packages/rpc/src/Base/index.ts:293
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/src/Base/index.ts:206
Type declaration
Parameters
Returns Promise < string >
clearBannedAddresses
clearBannedAddresses: ( ) => Promise < null >
Defined in packages/rpc/src/Base/index.ts:246
clearTxPool
clearTxPool: ( ) => Promise < null >
Defined in packages/rpc/src/Base/index.ts:345
dryRunTransaction
Defined in packages/rpc/src/Base/index.ts:202
getBannedAddresses
Defined in packages/rpc/src/Base/index.ts:238
getBlock
Defined in packages/rpc/src/Base/index.ts:76
Type declaration
Parameters
Returns Promise < Block >
getBlockByNumber
Defined in packages/rpc/src/Base/index.ts:188
Type declaration
Parameters
Returns Promise < Block >
getBlockEconomicState
Defined in packages/rpc/src/Base/index.ts:146
getBlockHash
Defined in packages/rpc/src/Base/index.ts:65
Type declaration
Parameters
Returns Promise < Hash >
getBlockchainInfo
Defined in packages/rpc/src/Base/index.ts:367
getCellbaseOutputCapacityDetails
Defined in packages/rpc/src/Base/index.ts:135
getConsensus
Defined in packages/rpc/src/Base/index.ts:179
getCurrentEpoch
get
CurrentEpoch: ( ) => Promise < Epoch >
Defined in packages/rpc/src/Base/index.ts:48
getEpochByNumber
get
EpochByNumber: ( epoch: string | bigint ) => Promise < Epoch >
Defined in packages/rpc/src/Base/index.ts:56
Type declaration
( epoch: string | bigint ) : Promise < Epoch >
Parameters
Returns Promise < Epoch >
getHeader
Defined in packages/rpc/src/Base/index.ts:84
getHeaderByNumber
Defined in packages/rpc/src/Base/index.ts:94
getLiveCell
Defined in packages/rpc/src/Base/index.ts:107
getPeers
Defined in packages/rpc/src/Base/index.ts:231
getTipBlockNumber
Defined in packages/rpc/src/Base/index.ts:31
getTipHeader
Defined in packages/rpc/src/Base/index.ts:39
getTransaction
Defined in packages/rpc/src/Base/index.ts:122
getTransactionProof
Defined in packages/rpc/src/Base/index.ts:157
Type declaration
Parameters
transactionHashes: Hash []
Optional blockHash: Hash
localNodeInfo
Defined in packages/rpc/src/Base/index.ts:221
pingPeers
pingPeers: ( ) => Promise < null >
Defined in packages/rpc/src/Base/index.ts:310
removeNode
removeNode: ( peerId: string ) => Promise < null >
Defined in packages/rpc/src/Base/index.ts:302
Type declaration
( peerId: string ) : Promise < null >
Parameters
Returns Promise < null >
sendTransaction
Defined in packages/rpc/src/Base/index.ts:325
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/src/Base/index.ts:262
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/src/Base/index.ts:283
Type declaration
( state: boolean ) : Promise < null >
Parameters
Returns Promise < null >
syncState
Defined in packages/rpc/src/Base/index.ts:275
txPoolInfo
Defined in packages/rpc/src/Base/index.ts:337
verifyTransactionProof
Defined in packages/rpc/src/Base/index.ts:169
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