JSPM

@asgpay/sdk

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 506
  • Score
    100M100P100Q73009F
  • License MIT

ASG Pay SDK — programmatic virtual Mastercard cards for AI agents. Issue, fund, freeze, and manage spending limits. Part of the ASG Pay ecosystem.

Package Exports

  • @asgpay/sdk
  • @asgpay/sdk/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@asgpay/sdk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@asgpay/sdk

Virtual Mastercard Cards for AI Agents

npm downloads ASG Pay


What is @asgpay/sdk?

@asgpay/sdk is the TypeScript SDK for programmatically issuing and managing virtual Mastercard cards for AI agents. Issue cards, set spending limits, fund via USDC, and freeze/unfreeze — all via code.

Part of the ASG Pay ecosystem — the banking layer for autonomous AI agents.

Install

npm install @asgpay/sdk

Quick Start

import { AsgCardClient } from '@asgpay/sdk';

const client = new AsgCardClient({ apiKey: process.env.ASG_API_KEY! });

// Issue a virtual card for your AI agent
const card = await client.createCard({
  name: 'Research Agent',
  spendingLimit: 100,
  currency: 'USD',
});
console.log(`Card issued: **** ${card.last4}`);

// Fund the card
await client.fundCard(card.id, { amount: 50, method: 'usdc' });

// Freeze when done
await client.freezeCard(card.id);

Features

Feature Description
Issue Cards Virtual Mastercard, instant issuance
Set Limits Per-transaction and monthly spending limits
Fund via USDC Stellar USDC → card balance, instant
Freeze/Unfreeze Programmatic card control
Transaction History Full audit trail per card

ASG Pay Ecosystem

Package Purpose
@asgpay/pay Multi-chain payment SDK (x402 + MPP)
@asgpay/sdk ← You are here. Card management.
@asgpay/cli Card creation & management CLI
@asgpay/mcp-server AI agent tools (Claude, Codex, Cursor)
@asgpay/fund One-link agent wallet funding
@asgpay/agent-cash Autonomous virtual credit cards
@asgpay/create-app Project scaffolding

Part of ASG Pay — the banking layer for autonomous AI agents.