/eth-contract

A web component that fetches the ABI of an Ethereum contract and creates a contract instance.

Primary LanguageHTMLMIT LicenseMIT

<eth-contract>

A Web Component that fetches an Ethereum contracts ABI and exposes a contract instance.

Install the Polymer-CLI

First, make sure you have the Polymer CLI and npm (packaged with Node.js) installed. Run npm install to install your element's dependencies, then run polymer serve to serve your element locally.

Install eth-element

$ npm install eth-contract

Viewing Your Element

$ polymer serve
$ import 'eth-contract';

Basic Use

<eth-contract  
    contract-address="0xfb6916095ca1df60bb79ce92ce3ea74c37c5d359"
    contract-instance="{{contract}}">
</eth-contract>

Advanced Use

<eth-contract  
    main-net
    contract-address="0xfb6916095ca1df60bb79ce92ce3ea74c37c5d359"
    public-key="0xfb6916095ca1df60bb79ce92ce3ea74c37c5d359"
    contract-instance="{{contract}}">
</eth-contract>