Blockchain
The Blockchain object keeps the state of all accounts and contracts.
#
MethodsTHydraConfig): void#
constructor(config:Creates a new blockchain object
TAuthority, activeAuth?: TAuthority): Account#
createAccount(accountName: string,ownerAuth?:Creates a new account
TTransaction): Promise<TTransactionTrace>#
sendTransaction(transaction:Executes a transactions
TDeferredTransaction[]#
getDeferredTransactions():Gets all deferred transactions
#
clearDeferredTransactions(): voidClears all deferred transactions
#
setCurrentTime(date: Date): voidSets the current time of the blockchain changing the value returned by eosio::current_time_point
and similar intrinsics.
TProtocolFeature, enable: boolean): void#
setProtocolFeature(featureName:Enable or disable an EOSIO protocol feature
#
Fields#
contractTemplates: Dictionary<ContractTemplate>Gets configured contract templates that can be used for setContract.
Contract templates are configured through the config
parameter in the constructor
Account>#
accounts: Dictionary<Gets all user-created and default-created accounts. Keyed by account name