Getting Started
Last updated
Was this helpful?
Last updated
Was this helpful?
Install useink
You must set moduleResolution
to nodenext
or bundler
. This feature allows your application to discover multiple import paths defined in the useink package.json
. This is required to use various features defined in paths such as and .
React uses Providers to make state accessible to any child component no matter how deeply nested a component is. To make useink
features available to your application you must wrap your application with UseInkProvider
.
There are two fields to note in the example above: dappName
and chains
. dappName
is the name that is displayed to a user when they are asked to connect their browser wallet for the first time. chains
is an array of chain configurations that your dapp will support. Only chains that are configured here will be accessible to your dApp. useink
provides chain configurations for hundreds of existing chains that you can import from useink/chains
.
You can learn more about .
Next, you can learn how to , or .