curl -X GET "https://api.credprotocol.com/api/v2/sandbox/report/address/0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17" \
-H "Authorization: Bearer YOUR_API_KEY"
const response = await fetch(
'https://api.credprotocol.com/api/v2/sandbox/report/address/0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17',
{
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
}
);
const report = await response.json();
console.log(report.report.summary.total_asset_usd);
import requests
response = requests.get(
'https://api.credprotocol.com/api/v2/sandbox/report/address/0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17',
headers={'Authorization': 'Bearer YOUR_API_KEY'}
)
report = response.json()
print(report['report']['summary']['total_asset_usd'])
{
"address": "0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17",
"score": {
"value": 723,
"classification": "Good"
},
"assets": {
"total_value_usd": 50000.00,
"tokens": [
{
"symbol": "ETH",
"name": "Ethereum",
"balance": "10.5",
"value_usd": 35000,
"chain_id": 1
},
{
"symbol": "USDC",
"name": "USD Coin",
"balance": "15000",
"value_usd": 15000,
"chain_id": 1
}
],
"nfts": [
{
"name": "Mock NFT #1234",
"collection": "Mock Collection",
"chain_id": 1
}
]
},
"defi": {
"protocols": [
{
"name": "Mock Protocol",
"supplied": 10000,
"borrowed": 0,
"chain_id": 1
}
],
"total_supplied": 10000,
"total_borrowed": 0
},
"activity": {
"first_transaction": "2021-01-01T00:00:00Z",
"total_transactions": 500,
"active_chains": [1, 137]
},
"sandbox": true,
"cached": false,
"timestamp": "2024-01-15T10:30:00Z"
}
Sandbox
Mock Credit Report
Get a mock credit report for testing purposes
GET
/
api
/
v2
/
sandbox
/
report
/
address
/
{address}
curl -X GET "https://api.credprotocol.com/api/v2/sandbox/report/address/0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17" \
-H "Authorization: Bearer YOUR_API_KEY"
const response = await fetch(
'https://api.credprotocol.com/api/v2/sandbox/report/address/0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17',
{
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
}
);
const report = await response.json();
console.log(report.report.summary.total_asset_usd);
import requests
response = requests.get(
'https://api.credprotocol.com/api/v2/sandbox/report/address/0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17',
headers={'Authorization': 'Bearer YOUR_API_KEY'}
)
report = response.json()
print(report['report']['summary']['total_asset_usd'])
{
"address": "0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17",
"score": {
"value": 723,
"classification": "Good"
},
"assets": {
"total_value_usd": 50000.00,
"tokens": [
{
"symbol": "ETH",
"name": "Ethereum",
"balance": "10.5",
"value_usd": 35000,
"chain_id": 1
},
{
"symbol": "USDC",
"name": "USD Coin",
"balance": "15000",
"value_usd": 15000,
"chain_id": 1
}
],
"nfts": [
{
"name": "Mock NFT #1234",
"collection": "Mock Collection",
"chain_id": 1
}
]
},
"defi": {
"protocols": [
{
"name": "Mock Protocol",
"supplied": 10000,
"borrowed": 0,
"chain_id": 1
}
],
"total_supplied": 10000,
"total_borrowed": 0
},
"activity": {
"first_transaction": "2021-01-01T00:00:00Z",
"total_transactions": 500,
"active_chains": [1, 137]
},
"sandbox": true,
"cached": false,
"timestamp": "2024-01-15T10:30:00Z"
}
Overview
Returns a deterministic mock credit report for testing your integration. The report contains realistic mock data structure identical to production responses.⚠️ SANDBOX: This endpoint returns mock data for testing only. Do not use for production decisions.
Path Parameters
string
required
Any Ethereum address (e.g.,
0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17)Response
The response format is identical to the production/api/v2/report/address/{address} endpoint.
string
The input Ethereum address
object
Mock credit score summary
object
Mock asset holdings
object
Mock DeFi positions
object
Mock transaction activity
boolean
Always
true for sandbox responsescurl -X GET "https://api.credprotocol.com/api/v2/sandbox/report/address/0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17" \
-H "Authorization: Bearer YOUR_API_KEY"
const response = await fetch(
'https://api.credprotocol.com/api/v2/sandbox/report/address/0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17',
{
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
}
);
const report = await response.json();
console.log(report.report.summary.total_asset_usd);
import requests
response = requests.get(
'https://api.credprotocol.com/api/v2/sandbox/report/address/0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17',
headers={'Authorization': 'Bearer YOUR_API_KEY'}
)
report = response.json()
print(report['report']['summary']['total_asset_usd'])
{
"address": "0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17",
"score": {
"value": 723,
"classification": "Good"
},
"assets": {
"total_value_usd": 50000.00,
"tokens": [
{
"symbol": "ETH",
"name": "Ethereum",
"balance": "10.5",
"value_usd": 35000,
"chain_id": 1
},
{
"symbol": "USDC",
"name": "USD Coin",
"balance": "15000",
"value_usd": 15000,
"chain_id": 1
}
],
"nfts": [
{
"name": "Mock NFT #1234",
"collection": "Mock Collection",
"chain_id": 1
}
]
},
"defi": {
"protocols": [
{
"name": "Mock Protocol",
"supplied": 10000,
"borrowed": 0,
"chain_id": 1
}
],
"total_supplied": 10000,
"total_borrowed": 0
},
"activity": {
"first_transaction": "2021-01-01T00:00:00Z",
"total_transactions": 500,
"active_chains": [1, 137]
},
"sandbox": true,
"cached": false,
"timestamp": "2024-01-15T10:30:00Z"
}
Performance
- Response Time: Instant (no blockchain queries)
- Caching: Mock data is deterministic, no caching needed
- Rate Limits: Standard rate limits apply
- Quota: Does not count against your API quota
⌘I