Options
All
  • Public
  • Public/Protected
  • All
Menu

Module contexts/api/ContractApiContext

This file defines wrapper around Ethereum provider and uses typed contract classes generated by "web3x-codegen" package, and provides Contract API subcontext which can be used for type-safe interaction with Solidity contracts

Functions

Const createContractApiContext

  • Function for creating Contract API subcontext. This function should be called exactly once through the whole application, when the connection to the blockchain is successfully established. It is therefore called as part of the createApiContext function.

    Parameters

    • eth: Eth

      Valid Ethereum provider, wrapped in web3x-es Eth class

    Returns ContractApiContext

    Contract API subcontext

Generated using TypeDoc