API reference
Public SDK exports.
Start with the functions below. Open generated symbol pages for exact signatures, types, and error codes.
Create offramp
createOfframp returns a configured client when you want shared defaults across calls.
Open referencePost-launch ops
deposits(), close(), and the OTC helpers cover lifecycle and private orders.
Open referenceCreate deposits
The main entrypoints most integrators start with.
- offramp()
Create, confirm, and delegate a deposit in one call.
- createOfframp()
Build a reusable SDK instance for long-lived clients and bots.
Operate deposits
Inspect lifecycle state, close deposits, and manage private OTC links.
- deposits()
List a wallet's deposits and remaining inventory.
- close()
Close a deposit manually by deposit ID.
- enableOtc() / disableOtc()
Restrict or reopen a deposit for a single taker wallet.
- getOtcLink()
Build the taker-facing URL without creating a transaction.
Types and constants
Use the generated types to validate inputs and wire your own UI.
- OfframpParams
Amount, platform, currency, identifier, attribution, and OTC options.
- OfframpResult
Deposit ID, transaction hash, resumed state, and OTC link.
- PLATFORMS / CURRENCIES
Canonical payment rails and supported fiat currency metadata.
- OFFRAMP_ERROR_CODES
Error categories for user cancellations, validation failures, and chain issues.
Telemetry and wiring
Optional helpers for attribution and internal instrumentation.
- createTelemetryContext()
Create a shared telemetry emitter for multi-step integrations.
- emitEvent()
Send one-off telemetry events with the SDK's attribution shape.
- sanitizeAttributionId()
Normalize integrator, referral, and idempotency values before sending them.
Generated index
@usdctofiat/offramp
@usdctofiat/offramp
Classes
Interfaces
- CompletePeerExtensionRegistrationInput
- CompletePeerExtensionRegistrationResult
- CurrencyEntry
- DepositInfo
- EnableOtcResult
- OfframpCreateOptions
- OfframpDeveloperResources
- OfframpIntegrationPlaybook
- OfframpIntegrationStep
- OfframpParams
- OfframpProgress
- OfframpQuote
- OfframpQuoteInput
- OfframpResourceLink
- OfframpResult
- OfframpVaultStatus
- PayeeDepositData
- PeerExtensionRegistrationInfo
- PlatformEntry
- PlatformLimits
Type Aliases
- DepositStatus
- OfframpErrorCode
- OfframpIntegratorProfile
- OfframpState
- OfframpStep
- OnProgress
- PeerAuthenticateParams
- PeerBuyerTeePaymentCapture
- PeerBuyerTeePaymentParams
- PeerConnectionStatus
- PeerExtensionApi
- PeerExtensionSdk
- PeerExtensionSdkOptions
- PeerExtensionState
- PeerExtensionWindow
- PeerMetadataCaptureMode
- PeerMetadataMessage
- PeerMetadataMessageCallback
- PeerMetadataProviderConfig
- PeerMetadataRow
- PeerSarCredentialBundle
- PeerSarCredentialCapture
- PlatformKey
- PlatformTier
Variables
- CURRENCIES
- DEFAULT_EXTENSION_INSTALL_URL
- ESCROW_ADDRESS
- OFFRAMP_DEVELOPER_RESOURCES
- OFFRAMP_ERROR_CODES
- OFFRAMP_INTEGRATION_PLAYBOOKS
- OFFRAMP_RESOURCE_LINKS
- PEER_EXTENSION_CHROME_URL
- peerExtensionSdk
- PLATFORM_LIMITS
- PLATFORMS
Functions
- close
- completePeerExtensionRegistration
- createOfframp
- createPeerExtensionSdk
- createTelemetryContext
- delegate
- deposits
- disableOtc
- emitEvent
- enableOtc
- getOfframpDeveloperResources
- getOtcLink
- getPeerExtensionRegistrationAuthParams
- getPeerExtensionRegistrationInfo
- getPeerExtensionState
- getPlatformLimits
- isPeerExtensionAvailable
- isPeerExtensionMetadataBridgeAvailable
- isPeerExtensionRegistrationError
- isValidIBAN
- normalizePaypalMeUsername
- offramp
- openPeerExtensionInstallPage
- sanitizeAttributionId
- sendTelemetryEvent
- undelegate