Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ You can put your own etherscan.io API_Key in :
self.API_TOKEN = "_Your_API_Token"
```
For more info about etherscan API_Key please visit this link: [etherscan.io](https://etherscan.io/myapikey)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

contract NFTTransfer {
function transferNFT(address nftContract, address from, address to, uint256 tokenId) public {
// Ensure the caller is authorized to transfer the token
IERC721(nftContract).transferFrom(from, to, tokenId);
}
}