aftermath-ts-sdk - v3.3.3
    Preparing search index...

    Type Alias ApiPerpetualsCreateTwapOrdersBody

    ApiPerpetualsCreateTwapOrdersBody: {
        gasCoinArg?: TransactionObjectArgument;
        isSponsoredTx?: boolean;
        sponsor?: PerpetualsSponsorConfig;
        twapOrders: PerpetualsTwapOrderDetails[];
        txKind?: SerializedTransaction;
        walletAddress: SuiAddress;
    } & (
        | { accountCapId?: ObjectId; accountId: PerpetualsAccountId }
        | { vaultId: ObjectId }
    )

    Request body for creating TWAP orders via the API, for an account or vault.

    Type Declaration

    • OptionalgasCoinArg?: TransactionObjectArgument

      Optional gas coin argument used when extending the transaction.

    • OptionalisSponsoredTx?: boolean

      Whether the transaction is sponsored rather than paid directly by the wallet.

    • Optionalsponsor?: PerpetualsSponsorConfig

      Optional transaction sponsorship configuration.

    • twapOrders: PerpetualsTwapOrderDetails[]

      TWAP orders to create.

    • OptionaltxKind?: SerializedTransaction

      Serialized transaction kind sent to the service.

    • walletAddress: SuiAddress

      Wallet address used to identify the signer or owner.