Flash

Asset backed trading with zero price impact & upto 100x leverage

flash.txns

This table has similar schema as of Solana transactions table

flash.perpetuals

The perpetual table contains the parsed instructions data for flash perpetuals. Data related to instruction type, executing account, account arguments, arguments, etc. is available here.

Column NameColumn TypeDescription

block_date

date

Event date

block_time

timestamp

The (estimated) time this block was produced

block_slot

bigint

This block’s slot index in the ledger

dapp

string

Solana program address

inner_instruction_index

int

The order of inner instruction of an instruction in a txns

array<string>

Ordered list of accounts to pass to the program

instruction_index

int

The order of the instruction in a txns

instruction_type

string

Name of the function of a Solana program invoked via an instruction

is_inner_instruction

boolean

Whether the respective instruction of a txns has an inner instruction

tx_id

string

The first signature in the transaction

<STRUCT>

The arguments passed to the invoked function. Generated after decoding the instructions data parameter

Some columns in the above table needs to be explained a bit for better understanding. Let's go into what each one of them contains.

input accounts

FieldColumn Type

dispensingCustody

string

feepayer

string

program

string

collateralOracleAccount

string

custody

string

transferAuthority

string

ixSysvar

string

receivingCustodyTokenAccount

string

feeCustodyTokenAccount

string

eventAuthority

string

systemProgram

string

custodyTokenMint

string

receivingFlpTokenAccount

string

receivingTokenAccount

string

flpStakeAccount

string

custodyOracleAccount

string

feeCustody

string

receivingCustody

string

pool

string

position

string

custodyTokenAccount

string

collectionMint

string

oracleAccount

string

targetOracleAccount

string

rewardCustody

string

nftMint

string

receivingAccount

string

fundingAccount

string

signer

string

targetCustody

string

feeDistributionTokenAccount

string

lpTokenAccount

string

market

string

perpetuals

string

tokenProgram

string

stakedLpTokenAccount

string

authorizationRulesProgram

string

admin

string

dispensingCustodyOracleAccount

string

rent

string

dispensingCustodyTokenAccount

string

perpetualsProgramData

string

upgradeAuthority

string

metadataAccount

string

collateralCustody

string

nftTokenAccount

string

authorizationRulesAccount

string

poolFlpTokenAccount

string

referralAccount

string

metadataProgram

string

multisig

string

fundingFlpTokenAccount

string

lpTokenMint

string

tradingAccount

string

perpetualsProgram

string

collateralCustodyTokenAccount

string

receivingCustodyOracleAccount

string

oracleAuthority

string

owner

string

args

FieldData Type

Params

<STRUCT>

params

FieldData Type

minSignatures

int

permissions

<STRUCT>

name

string

maxAumUsd

int

metadataTitle

string

metadataSymbol

string

metadataUri

string

isStable

bool

depegAdjustment

bool

isVirtual

bool

oracle

<STRUCT>

pricing

<STRUCT>

fees

<STRUCT>

borrowRate

<STRUCT>

ratios

array<STRUCT>

side

string

correlation

bool

maxPayoffBps

int

customOracleAccount

string

maxDivergenceBps

int

maxConfBps

int

maxPriceAgeSec

int

rewardThreshold

int

allowUngatedTrading

bool

tradingDiscount

list<int>

referralRebate

list<int>

referralDiscount

int

voltageMultiplier

<STRUCT>

oracleAuthority

string

stakingFeeShareBps

int

feeShareBps

int

amount

int

price

int

expo

int

conf

int

ema

int

publishTime

int

time

int

amountIn

int

minAmountOut

int

useFeesPool

bool

minLpAmountOut

int

lpAmountIn

int

depositAmount

int

unstakeAmount

int

collectionIndex

int

priceWithSlippage

<STRUCT>

collateralAmount

int

sizeAmount

int

privilege

string

collateralDelta

int

sizeDelta

int

collateral

int

size

int

useFeePool

bool

event_name

string

fields

<STRUCT>

permissions

FieldData Type

allowSwap

bool

allowAddLiquidity

bool

allowRemoveLiquidity

bool

allowOpenPosition

bool

allowClosePosition

bool

allowCollateralWithdrawal

bool

allowSizeChange

bool

allowLiquidation

bool

allowFlpStaking

bool

allowFeeDistribution

bool

allowUngatedTrading

bool

allowFeeDiscounts

bool

allowReferralRebates

bool

oracle

FieldData Type

oracleAccount

string

customOracleAccount

string

oracleType

string

maxDivergenceBps

int

maxConfBps

int

maxPriceAgeSec

int

pricing

FieldData Type

tradeSpreadLong

int

tradeSpreadShort

int

swapSpread

int

minInitialLeverage

int

maxInitialLeverage

int

maxLeverage

int

minCollateralUsd

int

delaySeconds

int

maxUtilization

int

maxPositionLockedUsd

int

maxTotalLockedUsd

int

fees

FieldData Type

mode

string

swapIn

<STRUCT>

swapOut

<STRUCT>

stableSwapIn

<STRUCT>

stableSwapOut

<STRUCT>

addLiquidity

<STRUCT>

removeLiquidity

<STRUCT>

openPosition

int

closePosition

int

removeCollateral

int

swapIn

FieldData Type

minFee

int

targetFee

int

maxFee

int

swapOut

FieldData Type

minFee

int

targetFee

int

maxFee

int

stableSwapIn

FieldData Type

minFee

int

targetFee

int

maxFee

int

stableSwapOut

FieldData Type

minFee

int

targetFee

int

maxFee

int

addLiquidity

FieldData Type

minFee

int

targetFee

int

maxFee

int

removeLiquiduty

FieldData Type

minFee

int

targetFee

int

maxFee

int

borrowRate

FieldData Type

baseRate

int

slope1

int

slope2

int

optimalUtilization

int

ratios

FieldData Type

target

int

min

int

max

int

voltageMultiplier

FieldData Type

volume

int

rewards

int

rebates

int

priceWithSlippage

FieldData Type

price

int

exponent

int

fields

Whenever there is instruction type of 'events_log' then events are getting emitted in instruction itself and the event type can be known from args.params.event_name and the argument in the event can be fetched from args.params.field.

FieldData Type

activated

int

owner

string

market

string

collateralAmount

int

poolName

string

custodyId

string

amountIn

string

lpAmountOut

int

priceUsd

int

sizeAmount

int

sizeUsd

int

profitUsd

int

lossUsd

int

feeCollected

int

deactivated

int

sizeDelta

int

sizeDeltaUsd

int

settledReturns

int

deltaProfitUsd

int

deltaLossUsd

int

lpTokens

int

feeAmount

int

collateralUsd

int

lpAmountIn

int

custodyIdIn

int

custodyIdOut

int

amountOut

int

feeInAmount

int

feeOutAmount

int

flash.perp_composability

The perp_composability table contains the parsed instructions data for perpetual composability . Data related to instruction type, executing account, account arguments, arguments, etc. is available here.

Column NameColumn TypeDescription

block_date

date

Event date

block_time

timestamp

The (estimated) time this block was produced

block_slot

bigint

This block’s slot index in the ledger

dapp

string

Solana program address

inner_instruction_index

int

The order of inner instruction of an instruction in a txns

array<string>

Ordered list of accounts to pass to the program

instruction_index

int

The order of the instruction in a txns

instruction_type

string

Name of the function of a Solana program invoked via an instruction

is_inner_instruction

boolean

Whether the respective instruction of a txns has an inner instruction

tx_id

string

The first signature in the transaction

<STRUCT>

The arguments passed to the invoked function. Generated after decoding the instructions data parameter

Some columns in the above table needs to be explained a bit for better understanding. Let's go into what each one of them contains.

input accounts

Fields

tokenProgram

string

dispensingCustodyTokenAccount

string

perpProgram

string

market

string

owner

string

perpetuals

string

transferAuthority

string

positionPool

string

collateralCustodyTokenAccount

string

eventAuthority

string

dispensingCustody

string

ixSysvar

string

receivingAccount

string

collateralCustody

string

receivingCustodyTokenAccount

string

targetOracleAccount

string

dispensingCustodyOracleAccount

string

collateralOracleAccount

string

fundingAccount

string

fundingAccount

string

receivingCustody

string

position

string

systemProgram

string

swapPool

string

args

FieldData Type

params

<STRUCT>

params

FieldsData Type

amountIn

int

minAmountOut

bool

openPriceWithSlippage

<STRUCT>

openSizeAmount

int

privilege

string

closePriceWithSlippage

<STRUCT>

collateralDelta

int

openPriceWiithSlippage

FieldData Type

price

int

exponent

int

closePriceWithSlippage

FieldData Type

price

int

exponent

int

Last updated