Method-by-method TypeScript SDK reference for querying invisible Stellar wallets, deposit addresses, and on-chain transactions with sdk.wallet.
The sdk.wallet resource provides access to OFFER-HUB's invisible custodial wallet infrastructure. When running in crypto mode (PAYMENT_PROVIDER=crypto), every registered user has an automatically provisioned Stellar keypair with AES-256-GCM encrypted private keys. This resource allows integrators to fetch wallet status, permanent deposit addresses, and on-chain transaction history.
User or wallet does not exist, or running in AirTM-only mode
OfferHubError
500
INTERNAL_ERROR
Server failure querying wallet record
Example
typescript
import { OfferHubSDK } from '@offerhub/sdk';
const sdk = new OfferHubSDK({
apiUrl: process.env.OFFERHUB_API_URL!,
apiKey: process.env.OFFERHUB_API_KEY!,
});
const walletInfo = await sdk.wallet.getInfo('usr_abc123');
console.log('Stellar Public Key:', walletInfo.publicKey);
console.log('Network:', walletInfo.network);
console.log('Status:', walletInfo.status);
getDepositAddress
Retrieves the permanent deposit address where the user can send funds. In crypto mode, this is their Stellar public key with USDC asset specifications. The address is static and safe to cache or display directly in checkout views.