C-Address Onboarding Bridge SDK - v0.1.0

C-Address Onboarding Bridge SDK — public entry point.

This package provides a TypeScript/JavaScript SDK for the Onboarding Bridge Soroban smart contract on Stellar. It handles transaction building, signing, submission, and automatic retries so callers only need to supply their Keypair and intent.

import { OnboardingBridgeSDK, OffRampIntegration } from '@stellar/c-address-onboarding-bridge-sdk';
import { Keypair, Networks } from '@stellar/stellar-sdk';

const sdk = new OnboardingBridgeSDK({
contractId: 'CA...',
rpcUrl: 'https://soroban-testnet.stellar.org',
networkPassphrase: Networks.TESTNET,
});

const result = await sdk.fundCAddress(
{ source: keypair.publicKey(), target: 'CC...', asset: 'CD...', amount: '1000000' },
keypair,
);
Export Description
OnboardingBridgeSDK Main SDK class — wraps all contract calls
OffRampIntegration Moonpay / Transak / Ramp / Banxa URL builder + CEX memo helpers
assertAccountAddress Validates a G-address; throws on invalid input
assertContractAddress Validates a C-address; throws on invalid input
withRetry Low-level retry wrapper for arbitrary async functions
withRpcRetry Wraps a SorobanRpc.Server with automatic retries
isRetryableRpcError Classifies an error as transient (worth retrying)
computeBackoffDelay Computes exponential backoff delay with optional jitter
VIEW_RETRY_POLICY Default retry policy for idempotent read calls
STATE_CHANGING_RETRY_POLICY Conservative retry policy for write calls

All types are also re-exported; import them directly:

import type { BridgeConfig, FundCOptions, TransactionResult } from '@stellar/c-address-onboarding-bridge-sdk';

Index

Classes

Interfaces

Type Aliases

Variables

Functions