Skip to content

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

License

Notifications You must be signed in to change notification settings

swarmcity/eth-contract

Repository files navigation

<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>

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published