id: api-alchemy

info:
  name: Alchemy API Test
  author: daffainfo
  severity: info
  description: Ethereum Node-as-a-Service Provider
  reference:
    - https://docs.alchemy.com/alchemy/
    - https://github.com/daffainfo/all-about-apikey/tree/main/alchemy
  metadata:
    max-request: 1
  tags: token-spray,alchemy

self-contained: true

http:
  - method: POST
    path:
      - "https://eth-mainnet.alchemyapi.io/v2/{{token}}"

    body: '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":0}'
    matchers:
      - type: word
        part: body
        words:
          - '"id":'
          - '"result":'
        condition: and
# digest: 4a0a00473045022100e9e382ee57662c1c58fa763772a4b59025c773ca80b83adb797d3489d831fdcb022052a7bd8fb4e2864a39b7afddf5dd4e7b489307ed02803fa4d1224b76222f62cc:922c64590222798bb761d5b6d8e72950