Properties
cleanup
cleanup: ((config: Options) => void)
Type declaration
-
- (config: Options): void
-
Returns void
createBlock
create
Block
: ((transactions
?: Transaction[], timestamp
?: number) => Promise<Block>)
Type declaration
-
- (transactions?: Transaction[], timestamp?: number): Promise<Block>
-
Parameters
-
Optional
transactions: Transaction[]
-
Optional
timestamp: number
Returns Promise<Block>
getBlockchainDB
getBlockchainDB: (() => Database)
Type declaration
-
- (): Database
-
Returns Database
getChain
getChain: (() => Chain)
getChainID
getChainID: (() => Buffer)
Type declaration
-
- (): Buffer
-
Returns Buffer
getConsensus
getConsensus: (() => Consensus)
Type declaration
-
- (): Consensus
-
Returns Consensus
getConsensusStore
getConsensusStore: (() => StateStore)
Type declaration
-
- (): StateStore
-
Returns StateStore
getDataAccess
getDataAccess: (() => DataAccess)
Type declaration
-
- (): DataAccess
-
Returns DataAccess
getEvents
getEvents: ((height: number, module?: string, name?: string) => Promise<DecodedEventJSON[]>)
Type declaration
-
- (height: number, module?: string, name?: string): Promise<DecodedEventJSON[]>
-
Parameters
-
height: number
-
Optional
module: string
-
Optional
name: string
Returns Promise<DecodedEventJSON[]>
getGenerator
getGenerator: (() => Generator)
Type declaration
-
- (): Generator
-
Returns Generator
getGenesisBlock
get
Genesis
Block
: (() => Block)
getLastBlock
get
Last
Block
: (() => Block)
getNextValidatorKeys
get
Next
Validator
Keys
: ((blockHeader
: BlockHeader, distance
?: number) => Promise<{ address
: string; encrypted
: {}; keyPath
: string; plain
: { blsKey
: string; blsKeyPath
: string; blsPrivateKey
: string; blsProofOfPossession
: string; generatorKey
: string; generatorKeyPath
: string; generatorPrivateKey
: string; }; privateKey
: string; publicKey
: string; }>)
Type declaration
-
- (blockHeader: BlockHeader, distance?: number): Promise<{
address: string;
encrypted: {};
keyPath: string;
plain: {
blsKey: string;
blsKeyPath: string;
blsPrivateKey: string;
blsProofOfPossession: string;
generatorKey: string;
generatorKeyPath: string;
generatorPrivateKey: string;
};
privateKey: string;
publicKey: string;
}>
-
Parameters
-
-
Optional
distance: number
Returns Promise<{
address: string;
encrypted: {};
keyPath: string;
plain: {
blsKey: string;
blsKeyPath: string;
blsPrivateKey: string;
blsProofOfPossession: string;
generatorKey: string;
generatorKeyPath: string;
generatorPrivateKey: string;
};
privateKey: string;
publicKey: string;
}>
invoke
invoke: (<T>(path: string, params?: Record<string, unknown>) => Promise<T>)
Type declaration
-
- <T>(path: string, params?: Record<string, unknown>): Promise<T>
-
Parameters
-
path: string
-
Optional
params: Record<string, unknown>
Returns Promise<T>
process
process
: ((block
: Block) => Promise<void>)
Type declaration
-
- (block: Block): Promise<void>
-
Returns Promise<void>
processUntilHeight
processUntilHeight: ((height: number) => Promise<void>)
Type declaration
-
- (height: number): Promise<void>
-
Returns Promise<void>