cURL
curl --request POST \ --url http://localhost:3000/zap \ --header 'Content-Type: application/json' \ --data ' { "recipient": "<string>", "user": "<string>", "chain": "eth", "lpData": { "lpType": "univ2", "fromToken": "<string>", "fromAmount": "<string>", "lpAddress": "<string>", "router": "<string>", "slippage": 1 }, "rpc": "<string>" } '
{ "txData": { "to": "<string>", "data": "<string>", "from": "<string>" }, "swapQuote1": "<unknown>", "swapQuote2": "<unknown>", "lpQuote": { "lpAddress": "<string>", "token0": { "address": "<string>", "fromAmountEstimate": "<string>", "fromAmountMin": "<string>", "fromAmountUSD": "<string>" }, "token1": { "address": "<string>", "fromAmountEstimate": "<string>", "fromAmountMin": "<string>", "fromAmountUSD": "<string>" }, "fromAmountUSD": 123, "toAmountEstimate": "<string>", "toAmountUSD": 123 }, "protocolQuote": { "protocol": "ApeBond" } }
Obtain the tx data for a zap
Documentation IndexFetch the complete documentation index at: https://docs.soulsolidity.com/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.soulsolidity.com/llms.txt
Use this file to discover all available pages before exploring further.
eth
bnb
pol
arb
lna
Show child attributes
Successful response