A Web Component that fetches an Ethereum contracts ABI and exposes a contract instance.
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.
$ npm install eth-contract
$ polymer serve
$ import 'eth-contract';
<eth-contract
contract-address="0xfb6916095ca1df60bb79ce92ce3ea74c37c5d359"
contract-instance="{{contract}}">
</eth-contract>
<eth-contract
main-net
contract-address="0xfb6916095ca1df60bb79ce92ce3ea74c37c5d359"
public-key="0xfb6916095ca1df60bb79ce92ce3ea74c37c5d359"
contract-instance="{{contract}}">
</eth-contract>