接入教程
1. 访问官网并连接Solana钱包
2. 选择要评估的AI代理钱包地址
3. 使用4个免费工具进行评分分析
4. 查看详细的信任评分报告
5. 根据评分结果决定交互策略
获取代理钱包信任评分
python
import requests
url = "https://api.example.com/v1/score"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
payload = {
"wallet_address": "AGENT_WALLET_ADDRESS_HERE"
}
response = requests.post(url, json=payload, headers=headers)
if response.status_code == 200:
data = response.json()
print(f"Trust Score: {data.get('score')}")
print(f"Confidence: {data.get('confidence')}")
else:
print(f"Error: {response.status_code}", response.text)
解析代理钱包信息
php
<?php
$url = "https://api.example.com/v1/resolve";
$apiKey = "YOUR_API_KEY";
$data = [
"wallet_address" => "AGENT_WALLET_ADDRESS_HERE"
];
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer " . $apiKey,
"Content-Type: application/json"
]);
$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($httpCode === 200) {
$result = json_decode($response, true);
echo "Agent Type: " . $result['agent_type'] . "\n";
echo "Creation Date: " . $result['creation_date'] . "\n";
} else {
echo "Error: " . $httpCode . "\n";
echo $response;
}
?>
批量验证代理钱包
javascript
const fetch = require('node-fetch');
async function batchVerifyWallets(walletAddresses) {
const url = "https://api.example.com/v1/batch-verify";
const apiKey = "YOUR_API_KEY";
const response = await fetch(url, {
method: 'POST',
headers: {
'Authorization': `Bearer ${apiKey}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
wallets: walletAddresses
})
});
if (response.ok) {
const data = await response.json();
return data.results;
} else {
throw new Error(`API Error: ${response.status}`);
}
}
// 使用示例
const wallets = ["ADDR1", "ADDR2", "ADDR3"];
batchVerifyWallets(wallets)
.then(results => {
results.forEach(result => {
console.log(`${result.wallet}: ${result.verified ? 'Verified' : 'Not Verified'}`);
});
})
.catch(error => console.error(error));
常见问题
这个API是免费的吗?
是的,TWZRD Agent Intel API提供免费的配额,包括4个核心工具:信任评分、钱包解析、批量验证和实时监控。超出免费配额后可能需要升级到付费计划。
支持哪些Solana网络?
目前支持Solana主网(Mainnet Beta)和开发网(Devnet)。所有链上数据都来自Solana区块链,通过MCP协议进行标准化处理。
如何获取API密钥?
访问 https://intel.twzrd.xyz 注册账户后,在仪表板中生成API密钥。免费套餐无需支付费用,但需要完成注册流程。
Aitishiku.com