import { GatewayClient } from '@circle-fin/x402-batching/client';
const gateway = new GatewayClient({ chain: 'arc', privateKey: process.env.BOT_KEY });
// Once: put some USDC in your Gateway balance.
await gateway.deposit('5');
// Every call: the client answers the 402 and pays from that balance.
const { data } = await gateway.pay('https://api.agtopen.com/paid/consensus/BTC%2FUSD');
console.log(data);Works with any x402 client that supports Circle Gateway.
Information only, not investment advice. Calls can be wrong. See the
Terms.