Skip to content

SwapEvent

SIP Protocol API Reference v0.7.4


SIP Protocol API Reference / SwapEvent

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:16322

Swap event details

optional nativeInput: object

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:16324

Native SOL involved in swap

account: string

amount: number


optional nativeOutput: object

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:16328

account: string

amount: number


tokenInputs: object[]

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:16333

Token inputs

userAccount: string

tokenAccount: string

mint: string

rawTokenAmount: object

tokenAmount: string

decimals: number


tokenOutputs: object[]

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:16343

Token outputs

userAccount: string

tokenAccount: string

mint: string

rawTokenAmount: object

tokenAmount: string

decimals: number


optional innerSwaps: object[]

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:16353

Program that executed the swap

programInfo: object

source: string

account: string

programName: string

instructionName: string

tokenInputs: object[]

tokenOutputs: object[]