Skip to main content

Quote a plan purchase and build the unsigned contract call with a relayer and lease pre-filled.

POST 

/v1/subscribe/prepare

Returns a price quote (valid for 120 000 ms, maxPrice == priceMicroUsdc), one unsigned transaction (depositAndSubscribe when USDC must be paid, subscribe when credits cover the price) and the assignment to submit it with. The purchase transaction is relayed free of charge. The quote is stateless: quoteMac is an HMAC over its canonical JSON, and quoteId is derived from the MAC. The same inputs inside one TTL bucket give the same id on either API host, and nothing is stored. 503 CONTRACT_PAUSED while the CoRelayer contract is paused (it is deployed paused), and 503 SWAP_VENUE_PAUSED while the exchange venue is paused. Nothing is built in either case.

Request​

Responses​

Quote + unsigned transaction + assignment.