Pool
Ferra is a permissionless liquidity infrastructure where anyone can create and interact with DAMM pools.
Table of Contents
Get Pools
Overview
Quick Start
import { dammMainnet, initFerraSDK } from '@ferra-labs/damm'
// Initialize SDK
const sdk = initFerraSDK({
network: 'beta',
fullNodeUrl: 'https://...',
wallet: '0x...'
})
// Get a single pool
const pool = await sdk.Pool.getPool('0x...')
// Get multiple pools
const pools = await sdk.Pool.getPools()Get Single Pool
Get Multiple Pools
Get Pool Immutables
Pool Data Structure
Filtering Pools
Real-time Updates
Error Handling (Get Pools)
Fetch Ticks
fetchTicksByRpc (Recommended)
fetchTicks (Event-based)
When to Use Which
Method
Speed
Data
Use Case
Pool Transaction History
Custom RPC URL
Create Pool
Prerequisites
Quick Start
Parameters
Parameter
Type
Required
Description
Get Available Fee Tiers
Price Calculation
Tick Spacing Guide
Tick Spacing
Fee Tier
Use Case
Error Handling (Create Pool)
Important Notes
Last updated