How to split ETH payments with smart contract

  Рет қаралды 8,821

Artur Chmaro

Artur Chmaro

Күн бұрын

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

Пікірлер: 37
@ArturChmaro
@ArturChmaro 2 жыл бұрын
🛠 Get Web3 dev materials and tech Discord access: bit.ly/web3starter
@whatsappglory880
@whatsappglory880 2 жыл бұрын
Please answer! ❤️ What is the cost of listing erc 1155 nft on opensea when I will “sell” it???
@ivelinivanov3414
@ivelinivanov3414 Жыл бұрын
I also need this for my project actually!! Thanks brother for the video. Subscribed! You should do a beginner/intermediate solidity series.
@ArturChmaro
@ArturChmaro Жыл бұрын
Thanks for the sub! Any wishes/suggestions for new videos?
@ivelinivanov3414
@ivelinivanov3414 Жыл бұрын
@@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 :)
@LyczeQQ
@LyczeQQ 2 жыл бұрын
Very useful tutorial, thanks Artur! Waiting for more content on ur channel :D
@soltsdev
@soltsdev 2 жыл бұрын
I am searching exactly the same topic, great tutorial
@ArturChmaro
@ArturChmaro 2 жыл бұрын
Glad it was helpful!
@Grucha1998
@Grucha1998 Жыл бұрын
Dobra robota!
@ivanlagade
@ivanlagade 2 жыл бұрын
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?
@GustavoLira154
@GustavoLira154 8 ай бұрын
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?
@ArturChmaro
@ArturChmaro 8 ай бұрын
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.
2 жыл бұрын
Hello! Can it be resolved that the owner of an nft receives the royalty? Thus, the wallet title would be dynamic
@prince5105
@prince5105 2 жыл бұрын
Does this work if the entered address in the array is a wallet address?
@johnnygonzalez2683
@johnnygonzalez2683 2 жыл бұрын
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.
@matthew_brown
@matthew_brown 2 жыл бұрын
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.
@elitex45
@elitex45 2 жыл бұрын
thank you Artur!
@nicecontents934
@nicecontents934 2 жыл бұрын
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 ?
@cryptoespen4625
@cryptoespen4625 2 жыл бұрын
Opensea has maximum 10% royalty. Is it possible to give first buyer this royalty?
@ThetamPham-f7v
@ThetamPham-f7v Жыл бұрын
thank you very much
@ArturChmaro
@ArturChmaro Жыл бұрын
You are welcome
@deltavthrust
@deltavthrust Жыл бұрын
Excellent. Thanks.
@ArturChmaro
@ArturChmaro Жыл бұрын
You are welcome!
@sanjukris1
@sanjukris1 2 жыл бұрын
Great tutorial. Appreciate it if you can explain how to pass new recipients dynamically along with the msg.value?
@ArturChmaro
@ArturChmaro 2 жыл бұрын
Can you explain by example what would you like to achieve?
@nighdoria
@nighdoria Жыл бұрын
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?
@AmarVerma143
@AmarVerma143 2 жыл бұрын
its transferring amount equally, is it possible to transfer amount as per share like one wallet 45%, and another wallet 55% and so on.
@ArturChmaro
@ArturChmaro 2 жыл бұрын
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.
@thunder-gamer-
@thunder-gamer- 2 жыл бұрын
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
@ArturChmaro
@ArturChmaro 2 жыл бұрын
Provide contract address as royalty fee collector at opensea (as collection owner)
@dailymeow3283
@dailymeow3283 2 жыл бұрын
No more smart contracts, cryptos are goin to zero day after day
@ArturChmaro
@ArturChmaro 2 жыл бұрын
Smart contracts are still useful no matter what happens on crypto markets
@selasiboafo9719
@selasiboafo9719 2 жыл бұрын
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
But how does bitcoin actually work?
25:16
3Blue1Brown
Рет қаралды 16 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
How to clone any smart contract
37:28
HashLips Academy
Рет қаралды 86 М.
What are Smart Contracts in Crypto? (4 Examples + Animated)
8:09
Whiteboard Crypto
Рет қаралды 590 М.
Advanced Smart Contract Hacking
35:17
RSA Conference
Рет қаралды 57 М.
ERC20 Token Tutorial | Create Your Own Cryptocurrency
1:13:56
Block Explorer
Рет қаралды 149 М.
Upgrading your Smart Contracts | A Tutorial & Introduction
30:17
Patrick Collins
Рет қаралды 54 М.
Blockchain 101 - A Visual Demo
17:50
Anders Brownworth
Рет қаралды 2,8 МЛН
Blockchain Technology Explained (2 Hour Course)
1:54:54
Coding Tech
Рет қаралды 4,1 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН