This guide explains how to withdraw funds from Oumla addresses. Withdrawal behavior differs significantly between Bitcoin and Ethereum networks.Documentation Index
Fetch the complete documentation index at: https://docs.oumla.com/llms.txt
Use this file to discover all available pages before exploring further.
Two Ways to Use Oumla: This guide uses the TypeScript SDK. You can also accomplish the same tasks using direct REST API calls - see the API Reference for endpoint details.
Overview
Withdrawals work differently depending on the network:- Bitcoin (BTC/tBTC): Multi-address withdrawal - can withdraw from multiple addresses in one transaction
- Ethereum (ETH/tETH): Single-address withdrawal - withdraws from one address at a time
Prerequisites
Before starting, ensure you have:- An initialized SDK client
- Addresses with sufficient balance
- Your client share (for signing transactions)
- Recipient address ready
Bitcoin Withdrawal (BTC/tBTC)
Bitcoin withdrawals support multi-address withdrawal, meaning you can withdraw from multiple addresses in a single transaction.Step 1: Create Bitcoin Withdrawal
Bitcoin Withdrawal Response
Bitcoin withdrawals return:Bitcoin withdrawals return a withdrawal ID immediately. The transaction is processed asynchronously. Check the blockchain explorer or transaction status for final confirmation.
Ethereum Withdrawal (ETH/tETH)
Ethereum withdrawals work with single addresses only. To withdraw from multiple addresses, make separate withdrawal requests.Step 1: Create Ethereum Withdrawal
Ethereum Withdrawal Response
Ethereum withdrawals return:For Ethereum withdrawals,
data.id contains the transaction hash.Network-Specific Considerations
Bitcoin Networks (BTC/tBTC)
Multi-Address Support:- Can combine funds from multiple addresses
- More efficient for consolidating funds
- Uses UTXO (Unspent Transaction Output) model
- All addresses must belong to your organization
- Sufficient balance across all addresses
- Network fees deducted from total
Ethereum Networks (ETH/tETH)
Single-Address Only:- One address per withdrawal
- Simpler transaction model
- Account-based model
- Address must have sufficient balance
- Gas fees deducted from balance
- Recipient address must be valid Ethereum address
Complete Examples
Bitcoin Withdrawal Example
Ethereum Withdrawal Example
Checking Withdrawal Status
Bitcoin Withdrawals
Bitcoin withdrawals return a withdrawal ID. Check status by:- Blockchain Explorer: Use the withdrawal ID or check addresses on blockchain explorer
- Transaction Monitoring: Monitor the
fromaddresses for outgoing transactions
Ethereum Withdrawals
Ethereum withdrawals return a transaction hash. Check status:Common Issues
Insufficient Balance
Error:ERR_236 - Not enough balance
Causes:
- Address doesn’t have sufficient funds
- Balance doesn’t cover amount + fees
- Check address balance before withdrawal
- Account for network fees in calculations
- For Bitcoin: Ensure total across all addresses is sufficient
Invalid Address Format
Error:ERR_176 - Invalid contract address or validation error
Causes:
- Invalid recipient address format
- Address doesn’t match network
- Verify address format matches network (Bitcoin vs Ethereum)
- Use valid blockchain addresses
- Test addresses on testnet first
Bitcoin: No Unspent Transactions
Error:ERR_226 - No unspent transactions
Causes:
- Address has no UTXOs
- All funds already spent
- Ensure address has received funds
- Wait for transaction confirmations
- Check address balance
Ethereum: Single Address Limitation
Issue: Trying to withdraw from multiple addresses Solution:- Make separate withdrawal requests for each address
- Or consolidate funds to one address first
Best Practices
- Check balances before withdrawal
- Account for fees - network fees are deducted automatically
- Use testnet first to test withdrawal flow
- Verify addresses before sending
- Monitor transactions on blockchain explorer
- Handle errors gracefully - withdrawals can fail
- For Bitcoin: Leverage multi-address withdrawal for efficiency
- For Ethereum: Make separate requests for multiple addresses
Network Comparison
| Feature | Bitcoin (BTC/tBTC) | Ethereum (ETH/tETH) |
|---|---|---|
| Multi-address | ✅ Yes | ❌ No (single address only) |
| Response | Withdrawal ID | Transaction Hash |
| Model | UTXO-based | Account-based |
| Fee Model | Deducted from total | Deducted from balance |
| Confirmation | Check blockchain | Check transaction hash |
Next Steps
- Learn about Tokenization Workflow
- Explore Contract Deployment Workflow
- Review Networks Guide for network-specific details
- Check Error Reference for troubleshooting