Request Quote
API Documentation for the requesting quotes - don't hesitate to reach out for additional support at support@bindpay.xyz
Endpoint
Headers
Content-Type
application/json
The content type of the request body
x-api-key
Your API key
Your unique API key for authentication
Do you have an API key yet? Register for one here
Request Body
fromChain
string
The chain ID of the source blockchain
fromToken
string
The token address on the source blockchain
fromAddress
string
The wallet address of the payer
usdAmount
string
The transaction amount in USD
Notes
No need to worry about filling in your own settlement details - we use the settlement information you provided within the developer portal - https://app.bindpay.xyz
The fromChain should be a valid chain ID. Refer to the Active Chains documentation for supported networks - Active Chains
The fromToken should be the token address on the source blockchain.
The API uses rate limiting to prevent abuse. You are limited to 10 quote requests per 5 minutes per IP address. Get in touch to increase limit - support@bindpay.xyz
Example Request
Response
The API will respond with a JSON object containing the quote details.
Successful Response
Notes
Quote Provider: The response includes details from the selected quote provider (e.g., LiFi, 1inch, or internal routing).
Approval Transaction: approvalTxParams is only present if token approval is required.
Chain IDs: Refer to Active Chains.
Gas Estimates: Based on current network conditions and may change.
Quote Expiration: Quotes have a limited validity period.
Slippage: The actual received amount may differ due to price fluctuations.
Cross-Chain Transfers: For multi-chain transactions, additional monitoring steps may be required.
Response Variation: Structure may vary slightly based on the selected provider and transfer type (direct or cross-chain).
Best Quote Selection: The API automatically selects the most optimal quote from available providers.
400
Bad Request
The request was invalid or cannot be served. This occurs when the API key is missing or the request body is incomplete.
401
Unauthorized
The request requires authentication. This happens when the API key is invalid.
404
Not Found
The requested resource could not be found. This occurs when the business associated with the API key is not found.
429
Too Many Requests
The user has sent too many requests in a given amount of time. This is triggered by the rate limiter.
500
Internal Server Error
The server encountered an unexpected condition that prevented it from fulfilling the request.
Error Handling
If the API key is missing or invalid, you will receive a 400 or 401 error response.
If the rate limit is exceeded, you will receive a 429 error response.
For other errors, appropriate HTTP status codes and error messages will be returned.
For more information on error handling and response codes, please refer to our Error Handling documentation or get in contact with support@bindpay.xyz.
Last updated