Skip to main content

Get Metadata Errors

Allows you to retrieve a list of errors reported by SMASH related to service metadata. These errors can include issues with metadata formatting, or other relevant errors.

Parameter

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

Example

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

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

Curl

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

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

Return informations

No error logged

{
"result": {
"data": []
}
}

With error(s)

{
"result": {
"data": [
{
"cause": "string",
"poolHash": "string",
"poolId": "string",
"retryCount": 0,
"time": "string",
"utcTime": "string"
}
]
}
}