# NFT如何提前授权，第一时间在opensea上挂单卖出

By [expoap.eth](https://paragraph.com/@expoap-eth) · 2022-08-08

---

打开opeasea的合约地址 0xa5409ec958C83C3f309868babACA7c86DCB077c1

[https://etherscan.io/address/0xa5409ec958c83c3f309868babaca7c86dcb077c1#readContract](https://etherscan.io/address/0xa5409ec958c83c3f309868babaca7c86dcb077c1#readContract)

输入你的钱包地址，就会获得你注册opensea时的合约地址

![](https://storage.googleapis.com/papyrus_images/3988c816a1785b228b8d122b400c7e6dab7cdefcef08c7c24c40cf0dd5f2182d.png)

以授权pxn为例，0x160C404B2b49CBC3240055CEaEE026df1e8497A0

[https://etherscan.io/address/0x160C404B2b49CBC3240055CEaEE026df1e8497A0#writeContract](https://etherscan.io/address/0x160C404B2b49CBC3240055CEaEE026df1e8497A0#writeContract)

连接metamask，第一行填写刚才的合约地址，第二行填写true，发送交易，即可完成提前授权

![](https://storage.googleapis.com/papyrus_images/bb43035ead199a37d100c0f19fa0c2c0dca08ccb3a0c4e1e324d9c708c31cb88.png)

更新一下，没有开源的合约如何进行授权

找到你需要授权的nft合约地址，还是以上面的pxn为例

打开小狐狸，发送地址写pxn的合约地址，金额写0

![](https://storage.googleapis.com/papyrus_images/4876f165332c7cdfb9cd0e6c5f6233e813cb560c586008e326203eddfb65e2f2.png)

发送data

0xa22cb465000000000000000000000000这里替换第一步你自己的合约地址0000000000000000000000000000000000000000000000000000000000000001

注意上面的data需要去掉0x，举例，如果你读取到的合约地址是

0xa5409ec958c83c3f309868babaca7c86dcb077c1

那么你应该发送的data的数据为：

0xa22cb465000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000000000000000000000000000000000000000001

---

*Originally published on [expoap.eth](https://paragraph.com/@expoap-eth/nft-opensea)*
