Assembling a Zap transaction is simple to do with the Transaction endpoints. Provide basic details like the token to sell, pool or vault to interact with, and token quantities to send and the API will assemble and return an easy to consume Zap transaction for you to use in apps or smart contracts.
The same patterns shown in these guides can be applied to all of the zaps offered by Zapper
The Yearn Zap In guide demonstrates how to create an easy to consume transaction object for interacting with Zaps with web3 or in your smart contracts directly.
The Sushiswap Zap Out guide goes over how to create and consume a transaction object to enable one click Zap Outs from Sushiswap into ETH or any arbitrary token
The same patterns shown here can be used for any of Zapper's supported platforms.
The Yearn Vault Stats guide shows you how to pull data from the Zapper Data Endpoints. Vault stats includes platforms whose deposits are used for automated farming strategies (e.g. Yearn, Harvest, Pickle, etc.)
The Sushiswap Pool Stats guide shows you how to get pool data from the Zapper Data API. Pool stats includes platforms whose deposits are pooled as liquidity for exchanges (e.g. Sushiswap, Uniswap, Balancer, etc.)
Fetching user balances for Zapper's supported platforms is also possible. Check out the Protocol Balances guide for examples.
The Token Balances API returns a list of tokens for which the account has a balance.
The Prices API returns an easy to consume list of Zapper's supported tokens and their USD prices.
The Gas Price API returns Zapper's current gas prices.