Skip to main content
POST
/
alpha
/
transactions
/
intent
/
getQuote
cURL
curl --request POST \
  --url https://api.vaults.fyi/alpha/transactions/intent/getQuote \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "userAddress": "<string>",
  "inputPosition": {
    "address": "<string>",
    "network": "mainnet",
    "amount": "<string>"
  },
  "outputPosition": {
    "address": "<string>",
    "network": "mainnet"
  },
  "feeToken": {
    "address": "<string>",
    "network": "mainnet"
  },
  "provider": "biconomy"
}
'
{
  "payloadToSign": {
    "domain": {
      "name": "<string>",
      "chainId": 123,
      "verifyingContract": "<string>",
      "version": "<string>"
    },
    "types": {},
    "message": {},
    "primaryType": "<string>"
  },
  "fees": [
    {
      "type": "bridge",
      "token": {
        "address": "<string>",
        "network": "mainnet",
        "decimals": 123
      },
      "amount": "<string>"
    }
  ],
  "totalCost": [
    {
      "address": "<string>",
      "network": "mainnet",
      "decimals": 123,
      "amount": "<string>"
    }
  ],
  "receivedPosition": {
    "address": "<string>",
    "network": "mainnet",
    "decimals": 123,
    "amount": "<string>"
  },
  "setupTransactions": {},
  "expirationTimestamp": 123,
  "originalQuote": "<unknown>"
}

Authorizations

x-api-key
string
header
required

Body

application/json
userAddress
string
required

User wallet address

Pattern: ^0x[a-fA-F0-9]{40}$
inputPosition
object
required

Input position details

outputPosition
object
required

Output position details

feeToken
object
required

Fee token details

provider
enum<string>
required

Provider name

Available options:
biconomy,
rhinestone

Response

Default Response

payloadToSign
object
required

EIP-712 payload for user to sign

fees
object[]
required

Breakdown of all fees

totalCost
object[]
required

Total cost including all fees

receivedPosition
object
required

Position that will be received

setupTransactions
object

Transactions that need to be executed before the intent execution. Grouped by chain ID.

expirationTimestamp
number

Timestamp when the quote expires

originalQuote
any

Original quote data from the intent service