Skip to main content
POST
/
zap
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"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.soulsolidity.com/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
recipient
string
required
user
string
required
chain
enum<string>
required
Available options:
eth,
bnb,
pol,
arb,
lna
lpData
object
required
rpc
string
protocolData
object

Response

Successful response

txData
object
required
swapQuote1
any
swapQuote2
any
lpQuote
object
protocolQuote
object