id: api-blockfrost

info:
  name: Blockfrost API Test
  author: daffainfo
  severity: info
  description: Interaction with the Cardano mainnet and several testnets
  reference:
    - https://docs.blockfrost.io/
    - https://github.com/daffainfo/all-about-apikey/tree/main/blockfrost
  metadata:
    max-request: 1
  tags: token-spray,blockfrost

self-contained: true

http:
  - raw:
      - |
        GET https://cardano-mainnet.blockfrost.io/api/v0/ HTTP/1.1
        Host: cardano-mainnet.blockfrost.io
        project_id: {{token}}

    matchers:
      - type: word
        part: body
        words:
          - '"url":'
          - '"version":'
        condition: and
# digest: 4a0a00473045022062029fcf7d154b49e6a0330722787b6f451582380f23f212bf12b6dfd93f6258022100e9f86de6b9cb4496ecf72aa6b7520f400fc22effab9ce0a05a87336ff3aa7dc5:922c64590222798bb761d5b6d8e72950