Skip to main content

index/interfaces/TradeResult.md

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

Extends​

Properties​

PropertyTypeDescriptionInherited from
blockHash?stringBlock hash where transaction was includedBaseTransactionResult.blockHash
gasUsed?stringGas used for the transactionBaseTransactionResult.gasUsed
inputAmountstringAmount of input currency (GALA for buys, tokens for sells)-
methodTradeMethodMethod used (native = spend/receive exact GALA, exact = get/sell exact tokens)-
outputAmountstringAmount of output currency (tokens for buys, GALA for sells)-
slippageTolerance?numberSlippage tolerance used-
timestampnumberTimestamp when confirmation was receivedBaseTransactionResult.timestamp
tokenNamestringToken name that was traded-
totalFeesstringTotal fees paid for the transaction-
transactionIdstringTransaction ID from bundle serviceBaseTransactionResult.transactionId
typeTradeTypeType of trade operation-
vaultAddressstringVault address of the token-