Class EvmWeb3Pure

Hierarchy

  • EvmWeb3Pure

Constructors

Properties

EMPTY_ADDRESS: "0x0000000000000000000000000000000000000000" = '0x0000000000000000000000000000000000000000'

Accessors

Methods

  • Decodes data by ABI.

    Returns

    Decoded data.

    Type Parameters

    • T

    Parameters

    • functionName: string

      Function name in ABI.

    • functionArguments: [type: string, name: string][]

      Array of function's inputs.

    • data: string

      Data (hex string).

    Returns T

  • Encodes a function call using its JSON interface object and given parameters.

    Returns

    An ABI encoded function call. Means function signature + parameters.

    Parameters

    • contractAbi: AbiItem[]

      The JSON interface object of a function.

    • methodName: string

      Method name to encode.

    • methodArguments: unknown[]

      Parameters to encode.

    Returns string

Generated using TypeDoc