web3
Programmatically disconnect MetaMask / Wagmi shimDisconnect 实现
最近花了些时间研究了下 MetaMask 连接无法切换账户的问题。之前一直因为官方文档没有提供对应的 api,以为不支持,后来观察到 Wagmi 通过 shimDisconnect 特性实验性支持了 programmatically disconnect。研究了一下它的源码…
知识备忘录:第一周(EIP6963、Typescript Version)
一、EIP6963 问题介绍
我们在连接某些网站的时候,明明点击的是 Metamask 登录,弹出来的却是 OKX Wallet 或者其他钱包的登录框。这是因为当前网站是基于老的 EIP-1193 获取到的全局 window.ethereum 对象进行链上操作…