Nado Typescript SDK Documentation
    Preparing search index...

    Combined Engine client providing query, execution, and WebSocket functionality for off-chain matching engine communication

    Hierarchy

    Index

    Constructors

    Properties

    axiosInstance: AxiosInstance
    payloadBuilder: EngineExecuteBuilder

    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

    • Parameters

      • Optionaladdress: string

      Returns Promise<string>

    • 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 a subaccount summary reflective of the state within the offchain engine. This adheres to the same return interface as the contract version

      Parameters

      • params: Subaccount

      Returns Promise<GetEngineSubaccountSummaryResponse>

    • 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>

    • Determines whether a client needs to complete the cloudflare JS challenge to interact with the API

      Returns Promise<boolean>

      true if the client needs to complete the JS challenge at '/challenge', false otherwise

    • Retrieves current server epoch in milliseconds

      Returns Promise<number>