Buy Dagon credits with Solana USDC
dagon_buy_creditsStart a credit purchase for the connection's Dagon key, paid in USDC on Solana from payer_wallet (POST /v1/credits/purchase). This server never signs: it returns the unsigned transaction for payer_wallet to sign. Submit it to Solana yourself, then pass its signature to dagon_confirm_purchase. The wallet pays the Solana network fee (under $0.01), so it needs at least 0.0005 SOL besides the USDC.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"amount_usd": "<amount_usd>",
"payer_wallet": "<payer_wallet>"
},
"name": "dagon_buy_credits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Payment chain. Only 'solana' (USDC) is supported. | solana |
| amount_usd | Yes | Amount to buy in USD (whole cents, e.g. 5 or 12.5). | |
| payer_wallet | Yes | Base58 Solana address that pays and signs. |