Constructors

Properties

neonProxyRpcUrl: string = ''

The URL of the Neon Proxy RPC.

Methods

  • Fetches the list of gas tokens with chain ID's related to the particular gas token supported by the Neon EVM.

    Returns Promise<GasToken[]>

    A promise that resolves to an array of GasToken objects.

  • Fetches the list of native tokens and their chain ID's supported by the Neon EVM.

    Returns Promise<GasToken[]>

    A promise that resolves to an array of GasToken objects.

  • Emulates a Neon transaction using the neon_emulate method.

    Parameters

    • params: string[] = []

      The parameters for the emulation, typically transaction data.

    Returns Promise<NeonEmulate>

    A promise that resolves to the result of the Neon emulation.

  • Makes a proxy request using the configured Neon Proxy RPC URL.

    Type Parameters

    • T

      The expected type of the response result.

    Parameters

    • method: string

      The RPC method name.

    • params: unknown[] = []

      The parameters for the RPC method.

    Returns Promise<RPCResponse<T>>

    A promise that resolves to the response of the proxy RPC request.

  • Makes an RPC request to a specified URL.

    Type Parameters

    • T

      The expected type of the response result.

    Parameters

    • url: string

      The URL to make the RPC request to.

    • method: string

      The RPC method name.

    • params: unknown[] = []

      The parameters for the RPC method.

    Returns Promise<RPCResponse<T>>

    A promise that resolves to the response of the RPC request.