Indexable

  • [key: number]: boolean

Constructors

  • Establish a connection to a Sui RPC endpoint

    Parameters

    • options: NetworkOrTransport

      configuration options for the API Client

    Returns SuiClient

Properties

transport: SuiTransport

Methods

  • Invoke any RPC method

    Type Parameters

    • T = unknown

    Parameters

    • method: string

      the method to be invoked

    • params: unknown[]

    Returns Promise<T>

  • Parameters

    • Optionalinput: { descendingOrder?: boolean }

    Returns Promise<AllEpochsAddressMetrics>

  • Returns Promise<string>

  • Return the committee information for the asked epoch

    Returns Promise<EpochInfo>

  • Return the committee information for the asked epoch

    Parameters

    Returns Promise<EpochPage>

  • Get the sequence number of the latest checkpoint that has been executed

    Returns Promise<string>

  • Returns list of top move calls by usage

    Returns Promise<MoveCallMetrics>

  • Getting the reference gas price for the network

    Returns Promise<bigint>

  • Returns Promise<undefined | string>

  • Get total number of transactions

    Returns Promise<bigint>

  • Return the Validators APYs

    Returns Promise<ValidatorsApy>

  • Subscribe to get notifications whenever an event matching the filter occurs

    Parameters

    • input: SubscribeEventParams & { onMessage: (event: SuiEvent) => void }
      • onMessage: (event: SuiEvent) => void

        function to run when we receive a notification of a new event matching the filter

    Returns Promise<Unsubscribe>

  • Wait for a transaction block result to be available over the API. This can be used in conjunction with executeTransactionBlock to wait for the transaction to be available via the API. This currently polls the getTransactionBlock API to check for the transaction.

    Parameters

    • __namedParameters: { pollInterval?: number; signal?: AbortSignal; timeout?: number } & GetTransactionBlockParams
      • OptionalpollInterval?: number

        The amount of time to wait between checks for the transaction block. Defaults to 2 seconds.

      • Optionalsignal?: AbortSignal

        An optional abort signal that can be used to cancel

      • Optionaltimeout?: number

        The amount of time to wait for a transaction block. Defaults to one minute.

    Returns Promise<SuiTransactionBlockResponse>