Nado Typescript SDK Documentation
    Preparing search index...

    Class SubaccountAPI

    Hierarchy

    Index

    Constructors

    Properties

    Methods

    • Links a signer to a subaccount to allow them to sign transactions on behalf of the subaccount

      Parameters

      Returns Promise<EngineServerExecuteSuccessResult<"link_signer">>

    • Gets the subaccount state according to the offchain engine

      Parameters

      • params: Subaccount

      Returns Promise<GetEngineSubaccountSummaryResponse>

    • Gets the estimated subaccount state from offchain engine after a series of proposed txs

      Parameters

      • params: GetEngineEstimatedSubaccountSummaryParams

      Returns Promise<GetEngineSubaccountSummaryResponse>

    • Gets the isolated positions for a subaccount

      Parameters

      • params: Subaccount

      Returns Promise<GetEngineIsolatedPositionsResponse>

    • Queries engine to get subaccount fee rates

      Parameters

      • params: Subaccount

      Returns Promise<GetEngineSubaccountFeeRatesResponse>

    • Retrieves the current signer and link signer rate limit from the indexer

      Parameters

      • params: GetIndexerLinkedSignerParams

      Returns Promise<GetIndexerLinkedSignerResponse>

    • Retrieves referral code for an address

      Parameters

      • params: GetIndexerReferralCodeParams

      Returns Promise<GetIndexerReferralCodeResponse>

    • Given the current context, create a "standard" link signer Account for the subaccount The "standard" linked signer private key is deterministically generated so that the frontend running on different clients can have a consistent private key for the subaccount linked signer.

      Parameters

      • subaccountName: string

      Returns Promise<AccountWithPrivateKey>