Quickstart
This quickstart guide will help you get started with the Stablecoin Interoperability Protocol API using the sandbox environment. You'll learn how to set up your environment, initiate a stablecoin transfer, and check the status of the transfer.
Prerequisites
- Access to the API (sign up if you haven't already).
- API keys for authentication (obtained during registration).
Configure Your Environment
- Base URL for Sandbox: Use https://sandbox.interoperabilitylabs.xyz for all API requests during testing.
- Authentication: Include your API key in the header of each request
Authorization: Bearer YOUR_API_KEY
Initiate a Stablecoin Transfer
Start by initiating a transfer from one blockchain to another:
- Endpoint: POST /transfers
curl -X POST "https://sandbox.interoperabilitylabs.xyz/transfers" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"requestId": "123e4567-e89b-12d3-a456-426614174000",
"token": "USDC",
"sourceChain": "Ethereum",
"destinationChain": "Polygon",
"amount": "1000.00",
"sourceWalletAddress": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"destinationWalletAddress": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
}'
Check Transfer Status
After initiating the transfer, you can check its status using:
- Endpoint: POST /transfers
curl -X GET "https://sandbox.interoperabilitylabs.xyz/transfers/123e4567-e89b-12d3-a456-426614174000" \
-H "Authorization: Bearer YOUR_API_KEY"
Estimate Gas Fees
Before finalizing the transfer, estimate the necessary gas fees:
- Endpoint: POST /transfers
curl -X POST "https://sandbox.interoperabilitylabs.xyz/estimate-gas" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"token": "USDC",
"sourceChain": "Ethereum",
"destinationChain": "Polygon",
"amount": "1000.00"
}'
Updated 3 months ago