API Reference
Stellar SDK

Stellar SDK API Reference

Buyer API

ExportPurpose
createVeridexClient(options)Create the recommended Stellar x402 buyer facade
VeridexClientExecute the 402 challenge, sign, attach payment, and retry flow
VeridexClientErrorTyped SDK error with validation, network, payment, provider, and discovery categories
VeridexNetworkstellar:testnet or stellar:pubnet
VeridexPaymentSchemeexact or upto

Discovery and facilitator API

ExportPurpose
createBazaarClient(config) / BazaarClientSearch resources and read provider quality
createFacilitatorClient(config) / FacilitatorClientRead capabilities and submit pre-built signed payloads
createSmartAccountSigner(...)Create a compatible facilitator signer
createUptoStellarClient(options)Create the upto scheme network client

FacilitatorClient is low level and does not perform the HTTP challenge/retry loop.

Provider outcomes and quality

The package exports createProviderOutcome, verifyProviderOutcome, header encoding and decoding, ProviderOutcomeReplayGuard, createProviderAggregate, verifyProviderAggregate, ProviderAggregateClient, and SellerPolicyEngine.

Provider declarations use createProviderQualityExtension(). Settlement integrations can use installProviderOutcomeSettlementEnrichment() and applyProviderOutcomeHeaders().

Errors

Catch VeridexClientError for SDK-level failures. Raw facilitator responses retain x402 invalidReason and errorReason values. Never treat a discovery result or provider-quality score as payment authorization.