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

КОМЕНТАРІ • 37

  • @ArturChmaro
    @ArturChmaro  2 роки тому +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???

  • @soltsdev
    @soltsdev 2 роки тому +1

    I am searching exactly the same topic, great tutorial

  • @ivelinivanov3414
    @ivelinivanov3414 9 місяців тому

    I also need this for my project actually!! Thanks brother for the video. Subscribed! You should do a beginner/intermediate solidity series.

    • @ArturChmaro
      @ArturChmaro  9 місяців тому

      Thanks for the sub! Any wishes/suggestions for new videos?

    • @ivelinivanov3414
      @ivelinivanov3414 9 місяців тому

      @@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

  • @elitex45
    @elitex45 2 роки тому

    thank you Artur!

  • @user-tv9zm4sv7v
    @user-tv9zm4sv7v Рік тому

    thank you very much

  • @Grucha1998
    @Grucha1998 10 місяців тому

    Dobra robota!

  • @deltavthrust
    @deltavthrust Рік тому

    Excellent. Thanks.

  • @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?

  • @GustavoLira154
    @GustavoLira154 3 місяці тому

    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  3 місяці тому

      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.

  • @ivanlagade
    @ivanlagade Рік тому

    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?

  • @nicecontents934
    @nicecontents934 Рік тому

    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

  • @prince5105
    @prince5105 Рік тому

    Does this work if the entered address in the array is a wallet address?

  • @AmarVerma143
    @AmarVerma143 2 роки тому +1

    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 роки тому +1

      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.

  • @johnnygonzalez2683
    @johnnygonzalez2683 Рік тому

    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.

  • @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?

  • @xxxyboy3000
    @xxxyboy3000 2 роки тому

    But how to make recipient addresses dynamic ?

  • @cryptoespen4625
    @cryptoespen4625 2 роки тому

    Opensea has maximum 10% royalty. Is it possible to give first buyer this royalty?

  • @whatsappglory880
    @whatsappglory880 2 роки тому

    Please answer! ❤️
    What is the cost of listing erc 1155 nft on opensea when I will “sell” it???

    • @ArturChmaro
      @ArturChmaro  2 роки тому

      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.

  • @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 роки тому +1

      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