Code Examples
Examples
x402 Paywall:
import { Ghostline } from '@ghostline/sdk';
const pay = await Ghostline.x402.pay({
url: "https://api.private.com/data",
maxAmount: "0.10",
});
const session = await Ghostline.wallet.connect({
scopes: ["sign", "view"],
});