SwapEvent
SIP Protocol API Reference v0.7.4
SIP Protocol API Reference / SwapEvent
Interface: SwapEvent
Section titled “Interface: SwapEvent”Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:16322
Swap event details
Properties
Section titled “Properties”nativeInput?
Section titled “nativeInput?”
optionalnativeInput:object
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:16324
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-DXh2IGkz.d.ts:16328
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-DXh2IGkz.d.ts:16333
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-DXh2IGkz.d.ts:16343
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-DXh2IGkz.d.ts:16353
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[]