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

circle-info

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
chevron-rightExample 1: Creating Wallets on EVM, Bitcoin, Solana, SUI & XRPhashtag
chevron-rightExample 2: Creating Multiple Wallets for a Single Userhashtag
chevron-rightExample 3: Creating EVM Wallets for 10 Usershashtag
chevron-rightExample 4: Creating EVM Wallets for 10 Usershashtag
chevron-rightExample 5: Creating Wallets on EVM, Bitcoin, Solana, SUI & XRP for 10 Usershashtag

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