Skip to main content
The @saturn-pay/sdk package provides a type-safe interface to the Saturn API.

Installation

Quick Start

Configuration

Environment Variables

Capabilities

All capabilities return { data, metadata }:

Available Methods

Direct Service Calls

For services not mapped to a capability:

Resource Management

Wallet

Agents

Policies

Services Catalog

TypeScript Types

The SDK is fully typed. Import types as needed:

Error Handling

See Error Handling for detailed error handling patterns.

Best Practices

Never hardcode API keys in source code.
Always catch and handle Saturn-specific errors.
For critical workflows, verify balance first.
Leverage TypeScript for type safety.

License

MIT