Fund agents, issue virtual cards, and settle payments via x402 on Base & Stellar. Three products. One ecosystem.
GDQP2K...YSHWM · Stellar
import { generateFundLink } from '@asgcard/fund'; // Agent generates a payment link — user pays, agent gets funded const { url } = await generateFundLink({ toAddress: 'GDQP2KPQ...YSHWM', toAmount: 50, toToken: 'USDC', agentName: 'TradeBot', }); // → https://fund.asgcard.dev/?agentName=TradeBot&toAmount=50...
import { AgentCard } from '@asgcard/sdk'; // Agent provisions a single-use virtual Mastercard const card = await AgentCard.create({ spendLimit: 15, // $15 max maxTransactions: 1, // auto-destroy after 1 tx cardholderName: 'TRADE BOT', }); // Use the card to buy API credits await purchaseWithCard(card, 'serpapi.com', 15);
import { OwsClient, BasePaymentAdapter } from 'ows-agent-pay'; const adapter = new BasePaymentAdapter({ privateKey: process.env.AGENT_KEY as `0x${string}`, network: 'base-sepolia', }); const agent = new OwsClient({ baseURL: 'https://inference-api.example.com', policy: { monthlyBudget: 10, maxAmountPerTransaction: 1, allowedDestinations: ['0xDead71...'], }, adapter, }); // Agent code — zero payment logic! const result = await agent.performTask('/api/inference', { model: 'gpt-4o', messages: [{ role: 'user', content: 'Analyze this report' }], });
Every product in the ASG ecosystem is deployed and serving real traffic.