Check wallet address (unified endpoint)
const options = {method: 'GET'};
fetch('https://api.haveibeendrained.org/api/v1/check', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.haveibeendrained.org/api/v1/checkimport requests
url = "https://api.haveibeendrained.org/api/v1/check"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.haveibeendrained.org/api/v1/check"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"type": "drainer",
"data": {
"drainerAddress": "ABC123...",
"reportCount": 42,
"firstSeen": "2024-01-15T10:30:00Z",
"lastSeen": "2024-12-10T14:20:00Z",
"totalSolReported": 150.5,
"recentReporters": [
"DEF456...",
"GHI789..."
]
},
"timestamp": 1702224000000
}Check
Check wallet address (unified endpoint)
Unified endpoint that first checks if the address is a known drainer, then performs full wallet analysis if not.
GET
/
api
/
v1
/
check
Check wallet address (unified endpoint)
const options = {method: 'GET'};
fetch('https://api.haveibeendrained.org/api/v1/check', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.haveibeendrained.org/api/v1/checkimport requests
url = "https://api.haveibeendrained.org/api/v1/check"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.haveibeendrained.org/api/v1/check"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"type": "drainer",
"data": {
"drainerAddress": "ABC123...",
"reportCount": 42,
"firstSeen": "2024-01-15T10:30:00Z",
"lastSeen": "2024-12-10T14:20:00Z",
"totalSolReported": 150.5,
"recentReporters": [
"DEF456...",
"GHI789..."
]
},
"timestamp": 1702224000000
}Query Parameters
Solana wallet address to check
Required string length:
32 - 44Example:
"ABC123..."
Transaction limit for analysis (default: 50, max: 200)
Required range:
1 <= x <= 200Include experimental detections
Was this page helpful?