How to split ETH payments with smart contract
Вставка
- Опубліковано 7 вер 2024
- This video will teach you how to split ETH (ether) payments among multiple addresses.
All you have to do is deploy a smart contract and send a single payment to its address. The smart contract will automatically divide the payment amount and push it to specified recipients.
#solidity #smartcontract #ethereum
Code from this video:
gist.github.co...
Blog: fullstak.pl/
Instagram: / fullstak_pl
Discord: / discord
Twitter: / artichmaro
🛠 Get Web3 dev materials and tech Discord access: bit.ly/web3starter
Please answer! ❤️
What is the cost of listing erc 1155 nft on opensea when I will “sell” it???
I am searching exactly the same topic, great tutorial
Glad it was helpful!
I also need this for my project actually!! Thanks brother for the video. Subscribed! You should do a beginner/intermediate solidity series.
Thanks for the sub! Any wishes/suggestions for new videos?
@@ArturChmaro Yeah I know security is very important when writing Solidity contracts. I want to know how to write contracts and make sure they are secure and have no vulnerabilities. That's probably more advanced stuff but yeah. Also there's probably a lot of things that I don't know that I SHOULD know. As a solidity dev you probably have a better idea of what things are important and common in writing solidity contracts that newbies should know (like this video splitting the payments). So just whatever you believe we should know - share with us. :) I am a 2.0 web dev btw and 3.0 fascinates me now :)
Very useful tutorial, thanks Artur! Waiting for more content on ur channel :D
thank you Artur!
thank you very much
You are welcome
Dobra robota!
Excellent. Thanks.
You are welcome!
Great tutorial. Appreciate it if you can explain how to pass new recipients dynamically along with the msg.value?
Can you explain by example what would you like to achieve?
Good video, friend, but I have a question. Let's say I have two MetaMask wallets. Can I make everything that arrives (in Ethereum) to wallet 1 automatically transfer to wallet 2?
It's hard. With metamask wallet (externally owned account) you have to program this using some script with private key access. That's the main reason why such splitters/routers are rather made with smart contracts.
nice! how about how can I batch the two transaction of the same sender into 2 different smart contracts? first is the mother and the other one is the second contract integrated on the constructor?
thanks for the video , is there possibilité to configurate the payment between 3 collaboration adresses where the deposit of a mount can recuperate the money if there is no the seconde and the third collaboration adresses ?
Hello! Can it be resolved that the owner of an nft receives the royalty? Thus, the wallet title would be dynamic
Does this work if the entered address in the array is a wallet address?
its transferring amount equally, is it possible to transfer amount as per share like one wallet 45%, and another wallet 55% and so on.
of course, you would need just to have another array/mapping/struct to hold information about the shares and calculate them in the loop :) Didn't include that in the example to not confuse beginners too much.
Do I need to plug in the wallet address in the code area and if so where (what line)? I copied the code and pasted and input the wallet address in the left hand side like you did. But, nothing happened. The contract is not coming up in etherscan. I also can seem to add liquidity.
How would you set up a smart contract that would payout to multiple wallet addresses that change after every transaction?
I am trying to set up a referral type smart contract that would pay referrers immediately after referred person submits their transaction.
Sir
Is there any code for marketting wallets like this ;
Someone buy my creating token marketting fee send my marketting wallet. However this fee send my wallet a my creating tokens. I wanna this fee send my wallet ETH. Because when I use this fee. I effect graph. Is there any code like this?
But how to make recipient addresses dynamic ?
Opensea has maximum 10% royalty. Is it possible to give first buyer this royalty?
Please answer! ❤️
What is the cost of listing erc 1155 nft on opensea when I will “sell” it???
As creator/seller you just have to cover contract costs and ~$3-5 gas fee in order to approve the contract and list it on the OpenSea. Other costs like 2.5% OpenSea fee, royalties are covered by buyers.
Please how can I use this contract in opensea.. I have a team and have to split the revenue.. how can I connect or sign this contract in opensea
Provide contract address as royalty fee collector at opensea (as collection owner)
No more smart contracts, cryptos are goin to zero day after day
Smart contracts are still useful no matter what happens on crypto markets
Hello Arthur. Than you so much for this video. I need your help building a payment splitter contract for my marketplace. Not a splitter for only NFTs but for the whole marketplace so that whatever NFT sale is made, the payment is split into several parts including the NFT owner too. Please help me. I have tried a lot of people but no one has responded to me. I would appreciate if you could give me your discord or a way to contact you directly to explain everything better