Skip to main content
POST
/
api
/
v2
/
intentInitiation
/
initiateGaslessIntent
Initiate Gasless Intent
curl --request POST \
  --url https://api.example.com/api/v2/intentInitiation/initiateGaslessIntent \
  --header 'Content-Type: application/json' \
  --data '
{
  "intentGroupID": "<string>",
  "dAppID": "<string>",
  "intents": [
    "<string>"
  ],
  "gaslessIntentData": {
    "permit3": {
      "chainId": 1,
      "permitContract": "0x1234567890123456789012345678901234567890",
      "owner": "0x0987654321098765432109876543210987654321",
      "salt": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
      "signature": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1b",
      "deadline": 1699999999,
      "timestamp": 1699988888,
      "merkleRoot": "0xabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcd",
      "leaves": [
        "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
        "0xfedcba0987654321fedcba0987654321fedcba0987654321fedcba0987654321"
      ],
      "allowanceOrTransfers": [
        {
          "chainID": 1,
          "modeOrExpiration": 0,
          "tokenKey": "0x000000000000000000000000a0b86a33e6441b8ec2c8c7e5b0d77d5fdda0c4e4",
          "account": "0x742d35cc6634c0532925a3b8b0eff6a2db3b51a",
          "amountDelta": "1000000000000000000"
        }
      ]
    },
    "allowPartial": false
  }
}
'
{
  "successes": [
    "<string>"
  ],
  "failures": [
    "<string>"
  ]
}

Body

application/json
intentGroupID
string
required
dAppID
string
required
intents
string[]
required
gaslessIntentData
object
required

Response

default - application/json
successes
string[]
required
failures
string[]
required