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
| Parameter | Type | Description |
|---|---|---|
block_number | number? | (optional) Block height to fetch the configuration at (defaults to latest) |
Result
Array<AngPoolConfigEntry> — Returns an array of objects, each containing:
| Field | Type | Description |
|---|---|---|
pool_partial_key | string | A 27-byte hex string derived from keccak256(token0, token1)[5..32], uniquely identifying the pool. |
tick_spacing | number | The tick spacing of the pool (positions must align on multiples of this value). |
fee_in_e6 | number | The pool’s fee in millionths (E6 representation). |
store_index | number | The 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)
}