POST /v1/intents

The /v1/intents endpoint allows for batch creation of intents for token sniping. This endpoint is useful for setting up multiple intents with varying parameters in a single API call. Same input as POST /v1/intent.


Request

Endpoint

POST https://snipe.merkle.io/v1/intents

Body

[{
  // required
  "chainId": 1,
  "wallet": "<wallet address>",
  "tokenAddress": "<token address>",
  "bribe": "<bribe amount in wei>",
  "buyAmount": "<buy amount in wei>",
  "expiry": 2800998888, // expiry timestamp in seconds
  
  // optional
  "maxBuyTax": 0.2, // between 0 and 1
  "maxSellTax": 0.2, // between 0 and 1
  // the minimum this intent wants to buy, if the max buy
  // is below the minimum, the intent is ignored
  "minIn": "<min in amount in wei>",
  // the minimum out required
  "minOut": "<min out amount in token units>",
  // the minimum liquidity this intent is willing to buy into
  "minLiquidity": "<min liquidity in cents>", // for example 10000 is $100
  // volume based fees
  "feeBps": 100, // 1% fee on the buy amount
  "feeRecipient": "<fee recipient address>",
  // if FOF, the intent is not included in backup bundle
  "firstOrFail": true / false,
  // maximum slippage from launch price
  "maxSlippageBps": 1000, // 10%
  // gas tip in wei (max priority fee per gas)
  "gasTip": "1000000000" // 1 gwei
}, ....]

Response:

Last updated

Was this helpful?