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

    Configuration for gas pool sponsorship on perpetuals transactions.

    When provided, the transaction will include a gas pool sponsor rebate step that debits the specified wallet's gas pool.

    interface PerpetualsSponsorConfig {
        bytes?: string;
        signature?: string;
        walletAddress: string;
    }
    Index
    bytes?: string

    Base64 UTF-8 bytes of the Terms and Conditions message (see UserData.createTermsAndConditionsMessage), signed once by walletAddress and cached for the session. Sending this cached signature is all the gas pool needs; it replaces the old per-tx SPONSOR_GAS payload.

    signature?: string

    walletAddress's signature over bytes (the cached T&C signature).

    walletAddress: string

    Wallet address to use for gas pool sponsorship. Must be the connected wallet: af-fe now verifies the sponsor and refuses a request naming any other address with error 2034 before it reaches the pool.