Skip to content

A React component to add ETH tipping functionality to any website, styled with Tailwind CSS

License

Notifications You must be signed in to change notification settings

sandypockets/ethereum-tipjar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ethereum Tip Jar

A React component to add ETH tipping functionality to website styled with Tailwind CSS.

Note

The popup is only displayed if the user has a wallet, though the popup could be easily modified to popup all the time too.

How it works

When the user enters an amount in the tip form and clicks Send Tip, their browser based ETH wallet creates a transaction. The user then approves or rejects the transaction. If approved, the ETH is sent from the user's account to the receivingAccount in EthTipJar.jsx.

Getting started

  1. Fork and clone this repository.
  2. Copy or move the EthTipJar.jsx file into your project.
  3. In the EthTipJar.jsx file, on Line 12, change the receivingAccount constant to the Ethereum account you want to receive tips at.
  4. Ensure that you have the dependencies below installed. Packages can be managed with npm or yarn.

Dependencies

Screenshots

ethereum tip jar screenshot

ethereum tip jar screenshot

Additional docs

About

A React component to add ETH tipping functionality to any website, styled with Tailwind CSS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published