Class SolanaWeb3Public

Class containing methods for calling contracts in order to obtain information from the blockchain. To send transaction or execute contract method use Web3Private.

Hierarchy

Constructors

Methods

  • Calls pure method of smart-contract and returns its output value.

    Type Parameters

    Parameters

    • _contractAddress: string

      Address of smart-contract which method is to be executed.

    • _contractAbi: AbiItem[]

      Abi of smart-contract which method is to be executed.

    • _methodName: string

      Called method name.

    • _methodArguments: unknown[] = []

      Method arguments.

    • _options: {
          from?: string;
          gas?: string;
          gasPrice?: string;
          value?: string;
      } = {}

      Transaction options.

      • Optional from?: string
      • Optional gas?: string
      • Optional gasPrice?: string
      • Optional value?: string

    Returns Promise<T>

Generated using TypeDoc