Skip to main content

Interface: LaunchpadTradeInput

Gala Launchpad SDK 9.0.0-rc.5


Gala Launchpad SDK 9.0.0-rc.5 / index / LaunchpadTradeInput

Interface: LaunchpadTradeInput

Defined in: packages/launchpad-sdk/dist/launchpad/writes.d.ts:14

Input for a bundler launchpad trade (buyWithNative, buyExactToken, sellWithNative, sellExactToken).

Since​

9.0.0

Properties​

expectedAmount​

expectedAmount: string

Defined in: packages/launchpad-sdk/dist/launchpad/writes.d.ts:17


extraFees?​

optional extraFees?: LaunchpadExtraFees

Defined in: packages/launchpad-sdk/dist/launchpad/writes.d.ts:25

The most reverse-bonding-curve fee (GALA) a trade may pay. Omit it on a sell and the SDK quotes the fee and allows it plus the SDK fee slippage; pass it to take over (an explicit '0' means "reject any fee", which the chain does for every sell on a pool that charges one). Omit it on a buy and '0' is sent (a buy pays no such fee); a value passed on a buy is sent as given, in the signed extraFees.


quantity​

quantity: string

Defined in: packages/launchpad-sdk/dist/launchpad/writes.d.ts:16


tokenName?​

optional tokenName?: string

Defined in: packages/launchpad-sdk/dist/launchpad/writes.d.ts:27

The launchpad token name of vaultAddress; saves the SDK one lookup when it quotes a sell.


uniqueKey?​

optional uniqueKey?: string

Defined in: packages/launchpad-sdk/dist/launchpad/writes.d.ts:28


vaultAddress​

vaultAddress: string

Defined in: packages/launchpad-sdk/dist/launchpad/writes.d.ts:15