Docs

connectTorqEarn

Connect a customer wallet to the complete canonical Torq Earn lifecycle.

Package@torq-finance/sdk
SignatureconnectTorqEarn(config: ConnectTorqEarnConfig): Promise<TorqEarn>

Behavior

Reads the wallet chain, completes an origin-bound wallet challenge, requests the bounded Earn scopes, and returns a high-level client for catalogue, lifecycle, deposit, and redemption flows.

Example

const earn = await connectTorqEarn({
  publishableKey, deploymentNamespace, wallet, review
});
const products = await earn.catalogue();

Security boundary

Requires an origin-bound publishable key, connected customer wallet, deployment namespace, and explicit prepared-transaction review callback. It never accepts a server secret, private key, arbitrary target, or arbitrary calldata.

See the API Reference for the governed endpoint contract and the workflow guide for canonical completion semantics.