Constructors
constructor
-
Parameters
-
-
-
-
-
__namedParameters: { TransactionCollector: TransactionCollector; livenessCheckIntervalSeconds: undefined | number; logger: undefined | ((level: string, message: string) => void); pollIntervalSeconds: undefined | number; rpc: undefined | CKBRPC }
-
-
livenessCheckIntervalSeconds: undefined | number
-
logger: undefined | ((level: string, message: string) => void)
-
pollIntervalSeconds: undefined | number
-
rpc: undefined | CKBRPC
-
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[] | undefined, 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
-
-
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[] | undefined, 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
-
-
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