Skip to content

ChainGraph API Documentation / @badaitech/chaingraph-nodes / SwapResult

Class: SwapResult ​

Defined in: packages/chaingraph-nodes/src/nodes/okx-dex-api/types.ts:1136

SwapResult provides information about a completed swap transaction

Constructors ​

Constructor ​

new SwapResult(): SwapResult

Returns ​

SwapResult

Properties ​

details? ​

optional details: object

Defined in: packages/chaingraph-nodes/src/nodes/okx-dex-api/types.ts:1188

fromToken ​

fromToken: object

fromToken.amount ​

amount: string

fromToken.decimal ​

decimal: string

fromToken.symbol ​

symbol: string

priceImpact ​

priceImpact: string

toToken ​

toToken: object

toToken.amount ​

amount: string

toToken.decimal ​

decimal: string

toToken.symbol ​

symbol: string


explorerUrl ​

explorerUrl: string = ''

Defined in: packages/chaingraph-nodes/src/nodes/okx-dex-api/types.ts:1156


success ​

success: boolean = false

Defined in: packages/chaingraph-nodes/src/nodes/okx-dex-api/types.ts:1142


transactionId ​

transactionId: string = ''

Defined in: packages/chaingraph-nodes/src/nodes/okx-dex-api/types.ts:1149

Licensed under BUSL-1.1