Skip to content

cryptol0g1c/react-eth

Repository files navigation

react-eth

Important: This package is currently on development

Build status

Build Status

The goal of this package is to help developers to easily create react forms from smart-contracts ABI.

Live demo

https://cryptol0g1c.github.io/react-eth/

The live demo uses Bootstrap. But feel free to give your own styling.

Usage

import ReactEth from 'react-eth';

const abi = {
  "constant": false,
  "inputs": [
    {
      "name": "spender",
      "type": "address"
    },
    {
      "name": "value",
      "type": "uint256"
    }
  ],
  "name": "approve",
  "outputs": [
    {
      "name": "",
      "type": "bool"
    }
  ],
  "payable": false,
  "stateMutability": "nonpayable",
  "type": "function"
};

<ReactEth abi={abi}>

Props

  • abi: json.
  • className: string.
  • onChange: function.
  • onSubmit: function.

Examples

Releases

No releases published

Packages

No packages published