참고: 이 페이지는 아직 한국어로 번역되지 않았습니다. 아래는 영어 원문입니다.A Network provides access to a chain’s properties and allows for plug-ins to extend functionality.
name
and chainId
.
Parameter | Type | Description |
---|---|---|
name | string | The network name. |
chainId | BigNumberish | The network chain ID. |
Network
Parameter | Type | Description |
---|---|---|
value | BigNumberish | The new network chain ID. |
bigint
The network chain ID.
Parameter | Type | Description |
---|---|---|
value | string | The new network name. |
string
The network name.
Network
A new Network instance.
any
The JSON representation of the network.
network
name or chainId.
Parameter | Type | Description |
---|---|---|
network ? | Networkish | The network to get. |
Network
The Network instance.
nameOrChainId
with a function which returns an instance of a Network representing that chain.
Parameter | Type | Description |
---|---|---|
nameOrChainId | string | number | bigint | The name or chain ID to register. |
networkFunc | () => Network | The function to create the Network. |
void
nameOrChainId
.