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