curl --request POST \
--url https://quotes.eco.com/api/v3/quotes/initiateGaslessIntent \
--header 'Content-Type: application/json' \
--data '
{
"intentGroupID": "group:01234567-89ab-cdef-0123-456789abcdef",
"dAppID": "my-dapp",
"intentEntries": [
{
"routeData": {
"originChainID": "8453",
"destinationChainID": "10",
"inboxContract": "0x123abc456def789012345678901234567890abcd",
"tokens": [
{
"token": "0xA0b86a33E6441446C1c3df4c64B739C7e4a81ec0",
"amount": "1000000"
}
],
"calls": [
{
"target": "0x742d35Cc6634C0532925a3b8D56C85e83F9D18Fa",
"data": "0xa9059cbb000000000000000000000000742d35cc6634c0532925a3b8d56c85e83f9d18fa0000000000000000000000000000000000000000000000000000000000989680",
"value": "0"
}
],
"salt": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
},
"rewardData": {
"creator": "0x742d35Cc6634C0532925a3b8D56C85e83F9D18Fa",
"proverContract": "0x1234567890abcdef1234567890abcdef12345678",
"deadline": "1699123456",
"nativeValue": "0",
"tokens": [
{
"token": "0xA0b86a33E6441446C1c3df4c64B739C7e4a81ec0",
"amount": "1000000"
}
]
},
"quoteID": "quote:01234567-89ab-cdef-0123-456789abcdef",
"solverID": "0x742d35Cc6634C0532925a3b8D56C85e83F9D18Fa",
"salt": "<string>"
}
],
"gaslessIntentData": {
"permit3": {
"chainId": 1,
"permitContract": "0x1234567890123456789012345678901234567890",
"owner": "0x0987654321098765432109876543210987654321",
"salt": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"signature": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1b",
"deadline": "1234567890",
"timestamp": 1234567890,
"merkleRoot": "0xabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcd",
"leaves": [
"0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab",
"0xfedcba0987654321fedcba0987654321fedcba0987654321fedcba0987654321"
],
"allowanceOrTransfers": [
{
"chainID": 1,
"modeOrExpiration": 0,
"tokenKey": "0xA0b86a33E6441B8Ec2c8C7E5b0d77D5FdDa0c4E4",
"account": "0x742d35cc6634c0532925a3b8b0eff6a2db3b51a",
"amountDelta": "1000000000000000000"
}
]
},
"allowPartial": false
}
}
'{
"data": {
"successes": [
{
"chainID": 1,
"quoteIDs": [
"quote_abc123def456",
"quote_ghi789jkl012"
],
"transactionHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"error": {
"message": "Insufficient balance",
"code": "INSUFFICIENT_FUNDS"
}
}
],
"failures": [
{
"chainID": 1,
"quoteIDs": [
"quote_abc123def456",
"quote_ghi789jkl012"
],
"transactionHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"error": {
"message": "Insufficient balance",
"code": "INSUFFICIENT_FUNDS"
}
}
]
}
}Submit a gasless intent transaction using a previously obtained quote. This endpoint initiates the gasless execution of an intent with the specified solver.
curl --request POST \
--url https://quotes.eco.com/api/v3/quotes/initiateGaslessIntent \
--header 'Content-Type: application/json' \
--data '
{
"intentGroupID": "group:01234567-89ab-cdef-0123-456789abcdef",
"dAppID": "my-dapp",
"intentEntries": [
{
"routeData": {
"originChainID": "8453",
"destinationChainID": "10",
"inboxContract": "0x123abc456def789012345678901234567890abcd",
"tokens": [
{
"token": "0xA0b86a33E6441446C1c3df4c64B739C7e4a81ec0",
"amount": "1000000"
}
],
"calls": [
{
"target": "0x742d35Cc6634C0532925a3b8D56C85e83F9D18Fa",
"data": "0xa9059cbb000000000000000000000000742d35cc6634c0532925a3b8d56c85e83f9d18fa0000000000000000000000000000000000000000000000000000000000989680",
"value": "0"
}
],
"salt": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
},
"rewardData": {
"creator": "0x742d35Cc6634C0532925a3b8D56C85e83F9D18Fa",
"proverContract": "0x1234567890abcdef1234567890abcdef12345678",
"deadline": "1699123456",
"nativeValue": "0",
"tokens": [
{
"token": "0xA0b86a33E6441446C1c3df4c64B739C7e4a81ec0",
"amount": "1000000"
}
]
},
"quoteID": "quote:01234567-89ab-cdef-0123-456789abcdef",
"solverID": "0x742d35Cc6634C0532925a3b8D56C85e83F9D18Fa",
"salt": "<string>"
}
],
"gaslessIntentData": {
"permit3": {
"chainId": 1,
"permitContract": "0x1234567890123456789012345678901234567890",
"owner": "0x0987654321098765432109876543210987654321",
"salt": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"signature": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1b",
"deadline": "1234567890",
"timestamp": 1234567890,
"merkleRoot": "0xabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcd",
"leaves": [
"0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab",
"0xfedcba0987654321fedcba0987654321fedcba0987654321fedcba0987654321"
],
"allowanceOrTransfers": [
{
"chainID": 1,
"modeOrExpiration": 0,
"tokenKey": "0xA0b86a33E6441B8Ec2c8C7E5b0d77D5FdDa0c4E4",
"account": "0x742d35cc6634c0532925a3b8b0eff6a2db3b51a",
"amountDelta": "1000000000000000000"
}
]
},
"allowPartial": false
}
}
'{
"data": {
"successes": [
{
"chainID": 1,
"quoteIDs": [
"quote_abc123def456",
"quote_ghi789jkl012"
],
"transactionHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"error": {
"message": "Insufficient balance",
"code": "INSUFFICIENT_FUNDS"
}
}
],
"failures": [
{
"chainID": 1,
"quoteIDs": [
"quote_abc123def456",
"quote_ghi789jkl012"
],
"transactionHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"error": {
"message": "Insufficient balance",
"code": "INSUFFICIENT_FUNDS"
}
}
]
}
}Unique identifier of the group of intents being used
"group:01234567-89ab-cdef-0123-456789abcdef"
Identifier for the client application initiating the gasless intent
"my-dapp"
Array of intent request entries
Show child attributes
Route configuration specifying source and destination chains and transfer details
Show child attributes
Chain ID where the intent originates
"8453"
Chain ID where the intent will be executed
"10"
Address of the inbox contract on the destination chain
"0x123abc456def789012345678901234567890abcd"
Array of ERC20 tokens and amounts involved in the destination calls
Show child attributes
Array of contract calls to be executed on the destination chain
Show child attributes
Address of the contract to call or recipient for native token transfers
"0x742d35Cc6634C0532925a3b8D56C85e83F9D18Fa"
Encoded function call data or empty for native token transfers
"0xa9059cbb000000000000000000000000742d35cc6634c0532925a3b8d56c85e83f9d18fa0000000000000000000000000000000000000000000000000000000000989680"
Native token value to send with the call (in wei)
"0"
Salt for the intent (used when initiating gasless intents or publishing on-chain, set to '0x0' for quote requests)
"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
Reward configuration defining tokens and amounts offered to solvers for executing the intent
Show child attributes
Address of the user creating this intent, this will be the recipient of a refund if the intent expires
"0x742d35Cc6634C0532925a3b8D56C85e83F9D18Fa"
Address of the prover contract that validates intent execution
"0x1234567890abcdef1234567890abcdef12345678"
Unix timestamp deadline for when this intent expires (in seconds)
"1699123456"
Native token amount offered (in wei)
"0"
Array of ERC20 tokens and amounts offered on the origin chain for fulfilling the intent
Show child attributes
Unique identifier of the quote being used to initiate the gasless intent
"quote:01234567-89ab-cdef-0123-456789abcdef"
Address of the solver that provided the quote
"0x742d35Cc6634C0532925a3b8D56C85e83F9D18Fa"
Gasless intent configuration containing permit signatures and execution parameters
Show child attributes
Permit3 signature data for multi-chain token approvals
Show child attributes
The original chain ID from the signature
1
Address of the Permit3 contract
"0x1234567890123456789012345678901234567890"
Owner address of the tokens being permitted
"0x0987654321098765432109876543210987654321"
Unique salt value for the permit signature
"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
Cryptographic signature for the permit
"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1b"
Expiration timestamp for the permit signature
"1234567890"
Unix timestamp when the permit was created
1234567890
Merkle root hash representing all chain permit leaves
"0xabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcd"
Array of merkle tree leaf hashes for multi-chain permits
[
"0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab",
"0xfedcba0987654321fedcba0987654321fedcba0987654321fedcba0987654321"
]Array of allowance or transfer data organized by chain for multi-chain permits
Show child attributes
The chain ID where the allowance or transfer occurs
1
Mode for allowance (0) or expiration timestamp for transfer
0
Token contract address
"0xA0b86a33E6441B8Ec2c8C7E5b0d77D5FdDa0c4E4"
Account address for the allowance or transfer
"0x742d35cc6634c0532925a3b8b0eff6a2db3b51a"
Amount delta for the allowance or transfer (in wei)
"1000000000000000000"
Whether to allow partial funding of the intent
false
Successfully initiated gasless intent transaction
Gasless intent execution response data
Show child attributes
Array of successfully initiated gasless intent executions
Show child attributes
Chain ID where the gasless intent was executed
1
Array of quote IDs associated with this execution
["quote_abc123def456", "quote_ghi789jkl012"]Transaction hash of the executed gasless intent
"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
Error details if the gasless intent execution failed
{
"message": "Insufficient balance",
"code": "INSUFFICIENT_FUNDS"
}Array of failed gasless intent execution attempts with error details
Show child attributes
Chain ID where the gasless intent was executed
1
Array of quote IDs associated with this execution
["quote_abc123def456", "quote_ghi789jkl012"]Transaction hash of the executed gasless intent
"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
Error details if the gasless intent execution failed
{
"message": "Insufficient balance",
"code": "INSUFFICIENT_FUNDS"
}