I want to be able to listen to transfers of a smart contract ( 1 or many ) and on each transfer use webhook to update my table .. plus i want to listen to deposits on array or wallet addresses which might be > 1 million addresses in future so i can push notifications to users .. custodial wallet here .. currently i use moralis but is ehivh other cheaper better service to use
Jul 1, 2023, 5:52 PM
alchemy
infura ... not sure of cost comparison between these three
but you can check iut
Jul 1, 2023, 6:22 PM
What are the costs on moralis?
Jul 1, 2023, 6:47 PM
I paid ~450$ per year
Jul 1, 2023, 6:48 PM
set up your own node :) it would cost u abount $200/month on hetzner, it's price of infura 1.000.000 requests/day plan
Jul 2, 2023, 4:57 AM
I tried to set up node and the cost was 600 almost
Digital ocean
Jul 2, 2023, 4:58 AM
digital ocean has very expensive SSDs
hetzner.com
check out them
Jul 2, 2023, 4:59 AM
And i still didnt test if a looot a requests what will happen
Because i have gated chat groups
Jul 2, 2023, 4:59 AM
you mean on a node?
Jul 2, 2023, 4:59 AM
U own nft u can message
Yes
I will check it
Or i should create kind of indexer then query a db maybe
Jul 2, 2023, 5:00 AM
yes, there are special services for that like https://www.subsquid.io/
Jul 2, 2023, 5:02 AM
I will check it because moralis has ready solution , they take care of the node and indexing and webhooks
But worth to look into because i am into a huge ecosystem being built now
So better to have a light node
Jul 2, 2023, 5:04 AM
moralis plans are pretty expensive too i think
just keep in mind that you can just run node and share costs with a friend, and it will still be much cheaper than infura/alchemy/moralis especially for a big project like a one you are building
just keep in mind that you can just run node and share costs with a friend, and it will still be much cheaper than infura/alchemy/moralis especially for a big project like a one you are building
Jul 2, 2023, 5:06 AM
True
I will research more but i think a light node and index data to a db then query the db maybe
Jul 2, 2023, 5:08 AM
light node works terrible usually, because it needs to query other nodes, which are sometimes just busy or don't accepting requests from light peers
and this affects performance badly, it's always faster to fetch data from your ssd, than from someone else's
the good way to go would be to setup archive node for couple days, index the db and turn it down (prune down to full-node maybe)
Jul 2, 2023, 5:09 AM
So i need a full node
U think for polygon would be same setup as for ethereum
Jul 2, 2023, 5:11 AM
no, polygon is much more heavy
Jul 2, 2023, 5:12 AM
Hmm am running on polygon
Jul 2, 2023, 5:12 AM
polygon archive node is 16 tb, while eth is like 3
Jul 2, 2023, 5:12 AM
But i dont want old data
Since what i care about is our nft collection transfers and the custody of wallets when users deposit
Transfers because if they list on our marketplace and sell on another i have to delist
And when users deposit to custodial wallets i should update balance and push notifications
At least for now these are the 2 main concerns
Jul 2, 2023, 5:14 AM
I like them but running a node is against their policy and you can get kicked
Jul 2, 2023, 5:14 AM
than full node is going to be nice for you
i thought that only mining is prohibited, not node running?
it's weird, i am just storing a pretty big database
it's weird, i am just storing a pretty big database
Jul 2, 2023, 5:16 AM
Hmmm
Jul 2, 2023, 5:20 AM
Unfortunately not, they don't like anything crypto related.
https://twitter.com/Hetzner_Online/status/1563083561975984130?s=20
https://twitter.com/Hetzner_Online/status/1563083561975984130?s=20
Jul 2, 2023, 5:20 AM
So i have to find where to host my full node
Polygon
If i decided to go in that direction
Jul 2, 2023, 5:21 AM
If it was eth I'd probably get my own hardware. For polygon id use alchemy or whatever service
Jul 2, 2023, 5:22 AM
will check alchemy prices comparing to moralis
Or as u said if i have multiple projects i can use the same node
Jul 2, 2023, 5:29 AM
To use an RPC provider's full node shared enpoint is extremely cheap
If you are going to compare prices you can use our calculator where you can chose the methods you are going to use and see the prices on different providers.
Wihtout it you will be locked in different request units with 1x..1000x range of weights on different methods
If you are going to compare prices you can use our calculator where you can chose the methods you are going to use and see the prices on different providers.
Wihtout it you will be locked in different request units with 1x..1000x range of weights on different methods
Jul 2, 2023, 8:37 AM
i'm running since at least 1 year ago at least 8 validators for a L2 and they never said anything till date
Jul 2, 2023, 9:44 AM
same here
well, maybe not 8 validators 🙈, but one full bsc node on hetzner, no issues so far
Jul 2, 2023, 4:13 PM
Hetzner doesn't allow running blockchain nodes as per their terms
Idk how they offer cheap instances
Jul 4, 2023, 6:11 PM
Kinda old hardware
Jul 4, 2023, 6:13 PM
Gonna crash in no time
Jul 4, 2023, 6:14 PM
That's why backups are important 😁
Jul 4, 2023, 6:14 PM
DO provides nvme, should be considered an edge
Jul 4, 2023, 6:15 PM