Base URL:
https://stacks.aboki.xyzAPI Specification
🌉 Cross-Chain Bridge Endpoints
Explore the complete OpenAPI specification for all bridge operations, including request/response schemas, authentication requirements, and interactive endpoint testing.View OpenAPI Specification →The specification includes:
- Bridge operations (Ethereum ↔ Stacks)
- Wallet information endpoints
- Health check and monitoring
- Detailed request/response examples
- Interactive API testing interface
Authentication
This API currently operates without authentication for testnet development purposes. All endpoints are publicly accessible to facilitate testing and integration.Future Authentication
Authentication will be required for:- All bridge operations
- Wallet balance queries
- Session management
Current Testnet Access
For now, simply make HTTP requests to any endpoint without authentication headers:Network Status
- Ethereum: Sepolia Testnet → Mainnet deployment planned
- Stacks: Stacks Testnet → Mainnet deployment planned
- Tokens: Test USDC/USDCx → Real USDC/USDCx on mainnet launch
This API currently operates on testnets only. All tokens are for testing purposes and have no real value. Mainnet support is coming soon - stay tuned for updates.
Why Use This API?
Zero Gas Fees
CDP sponsors all Ethereum transaction costs
Fully Automated
Deposits trigger automatic bridge execution
Production-Ready
Built on Circle’s CCTP standard
Developer Friendly
RESTful API with comprehensive Swagger documentation
Key Features
⛽ Gasless Transactions
All Ethereum gas fees are sponsored by Coinbase Developer Platform (CDP) - users pay $0 for transaction execution.🤖 Automated Bridge Execution
- Ethereum → Stacks: Auto-detects deposits every 15 seconds
- Stacks → Ethereum: Auto-detects deposits every 10 seconds
- No manual transaction triggering required
📊 Real-time Status Tracking
Monitor your bridge transactions at every step:- Wallet creation
- Deposit confirmation
- Approval & execution
- Minting/burning
- Completion
🏦 Smart Wallet Management
Automatic creation and management of gasless smart wallets and temporary Stacks wallets for seamless bridging.Quick Example
Bridge USDC from Ethereum to Stacks
Deposit USDC
Response includes a
depositAddress - send your USDC there and the bridge executes automatically.How It Works
- Ethereum → Stacks
- Stacks → Ethereum
USDC to USDCx Bridge Flow
- Wallet Creation: API creates a gasless smart wallet via CDP
- User Deposits: You send USDC to the wallet address
- Auto-Approval: Bridge approves USDC for xReserve contract
- Deposit to xReserve: USDC deposited to Circle’s CCTP contract
- Minting: USDCx is minted on Stacks to your recipient address
Total Time: ~15-20 minutes
User Gas Cost: $0 (CDP sponsored)
User Gas Cost: $0 (CDP sponsored)
Important Concepts
Smart Wallet
Smart Wallet
A gasless Ethereum wallet created via Coinbase Developer Platform (CDP) that sponsors all transaction fees. Users never pay for gas on Ethereum transactions.
Bridge Session
Bridge Session
A tracked cross-chain transfer with a unique session ID. Each session monitors the entire lifecycle from deposit to completion.
xReserve Contract
xReserve Contract
Circle’s Cross-Chain Transfer Protocol (CCTP) contract that handles cross-chain USDC transfers between supported chains.
USDCx
USDCx
The Stacks-native representation of USDC. Fully backed 1:1 by USDC through Circle’s CCTP protocol.
Auto-execution
Auto-execution
Deposits are automatically detected every 10-15 seconds. Once sufficient funds are detected, the bridge executes all remaining steps without user intervention.
Prerequisites
- Ethereum → Stacks
- Stacks → Ethereum
Requirements
- USDC on Ethereum Sepolia testnet
- A Stacks wallet address to receive USDCx
- Minimum amount: 0.01 USDC (or more, depending on your needs)
Get Testnet Tokens
Sepolia ETH
Get test ETH for Sepolia
Sepolia USDC
Get test USDC from Circle
Stacks STX
Get test STX tokens
Expected Timings
| Operation | Duration |
|---|---|
| Ethereum → Stacks | 15-20 minutes total |
| Stacks → Ethereum | 15-20 minutes total |
| Deposit Detection | Every 10-15 seconds |
| Transaction Confirmation | Varies by network (2-5 minutes) |
| CCTP Message Processing | 10-15 minutes |
Times may vary based on network congestion and blockchain confirmation speeds.
API Endpoints Overview
| Endpoint | Method | Purpose |
|---|---|---|
/api/bridge/eth-to-stacks | POST | Initiate Ethereum → Stacks bridge |
/api/bridge/initiate-stacks-to-eth | POST | Initiate Stacks → Ethereum bridge |
/api/bridge/status/:sessionId | GET | Check bridge session status |
/api/wallet/ethereum | GET | View Ethereum wallet balance |
/api/wallet/stacks | GET | View Stacks wallet balance |
/api/health | GET | API health check |
Getting Started
Set up your environment
Ensure you have access to
https://stacks.aboki.xyz or are running the API locallyResources
Interactive API Docs
Swagger UI for testing endpoints
Circle CCTP Docs
Learn about Cross-Chain Transfer Protocol
CDP Smart Wallet Guide
Gasless wallet documentation
Stacks Documentation
Learn about Stacks blockchain
