id: api-tatum

info:
  name: Tatum API Test
  author: 0ri2N
  severity: info
  reference:
    - https://apidoc.tatum.io/#tag/Node-RPC
    - https://docs.tatum.io
  metadata:
    max-request: 1
  tags: defi,dapp,token-spray,blockchain

self-contained: true

http:
  - raw:
      - |
        GET https://api.tatum.io/v3/tatum/version HTTP/1.1
        Host: api.tatum.io
        x-api-key: {{token}}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"baseCommit":'
          - '"planName":'
          - '"creditLimit":'
        condition: and

      - type: word
        part: header
        words:
          - 'application/json'

      - type: status
        status:
          - 200

# digest: 4a0a00473045022022f3c9377b666df77d20e15cc981191ea36af68adbfe7466a38d378b739d05d3022100f7a594ab9933abff01150ef1e6eab59084a932cbb361185c4a4f72c4cbca27d1:922c64590222798bb761d5b6d8e72950
