of the VeChain Thor blockchain. It allows to retrieve details, bytecode, and storage data for a specific blockchain account.

Constructors

Properties

httpClient: HttpClient

The HTTP client instance to be used for making requests.

Methods

  • Retrieves the details of an account given the account address and optional parameters.

    Parameters

    • address: Address

      The address of the account to be retrieved.

    • Optionaloptions: AccountInputOptions

      Optional parameters to modify the account retrieval.

    Returns Promise<AccountDetail>

    Returns a promise that resolves to the account details.

  • Retrieves the bytecode of the smart contract deployed at the specified address.

    Parameters

    • address: Address

      The address of the smart contract.

    • Optionaloptions: AccountInputOptions

      Optional settings for the request, including the block revision.

    Returns Promise<HexUInt>

    A promise that resolves to the bytecode of the smart contract.

  • Retrieves the storage value at the specified storage position for a given address.

    Parameters

    • address: Address

      The address of the account whose storage value is to be retrieved.

    • position: BlockId

      The position in the storage from where the value is to be retrieved.

    • Optionaloptions: AccountInputOptions

      Optional parameters including revision for specifying the block number or ID to query against.

    Returns Promise<HexUInt>

    • A promise that resolves to the storage value as a string.