Last updated
Last updated
Helper utilities for deriving account data from addresses or transactions.
hethers.utils.getAddressFromAccount(accountLike:
) => string
Returns a hex representation of the provided account id.
hethers.utils.getAccountFromAddress(address: string) =>
hethers.utils.getAccountFromTransactionId( transactionId: string) => string
Accepts a valid TransactionId and extracts the accountId of the transation sender. Throws an INVALID_ARGUMENT
error If an invalid transactionId is provided.
Returns an object from the provided ECDSA hash.
Returns an object from the provided string. Accepts either an account id or ECDSA hash.
Converts the provided data to an AccountId.