Buy Dagon credits with Solana USDC
dagon_buy_creditsPurchase Dagon Inference credits with USDC on Solana by verifying the treasury payment and either signing/submitting the transaction or returning an unsigned transaction for your payer wallet.
Instructions
Buy credits for the configured Dagon account, paid in USDC on Solana. The server checks that the gateway's transaction is exactly the USDC payment to the configured treasury (DAGON_TREASURY_WALLET). If the MCP server has a wallet (DAGON_WALLET_SECRET_KEY), it then signs and confirms it (submitting it itself unless the purchase is fee sponsored, in which case the payment service adds the fee payer's signature and submits it). Otherwise it returns the verified unsigned transaction for payer_wallet to sign; then call dagon_confirm_purchase with signed_transaction (fee sponsored: do not submit it yourself) or with the signature of the transaction you submitted (not fee sponsored).
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>"
},
"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 | No | Base58 Solana address that pays. Required when the server has no wallet configured. |