Files
Spencer StockandGitHub c37d99a723 CDP wallet integration for subscription charges (#121)
* getSubscriptionOwner

* charge

* example env

* add recipient

* remove telemetry from charge

* add note for node only functions
2025-09-12 16:31:57 -06:00

17 lines
905 B
Bash

# Do not commit secrets to version control
# Adding these env variables allows the base.subscription.createSubscriptionOwner() and base.subscription.charge() functions to work - simplifying the integration of Subscriptions and Subscription Management
# CDP (Coinbase Developer Platform) Credentials
# Get these from https://portal.cdp.coinbase.com/projects/api-keys
CDP_API_KEY_ID=your-cdp-api-key-id-here
CDP_API_KEY_SECRET=your-cdp-api-key-secret-here
# Get this from https://portal.cdp.coinbase.com/products/server-wallet
# Allows the SDK to use your CDP wallet in a node environment
CDP_WALLET_SECRET=your-cdp-wallet-secret-here
# Paymaster URL for gas sponsorship (optional but recommended)
# This allows transactions to be sponsored so the wallet doesn't need ETH for gas
# CDP can provide this from https://portal.cdp.coinbase.com/products/paymaster
PAYMASTER_URL=https://your-paymaster-url.com