2021-11-06 04:27:25 +00:00
|
|
|
id: api-etherscan
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Etherscan API Test
|
|
|
|
author: daffainfo
|
|
|
|
severity: info
|
2022-07-25 06:05:11 +00:00
|
|
|
description: Ethereum explorer API
|
2021-11-06 04:27:25 +00:00
|
|
|
reference:
|
|
|
|
- https://docs.etherscan.io/
|
2022-07-25 06:05:11 +00:00
|
|
|
- https://github.com/daffainfo/all-about-apikey/tree/main/etherscan
|
2021-11-06 04:27:25 +00:00
|
|
|
tags: token-spray,etherscan
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 1
|
2021-11-06 04:27:25 +00:00
|
|
|
|
|
|
|
self-contained: true
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-11-06 04:27:25 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "https://api.etherscan.io/api?module=account&action=balance&address=0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae&tag=latest&apikey={{token}}"
|
|
|
|
|
2021-11-06 09:23:44 +00:00
|
|
|
matchers-condition: and
|
2021-11-06 04:27:25 +00:00
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
negative: true
|
|
|
|
words:
|
|
|
|
- 'Invalid API Key'
|
2021-11-06 09:23:44 +00:00
|
|
|
|
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
|
|
|
- '"status":'
|
|
|
|
- '"message":"OK"'
|
|
|
|
condition: and
|