Create a new SDK instance.
plain object containing all the optional configuration
the asset service does some expensive computation at initialization, passing the state from a previous sdk instance can prevent this
This promise can be optionally awaited to assure that all services have been correctly loaded.
const yearn = new Yearn(1, { provider });
await yearn.ready;
Generated using TypeDoc
Yearn is a wrapper for all the services and interfaces of the SDK.
Yearn namespace can be instantiated as a class or with an asynchronous initializer, providing configuration options that will then be used by all the services and interfaces: