Get Pool Information
Allows you to retrieve detailed information about a specific pool.
Parameter
Attribute | Description |
---|---|
bech32PoolAddress | The Cardano Pool Address, starts with pool... |
Example
import { anvil } from "@ada-anvil/sdk-client";
try {
await anvil.spo.getPool({ bech32PoolAddress });
} catch {
console.log("Authentication failed");
}
Curl
ENDPOINT="https://prod.api.ada-anvil.app"
BECH32_POOL_ADDRESS="pool1n3sjq3qvu5vvcd6aud6ndcwq7r3ghmkafcg60gznlwfrk2ucxku"
API_KEY="XXXXXXX"
curl "${ENDPOINT}/spo/getPool?input=%7B%22bech32PoolAddress%22%3A%22${BECH32_POOL_ADDRESS}%22%7D" \
--header "x-api-key: ${API_KEY}"
Return informations
{
"result": {
"data": {
"poolInfo": {
"pool_id": "pool1n3sjq3qvu5vvcd6aud6ndcwq7r3ghmkafcg60gznlwfrk2ucxku",
"hex": "9c6120440ce518cc375de37536e1c0f0e28beedd4e11a7a053fb923b",
"vrf_key": "71b1f2129fc4a6d8c73ccf2ebc2dcf4aa5b21f51b2a3fbe94eeef363a92e5e4f",
"blocks_minted": 359,
"blocks_epoch": 16,
"live_stake": "17589680871455",
"live_size": 0.0007681671042024609,
"live_saturation": 0.25043453713009317,
"live_delegators": 857,
"active_stake": "17528031426851",
"active_size": 0.0007708724436618926,
"declared_pledge": "15000000000",
"live_pledge": "25336643887",
"margin_cost": 0.05,
"fixed_cost": "340000000",
"reward_account": "stake1u8ekk3r9wgdc8vnhpz0cfjngrw36qmr45d43q9lfj3prhpqcu7h5n",
"owners": ["stake1u8ekk3r9wgdc8vnhpz0cfjngrw36qmr45d43q9lfj3prhpqcu7h5n"],
"registration": [
"b6376e6d6bff81bf753d4ef43048f36c76bcaf67a4966a4ddb4d1e4c1518bdb4",
"f7da1c7575ad61aac0c8451b8177b92036681dc8aabd3d8697557ef16180ab27",
"e23d368536adb9fe2eaa661f9d4edadd93318460a89af71bb5f8fb9d44508fad",
"f3e04f133146850dd5cdae340c7c6294fae130bcb4fcc1bd9fe33271164a9b83",
"d264c59356005abaa93a70b70503dda9376a9121ff812026b2f59deae94a901f",
"44e69b6f140a595fc7f55c522dc919de14504cd66471cddb683efbb7ab92df67",
"97b64df507863d779f5e7d289c0e2a6230eed05f3eda21a2940f68e4db305acf"
],
"retirement": []
},
"pledgeMet": true,
"owners": 1
}
}
}