Official package
Installation
Basic usage
What the SDK handles automatically
- Generates token via
POST /v1/auth/token - Refreshes token before expiration
- Sends
Authorization: Beareron protected routes - Throws
SafefyApiErrorwithstatus,code, anddetails
Logging example
Available modules
sdk.transactions: create, list, retrieve, and simulate transactionssdk.cashouts: create, list, and retrieve cashoutssdk.customers: create, list, retrieve, and update customerssdk.balance: retrieve balance
Versioning
The SDK follows semantic versioning inMAJOR.MINOR.PATCH format.
MAJOR: may contain breaking changesMINOR: new backward-compatible featuresPATCH: fixes and internal improvements