Crypto API Service
Crypto API Service is a FastAPI-based backend API for managing cryptocurrency assets and transactions. It is designed for developers who need a fast, stable, and easy-to-integrate crypto service. Key Features: Send native tokens such as SOL, ETH, TRX, BNB, MATIC, and more Send ERC20, SPL, and TRC20 tokens Check wallet balances Validate wallet addresses Estimate transaction fees (gas or fees)…
Crypto API Service endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST |
send_usdc_endpoint_api_v1_crypto_send_usdc_post /api/v1/crypto/send/usdc |
Endpoint untuk mengirim USDC ke wallet tujuan melalui chain ETH/BSC/TRX |
| POST |
swap_tokens_api_v1_crypto_swap_simulasi_post /api/v1/crypto/swap/simulasi |
Simulasi Swap token dari satu jenis ke jenis lain berdasarkan harga real-time CoinGecko |
| GET |
get_wallet_balance_api_v1_crypto_balance_get /api/v1/crypto/balance |
Cek saldo wallet per chain. User harus input RPC URL sendiri (bisa mainnet atau testnet) |
| GET |
get_tx_status_api_v1_crypto_tx_status_get /api/v1/crypto/tx_status |
Cek status transaksi berdasarkan tx_hash chain: "eth", "bnb", "polygon", "sol", "trx" |
| GET |
ping_api_v1_crypto_ping_get /api/v1/crypto/ping |
Cek status API |
| GET |
estimate_gas_api_v1_crypto_estimate_gas_get /api/v1/crypto/estimate-gas |
Estimasi biaya gas untuk transaksi token tertentu |
| POST |
send_native_token_api_v1_crypto_send_native_post /api/v1/crypto/send/native |
Endpoint untuk mengirim native token seperti SOL, ETH, BNB, atau BASE ke wallet tujuan |
| GET |
get_token_info_api_v1_crypto_token_info_get /api/v1/crypto/token_info |
Ambil metadata token dari CoinGecko secara real-time. User bisa pakai alias populer: sol -> solana, eth -> ethereum, dll. |
| GET |
get_token_price_api_v1_crypto_price_get /api/v1/crypto/price |
Dapatkan harga real-time token dalam IDR |
| POST |
send_usdt_endpoint_api_v1_crypto_send_usdt_post /api/v1/crypto/send/usdt |
Endpoint untuk mengirim USDT ke wallet tujuan melalui chain ETH/BSC/TRX |
| GET |
get_supported_tokens_api_v1_crypto_tokens_get /api/v1/crypto/tokens |
Endpoint untuk menampilkan daftar token/blockchain yang didukung API ini. Digunakan untuk memastikan client mengetahui token apa saja yang dapat digunakan pada fitur swap, kirim… |
| GET |
get_wallet_balance_api_v1_crypto_balance_get /api/v1/crypto/balance |
Cek saldo wallet per chain. User harus input RPC URL sendiri (bisa mainnet atau testnet) |
| GET |
get_supported_tokens_api_v1_crypto_tokens_get /api/v1/crypto/tokens |
Endpoint untuk menampilkan daftar token/blockchain yang didukung API ini. Digunakan untuk memastikan client mengetahui token apa saja yang dapat digunakan pada fitur swap, kirim… |
| GET |
get_tx_status_api_v1_crypto_tx_status_get /api/v1/crypto/tx_status |
Cek status transaksi berdasarkan tx_hash chain: "eth", "bnb", "polygon", "sol", "trx" |
| GET |
get_token_info_api_v1_crypto_token_info_get /api/v1/crypto/token_info |
Ambil metadata token dari CoinGecko secara real-time. User bisa pakai alias populer: sol -> solana, eth -> ethereum, dll. |
| GET |
estimate_gas_api_v1_crypto_estimate_gas_get /api/v1/crypto/estimate-gas |
Estimasi biaya gas untuk transaksi token tertentu |
| POST |
swap_tokens_api_v1_crypto_swap_simulasi_post /api/v1/crypto/swap/simulasi |
Simulasi Swap token dari satu jenis ke jenis lain berdasarkan harga real-time CoinGecko |
| GET |
get_token_price_api_v1_crypto_price_get /api/v1/crypto/price |
Dapatkan harga real-time token dalam IDR |
| GET |
ping_api_v1_crypto_ping_get /api/v1/crypto/ping |
Cek status API |
| POST |
send_native_token_api_v1_crypto_send_native_post /api/v1/crypto/send/native |
Endpoint untuk mengirim native token seperti SOL, ETH, BNB, atau BASE ke wallet tujuan |