Metamask updated their API recently which means a lot of examples of code on integrating MetaMask to your website are now not working. The new examples require Node.js but I was trying to create a simpler way to implement as a simple payment on a website .

So the following code allows you pretty much to set it up so that a user can hit your page click the buy button and get MetaMask to create the transaction.

Here’s the code.




Writing about Trading, Currencies and shares

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

The practical value of an SRE team

A1.2 The Math Behind Perspective Projections


3 things that can derail your Agile adoption

How to use Medium as your ultimate zettelkasten or PKM : yes, Medium!

Tech Tidbit #1 — Write Hive data to CSV file using Shell Script

Converter methods in Eclipse Collections

Some tips to make your VS Code more efficient

Binary Pipeline with Python

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Paul Clevett

Paul Clevett

Writing about Trading, Currencies and shares

More from Medium

Rails Serializer Break Down

Cross-gen Spiderman Differtiator

Dream Defenders Statement: Honoring Trayvon Martin 10 Years After His Tragic Killing

Card Sigils Explained