interface FilsnapProviderProps {
    config: Partial<
        {
            derivationPath: string;
            network: "mainnet"
            | "testnet";
            rpc: { token: string; url: string };
            unit?: { decimals: number; symbol: "FIL" | "tFIL" };
        },
    >;
    reconnectOnMount?: boolean;
    snapId: string;
    snapVersion?: string;
    syncWithProvider?: boolean;
}

Properties

config: Partial<
    {
        derivationPath: string;
        network: "mainnet"
        | "testnet";
        rpc: { token: string; url: string };
        unit?: { decimals: number; symbol: "FIL" | "tFIL" };
    },
>

Snap config

reconnectOnMount?: boolean

Whether to reconnect to previously connected snap on mount

snapId: string
snapVersion?: string
syncWithProvider?: boolean

Sync the snap config with the provider