getAddress

fun getAddress(asset: Asset, groupId: String): Result<String>

Get the wallet address for a given asset and MPC group.

Derives the blockchain address from the stored public key using chain-specific derivation rules (EVM uses secp256k1 + WalletCore).

Works with both 2-of-2 (keygen) and 2-of-3 (DKG) wallets.

Usage from Flutter:

final address = await sdk.blockchainService.getAddress(ethAsset, groupId);

Return

Result containing the derived address string

Parameters

asset

The asset to derive address for (determines network/chain)

groupId

The MPC group ID