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

    Interface ApiPerpetualsBuilderCodesCreateIntegratorConfigTxBody

    Request payload for creating an integrator configuration approval transaction.

    This transaction allows a user to approve an integrator to receive fees on orders placed on their behalf. The user sets a maximum taker fee that the integrator can charge per order.

    interface ApiPerpetualsBuilderCodesCreateIntegratorConfigTxBody {
        accountId: bigint;
        integratorId: number;
        maxIntegratorFee: number;
        sponsor?: PerpetualsSponsorConfig;
        txKind?: string;
    }
    Index
    accountId: bigint

    Account ID encoded as a bigint.

    This is the perpetuals account that is granting permission to the integrator.

    integratorId: number

    Numeric integrator id (as assigned by the registry) of the integrator being approved.

    maxIntegratorFee: number

    Maximum integrator fee (as a decimal) that the integrator can charge per order.

    For example, 0.001 represents a 0.1% maximum fee. The service converts this to the on-chain scaled format internally. The integrator can set any fee up to this maximum when placing orders on behalf of the user.

    Optional cached gas-pool sponsorship data.

    txKind?: string

    Optional existing transaction kind (base64-encoded) to extend.

    If provided, the new integrator approval will be added to this transaction.