Creating Wallets
In order to get wallets, please ensure that you have registered and installed the Caishen SDK.
With the Caishen SDK, you can create wallets for:
EVM
Bitcoin
Solana
SUI
XRP

🔍 Get Wallet Info
⚠️ The
privateKeyis only returned ifallowPrivateKeyAccessis enabled in your developer dashboard. You do not need to send the private key back to the server. All you need is{ account, chainType }.
📥 Parameters
chainType
string
✅
Blockchain type (ETHEREUM, SOLANA, etc.)
chainId
number
❌
Optional chain ID (e.g., 1 for Ethereum)
account
number
✅
Account index or identifier
✅ Supported chainTypes:
BITCOIN,SOLANA,ETHEREUM,SUI,APTOS,TONTRON,NEAR,XRP,CARDANO,COSMOS
📘 Example
📚 Type: IWalletAccount

Minimal WalletInput
Used for all cash and swap functions to avoid sending sensitive data.
💸 Token Operations
🚫 Use
MinimalWalletInputwhen possible to reduce sensitive data exposure.
➕ Send Token
📊 Get Balance
🔁 Token Swap
🚫 Do not send the full wallet object. Use only
{ account, chainType }.
🔍 Get Swap Route
🔄 Execute Swap
Last updated