wallet_switchEthereumChain
Requests that the wallet switches its active Ethereum chain. Introduced by EIP-3326.
Params
1. chainId (required)
string
Match pattern:^0x[a-fA-F\d]+$
Example
Request
await window.NEOLineNeoX.request({
"method": "wallet_switchEthereumChain",
"params": [
{
"chainId": "0x1"
}
]
});
Result
"null"
最后更新于
这有帮助吗?