aftermath-ts-sdk - v6.7.0
    Preparing search index...

    Request body for the onboard endpoint, which creates a perpetuals account and deposits its first collateral in one transaction.

    interface ApiPerpetualsOnboardBody {
        agentWallet?: ApiPerpetualsOnboardAgentWallet;
        collateralCoinType: string;
        depositAmount: bigint;
        gasCredit?: ApiPerpetualsOnboardGasCredit;
        isSponsoredTx?: boolean;
        txKind?: string;
        walletAddress: string;
    }
    Index

    Optional Agent Wallet to grant on the new account.

    collateralCoinType: string

    Collateral coin type for the new account.

    depositAmount: bigint

    Collateral to deposit, in collateralCoinType.

    Optional Gas Credit funding.

    isSponsoredTx?: boolean

    Whether the transaction will be sponsored. Defaults to false.

    txKind?: string

    Optional serialized transaction kind to extend.

    walletAddress: string

    Wallet that will own the new account.