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

    Interface MyceliumSDKConfig

    Mycelium SDK configuration Configuration object for initializing the Mycelium SDK

    {
    walletsConfig: {
    embeddedWalletConfig: {
    provider: {
    type: 'privy',
    providerConfig: {
    appId: process.env.NEXT_PUBLIC_PRIVY_APP_ID!,
    appSecret: process.env.NEXT_PUBLIC_PRIVY_APP_SECRET!,
    },
    },
    },
    smartWalletConfig: {
    provider: {
    type: 'default',
    },
    },
    },
    chain: {
    chainId: parseInt(process.env.NEXT_PUBLIC_CHAIN_ID!),
    rpcUrl: process.env.NEXT_PUBLIC_RPC_URL!,
    bundlerUrl: process.env.NEXT_PUBLIC_BUNDLER_URL!,
    },
    protocolsRouterConfig: {
    riskLevel: 'low',
    },
    coinbaseCDPConfig: {
    apiKeyId: process.env.NEXT_PUBLIC_COINBASE_CDP_API_KEY_ID!,
    apiKeySecret: process.env.NEXT_PUBLIC_COINBASE_CDP_API_KEY_SECRET!,
    },
    }
    interface MyceliumSDKConfig {
        chain?: ChainConfig;
        coinbaseCDPConfig?: CoinbaseCDPConfig;
        integratorId: string;
        protocolsRouterConfig?: ProtocolsRouterConfig;
        walletsConfig: WalletConfig;
    }
    Index

    Properties

    chain?: ChainConfig

    Chains to use for the SDK

    If no rpcUrl, bundlerUrl and chain id are not provided, the SDK will use Base chain by default and its public RPC and Bundler URLs

    coinbaseCDPConfig?: CoinbaseCDPConfig

    Coinbase CDP configuration

    The configuration is used to interact with Coinbase CDP API If the configuration is not provided, the Coinbase CDP functionality will be disabled. Calling all Coinbase CDP related methods will throw an error Currently used for on/off ramp functionality for a wallet

    integratorId: string

    Unique identifier for the SDK integrator

    Used for Coinbase CDP API, and internally for tracking the usage of the SDK

    protocolsRouterConfig?: ProtocolsRouterConfig

    Protocols router configuration with different protocol based params

    If an integrator is not provided any requirements, low risk level protocols will be used by default

    walletsConfig: WalletConfig

    Wallet configuration

    Settings for embedded wallets and smart account providers. Currently support only Privy provider with their API keys