Skip to main content
Version: 1.0
Endpoints Summary
GET Metadata attached to a transaction

GET Metadata attached to a transaction

Returns the metadata attached to a transaction given its hash.

GET /api/core/transactions/{transaction_hash}/metadata

🎰 Parameters

NameDescriptionInTypeRequired
transaction_hashThe transaction hash.pathstringtrue

👨‍💻 Code samples

const CBI = await new CardanoBI({ apiKey: 'YOUR-KEY', apiSecret: 'YOUR-SECRET' }); 
const metadata = await CBI.core.transactions.metadata_({ transaction_hash: "6b85afe3fc01c6d3503a5dac8343b56b67f504bb2399deba8b09f8024790b9c4" });
console.log(metadata);

💌 Response Codes

OK: Successful request.

[
{
"key": 57,
"json": "\"0012ebc0ffffd8799fd8799fd8799f581cfb7736118ebb4e992f2231f4a21e9f\""
},
"...",
{
"key": 81,
"json": "\"2dff2618c4fa8e156c398e9d6201e1ac1656247be75c2bbcffffffffa1581c17\""
}
]

💌 Response Schemas

Status Code 200

NameTypeDescription
keynumber(double)The metadata key (a Word64/unsigned 64 bit number).
jsonstringThe JSON payload if it can be decoded as JSON.