← All Recipes
Bazantic // Recipe
Price a swap on data you actually verified
price-a-swap-on-data-you-actually-verified
Chains two sponsor services into one agent task. Receipt buys a live token-holdings snapshot under machine-checkable acceptance terms and escrows the payment on Hedera, releasing it only if the response passes every check the buyer signed - a non-empty holdings array, real contract addresses, integer amounts, and a snapshot fresh within the hour. 1inch then builds a real Classic Swap route for the largest verified holding. The result depends on both: without Receipt the swap would be priced against numbers nobody checked, and without 1inch there is no route. If the holdings data fails its terms the payment is refunded automatically and NO swap is quoted, because a route built on unverified data is worse than no route at all.
Recipe inputs
Complete fields before a run.
Contract address of the token to swap into, e.g. WETH.
URL of the priced holdings endpoint to buy through Receipt.