NFT Ownership Transfer
The NFT information displayed on external NFT marketplaces such as Opensea is not on-chain information but information managed by the marketplace itself. Therefore, that information cannot be controlled directly through the Octet API.
For this, Octet provides the NFT Contract Method Execution feature. With this feature, you can transfer the contract ownership to a decentralized wallet and then modify the information on the external marketplace.
Refer to the guide below to transfer the ownership of the contract.
Transferring ownership
1. Prepare a decentralized wallet
For security reasons, the Octet main address cannot connect directly to external marketplaces.
Therefore, you need a decentralized wallet (e.g. MetaMask) to connect to the marketplace.
2. Call the API
Call the Request NFT Contract Method Execution API to transfer the ownership of the contract to the wallet from step 1 above.
In the encodedData field, enter the value encoded as transferOwnership(address).
transferOwnership example
- Format: 0xf2fde38b000000000000000000000000
{address without 0x}- Example: If the address to transfer ownership to is 0xBd3B720BEa077a9DeE847CdFa64DdBE561c9EBB8, the encoded value is as follows.
0xf2fde38b000000000000000000000000Bd3B720BEa077a9DeE847CdFa64DdBE561c9EBB8
3. Connect to the marketplace
Connect to the admin page of the external marketplace with the wallet from step 1 above and modify the NFT information.
🚧 You can still mint NFTs from Octet after transferring ownership.
Octet contracts separate the minting permission. Therefore, even if the ownership is transferred using the method above, the NFT minting permission remains with the Octet main address, so you can mint NFTs from Octet normally.
Taking ownership back
You can transfer the ownership that was transferred to the decentralized wallet back to the Octet main address. However, since this is control over an external address, it cannot be done through the Octet API.
- Generate a transaction that executes the transferOwnership(address) function from the decentralized wallet that holds the ownership.
- Sign the transaction with the private key of the decentralized wallet and propagate it to the network.