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: 490a0046304402206deda071bf82bc59d9707a68dafaf73b5882d41a7c9438c6c69347f633cad1f2022028ab5ef55e769f797ead4d378964914ed09b1a2e8e0436805bc2e3b7c19c2fcf:922c64590222798bb761d5b6d8e72950