Get Metadata Available
Allows you to to validate whether newly submitted metadata associated with the pool has been detected and saved properly. Due to manual publishing, the result may not be immediate, and you can later query the status for validation.
Parameter
Attribute | Description |
---|---|
bech32PoolAddress | The Cardano Pool Address, starts with pool... |
Example
import { anvil } from "@ada-anvil/sdk-client";
try {
await anvil.spo.getOfflineMetadata({ bech32PoolAddress });
} catch {
console.log("Authentication failed");
}
Curl
ENDPOINT="https://prod.api.ada-anvil.app"
BECH32_POOL_ADDRESS="pool1n3sjq3qvu5vvcd6aud6ndcwq7r3ghmkafcg60gznlwfrk2ucxku"
API_KEY="XXXXXXX"
curl "${ENDPOINT}/spo/getOfflineMetadata?input=%7B%22bech32PoolAddress%22%3A%22${BECH32_POOL_ADDRESS}%22%7D" \
--header "x-api-key: ${API_KEY}"
Return informations
{
"result": {
"data": [
{
"poolId": 5806,
"tickerName": "ANVIL",
"json": {
"name": "anvil",
"ticker": "ANVIL",
"homepage": "https://ada-anvil.io",
"description": "Building tools for Cardano"
},
"pmrId": 30883
},
{
/* ... */
}
]
}
}