all-about-apikey/blockfrost
Muhammad Daffa 7372a52709 Fix repository structure and add todolist 2022-07-23 20:53:29 +07:00
..
README.md Fix repository structure and add todolist 2022-07-23 20:53:29 +07:00

README.md

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