# 一种简单的setApproveForAll未Verify的合约方法 **Published by:** [caiiiyua](https://paragraph.com/@caiiiyua/) **Published on:** 2022-05-06 **URL:** https://paragraph.com/@caiiiyua/setapproveforall-verify ## Content 针对还没有verify的合约,我们可以通过第三方平台进行setApproveForAll的操作,如果不放心通过第三方平台,也可以通过几个简单的步骤为这个合约添加custom ABI来实现在etherscan上来操作。 进入Etherscan上面的customABI设置 进入Custom ABI设置 点击添加contract custom ABI 给合约添加custom ABI 名称可以根据项目来或者随意填写 填写项目合约地址 将setApproveForAll的ABI粘贴进去 点击Add Custom ABI 完成添加 setApproveForAll的Json ABI: [ { "inputs": [ { "internalType": "address", "name": "operator", "type": "address" }, { "internalType": "bool", "name": "approved", "type": "bool" } ], "name": "setApprovalForAll", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ] 点击合约地址或者回到项目合约页面,此时便可以看到 Write Custom的tab,点击它便可以看到刚才添加的setApproveForAll 接下来可以像在verify的合约中调用setApproveForAll一样,点击connect 连接钱包,在operator 处输入自己的OpenSea(或者X2Y2等代理合约地址),在approved处输入1,点击Write便可以发起请求了。 ## Publication Information - [caiiiyua](https://paragraph.com/@caiiiyua/): Publication homepage - [All Posts](https://paragraph.com/@caiiiyua/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@caiiiyua): Subscribe to updates