Properties
addNode
addNode: (peerId: string, address: string) => Promise<null>
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>
Type declaration
-
-
Parameters
Returns Promise<string>
clearBannedAddresses
clearBannedAddresses: () => Promise<null>
clearTxPool
clearTxPool: () => Promise<null>
getBlock
Type declaration
-
-
Parameters
Returns Promise<Block>
getBlockByNumber
Type declaration
-
-
Parameters
Returns Promise<Block>
getBlockHash
Type declaration
-
-
Parameters
Returns Promise<Hash>
getCellbaseOutputCapacityDetails
getCurrentEpoch
get
CurrentEpoch: () => Promise<Epoch>
getEpochByNumber
get
EpochByNumber: (epoch: string | bigint) => Promise<Epoch>
Type declaration
-
- (epoch: string | bigint): Promise<Epoch>
-
Parameters
Returns Promise<Epoch>
getTransactionProof
Type declaration
-
-
Parameters
-
transactionHashes: Hash[]
-
Optional blockHash: Hash
pingPeers
pingPeers: () => Promise<null>
removeNode
removeNode: (peerId: string) => Promise<null>
Type declaration
-
- (peerId: string): Promise<null>
-
Parameters
Returns Promise<null>
sendTransaction
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>
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>
Type declaration
-
- (state: boolean): Promise<null>
-
Parameters
Returns Promise<null>
verifyTransactionProof
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