UnsignedInt8 / ethpay

A Button to Web3

Home Page:https://ethpay.now.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

More examples

Typescript

Typescript is supported.

LISENCE

MPL-2.0

About

A Button to Web3

https://ethpay.now.sh

License:Mozilla Public License 2.0


Languages

Language:TypeScript 90.0%Language:CSS 4.9%Language:SCSS 3.9%Language:JavaScript 1.2%