Skip to main content

getPoolConfigStore

Fetches the pool configuration store at a specific block, returning all pool config entries.

warning

This method is only available through the data endpoint.

Parameters

ParameterTypeDescription
block_numbernumber?(optional) Block height to fetch the configuration at (defaults to latest)

Result

Array<AngPoolConfigEntry> — Returns an array of objects, each containing:

FieldTypeDescription
pool_partial_keystringA 27-byte hex string derived from keccak256(token0, token1)[5..32], uniquely identifying the pool.
tick_spacingnumberThe tick spacing of the pool (positions must align on multiples of this value).
fee_in_e6numberThe pool’s fee in millionths (E6 representation).
store_indexnumberThe index of this entry within the config store.
info

pool_partial_key is derived by slicing bytes 5–32 of the keccak256 hash of (token0, token1):

pub fn derive_store_key(asset0: Address, asset1: Address) -> AngstromPoolPartialKey {
let hash = keccak256((asset0, asset1).abi_encode());
let mut store_key = [0u8; 27];
store_key.copy_from_slice(&hash[5..32]);
AngstromPoolPartialKey(store_key)
}