Buy credits with USDC (Solana Pay)
buy_credits_usdcCreate a Solana Pay quote to top up this API key with USDC on Solana mainnet. Returns transaction_url, solana_pay_url, amount_usdc and a reference. POST {"account": ""} to transaction_url to get a ready-to-sign base64 transaction; sign and send it. Or show solana_pay_url as a QR code for a human to scan in Phantom. Then call check_usdc_payment. No browser needed.
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": {
"plan": "<plan>"
},
"name": "buy_credits_usdc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes | Credit pack to buy. | |
| api_key | No | Your ogfetch API key (ogf_...). Optional if the MCP connection is already configured with an Authorization header. |