curl -X GET "https://api.credprotocol.com/api/v2/sandbox/score/batch/?address=0x1111111111111111111111111111111111111111,0x2222222222222222222222222222222222222222" \
-H "Authorization: Bearer YOUR_API_KEY"
const addresses = [
'0x1111111111111111111111111111111111111111',
'0x2222222222222222222222222222222222222222'
];
const response = await fetch(
`https://api.credprotocol.com/api/v2/sandbox/score/batch/?address=${addresses.join(',')}`,
{
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
}
);
const data = await response.json();
data.scores.forEach(s => console.log(`${s.address}: ${s.score}`));
import requests
addresses = [
'0x1111111111111111111111111111111111111111',
'0x2222222222222222222222222222222222222222'
]
response = requests.get(
'https://api.credprotocol.com/api/v2/sandbox/score/batch/',
params={'address': ','.join(addresses)},
headers={'Authorization': 'Bearer YOUR_API_KEY'}
)
data = response.json()
for s in data['scores']:
print(f"{s['address']}: {s['score']}")
{
"scores": [
{
"address": "0x1111111111111111111111111111111111111111",
"score": 726,
"decile": 8,
"range": "good",
"model_version": "andromeda_1.0",
"timestamp": "2024-01-15T10:30:00Z"
},
{
"address": "0x2222222222222222222222222222222222222222",
"score": 845,
"decile": 9,
"range": "very_good",
"model_version": "andromeda_1.0",
"timestamp": "2024-01-15T10:30:00Z"
}
],
"count": 2
}
Sandbox
Mock Batch Scores
Get mock individual credit scores for multiple addresses
GET
/
api
/
v2
/
sandbox
/
score
/
batch
/
curl -X GET "https://api.credprotocol.com/api/v2/sandbox/score/batch/?address=0x1111111111111111111111111111111111111111,0x2222222222222222222222222222222222222222" \
-H "Authorization: Bearer YOUR_API_KEY"
const addresses = [
'0x1111111111111111111111111111111111111111',
'0x2222222222222222222222222222222222222222'
];
const response = await fetch(
`https://api.credprotocol.com/api/v2/sandbox/score/batch/?address=${addresses.join(',')}`,
{
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
}
);
const data = await response.json();
data.scores.forEach(s => console.log(`${s.address}: ${s.score}`));
import requests
addresses = [
'0x1111111111111111111111111111111111111111',
'0x2222222222222222222222222222222222222222'
]
response = requests.get(
'https://api.credprotocol.com/api/v2/sandbox/score/batch/',
params={'address': ','.join(addresses)},
headers={'Authorization': 'Bearer YOUR_API_KEY'}
)
data = response.json()
for s in data['scores']:
print(f"{s['address']}: {s['score']}")
{
"scores": [
{
"address": "0x1111111111111111111111111111111111111111",
"score": 726,
"decile": 8,
"range": "good",
"model_version": "andromeda_1.0",
"timestamp": "2024-01-15T10:30:00Z"
},
{
"address": "0x2222222222222222222222222222222222222222",
"score": 845,
"decile": 9,
"range": "very_good",
"model_version": "andromeda_1.0",
"timestamp": "2024-01-15T10:30:00Z"
}
],
"count": 2
}
Overview
Returns mock individual credit scores for multiple addresses without aggregation. Use this to test batch scoring scenarios where you need per-wallet scores.SANDBOX: This endpoint returns mock data for testing only. Do not use for production decisions.
Query Parameters
string
required
Comma-separated list of Ethereum addresses (e.g.,
address=0x123...,0x456...,0x789...)Response
array
Array of individual mock score objects
string
The Ethereum address
integer
Mock credit score between 300 and 1000
integer
Score decile from 1 to 10
string
Score range:
low, fair, good, very_good, or excellentinteger
Number of scores returned
Comparison: Batch vs Aggregated
| Endpoint | Returns | Use Case |
|---|---|---|
/sandbox/score/batch/ | Individual scores per address | Per-wallet display |
/sandbox/score/ | Single aggregated score | Combined assessment |
curl -X GET "https://api.credprotocol.com/api/v2/sandbox/score/batch/?address=0x1111111111111111111111111111111111111111,0x2222222222222222222222222222222222222222" \
-H "Authorization: Bearer YOUR_API_KEY"
const addresses = [
'0x1111111111111111111111111111111111111111',
'0x2222222222222222222222222222222222222222'
];
const response = await fetch(
`https://api.credprotocol.com/api/v2/sandbox/score/batch/?address=${addresses.join(',')}`,
{
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
}
);
const data = await response.json();
data.scores.forEach(s => console.log(`${s.address}: ${s.score}`));
import requests
addresses = [
'0x1111111111111111111111111111111111111111',
'0x2222222222222222222222222222222222222222'
]
response = requests.get(
'https://api.credprotocol.com/api/v2/sandbox/score/batch/',
params={'address': ','.join(addresses)},
headers={'Authorization': 'Bearer YOUR_API_KEY'}
)
data = response.json()
for s in data['scores']:
print(f"{s['address']}: {s['score']}")
{
"scores": [
{
"address": "0x1111111111111111111111111111111111111111",
"score": 726,
"decile": 8,
"range": "good",
"model_version": "andromeda_1.0",
"timestamp": "2024-01-15T10:30:00Z"
},
{
"address": "0x2222222222222222222222222222222222222222",
"score": 845,
"decile": 9,
"range": "very_good",
"model_version": "andromeda_1.0",
"timestamp": "2024-01-15T10:30:00Z"
}
],
"count": 2
}
Performance
- Response Time: Instant (no blockchain queries)
- Quota: Does not count against your API quota
⌘I