Standards this provider implements or carries. De facto ones are profiled and measured by the API Commons; formal ones come from the standards directory and are linked by the provider's own tags. The evidence column says how each claim was established — not that it was made.
Individual APIs this provider publishes, each with its own machine-readable definition.
Model Context Protocol servers that expose these APIs to AI agents.
Packaged agent skills for driving this provider's APIs from an AI assistant.
Published pricing tiers and plan structures.
Documented rate limits and quota policies.
What its API terms permit and prohibit, quoted from its own page.
Its role, the data it processes, retention and transfers, quoted from its own privacy page.
Who may sign up and where, quoted from its own terms.
Its stance on AI training, inference and agents, quoted from its own pages.
JSON-LD contexts and semantic vocabularies used across these APIs.
Spectral governance rulesets for linting and validating these APIs. Counts are the severity each rule declares, not results of running them.
Overlays applied on top of this provider's contracts. Each card says who wrote it: a document the provider publishes, or one API Evangelist derived or generated.
Standalone JSON Schema definitions for this provider's data models.
Authentication, domain security, vulnerability disclosure, and trust-center signals.
Recommended x-agentic-access execution contracts for AI agents.
aid: coudrebros-eu
name: Coudre Bros.
description: Coudre Bros. (CBROS) is a mission-driven, single Cardano stake pool founded in March 2021 and run on bare-metal
servers by its operator Martin in the Czech Republic; 30% of pool rewards are donated, mainly to Médecins Sans Frontières
(Doctors Without Borders). CBROS also operates the 'CBROS AI Tools API' at nftapi.coudrebros.eu — a blind, non-custodial
HTTP API (with Swagger UI, ReDoc, llms.txt and an MCP discovery document) that lets AI agents and other clients mint native
Cardano NFTs (CIP-25) and anchor content hashes on-chain as a notary and decision log (CIP-0190), paying fees in ADA on
Cardano mainnet.
url: https://artifacts.apis.io/coudrebros-eu/apis.yml
x-type: company
x-source: harvest:mcp-registry
x-tier: profiled
x-tier-reason: enrichment pass 2026-11-04 (modular-v1; was harvest)
accessModel:
pricing: paid
onboarding: unknown
trial: false
try_now: false
public: false
label: Paid
confidence: high
probe_state: covered
source:
- plans
- authentication
- rate-limits
- security
- sandbox
generated: '2026-11-28'
method: derived
specificationVersion: '0.20'
created: '2026-11-04'
modified: '2026-11-04'
tags:
- Company
- Cardano
- Blockchain
- Stake Pool
- NFT
- Minting
- Notary
- AI Agents
- MCP
- Web3
maintainers:
- FN: Kin Lane
email: kin@apievangelist.com
- FN: APIs.json
email: info@apis.io
image: https://coudrebros.eu/assets/img/CBROS_Black.png
common:
- type: AgenticAccess
url: agentic-access/coudrebros-eu-agentic-access.yml
- type: RateLimits
url: rate-limits/coudrebros-eu-rate-limits.yml
- type: Plans
url: plans/coudrebros-eu-plans-pricing.yml
- type: Spectral
url: rules/coudrebros-eu-rules.yml
- type: JSONLD
url: json-ld/coudrebros-eu-context.jsonld
- type: Vocabulary
url: vocabulary/coudrebros-eu-vocabulary.yml
- type: AgentSkill
url: skills/_index.yml
- type: DataModel
url: data-model/coudrebros-eu-data-model.yml
- type: Idempotency
url: conventions/coudrebros-eu-conventions.yml
- type: Conventions
url: conventions/coudrebros-eu-conventions.yml
- type: Sandbox
url: sandbox/coudrebros-eu-sandbox.yml
- type: Authentication
url: authentication/coudrebros-eu-authentication.yml
- type: Deprecation
url: lifecycle/coudrebros-eu-lifecycle.yml
- type: Lifecycle
url: lifecycle/coudrebros-eu-lifecycle.yml
- type: ErrorCatalog
url: errors/coudrebros-eu-problem-types.yml
- type: Conformance
url: conformance/coudrebros-eu-conformance.yml
- type: Overlay
url: overlays/coudrebros-eu-cbros-ai-tools-api-overlay.yaml
- type: LLMsTxt
url: llms/coudrebros-eu-llms.txt
- type: ToolCrosswalk
url: mcp/coudrebros-eu-tool-crosswalk.yml
- type: MCPServer
url: mcp/coudrebros-eu-mcp.yml
- type: Hosts
url: hosts/coudrebros-eu-hosts.yml
- type: IntegrationEdges
url: integrations/coudrebros-eu-integration-edges.yml
- type: DomainSecurity
url: security/coudrebros-eu-domain-security.yml
- type: Website
url: https://www.coudrebros.eu/
- type: Documentation
url: https://nftapi.coudrebros.eu/docs
- type: APIReference
url: https://nftapi.coudrebros.eu/redoc
- type: GettingStarted
url: https://www.coudrebros.eu/nft_api/
- type: GitHubOrganization
url: https://github.com/CoudreBros
- type: Twitter
url: https://twitter.com/BrosCoudre
- type: Telegram
url: https://t.me/CBROS_Pool
- type: TermsOfService
url: https://www.coudrebros.eu/nft_api/#legal
- type: PrivacyPolicy
url: https://www.coudrebros.eu/nft_api/#privacy
- type: UsageTerms
url: terms/coudrebros-eu-terms-of-service.yml
- type: DataProcessing
url: privacy/coudrebros-eu-privacy-policy.yml
- type: Eligibility
url: eligibility/coudrebros-eu-eligibility.yml
- type: AIPreferences
url: ai-preferences/coudrebros-eu-ai-preferences.yml
apis:
- aid: coudrebros-eu:coudrebros-eu-auth-api
name: Coudre Bros. Auth API
description: Obtain an API key by paying a one-time registration fee.
humanURL: https://nftapi.coudrebros.eu/docs
baseURL: https://nftapi.coudrebros.eu
tags:
- Authentication
tags_raw:
- auth
properties:
- type: OpenAPI
url: openapi/coudrebros-eu-auth-api-openapi.yml
- type: Documentation
url: https://nftapi.coudrebros.eu/docs
- type: APIReference
url: https://nftapi.coudrebros.eu/redoc
- type: LLMsTxt
url: https://nftapi.coudrebros.eu/llms.txt
- type: JSONSchema
url: json-schema/coudrebros-eu-register-request-schema.json
- type: JSONSchema
url: json-schema/coudrebros-eu-register-response-schema.json
- aid: coudrebros-eu:coudrebros-eu-health-api
name: Coudre Bros. Health API
description: Service liveness/monitoring -- no API key required.
humanURL: https://nftapi.coudrebros.eu/docs
baseURL: https://nftapi.coudrebros.eu
tags:
- Health
tags_raw:
- health
properties:
- type: OpenAPI
url: openapi/coudrebros-eu-health-api-openapi.yml
- type: Documentation
url: https://nftapi.coudrebros.eu/docs
- type: APIReference
url: https://nftapi.coudrebros.eu/redoc
- type: LLMsTxt
url: https://nftapi.coudrebros.eu/llms.txt
- type: JSONSchema
url: json-schema/coudrebros-eu-health-response-schema.json
- aid: coudrebros-eu:coudrebros-eu-mint-api
name: Coudre Bros. Mint API
description: Mint NFTs after paying the mint fee.
humanURL: https://nftapi.coudrebros.eu/docs
baseURL: https://nftapi.coudrebros.eu
tags:
- Mint
tags_raw:
- mint
properties:
- type: OpenAPI
url: openapi/coudrebros-eu-mint-api-openapi.yml
- type: Documentation
url: https://nftapi.coudrebros.eu/docs
- type: APIReference
url: https://nftapi.coudrebros.eu/redoc
- type: LLMsTxt
url: https://nftapi.coudrebros.eu/llms.txt
- type: JSONSchema
url: json-schema/coudrebros-eu-atomic-mint-response-schema.json
- type: JSONSchema
url: json-schema/coudrebros-eu-atomic-mint-request-schema.json
- type: JSONSchema
url: json-schema/coudrebros-eu-mint-request-schema.json
- aid: coudrebros-eu:coudrebros-eu-notary-api
name: Coudre Bros. Notary API
description: Anchor a content hash on-chain (CIP-0190, transaction-metadata label 309), and a hash-chained decision log
built on top of it for AI agents. Testnet-only in this version. On-chain data is public and permanent -- only hashes and
minimal non-sensitive metadata are ever anchored, never content itself. A record is a timestamped, verifiable hash, not
a legally binding attestation.
humanURL: https://nftapi.coudrebros.eu/docs
baseURL: https://nftapi.coudrebros.eu
tags:
- Notary
tags_raw:
- notary
properties:
- type: OpenAPI
url: openapi/coudrebros-eu-notary-api-openapi.yml
- type: Documentation
url: https://nftapi.coudrebros.eu/docs
- type: APIReference
url: https://nftapi.coudrebros.eu/redoc
- type: LLMsTxt
url: https://nftapi.coudrebros.eu/llms.txt
- type: JSONSchema
url: json-schema/coudrebros-eu-prepare-decision-log-request-schema.json
- type: JSONSchema
url: json-schema/coudrebros-eu-prepare-anchor-request-schema.json
- aid: coudrebros-eu:coudrebros-eu-payment-api
name: Coudre Bros. Payment API
description: Build and check the on-chain payments used to pay for minting or registration.
humanURL: https://nftapi.coudrebros.eu/docs
baseURL: https://nftapi.coudrebros.eu
tags:
- Payments
tags_raw:
- payment
properties:
- type: OpenAPI
url: openapi/coudrebros-eu-payment-api-openapi.yml
- type: Documentation
url: https://nftapi.coudrebros.eu/docs
- type: APIReference
url: https://nftapi.coudrebros.eu/redoc
- type: LLMsTxt
url: https://nftapi.coudrebros.eu/llms.txt
- type: JSONSchema
url: json-schema/coudrebros-eu-prepare-payment-response-schema.json
- type: JSONSchema
url: json-schema/coudrebros-eu-prepare-payment-request-schema.json
- type: JSONSchema
url: json-schema/coudrebros-eu-payment-status-response-schema.json
- aid: coudrebros-eu:coudrebros-eu-prerequisites-api
name: Coudre Bros. Prerequisites API
description: "## Prerequisites\n\nTwo things to have ready before using this API end-to-end: a funded Cardano wallet (needed\
\ to register and to pay) and an IPFS CID for whatever you're minting. Both are covered below, along with how to verify\
\ a transaction before signing it, followed by `GET /info` -- the first live call you'll make.\n\n\n### Part 1 -- preparing\
\ a Cardano mainnet wallet\n\nBefore you can call `POST /register`, you need a Cardano **mainnet**\nwallet: a signing\
\ key, its address, and a small amount of real ADA at\nthat address. This guide is based on a real, hands-on run-through\
\ (not just\ndocs) -- `cardano-cli`, `pycardano`, MeshJS, and Lucid Evolution were all\nused end-to-end, against both\
\ Koios and Blockfrost, to mint on this API.\n\n#### 0. Pick your path\n\n- **Writing Python?** Use **PyCardano** -- pure\
\ Python, cross-platform,\n recommended for AI agents and server-side integrations.\n- **Writing JavaScript/TypeScript?**\
\ Use **MeshJS** (recommended) or **Lucid\n Evolution** -- see 1C below. Increasingly the default for agents built on\n\
\ Vercel AI SDK, Mastra, LangChain.js, or anything running on serverless/edge\n platforms where spawning `cardano-cli`\
\ as a subprocess isn't an option.\n- **Prefer a CLI, or on Linux?** Use **cardano-cli** -- the reference\n implementation.\n\
\nPlatform note: `cardano-cli` is Linux-native. Support on macOS is weaker and\non Windows it's not really usable directly\
\ -- use WSL there. `pycardano` is\npure Python and works identically on any platform Python itself runs on.\nMeshJS and\
\ Lucid Evolution are pure JS/TS and work anywhere Node (or a\ncompatible edge runtime) does.\n\n#### 1. Generate a signing\
\ key and address (offline, no network needed)\n\n**Base address vs. enterprise address -- pick base unless you have a\
\ reason not to.**\nA Cardano payment key alone gives you an **enterprise address** (`addr1v...`)\n-- valid for receiving\
\ on-chain payments from any wallet, but **rejected as a withdrawal\ndestination by several centralized exchanges** (Coinbase,\
\ Binance among them; confirmed the\nhard way -- a real Coinbase withdrawal to an enterprise address was refused). Adding\
\ a\n**stake key** alongside the payment key gives you a **base address** (`addr1q...`)\ninstead, which every exchange\
\ and wallet accepts, and which can also delegate stake.\n\n> **⚠️ If this address will ever receive a withdrawal from\
\ a centralized exchange\n> (funding it yourself, or telling a customer/operator to fund it that way), generate a\n> base\
\ address, not an enterprise one.** An address that only ever receives payments\n> from other on-chain wallets (e.g. a\
\ typical customer's `destination_address` for a\n> minted NFT) works fine either way -- the restriction is specifically\
\ about exchanges'\n> own withdrawal-destination validation, not the Cardano protocol.\n\n**1A. cardano-cli**\n\n```bash\n\
cardano-cli conway address key-gen \\\n --verification-key-file payment.vkey \\\n --signing-key-file payment.skey\n\n\
cardano-cli conway stake-address key-gen \\\n --verification-key-file stake.vkey \\\n --signing-key-file stake.skey\n\
\ncardano-cli conway address build \\\n --payment-verification-key-file payment.vkey \\\n --stake-verification-key-file\
\ stake.vkey \\\n --mainnet \\\n --out-file payment.addr\n```\n\nDeliberately don't need exchange compatibility (e.g.\
\ a backend/operator address that's\nonly ever funded peer-to-peer, never via an exchange withdrawal)? Drop\n`--stake-verification-key-file\
\ stake.vkey` from the `address build` call to get a\nsimpler enterprise address instead -- one less key pair to manage,\
\ at the cost of the\nexchange-withdrawal restriction above.\n\n**1B. pycardano**\n\nInstall into a virtualenv (a plain\
\ `pip install pycardano` outside a venv\nwill fail on Ubuntu 22.04+ due to the system's externally-managed-environment\n\
policy):\n\n```bash\npython3 -m venv venv\nvenv/bin/pip install pycardano\nvenv/bin/pip install \"cbor2==5.6.5\"\n```\n\
\nThe `cbor2` pin is **not optional**: `pycardano` 0.19.2 pulls in `cbor2` 6.x\nby default, but internally still calls\
\ 5.x-era `cbor2` API -- without the\npin you'll hit obscure `AttributeError`s deep inside transaction encoding.\nTracked\
\ upstream as\n[Python-Cardano/pycardano#311](https://github.com/Python-Cardano/pycardano/issues/311).\n\n```python\n\
from pycardano import (\n PaymentSigningKey, PaymentVerificationKey,\n StakeSigningKey, StakeVerificationKey,\n\
\ Address, Network,\n)\n\npayment_sk = PaymentSigningKey.generate()\npayment_vk = PaymentVerificationKey.from_signing_key(payment_sk)\n\
stake_sk = StakeSigningKey.generate()\nstake_vk = StakeVerificationKey.from_signing_key(stake_sk)\n\n# Base address (exchange-compatible)\
\ -- omit staking_part for a simpler\n# enterprise address if you deliberately don't need that (see note above).\naddress\
\ = Address(payment_part=payment_vk.hash(), staking_part=stake_vk.hash(), network=Network.MAINNET)\nprint(address) #\
\ addr1q...\n```\n\nNote: unlike `Network.TESTNET` (which covers both Preview and Preprod),\n`Network.MAINNET` is unambiguous\
\ -- there's only one mainnet. Just make sure\nevery service URL you talk to (Koios, Blockfrost) is also the mainnet variant,\n\
not a testnet one left over from copy-pasted code.\n\n**1C. MeshJS / Lucid Evolution (JavaScript/TypeScript)**\n\nTwo\
\ mature options, both with built-in Koios support (our recommended provider):\n\n- **[MeshJS](https://meshjs.dev/)**\
\ (recommended) -- address generation works fully\n **offline, no provider needed at all**. Good default unless you have\
\ a specific\n reason to prefer Lucid.\n- **[Lucid Evolution](https://no-witness-labs.github.io/lucid-evolution/)** --\
\ a\n solid alternative, but its `Lucid()` entrypoint **requires a provider be supplied\n up front**, even just to derive\
\ an address from a key -- you can't go fully\n offline the way you can with MeshJS.\n\n```bash\nnpm install @meshsdk/core\
\ @meshsdk/core-csl # MeshJS\nnpm install @lucid-evolution/lucid # Lucid Evolution (alternative)\n```\n\n\
MeshJS, fully offline -- generates a **base address** by default (payment + stake,\nno separate step needed, unlike the\
\ manual key-pair dance in 1A/1B above):\n\n```javascript\nimport { MeshWallet } from \"@meshsdk/core\";\n\nconst mnemonic\
\ = MeshWallet.brew(); // new key material, offline\nconst wallet = new MeshWallet({\n networkId: 1, // 0 = testnet,\
\ 1 = mainnet -- no fetcher/submitter needed just to get an address\n key: { type: \"mnemonic\", words: mnemonic },\n\
});\n\nconst [address] = await wallet.getUsedAddresses(); // addr1q... -- note: returns an array\n```\n\nLucid Evolution,\
\ for comparison -- notice the provider is required before you can\nderive anything:\n\n```javascript\nimport { Lucid,\
\ Koios, generateSeedPhrase } from \"@lucid-evolution/lucid\";\n\nconst provider = new Koios(\"https://api.koios.rest/api/v1\"\
);\nconst lucid = await Lucid(provider, \"Mainnet\"); // provider + network required up front\n\nconst seed = generateSeedPhrase();\n\
lucid.selectWallet.fromSeed(seed);\nconst address = await lucid.wallet().address();\n```\n\nBoth have built-in Koios providers\
\ -- `new KoiosProvider(\"api\")` (MeshJS) and\n`new Koios(url)` (Lucid, shown above) -- no custom wrapper needed, unlike\
\ pycardano.\n\n**Signing `partially_signed_tx`** (the atomic pay-and-mint flow's own signing step,\nsee `POST /mint/prepare`\
\ below):\n\n```javascript\n// MeshJS\nconst signed = await wallet.signTx(partiallySignedCborHex, true);\n\n// Lucid Evolution\n\
const signed = await lucid.fromTx(partiallySignedCborHex).sign.withPrivateKey(key).complete();\n```\n\nGotchas specific\
\ to this path (confirmed hands-on, not just from docs):\n\n- **Lucid Evolution is published ESM-only.** `import` works\
\ cleanly; relying on\n `require()` in a strict CommonJS setup (older Node, some bundler configs, `\"type\"`\n left\
\ unset in `package.json`) can fail or behave inconsistently -- use `import`/\n `.mjs`/`\"type\": \"module\"`, don't\
\ fight it with CJS interop.\n- **Lucid's numbers come back as `BigInt`, not `string`.** e.g. a transaction fee is\n \
\ `210733n`, not `\"210733\"` -- MeshJS's `.to_str()` calls return strings instead.\n Mixing the two up breaks naive\
\ `JSON.stringify()`/string concatenation.\n- **Lucid needs a network parameter even for offline-feeling operations**\
\ -- there's\n no way to sidestep supplying a provider, unlike MeshJS's `MeshWallet`.\n\n#### 2. ⚠️ Fund the wallet --\
\ requires a human, and it's real money\n\nThere is no mainnet faucet -- funding this address means sending **real ADA**\n\
you already hold, from an exchange withdrawal or another wallet you control.\nIf you're an AI agent following this guide:\
\ this is not something to do on\nyour own initiative. Hand the generated address to your human operator and\nlet them\
\ decide the amount and send it deliberately.\n\n> **⚠️ Requires human intervention -- real funds.** Never ask an operator\
\ for\n> more than the small amount actually needed for fees/minting, and never\n> generate or reuse an address you can't\
\ clearly account for. Ask your\n> operator to fund `payment.addr` / `address` manually, then continue once\n> they confirm\
\ it's done and the transaction is confirmed on-chain.\n\nAfter funding, wait for the funding transaction to be **confirmed\
\ on-chain**\n(check via Koios/Blockfrost or a mainnet explorer) before your first balance\nquery -- unlike a testnet\
\ faucet, there's no \"instant\" mainnet equivalent.\n\n#### 3. Query balance/UTxOs and submit transactions\n\n**cardano-cli\
\ + Koios (recommended default for the CLI path)**\n\n```bash\ncurl -s -X POST \"https://api.koios.rest/api/v1/address_info\"\
\ \\\n -H \"Content-Type: application/json\" \\\n -d '{\"_addresses\":[\"addr1q...\"]}'\n\ncurl -s -X POST \"https://api.koios.rest/api/v1/address_utxos\"\
\ \\\n -H \"Content-Type: application/json\" \\\n -d '{\"_addresses\":[\"addr1q...\"]}'\n\ncurl -s -X POST \"https://api.koios.rest/api/v1/submittx\"\
\ \\\n -H \"Content-Type: application/cbor\" \\\n --data-binary @signed.tx\n```\n\nRate limit: 100 requests / 10s without\
\ authentication (an optional JWT token\nraises this, see Koios's own docs if you need it).\n\n**pycardano + Koios (recommended\
\ default for the Python path)**\n\nPyCardano does **not** ship a built-in `KoiosChainContext` -- only\n`BlockFrostChainContext`,\
\ which requires a Blockfrost API key. To use Koios\nfrom pycardano you have two options: (a) write a small custom\n`ChainContext`\
\ wrapper around Koios's REST API, or (b) call Koios directly\nvia `requests` just for the query side, and let `TransactionBuilder`\
\ handle\ncoin selection and fee calculation locally once you feed it the UTxOs.\n\nRaw query fallback (option b), the\
\ simpler starting point:\n\n```python\nimport requests\n\nresp = requests.post(\n \"https://api.koios.rest/api/v1/address_utxos\"\
,\n json={\"_addresses\": [\"addr1q...\"]},\n)\n```\n\nBuild, sign and submit:\n\n```python\nbuilder = TransactionBuilder(ctx)\n\
builder.add_input_address(funded_address)\nbuilder.add_output(TransactionOutput.from_primitive([dest.to_primitive(), 2_000_000]))\n\
tx = builder.build_and_sign([signing_key], change_address=change_address)\n# Fee is calculated automatically\n\nresp =\
\ requests.post(\n \"https://api.koios.rest/api/v1/submittx\",\n data=tx.to_cbor(),\n headers={\"Content-Type\"\
: \"application/cbor\"},\n)\n```\n\nThe clear win here over `cardano-cli`: `TransactionBuilder` handles coin\nselection\
\ and fee calculation for you -- no manual fee math.\n\n**Blockfrost (alternative to Koios, for either path)**\n\nBetter\
\ SDK ecosystem and SLA than Koios, but requires signing up (2-3\nminutes, no credit card) for a free-tier API key (50,000\
\ requests/day).\n\n```bash\ncurl \"https://cardano-mainnet.blockfrost.io/api/v0/addresses/addr1q...\" \\\n -H \"project_id:\
\ mainnetXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"\n```\n\nFor pycardano, Blockfrost is the *easier* integration of the two:\
\ a ready\n`BlockFrostChainContext` exists out of the box, no wrapper needed.\n\n#### 4. Koios vs Blockfrost / PyCardano\
\ vs cardano-cli\n\n| | Koios | Blockfrost |\n|---|---|---|\n| Sign-up | None needed | Required (free, ~2-3 min) |\n|\
\ Auth header | None (optional JWT for higher limits) | `project_id: <key>` |\n| Rate limit (free) | 100 req/10s | 50,000\
\ req/day |\n| Submit endpoint | `POST /submittx`, raw CBOR body | `POST /tx/submit`, raw CBOR body |\n| Reliability |\
\ Community-run, generally solid | Commercial SLA |\n| SDK ecosystem | Thin -- mostly raw REST | Broad -- official SDKs\
\ incl. pycardano's `BlockFrostChainContext` |\n\n| | PyCardano | cardano-cli |\n|---|---|---|\n| Cross-platform | Yes\
\ (pure Python) | Linux-native; weak macOS support, needs WSL on Windows |\n| Offline key generation | Yes | Yes |\n|\
\ Transaction building | `TransactionBuilder` -- automatic coin selection + fees | Manual (`transaction build` computes\
\ fees, but inputs/outputs are explicit) |\n| Chain context | Built-in for Blockfrost only; Koios needs a custom wrapper\
\ or raw `requests` | N/A -- talk to Koios/Blockfrost via `curl` directly |\n| Best fit for | AI agents / server-side\
\ automation | Scripts, ops tooling, Linux environments |\n| Documentation quality | Sparse in places (see gotchas below)\
\ | Comprehensive, but CLI-flag-heavy |\n\n#### 5. Common mistakes / things to watch for\n\nThese are all things that\
\ actually tripped us up during testing, not\ntheoretical concerns:\n\n- **Koios returns `[]` for an empty/unfunded address**\
\ -- that's a normal\n empty result, not an error.\n- **Koios requires `POST` with a JSON body, not `GET` with a query\n\
\ parameter** -- a `GET` request returns 404.\n- **Mainnet needs `--mainnet` on every cardano-cli call**, not\n `--testnet-magic\
\ <N>` -- mixing these up is the most common copy-paste\n error when adapting testnet code/examples to mainnet.\n- **Double-check\
\ every Koios/Blockfrost URL is the mainnet variant**\n (`api.koios.rest`, `cardano-mainnet.blockfrost.io`) -- a testnet\
\ URL left\n over from copy-pasted code will silently query the wrong chain instead of\n erroring.\n- **Blockfrost's\
\ auth header is exactly `project_id:`**, not `Authorization:`\n and not `X-Api-Key:`.\n- **Koios's submit endpoint expects\
\ raw binary CBOR**, `Content-Type:\n application/cbor` -- not JSON, not hex-encoded text.\n- **`cbor2` version conflict\
\ in PyCardano** -- run `pip install\n cbor2==5.6.5` right after installing `pycardano`, or you'll hit confusing\n encoding\
\ errors (see step 1B above).\n- **PyCardano has no `__version__` attribute** -- to check the installed\n version, use\
\ `importlib.metadata.version('pycardano')` instead of\n `pycardano.__version__`.\n- **PyCardano's `ProtocolParameters`\
\ fields are under-documented** -- e.g.\n the field is `collateral_percent`, not `collateral_percentage`, and\n `cost_models`\
\ is a required field, not optional.\n- **On Ubuntu 22.04+, a venv is mandatory** -- a bare `pip install\n pycardano`\
\ outside a virtualenv will fail with an\n externally-managed-environment error.\n\n#### Next step\n\nOnce your address\
\ is funded, continue with **Part 2** below, or -- if you\nalready have a CID ready too -- straight to **`POST /register`**.\n\
\n\n---\n\n\n### Part 2 -- getting an IPFS CID before you mint\n\nBoth `POST /mint` and `POST /mint/prepare` take an `ipfs_hash`\
\ -- a CID that must already\npoint to content pinned on IPFS *before* you call either endpoint. nft_api is a **blind\n\
backend**: it never receives, stores, or reviews your file. Pinning the asset is entirely\nyour (the caller's) responsibility,\
\ against a separate IPFS pinning service, not this API.\n\n#### 0. The one step that needs a human\n\n> **⚠️ Requires\
\ human intervention.** Getting an API key/JWT from an IPFS pinning service\n> requires creating an account -- like the\
\ funding step in Part 1 above, this is a\n> one-time human step that can't be scripted or automated. If you're an AI\
\ agent following\n> this guide: ask your operator to sign up once and hand you the resulting key/JWT.\n> Everything after\
\ that -- uploading files, getting CIDs, minting -- you can do yourself,\n> for as many files as you need, without asking\
\ again. A concrete ask you can hand your\n> operator: *\"Please sign up at pinata.cloud, then go to Developer -> API\
\ Keys, generate a\n> new key, and give me the JWT it shows you.\"*\n\n#### 1. Primary: Pinata\n\nSign up for a free account\
\ at [pinata.cloud](https://www.pinata.cloud/). Once logged in,\ngo to **Developer -> API Keys** in the left-hand menu,\
\ click **New Key**, grant it pinning\naccess, and generate it -- the JWT shown at that point is what you (or your operator,\
\ on\nyour behalf) need to hand back to the agent.\n\n```bash\ncurl -X POST https://api.pinata.cloud/pinning/pinFileToIPFS\
\ \\\n -H \"Authorization: Bearer $PINATA_JWT\" \\\n -F \"file=@my_asset.png\"\n```\n\n```python\nimport requests\n\n\
url = \"https://api.pinata.cloud/pinning/pinFileToIPFS\"\nheaders = {\"Authorization\": f\"Bearer {PINATA_JWT}\"}\nwith\
\ open(\"my_asset.png\", \"rb\") as f:\n resp = requests.post(url, headers=headers, files={\"file\": f})\nresp.raise_for_status()\n\
cid = resp.json()[\"IpfsHash\"]\n```\n\nThe response's `IpfsHash` field is your CID -- pass it as `ipfs_hash` to `/mint`\
\ or\n`/mint/prepare`. Files stay pinned by default on Pinata's free tier.\n\n#### 2. Fallback: NFT.Storage\n\nUseful\
\ as a backup if Pinata is unavailable, but be aware NFT.Storage's classic free tier\nhas been winding down as the service\
\ migrates to a Storacha-backed, paid-plan model --\ncheck current pricing/limits before relying on it for anything long-term.\n\
\n```bash\ncurl -X POST https://api.nft.storage/upload \\\n -H \"Authorization: Bearer $NFT_STORAGE_TOKEN\" \\\n --data-binary\
\ @my_asset.png\n```\n\n```python\nimport requests\n\nwith open(\"my_asset.png\", \"rb\") as f:\n resp = requests.post(\n\
\ \"https://api.nft.storage/upload\",\n headers={\"Authorization\": f\"Bearer {NFT_STORAGE_TOKEN}\"},\n\
\ data=f,\n )\nresp.raise_for_status()\ncid = resp.json()[\"value\"][\"cid\"]\n```\n\n#### 3. What we don't\
\ recommend, and why\n\n- **Storacha** (formerly web3.storage) -- its current API is UCAN/DID-based, not a simple\n bearer-token\
\ REST upload; there's real setup overhead (`w3cli`, delegated capabilities)\n before you can pin a single file. Skip\
\ it unless you have a specific reason to use it.\n- **Infura IPFS** -- built primarily for its Ethereum product line;\
\ pinning requires a\n project ID **and** secret and carries needless complexity for a single-file CID lookup.\n\n####\
\ Next step\n\nOnce you have both a funded wallet (Part 1) and a CID (Part 2), continue with\n**Part 3** below -- how\
\ to check a transaction before you sign it -- then\n**`POST /register`** and **`POST /mint/prepare`** (or `POST /mint`,\
\ if you're\npaying separately).\n\n\n---\n\n\n### Part 3 -- verify the transaction before signing\n\n`POST /mint/prepare`\
\ (see below) returns `partially_signed_tx`: a transaction\nthis API has built and already co-signed, along with a text\
\ description of\nwhat it does. Before adding your own signature, verify the actual CBOR\ncontents yourself, rather than\
\ trusting that description -- this protects you\njust as much against a mistake on our side as against a compromised\
\ API or a\ntampered response in transit. Every tool below can inspect\n`partially_signed_tx` *before* you've added anything\
\ to it, so there's no\nreason to skip this and check only after the fact.\n\n#### What to check\n\n- **Outputs** -- does\
\ the expected amount land at the expected address?\n- **Mint** -- is only the expected token being minted, in the expected\
\ quantity?\n- **Inputs** -- do they match the UTxO(s) you expected to spend?\n- **Fee** -- is it a sane amount?\n\n####\
\ How\n\nUse whatever tool you're already using to sign -- none of the four paths below\nis meaningfully worse than another\
\ for this, so there's no reason to add a new\ndependency just to verify. All four were run against a real `partially_signed_tx`\n\
from this API while writing this guide.\n\n**cardano-cli**\n\n```bash\ncardano-cli debug transaction view --tx-file tx.tx\n\
```\n\n> **⚠️ This is `cardano-cli debug transaction view` -- not `conway transaction\n> view`.** The latter doesn't exist,\
\ even though every other command in this\n> guide is a `conway`-era subcommand -- an easy one to get wrong by analogy.\n\
> `tx.tx` here is `partially_signed_tx` wrapped in the same `{\"type\": \"Tx\n> ConwayEra\", \"cborHex\": \"...\"}` envelope\
\ used elsewhere in this guide.\n\nReturns a readable JSON document with era, fee, inputs, outputs, and any mint.\n\n\
**pycardano**\n\n```python\nfrom pycardano import Transaction\n\ntx = Transaction.from_cbor(cbor_hex) # cbor_hex = partially_signed_tx,\
\ as-is\nbody = tx.transaction_body\n\nprint(f\"Fee: {body.fee / 1_000_000:.6f} ADA\")\nfor inp in body.inputs:\n print(f\"\
Input: {inp.transaction_id}#{inp.index}\")\nfor out in body.outputs:\n lovelace = out.amount if isinstance(out.amount,\
\ int) else out.amount.coin\n print(f\"Output: {out.address}: {lovelace / 1_000_000:.2f} ADA\")\nif body.mint:\n \
\ for policy, assets in body.mint.items():\n for name, qty in assets.items():\n print(f\"Mint: {bytes(name).decode()}\
\ qty={qty}\")\n```\n\n**MeshJS** -- the simplest of the four, one-liners against the raw CBOR hex:\n\n```javascript\n\
import { getTransactionInputs, getTransactionOutputs, deserializeTx } from \"@meshsdk/core-csl\";\n\nconst cborHex = partiallySignedTx;\
\ // as returned by POST /mint/prepare\nconst inputs = getTransactionInputs(cborHex);\nconst outputs = getTransactionOutputs(cborHex);\n\
const fee = deserializeTx(cborHex).body().fee().to_str();\nconst mint = deserializeTx(cborHex).body().mint()?.to_js_value();\n\
```\n\n> **These three functions live in `@meshsdk/core-csl`, not `@meshsdk/core`**\n> -- an easy import to get wrong,\
\ since everything else in the wallet guide\n> above comes from `@meshsdk/core`.\n\n**Lucid Evolution**\n\n```javascript\n\
import { CML } from \"@lucid-evolution/lucid\";\n\nconst body = CML.Transaction.from_cbor_hex(cborHex).body();\nconst\
\ fee = body.fee(); // BigInt, e.g. 210733n -- not a string like MeshJS's .to_str()\nconst outputs = body.outputs();\n\
const mint = body.mint();\n```\n\nAll four paths above work identically on `partially_signed_tx` itself, before\nyour\
\ own witness is added -- check first, sign second.\n\n#### Next step\n\nContinue with **`POST /register`** below to exchange\
\ a one-time registration\npayment for an API key, then **`POST /mint/prepare`** (or `POST /mint`, if\nyou're paying separately).\n\
\n\n---\n\nPublic info needed to get started -- no API key required."
humanURL: https://nftapi.coudrebros.eu/docs
baseURL: https://nftapi.coudrebros.eu
tags:
- prerequisites
properties:
- type: OpenAPI
url: openapi/coudrebros-eu-prerequisites-api-openapi.yml
- type: Documentation
url: https://nftapi.coudrebros.eu/docs
- type: APIReference
url: https://nftapi.coudrebros.eu/redoc
- type: LLMsTxt
url: https://nftapi.coudrebros.eu/llms.txt
# --- truncated at 32 KB (32 KB total) ---
# Full source: https://artifacts.apis.io/coudrebros-eu/apis.yml
Every provider here is available over the APIs.io API and to AI agents over MCP.