Skip to main content

Get Metadata from SMASH Database

Allows you to retrieve metadata records from the SMASH database for the specified pool.

Parameter

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

Example

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

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

Curl

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

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

Return informations

{
"result": {
"data": {
"poolId": "9c6120440ce518cc375de37536e1c0f0e28beedd4e11a7a053fb923b"
}
}
}