id: api-blockchain

info:
  name: Blockchain API Test
  author: daffainfo
  severity: info
  description: Bitcoin Payment, Wallet & Transaction Data
  reference:
    - https://api.blockchain.com/v3/#/
    - https://github.com/daffainfo/all-about-apikey/tree/main/blockchain
  classification:
    cwe-id: CWE-200
  metadata:
    max-request: 1
  tags: token-spray,blockchain

self-contained: true

http:
  - raw:
      - |
        GET https://api.blockchain.com/v3/exchange/accounts HTTP/1.1
        Host: api.blockchain.com
        X-API-Token: {{token}}

    matchers:
      - type: word
        part: body
        words:
          - '"currency"'
          - '"balance"'
          - '"available"'
        condition: and
# digest: 4b0a004830460221008fd72af35240b601465b165dadc0b7feb6cd854c53494fa63fc030a86069de01022100fe3c2a12e733f4badd9bc31d11c72b89f215bfe17ef8867e60dcab9446014771:922c64590222798bb761d5b6d8e72950