Good evening solidity devs .
Please is there any way I could get all the list of NFTs on a wallet address with just web3.js..
I know how to do it with moralis, rariable and opensea api.. though..

I wanted to just be on web3 majorly

Jul 8, 2022, 9:53 PM
Through web3.js you might filter for the Transfer event of erc721/erc1155 but accuracy might not be great
Using an api for that might be more convenient
Jul 8, 2022, 10:05 PM
Wow thanks a lot sir... I appreciate ur support
Jul 8, 2022, 10:35 PM
tokenOfOwnerByIndex()
Jul 8, 2022, 10:36 PM
Wow... Web3??
Jul 8, 2022, 10:39 PM
thats the call you want to make to the contract using web3.
thats the method, if the nft is erc721 etc
ive created a gallery of react components to do this, thats the method I use
and its in production and working nicely
that gets the ID, then use that to load the metadata.json
to get the uri etc.
Jul 8, 2022, 10:40 PM
that's not standard erc721 but an optional extension, erc721 enumerable, and that wouldn't solve the issue that he doesn't know (I imagine) which NFTs the user has
Jul 8, 2022, 10:45 PM
i use that to get the ids by account address
Jul 8, 2022, 10:46 PM
of ids of a certain collection
Jul 8, 2022, 10:46 PM
ah got you
yeah i only care if they hold my nft :)
Jul 8, 2022, 10:46 PM
if you don't know which collections the user has it's different
Jul 8, 2022, 10:46 PM
which reminds me
Jul 8, 2022, 10:47 PM
yeah here the request seems more general
Jul 8, 2022, 10:47 PM
@grimreaper619 what’s the largest single collection size of nft you’ve heard of? any like 100k+?
Jul 8, 2022, 11:01 PM
There are also others, if you look for solidity on tg I imagine you'll find something
Jul 9, 2022, 12:19 AM
Cryptokitties, around 2 mil including breeded varieties
I've seen bots making tx with 2k gwei gas, in bsc. They have nothing to lose so...
https://etherscan.io/tx/0x20413eb8483b4ab1e4a5183af719beae1aae684d33686c1cbf44dc42a3736c91

Look at this one, 4.7k gas price....
Jul 9, 2022, 7:30 AM
that's insane they should partner up with some mining pools
Jul 9, 2022, 7:31 AM
Still only 120usd gas fee. But why do that when the value is only 30usd??
Well
This is 400% the amount so That kind of beats the purpose, or am I missing something?
Jul 9, 2022, 10:23 AM
You are missing that A pays the gas and B receives the money
If you have to pay 1 M usd to send me 1 k usd that's something I would be ok with
Oh from here it is also shown that other 3 people tried to steal funds from there but ended up front runned
Jul 9, 2022, 10:26 AM
lol it’s like an idiot tax
Jul 9, 2022, 10:54 AM
Oh it was a hacked wallet
I would have moral issues here lol
Jul 9, 2022, 10:55 AM
It was an example, you missed the point of the statement
Jul 9, 2022, 1:02 PM
No I didn’t
Jul 9, 2022, 1:06 PM
Corresponds to priv key 0x000..01
Jul 9, 2022, 1:27 PM
it’s the laziest question there is
Jul 9, 2022, 3:22 PM
The tx went to an EOA. What is there to front-run?
It was a private tx. They did Partner up with some miner
kek

Should've read this first
Jul 9, 2022, 5:26 PM
Maybe wrong term, but various txs were signed to transfer to diff wallets and the final recipient that got it put the higher gas price
If the tx wasn't private it is very likely that the war to get that eth would have seen many more txs getting replaced
That mechanics is similar to bots frontrunning itself even tho it is an improper term, but since I was not at an exam I didn't put too much attention into it
You sound like a bot
Lol
Jul 9, 2022, 5:36 PM
front-running definition could be if your tx gets outrun by someone else.
might be, the only thing miners care about is money
screw decentralization and integrity, we want big stashes.
back in days...
Jul 9, 2022, 6:58 PM
Sounds fishy
I am following this project, they are claiming that somebody is “sabotaging” the launch because someone is sending BNB to the contract in an unexpected manner ? Is this a thing? doesn’t make sense to me
What’s the issue
Jul 9, 2022, 7:25 PM
I didn't know etherscan remembered discarded txs. Why doesn't it do that on rinkeby? That's the only network where I've ever got into tx conflicts bc that's where the software is still shit. Would be a good tool for debugging to know about the other tx hashes
Jul 9, 2022, 8:32 PM

© 2024 Draquery.com All rights reserved.