For Clients
When you make an x402 payment through the Dexter facilitator, the settlement response may include sponsored recommendations — relevant tools or APIs suggested by advertisers. The SDK provides typed helpers to extract and act on these recommendations.
Node.js
React
The useX402Payment hook automatically populates sponsoredRecommendations after a payment completes and fires the impression beacon.
Full Extension Data
For advanced use cases, getSponsoredAccessInfo() returns the complete extension payload including tracking URLs:
Types
All types are re-exported from @dexterai/x402-ads-types:
How Conversions Work
If an agent sees a recommendation and calls the suggested resource, the facilitator automatically detects this and records a conversion. No extra code is needed — the correlation is based on:
- Same payer wallet
- Called the recommended resource URL
- Within a 30-minute window of seeing the recommendation
- Both transactions are on-chain, providing cryptographic proof