all-about-apikey/blockfrost/README.md

864 B

Blockfrost

Description

Interaction with the Cardano mainnet and several testnets

Example Request

  • Curl
curl -H "project_id: {{token}}" "https://cardano-mainnet.blockfrost.io/api/v0/"
  • Raw
GET /api/v0/ HTTP/1.1
Host: cardano-mainnet.blockfrost.io
project_id: {{token}}

Response

  • Success
{
    "url":"https://blockfrost.io/",
    "version":"0.16.4"
}
  • Error
{
    "status_code":403,
    "error":"Forbidden",
    "message":"Invalid project token."
}

Regex

  • Mainnet
mainnet[a-zA-Z0-9]{32}
  • Testnet
testnet[a-zA-Z0-9]{32}
  • IPFS
ipfs[a-zA-Z0-9]{32}

Example API key

  • Mainnet
mainnet8tc4fJ1ddM2VmnbFzTk3f7hXsrehnT8w
  • Testnet
testnet8tc4fJ1ddM2VmnbFzTk3f7hXsrehnT8w
  • IPFS
ipfs8tc4fJ1ddM2VmnbFzTk3f7hXsrehnT8w