Integration
Deposit and withdraw
Overview
Ekiden uses a smart contract-based margin bank to custody collateral for trading. Users can deposit multiple supported tokens to the margin bank and withdraw available (free) collateral at any time. All deposits and withdrawals are on-chain but occur on the same network as the Ekiden protocol—no cross-chain bridging is required.
Supported Tokens
Ekiden supports the following tokens as margin collateral:
USDC, USDC, USDe
Check the /tokens endpoint or documentation for the most current list.
Depositing Tokens
Steps
- Ensure Wallet Connection to the correct network
- Approve Token if required via ERC-20 approval transaction
- Call Deposit Endpoint or SDK Method
SDK Methods (Examples)
TypeScript
Python
Notes
Troubleshooting
Coming soon, once the SDK is shipped