@mycelium-sdk/core
    Preparing search index...

    Class MyceliumSDK

    Main SDK facade for integrating wallets and protocols.

    This class encapsulates:

    • protocol selection and initialization (Smart Router),
    • chain/network management (ChainManager),
    • public wallet namespace (accessible through wallet).

    By default, if no chain config is provided, it uses the public RPC and Bundler for the Base chain

    import { MyceliumSDK, type MyceliumSDKConfig } from '@mycelium-sdk/core';

    const config: MyceliumSDKConfig = {
    walletsConfig: { /* ... */ },
    protocolsRouterConfig: { /* ... */ },
    chain: { /* ... */ },
    coinbaseCDPConfig: { /* ... */ },
    integratorId: 'MyceliumApp',
    };

    const sdk = new MyceliumSDK(config);

    const {embeddedWalletId, smartWallet} = await sdk.wallet.createAccount();
    const balance = await smartWallet.getBalance();
    Index

    Other

    Tools

    • get chainManager(): ChainManager

      Returns the chain manager instance for multi-chain operations

      Returns ChainManager

      ChainManager instance of the type ChainManager

      More about methods in ChainManager

    Wallets

    Returns a unified wallet namespace to manage embedded/smart wallets and related operations