Skip to content

SwapEvent

SIP Protocol API Reference v0.15.1


SIP Protocol API Reference / SwapEvent

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:16426

Swap event details

optional nativeInput?: object

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:16428

Native SOL involved in swap

account: string

amount: number


optional nativeOutput?: object

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:16432

account: string

amount: number


tokenInputs: object[]

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:16437

Token inputs

userAccount: string

tokenAccount: string

mint: string

rawTokenAmount: object

tokenAmount: string

decimals: number


tokenOutputs: object[]

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:16447

Token outputs

userAccount: string

tokenAccount: string

mint: string

rawTokenAmount: object

tokenAmount: string

decimals: number


optional innerSwaps?: object[]

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:16457

Program that executed the swap

programInfo: object

source: string

account: string

programName: string

instructionName: string

tokenInputs: object[]

tokenOutputs: object[]