2021-12-22 12:08:17 +00:00
|
|
|
id: api-alchemy
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Alchemy API Test
|
|
|
|
author: daffainfo
|
|
|
|
severity: info
|
2022-01-04 19:40:09 +00:00
|
|
|
reference:
|
|
|
|
- https://docs.alchemy.com/alchemy/
|
|
|
|
- https://github.com/daffainfo/all-about-apikey/blob/main/Cryptocurrency/Alchemy.md
|
2021-12-22 12:08:17 +00:00
|
|
|
tags: token-spray,alchemy
|
|
|
|
|
|
|
|
self-contained: true
|
|
|
|
requests:
|
2021-12-23 10:30:03 +00:00
|
|
|
- method: POST
|
2021-12-22 12:08:17 +00:00
|
|
|
path:
|
2021-12-23 10:30:03 +00:00
|
|
|
- "https://eth-mainnet.alchemyapi.io/v2/{{token}}"
|
|
|
|
body: '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":0}'
|
2021-12-22 12:08:17 +00:00
|
|
|
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
2021-12-23 10:30:03 +00:00
|
|
|
- '"id":'
|
|
|
|
- '"result":'
|
2021-12-22 12:08:17 +00:00
|
|
|
condition: and
|