ctx := context.Background()
// 1. Create wallet
wallet, err := client.Wallet.CreateWallet(ctx, ¶tro.CreateWalletRequest{
WalletName: "Operations Wallet",
Description: "Multi-chain operations",
})
// 2. Create accounts on different chains
ethAccount, _ := client.Account.CreateAccount(ctx, ¶tro.CreateAccountRequest{
WalletID: wallet.WalletID,
Chain: "ethereum",
Label: "ETH Deposits",
})
tronAccount, _ := client.Account.CreateAccount(ctx, ¶tro.CreateAccountRequest{
WalletID: wallet.WalletID,
Chain: "tron",
Label: "TRON Deposits",
})
// 3. Add assets
client.Asset.CreateAsset(ctx, ¶tro.CreateAssetRequest{
AccountID: ethAccount.AccountID,
Symbol: "ETH",
Chain: "ethereum",
})
client.Asset.CreateAsset(ctx, ¶tro.CreateAssetRequest{
AccountID: ethAccount.AccountID,
Symbol: "USDT",
Chain: "ethereum",
})
client.Asset.CreateAsset(ctx, ¶tro.CreateAssetRequest{
AccountID: tronAccount.AccountID,
Symbol: "USDT",
})