Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Someone here whos into smart contracts, Solidity & ERC-1155 NFT tokens?

Hey peeps. I came across something really interesting by accident and I wanted to ask if someone of you guys can help me. I'm not a dev. I would love to learn how to code, but I haven't started yet. In a chinese TG group of a crypto project I follow, people shared a method how to snipe a NFT sale by executing the contract on the forefront within etherscan.io . The guy shared the contract address where you can access a function called "purchaseNFT" , that only requires you to enter three parameters to purchase the NFT.
1: payable amount in ETH
2: cardId (uint256)
3: _amount (uint256) / the amount of the cards you want to buy

It was a sale of three different NFTs. He provided all three cardId numbers. This is the part I didn't understand. I wasn't able to find this information on my own reading the contract. It looks too complicated to me. I want to know, how did he find the IDs? And the contract address? pls teach me how he did that, I want to learn more about this. 😋 If you think you can help me, slide in my dms.

Thank you ✌
Could you share the contract address if possible?

It's possible that the IDs are marked as private which means you need to read the storage yourself (as opposed to there being a getter function).

Parameter 1 is weird - you don't normally need to specify this amount as you just send this as a plain ether transfer, and the variable msg.value will hold this value.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by MewtwoFeb 2, 2026 04:25 PM 17 400 Feb 2, 2026 04:25 PM
Last Post: Omniscient
by falkengraNov 15, 2025 09:49 AM 0 139 Nov 15, 2025 09:49 AM
Last Post: falkengra
by breadrrNov 3, 2025 06:29 AM 5 228 Nov 3, 2025 06:29 AM
Last Post: emankhan666