Get All Metadatas URLs
Allows you to retrieve a list of URLs pointing to metadata published by the pool.
Parameter
Attribute | Description |
---|---|
bech32PoolAddress | The Cardano Pool Address, starts with pool... |
Example
import { anvil } from "@ada-anvil/sdk-client";
try {
await anvil.spo.getAllMetadatas({ bech32PoolAddress });
} catch {
console.log("Authentication failed");
}
Curl
ENDPOINT="https://prod.api.ada-anvil.app"
BECH32_POOL_ADDRESS="pool1n3sjq3qvu5vvcd6aud6ndcwq7r3ghmkafcg60gznlwfrk2ucxku"
API_KEY="XXXXXXX"
curl "${ENDPOINT}/spo/getAllMetadatas?input=%7B%22bech32PoolAddress%22%3A%22${BECH32_POOL_ADDRESS}%22%7D" \
--header "x-api-key: ${API_KEY}"
Return informations
{
"result": {
"data": [
{
"poolId": 5806,
"url": "https://tinyurl.com/3m54pbnz",
"registeredTxId": 49604387
},
{
/* ... */
}
]
}
}