0.2.3 • Published 3 years ago
ethpay v0.2.3
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>
);
Props | Desc | Type | Required |
---|---|---|---|
currency | Which currency do you want to the user pays | String: 'eth' | Yes |
to | Address | String | Yes |
value | The amount of currency | Number | Yes |
caption | Button caption | String | No |
title | HTML Title | String | No |
mode | Dark mode or light mode | 'dark'/'light' | No |
style | CSS Style | CSSProperties | No |
data | The data append to Tx | String, starts with '0x' | No |
showValue | Show value on button | boolean | No |
onTxSent | Called when Tx sent or user rejects | (hash: string) => void | No |
Typescript
Typescript is supported.
LISENCE
MPL-2.0
0.2.1
3 years ago
0.2.0
3 years ago
0.2.3
3 years ago
0.2.2
3 years ago
0.1.37
5 years ago
0.1.36
5 years ago
0.1.35
5 years ago
0.1.34
5 years ago
0.1.33
5 years ago
0.1.32
5 years ago
0.1.31
5 years ago
0.1.30
5 years ago
0.1.29
5 years ago
0.1.28
5 years ago
0.1.27
5 years ago
0.1.26
5 years ago
0.1.25
5 years ago
0.1.24
5 years ago
0.1.23
5 years ago
0.1.22
5 years ago
0.1.21
5 years ago
0.1.20
5 years ago
0.1.19
5 years ago
0.1.18
5 years ago
0.1.17
5 years ago
0.1.16
5 years ago
0.1.15
5 years ago
0.1.14
5 years ago
0.1.13
5 years ago
0.1.12
5 years ago
0.1.11
5 years ago
0.1.10
5 years ago
0.1.9
5 years ago
0.1.8
5 years ago
0.1.7
5 years ago
0.1.6
5 years ago
0.1.5
5 years ago
0.1.4
5 years ago
0.1.2
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago