Types
This page describes the data types shared that are shared between the different Connect packages.
Networkish
Networkish
Networkish can be a number, a string or an object.
As a number
Type | Description |
---|---|
| Chain ID of a network. |
As a string
Type | Description |
---|---|
`"ethereum" | "rinkeby" |
As an object
Name | Type | Description |
---|---|---|
|
| Chain ID of a network. |
|
| Address of the ENS resolver (optional). If not provided, Connect will attempt to find one that correspond to the chainID. |
|
| Name of the network. It will be passed to ethers.js internally. |
IpfsResolverDeclaration
IpfsResolverDeclaration
IpfsResolverDeclaration can be a string, an object, or a IpfsResolver
instance.
As a string
Type | Description |
---|---|
| URL template containing the |
As an object
Name | Type | Description |
---|---|---|
|
| URL template containing the |
|
| The number of query results to cache. Set to |
Last updated