3️⃣API Examples
Integration Steps
Step 1: Send Initial Query
const response = await fetch("http://api.hashhunter.app/api/process", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
messages: [
{
role: "user",
content: "Send 10 USDC to 0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb",
},
],
wallet: "0xYourWalletAddress",
chain: "base",
}),
});
const data = await response.json();
console.log(data.operationId); // Save this for next stepsStep 2: Request Payment Information
Step 3: Make Payment (X402 Protocol)
Step 4: Verify Payment & Get Transaction
Step 5: Execute Transaction
Last updated