Constructors
constructor
-
Parameters
-
-
-
-
Default value infos: LockScriptMappingInfo[] = getDefaultInfos()
-
__namedParameters: { TransactionCollector: TransactionCollector; livenessCheckIntervalSeconds: number; logger: (level: string, message: string) => void; pollIntervalSeconds: number; rpc: CKBRPC }
-
-
livenessCheckIntervalSeconds: number
-
logger: (level: string, message: string) => void
-
- (level: string, message: string): void
-
Parameters
-
level: string
-
message: string
Returns void
-
pollIntervalSeconds: number
-
-
Optional masterPublicKey: HexString
Methods
getChangeKeys
-
getLiveCellsCache
- getLiveCellsCache(): Map<string, Cell>
-
Returns Map<string, Cell>
getMasterPublicKeyInfo
-
getNextChangePublicKeyInfo
-
getNextReceivingPublicKeyInfo
-
getReceivingKeys
-
loop
-
Returns Promise<void>
running
-
Returns boolean
scheduleLoop
-
Returns void
start
-
Returns void
startForever
-
Returns void
stop
-
Returns void
Static fromMnemonic
- fromMnemonic(indexer: Indexer, mnemonic: string, infos?: LockScriptMappingInfo[], options: { TransactionCollector: typeof BaseTransactionCollector; livenessCheckIntervalSeconds?: undefined | number; logger?: undefined | ((level: string, message: string) => void); needMasterPublicKey?: undefined | false | true; pollIntervalSeconds?: undefined | number; rpc?: RPC }): CacheManager
-
Parameters
-
-
mnemonic: string
-
Default value infos: LockScriptMappingInfo[] = getDefaultInfos()
-
options: { TransactionCollector: typeof BaseTransactionCollector; livenessCheckIntervalSeconds?: undefined | number; logger?: undefined | ((level: string, message: string) => void); needMasterPublicKey?: undefined | false | true; pollIntervalSeconds?: undefined | number; rpc?: RPC }
-
TransactionCollector: typeof BaseTransactionCollector
-
Optional livenessCheckIntervalSeconds?: undefined | number
-
Optional logger?: undefined | ((level: string, message: string) => void)
-
Optional needMasterPublicKey?: undefined | false | true
-
Optional pollIntervalSeconds?: undefined | number
-
Optional rpc?: RPC
Static loadFromKeystore
- loadFromKeystore(indexer: Indexer, path: string, password: string, infos?: LockScriptMappingInfo[], options: { TransactionCollector: typeof BaseTransactionCollector; livenessCheckIntervalSeconds?: undefined | number; logger?: undefined | ((level: string, message: string) => void); needMasterPublicKey?: undefined | false | true; pollIntervalSeconds?: undefined | number; rpc?: RPC }): CacheManager
-
Parameters
-
-
path: string
-
password: string
-
Default value infos: LockScriptMappingInfo[] = getDefaultInfos()
-
options: { TransactionCollector: typeof BaseTransactionCollector; livenessCheckIntervalSeconds?: undefined | number; logger?: undefined | ((level: string, message: string) => void); needMasterPublicKey?: undefined | false | true; pollIntervalSeconds?: undefined | number; rpc?: RPC }
-
TransactionCollector: typeof BaseTransactionCollector
-
Optional livenessCheckIntervalSeconds?: undefined | number
-
Optional logger?: undefined | ((level: string, message: string) => void)
-
Optional needMasterPublicKey?: undefined | false | true
-
Optional pollIntervalSeconds?: undefined | number
-
Optional rpc?: RPC
Load from keystore, if needMasterPublicKey set to true or origin = "ckb-cli", will enable masterPublicKey