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

All Caishen wallets come with support for crosschain swaps and sending

It's this easy to create your multichain wallets

🔍 Get Wallet Info

⚠️ The privateKey is only returned if allowPrivateKeyAccess is 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

Name
Type
Required
Description

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, TON

  • TRON, NEAR, XRP, CARDANO, COSMOS


📘 Example

📚 Type: IWalletAccount

Copy your Project Key
Example 1: Creating Wallets on EVM, Bitcoin, Solana, SUI & XRP
Example 2: Creating Multiple Wallets for a Single User
Example 3: Creating EVM Wallets for 10 Users
Example 4: Creating EVM Wallets for 10 Users
Example 5: Creating Wallets on EVM, Bitcoin, Solana, SUI & XRP for 10 Users

Minimal WalletInput

Used for all cash and swap functions to avoid sending sensitive data.


💸 Token Operations

🚫 Use MinimalWalletInput when 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