Skip to main content

Get All Pool Updates

Allows you to retrieve a list of updates for the pool. Each update includes information about the pool's pledge, fixed cost, margin and the active Epoch number.

Parameter

AttributeDescription
bech32PoolAddressThe Cardano Pool Address, starts with pool...

Example

import { anvil } from "@ada-anvil/sdk-client";

try {
await anvil.spo.getAllUpdates({ bech32PoolAddress });
} catch {
console.log("Authentication failed");
}

Curl

ENDPOINT="https://prod.api.ada-anvil.app"
BECH32_POOL_ADDRESS="pool1n3sjq3qvu5vvcd6aud6ndcwq7r3ghmkafcg60gznlwfrk2ucxku"
API_KEY="XXXXXXX"

curl "${ENDPOINT}/spo/getAllUpdates?input=%7B%22bech32PoolAddress%22%3A%22${BECH32_POOL_ADDRESS}%22%7D" \
--header "x-api-key: ${API_KEY}"

Return informations

{
"result": {
"data": {
"updates": [
{
"hashId": 5806,
"certIndex": 0,
"pledge": "15000000000",
"activeEpochNo": 429,
"metaId": 30883,
"margin": 0.05,
"fixedCost": "340000000",
"registeredTxId": 72895166,
"rewardAddrId": 5131277
},
{
/* ... */
}
]
}
}
}