init
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
---
|
||||
title: accountsChanged
|
||||
description: 监听BUZZUP账号切换
|
||||
---
|
||||
|
||||
|
||||
```js
|
||||
window.ethereum.on('accountsChanged', (e) => {
|
||||
console.log('address',e)
|
||||
});
|
||||
```
|
||||
@@ -0,0 +1,11 @@
|
||||
---
|
||||
title: chainChanged
|
||||
description: 监听BUZZUP网络切换
|
||||
---
|
||||
|
||||
|
||||
```js
|
||||
window.ethereum.on('chainChanged', (e) => {
|
||||
console.log('chainId',e)
|
||||
});
|
||||
```
|
||||
Reference in New Issue
Block a user