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