initLearnCard
One Function to Rule Them All
While there are many init functions that are exposed and that can be used, we recommend instead sticking to the initLearnCard
function.
initLearnCard
is a config-driven, heavily overloaded function, that allows you to construct a wallet flexibly, without sacrificing type safety.
Under the hood, it is simply a map between the config you provide and the init function you would normally need to call, meaning calls like initLearnCard()
and emptyLearnCard()
are identical.
Example Usage
The examples above are not exhaustive of possible ways to instantiate a LearnCard:
For more on initialization with a VC-API, check out the VC-API Plugin.
For more info on instantiating a wallet with a seed, click here.
For more info on instantiating an empty wallet, click here.
Last updated