getPoolTransactions
Fetch a pool’s deposit and withdrawal history, newest first — refunded deposits included.
import { getPoolTransactions } from "@symmio/trading-core";
const page = await getPoolTransactions(config, {
marketAddress: "0x800822d361335b4d5F352Dac293cA4128b5B605f",
size: 50,
});Public and pool-wide by default: every LP’s rows, not just the caller’s. Pass walletAddress to narrow it to one wallet.
Unlike the other pool tables, this one has rows before the pool is tradable — deposits exist from the moment a
listing is applied for, while the quote and history tables need a symbolId.
Parameters
chainIdnumberoptionalTarget chain id. Defaults to the config’s defaultChainId.
marketAddressstringrequiredThe pool’s token contract address.
walletAddressstringoptionalNarrow the page to one wallet’s rows. Omit for the pool’s whole history across every LP.
startnumberoptionalRow offset. Defaults to 0.
sizenumberoptionalPage size. Defaults to 150.
Pagination is path-based (/{start}/{size}), not query-based.
Returns
PoolTransactionPage:
marketAddressstringThe pool’s token contract address, echoed by the backend.
countnumberTotal rows matching the query across all pages — so this is what a pager divides, not items.length.
itemsPoolTransaction[]The rows themselves.
Each PoolTransaction:
transactionIdstringBackend id for the transaction.
walletAddressstringThe wallet that made it. Varies row to row.
amountbigintAmount moved, in the transaction’s own denomination.
usdcAmountbigintCollateral value moved, USD.
tokenAmountbigintToken amount moved, in the pool token’s units.
transactionHashstring | nullOn-chain hash or Solana signature, when known.
refundAddressstring | nullAddress a refund was sent to; null when not a refund.
refundTransactionHashstring | nullHash of the refund transaction; null when not a refund.
refundTimenumber | nullWhen the refund completed, Unix seconds; null when not a refund.
typePoolTransactionTypeDEPOSIT or WITHDRAW.
statusPoolTransactionStatusPENDING, SUCCESS, REJECTED, REFUND or CANCELED.
timenumberWhen the transaction happened, Unix seconds.
Throws
LISTING_NOT_CONFIGURED— aSymmError(kind: "config") when the chain has no listing backend.UNSUPPORTED_CHAIN— aSymmError(kind: "config") for an unknown chain id.FETCH_POOL_TRANSACTIONS_FAILED— an axios failure becomes aSymmApiError; a non-axios throw becomes a plainSymmError(kind: "api").
Related
- Pool detail tables — the other four reads.
- React:
usePoolTransactions.