DEX swap

interface DexSwap {
    action: string;
    amounts: DexSwapAmounts;
    caller: `ak_${string}`;
    fromAmount: bigint;
    fromContract: `ct_${string}`;
    fromDecimals: number;
    fromToken: string;
    height: number;
    logIdx: number;
    microTime: Date;
    toAccount: `ak_${string}`;
    toAmount: bigint;
    toContract: `ct_${string}`;
    toDecimals: number;
    toToken: string;
    txHash: `th_${string}`;
}

Properties

action: string
caller: `ak_${string}`

Account address

fromAmount: bigint
fromContract: `ct_${string}`

Contract address

fromDecimals: number
fromToken: string
height: number
logIdx: number
microTime: Date
toAccount: `ak_${string}`

Account address

toAmount: bigint
toContract: `ct_${string}`

Contract address

toDecimals: number
toToken: string
txHash: `th_${string}`

Transaction hash