0.2.3 • Published 2 years ago

ethpay v0.2.3

Weekly downloads
12
License
MPL-2.0
Repository
-
Last release
2 years ago

ETHPay

A Button to Web3, Demo

Quick Start

For React developers, just install it from NPM:

yarn add ethpay

React Usage

import ETHPay from "ethpay";
import "ethpay/index.css"

const App = () => (
  <div>
    <ETHPay to="0x123456..." value={0.1} currency="eth" />
  </div>
);
PropsDescTypeRequired
currencyWhich currency do you want to the user paysString: 'eth'Yes
toAddressStringYes
valueThe amount of currencyNumberYes
captionButton captionStringNo
titleHTML TitleStringNo
modeDark mode or light mode'dark'/'light'No
styleCSS StyleCSSPropertiesNo
dataThe data append to TxString, starts with '0x'No
showValueShow value on buttonbooleanNo
onTxSentCalled when Tx sent or user rejects(hash: string) => voidNo

More examples

Typescript

Typescript is supported.

LISENCE

MPL-2.0

0.2.1

2 years ago

0.2.0

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.1.37

4 years ago

0.1.36

4 years ago

0.1.35

4 years ago

0.1.34

4 years ago

0.1.33

4 years ago

0.1.32

4 years ago

0.1.31

4 years ago

0.1.30

4 years ago

0.1.29

4 years ago

0.1.28

4 years ago

0.1.27

4 years ago

0.1.26

4 years ago

0.1.25

4 years ago

0.1.24

4 years ago

0.1.23

4 years ago

0.1.22

4 years ago

0.1.21

4 years ago

0.1.20

4 years ago

0.1.19

4 years ago

0.1.18

4 years ago

0.1.17

4 years ago

0.1.16

4 years ago

0.1.15

4 years ago

0.1.14

4 years ago

0.1.13

4 years ago

0.1.12

4 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago