Nado Typescript SDK Documentation
    Preparing search index...

    Base client for all engine requests

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    axiosInstance: AxiosInstance

    Methods

    • Sets the linked signer for execute requests

      Parameters

      • linkedSignerWalletClient: {} | null

        The linkedSigner to use for all signatures. Set to null to revert to the chain signer

      Returns void

    • Signs a given request with the signer provided to the engine

      Type Parameters

      • T extends keyof SignableRequestTypeToParams

      Parameters

      • requestType: T
      • verifyingContract: string
      • chainId: number
      • params: SignableRequestTypeToParams[T]

      Returns Promise<`0x${string}`>

    • Retrieves current engine status

      Returns Promise<
          | "started"
          | "active"
          | "stopping"
          | "syncing"
          | "live_syncing"
          | "failed",
      >

    • Retrieves all markets by chain id.

      Returns Promise<Record<number, MarketWithProduct[]>>

    • Retrieves the max amount of NLP that can be burned.

      Parameters

      • params: Subaccount

      Returns Promise<BigNumber>

    • Gets the insurance funds in USDT.

      Returns Promise<BigNumber>