id: api-block

info:
  name: block.io API Test
  author: daffainfo
  severity: info
  description: Bitcoin Payment, Wallet & Transaction Data
  reference:
    - https://block.io/docs/basic
    - https://github.com/daffainfo/all-about-apikey/tree/main/block
  metadata:
    max-request: 1
  tags: token-spray,block

self-contained: true

http:
  - method: GET
    path:
      - "https://block.io/api/v2/get_balance/?api_key={{token}}"

    matchers:
      - type: word
        part: body
        words:
          - '"network"'
          - '"available_balance"'
          - '"pending_received_balance"'
        condition: and
# digest: 4a0a0047304502200f4c746c10842ad6f01e887378e050d39effe079a57d07d7d9bf83d90b6e3cd9022100e5fce0a4973ec3bd4e6503c585a151bb0acbe2a63d791b11761496df1ba2e436:922c64590222798bb761d5b6d8e72950