Constructors
constructor
-
Parameters
-
options: { faucetQueue: FaucetQueue; indexer: Indexer; pollIntervalMs?: undefined | number; rpc: RPC }
-
-
-
Optional pollIntervalMs?: undefined | number
-
Properties
Protected faucetQueue
Protected indexer
Readonly pollIntervalMs
pollIntervalMs: number
Protected rpc
Methods
claimCKB
-
Parameters
Returns Promise<string>
daoDeposit
- daoDeposit(options: { amount?: BIish; fromPk: HexString }): Promise<string>
-
Parameters
Returns Promise<string>
findCells
-
Parameters
Returns Promise<Cell[]>
getBlockByTxHash
- getBlockByTxHash(txHash: string): Promise<Block>
-
Parameters
Returns Promise<Block>
getCapacities
-
Parameters
Returns Promise<BI>
getGenesisScriptConfig
-
loadLocalConfig
- loadLocalConfig(): Promise<Config>
-
Returns Promise<Config>
transferCKB
-
Parameters
Returns Promise<string>
waitForBlock
- waitForBlock(options: { relative: boolean; value: number }): Promise<void>
-
Parameters
-
options: { relative: boolean; value: number }
-
relative: boolean
-
value: number
Returns Promise<void>
waitForEpoch
- waitForEpoch(options: { relative: boolean; value: number }): Promise<void>
-
Parameters
-
options: { relative: boolean; value: number }
-
relative: boolean
-
value: number
Returns Promise<void>
waitTransactionCommitted
- waitTransactionCommitted(txHash: string, options?: { timeout?: undefined | number }): Promise<TransactionWithStatus>
-
Parameters
-
txHash: string
-
Default value options: { timeout?: undefined | number } = {}
-
Optional timeout?: undefined | number