Hi. I want to show the NFT from custom contract.
The contract is not mine, what should I prepare for show that NFTs?
Feb 22, 2022, 6:43 AM
Any help?
Feb 22, 2022, 8:32 AM
i think there would be no difference if the contract is yours or not
what are you trying? to grab the ipfs url from the erc721 tokens?
Feb 22, 2022, 8:33 AM
yes
ERC721
Feb 22, 2022, 8:37 AM
import the interface in your contract, or create the interface with only the parameters you need and then call the contract like ERC721(token_address).tokenURI (or however the tokenURI variable is called)
something like this, but for ERC721
Feb 22, 2022, 8:39 AM
thanks
Feb 22, 2022, 8:39 AM
this is for ERC20 but it would be the same
np! hope it helps
Feb 22, 2022, 8:39 AM
if I don't know about contract code and I just know contract address and nothing.
How can I show?
How can I show?
Feb 22, 2022, 9:04 AM
its an ERC721 so it has the same methods, just use the ERC721 or IERC721 contract into your own contract and call it like in my last picture
also, isnt the code available on the block explorer? so you can check by yourself to be sure (if the guy didnt verify the contract on the block explorer then i said nothing)
by the way i was playing with selfdestruct a few days ago and if u selfdestruct a contract having ERC20 tokens the ERC20 tokens remains assigned to that address so its like theyre burnt lol
i normally use selfdestruct while testing contracts on rinkeby so i dont need to pray to the faucet to get some ether :)))
yes
not using delegatecalls but IN THEORY it should be like that
i will test when im back from work, now im curious, FOR SCIENCE
Feb 22, 2022, 9:38 AM
You could just use a recoverETH function
Feb 22, 2022, 12:35 PM
it only works for ether (as far as i tested)
Feb 22, 2022, 12:47 PM