GET Metadata attached to a transaction
Returns the metadata attached to a transaction given its hash.
GET /api/core/transactions/{transaction_hash}/metadata
🎰 Parameters
Name | Description | In | Type | Required |
---|---|---|---|---|
transaction_hash | The transaction hash. | path | string | true |
👨💻 Code samples
- Node.js
- Python
- Rust
const CBI = await new CardanoBI({ apiKey: 'YOUR-KEY', apiSecret: 'YOUR-SECRET' });
const metadata = await CBI.core.transactions.metadata_({ transaction_hash: "6b85afe3fc01c6d3503a5dac8343b56b67f504bb2399deba8b09f8024790b9c4" });
console.log(metadata);
CBI = CardanoBI(apiKey='YOUR-KEY', apiSecret='YOUR-SECRET' });
metadata = await CBI.core.transactions.metadata_(transaction_hash='6b85afe3fc01c6d3503a5dac8343b56b67f504bb2399deba8b09f8024790b9c4');
print(metadata);
let CBI = CardanoBI::new(Some("YOUR-KEY"), Some("YOUR-SECRET")).await.expect("Failed to initialize CardanoBI");
let metadata_metadata = CBI.core.transactions.metadata_(Some("6b85afe3fc01c6d3503a5dac8343b56b67f504bb2399deba8b09f8024790b9c4"), HashMap::new()).await.expect("Failed to call endpoint");
println!("metadata_metadata: {:?}", metadata_metadata);
💌 Response Codes
- 200
- 400
- 401
- 402
- 403
- 404
- 429
OK: Successful request.
[
{
"key": 57,
"json": "\"0012ebc0ffffd8799fd8799fd8799f581cfb7736118ebb4e992f2231f4a21e9f\""
},
"...",
{
"key": 81,
"json": "\"2dff2618c4fa8e156c398e9d6201e1ac1656247be75c2bbcffffffffa1581c17\""
}
]
Bad Request: The request was unacceptable, often due to missing a required parameter.
Response schema is undefined.
Unauthorized: No valid API key provided.
Response schema is undefined.
Quota Exceeded: This API key has reached its usage limit on request.
Response schema is undefined.
Access Denied: The request is missing a valid API key or token.
Response schema is undefined.
Not Found: The requested resource cannot be found.
Response schema is undefined.
Too Many Requests: This API key has reached its rate limit.
Response schema is undefined.
💌 Response Schemas
- 200
- 400
- 401
- 402
- 403
- 404
- 429
Status Code 200
Name | Type | Description |
---|---|---|
key | number(double) | The metadata key (a Word64/unsigned 64 bit number). |
json | string | The JSON payload if it can be decoded as JSON. |
Status Code 400
Name | Type | Description |
---|
Response schema is undefined.
Status Code 401
Name | Type | Description |
---|
Response schema is undefined.
Status Code 402
Name | Type | Description |
---|
Response schema is undefined.
Status Code 403
Name | Type | Description |
---|
Response schema is undefined.
Status Code 404
Name | Type | Description |
---|
Response schema is undefined.
Status Code 429
Name | Type | Description |
---|
Response schema is undefined.