Skip to main content

Interface: TradeResult

Gala Launchpad SDK 9.0.0-rc.5


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

Interface: TradeResult

Defined in: packages/launchpad-sdk/dist/types/result.types.d.ts:54

Result from successful trading operation Contains actual amounts traded and fees paid

Extends​

Properties​

blockHash?​

optional blockHash?: string

Defined in: packages/launchpad-sdk/dist/types/result.types.d.ts:19

Block hash where transaction was included

Inherited from​

BaseTransactionResult.blockHash


gasUsed?​

optional gasUsed?: string

Defined in: packages/launchpad-sdk/dist/types/result.types.d.ts:21

Gas used for the transaction

Inherited from​

BaseTransactionResult.gasUsed


inputAmount​

inputAmount: string

Defined in: packages/launchpad-sdk/dist/types/result.types.d.ts:60

Amount of input currency (GALA for buys, tokens for sells)


method​

method: TradeMethod

Defined in: packages/launchpad-sdk/dist/types/result.types.d.ts:58

Method used (native = spend/receive exact GALA, exact = get/sell exact tokens)


outputAmount​

outputAmount: string

Defined in: packages/launchpad-sdk/dist/types/result.types.d.ts:62

Amount of output currency (tokens for buys, GALA for sells)


slippageTolerance?​

optional slippageTolerance?: number

Defined in: packages/launchpad-sdk/dist/types/result.types.d.ts:70

Slippage tolerance used


timestamp​

timestamp: number

Defined in: packages/launchpad-sdk/dist/types/result.types.d.ts:23

Timestamp when confirmation was received

Inherited from​

BaseTransactionResult.timestamp


tokenName​

tokenName: string

Defined in: packages/launchpad-sdk/dist/types/result.types.d.ts:66

Token name that was traded


totalFees​

totalFees: string

Defined in: packages/launchpad-sdk/dist/types/result.types.d.ts:64

Total fees paid for the transaction


transactionId​

transactionId: string

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

Transaction ID from bundle service

Inherited from​

BaseTransactionResult.transactionId


type​

type: TradeType

Defined in: packages/launchpad-sdk/dist/types/result.types.d.ts:56

Type of trade operation


vaultAddress​

vaultAddress: string

Defined in: packages/launchpad-sdk/dist/types/result.types.d.ts:68

Vault address of the token