Transaction Status
API Documentation for checking transaction status - don't hesitate to reach out for additional support at [email protected]
Endpoint
GET https://api.bindpay.xyz/v1/statusAuthentication
Include your API key in the request headers:
x-api-key: your_api_keyQuery Parameters
transactionId
string
No
The transaction ID returned from the quote request
sourceHash
string
No
The source transaction hash
destinationHash
string
No
The destination transaction hash
Notes
At least one of these parameters must be provided
TransactionId is returned at the top of each quote request.
Example Request
# Using Transaction ID
curl -X GET "https://api.bindpay.xyz/v1/status?transactionId=67299f9f617d20cb18b37640" \
-H "x-api-key: your_api_key"
# Using Source Hash
curl -X GET "https://api.bindpay.xyz/v1/status?sourceHash=0x123..." \
-H "x-api-key: your_api_key"
# Using Destination Hash
curl -X GET "https://api.bindpay.xyz/v1/status?destinationHash=0x456..." \
-H "x-api-key: your_api_key"import requests
def get_transaction_status(api_key, transaction_id=None, source_hash=None, destination_hash=None):
url = "https://api.bindpay.xyz/v1/status"
headers = {
"x-api-key": api_key
}
params = {}
if transaction_id:
params["transactionId"] = transaction_id
elif source_hash:
params["sourceHash"] = source_hash
elif destination_hash:
params["destinationHash"] = destination_hash
response = requests.get(url, headers=headers, params=params)
return response.json()
# Example usage
api_key = "your_api_key"
result = get_transaction_status(api_key, transaction_id="67299f9f617d20cb18b37640")
print(result)Response
The API will respond with a JSON object containing the transaction details and status.
Successful Response
Transaction Status Types
Pending
Transaction is being processed
Completed
Transaction has been successfully completed
Failed
Transaction has failed
Error Codes
400
Bad Request
Missing required parameters
404
Not Found
Transaction not found
500
Internal Server Error
Server error
Example Error Response
Error Handling
All timestamps are in ISO 8601 format
Transaction hashes are only present after the transaction is processed
The API uses rate limiting (100 requests per 15 minutes per IP)
For cross-chain transfers, both source and destination hashes may be present
For direct transfers, only sourceTransactionHash will be present when completed
For more information on error handling and response codes, please refer to our Error Handling documentation or get in contact with [email protected].
Last updated