WalletEmulator

An emulated Wallet, created by calling emulator.createWallet().

This wallet only has a single private/public key, which isn't rotated. Staking is not yet supported.

Getters

address

Gets the Address of the wallet.

wallet.address: helios.Address

pubKeyHash

Gets the PubKeyHash of the wallet.

wallet.pubKeyHash: helios.PubKeyHash

usedAddresses

A list containing the emulated wallet's single address.

wallet.usedAddresses: Promise<helios.Address[]>

unusedAddresses

Returns an empty list in this case.

wallet.unusedAddresses: Promise<helios.Address[]>

utxos

Gets all the UTxOs controlled by the emulated wallet.

wallet.utxos: Promise<helios.UTxO[]>

Methods

isMainnet

Returns false in this case.

wallet.isMainnet(): Promise<boolean>

signTx

Signs a transaction, returning a list containing the single signature needed for submitting it.

wallet.signTx(tx: helios.Tx): Promise<helios.Signature[]>

submitTx

Submits a transaction to the emulated blockchain. Returns the TxId.

wallet.submitTx(tx: helios.Tx): Promise<helios.TxId>