SwapEvent
SIP Protocol API Reference v0.15.1
SIP Protocol API Reference / SwapEvent
Interface: SwapEvent
Section titled “Interface: SwapEvent”Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:16426
Swap event details
Properties
Section titled “Properties”nativeInput?
Section titled “nativeInput?”
optionalnativeInput?:object
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:16428
Native SOL involved in swap
account
Section titled “account”account:
string
amount
Section titled “amount”amount:
number
nativeOutput?
Section titled “nativeOutput?”
optionalnativeOutput?:object
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:16432
account
Section titled “account”account:
string
amount
Section titled “amount”amount:
number
tokenInputs
Section titled “tokenInputs”tokenInputs:
object[]
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:16437
Token inputs
userAccount
Section titled “userAccount”userAccount:
string
tokenAccount
Section titled “tokenAccount”tokenAccount:
string
mint:
string
rawTokenAmount
Section titled “rawTokenAmount”rawTokenAmount:
object
rawTokenAmount.tokenAmount
Section titled “rawTokenAmount.tokenAmount”tokenAmount:
string
rawTokenAmount.decimals
Section titled “rawTokenAmount.decimals”decimals:
number
tokenOutputs
Section titled “tokenOutputs”tokenOutputs:
object[]
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:16447
Token outputs
userAccount
Section titled “userAccount”userAccount:
string
tokenAccount
Section titled “tokenAccount”tokenAccount:
string
mint:
string
rawTokenAmount
Section titled “rawTokenAmount”rawTokenAmount:
object
rawTokenAmount.tokenAmount
Section titled “rawTokenAmount.tokenAmount”tokenAmount:
string
rawTokenAmount.decimals
Section titled “rawTokenAmount.decimals”decimals:
number
innerSwaps?
Section titled “innerSwaps?”
optionalinnerSwaps?:object[]
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:16457
Program that executed the swap
programInfo
Section titled “programInfo”programInfo:
object
programInfo.source
Section titled “programInfo.source”source:
string
programInfo.account
Section titled “programInfo.account”account:
string
programInfo.programName
Section titled “programInfo.programName”programName:
string
programInfo.instructionName
Section titled “programInfo.instructionName”instructionName:
string
tokenInputs
Section titled “tokenInputs”tokenInputs:
object[]
tokenOutputs
Section titled “tokenOutputs”tokenOutputs:
object[]