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: 4b0a00483046022100fd81e0c16388146cbd2b450d6118a86ae188f23abff1b84fd08cdafc4d7638b1022100ba0a85f74493861f7ddbeb5e5f11a6ffc1a597ffc5da016918e2f8dcb099110c:922c64590222798bb761d5b6d8e72950
