Overview
This guide demonstrates how to use the OneShot SDK to perform a real-world commercial action: sending an email from a provisioned domain.Prerequisites
- A cryptographic wallet
- Compatible tokens on a supported chain
1
Get a Quote
First, get a pricing quote for sending an email:Response:
2
Handle 402 Payment Required
When you call the API without payment, it returns a Create a cryptographic transfer authorization using the payment info:
402 Payment Required response with all the payment details:3
Send Email
Use the quote ID and payment proof to send the email:Response:
4
Poll for Replies
Check for inbound emails (replies):Response: