Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 1.32 KB

README.md

File metadata and controls

34 lines (22 loc) · 1.32 KB

abi2html

Preview on GitHub pages or open in Mist to connect to the network.

View interface screenshot

Generate HTML page from Solidity ABI with JavaScript. This is useful as an "admin" interface to a contract or as a basis for generating forms for more advanced DApps.

Usage:

  1. Click Code to paste Solidity, ABI JSON, or sketch a proposal. Save
  2. Click View and confirm contract address to interact with deployed code
  3. Search, filter, and sort for Event logs
git clone https://github.com/tgerring/abi2html.git
cd abi2html && gulp build
open build/index.html

Anchors

The application can be deep-linked to a particular function, event, block, transaction, or log with an anchor. For example index.html#block/1234. Additionally, it's possible to load Solidity source or ABI from a GitHub Gist ?SOLIDITY_GIST=c835f38889b989e8488c. Combining the two might look this: ?ABI_GIST=0e1b884de82d35053a34#confirm.

Some options:

  • #block/<BlockNum>
  • #log/<BlockNum>/<TransactionIndex>/<LogIndex>
  • #tx/<TransactionHash>
  • #<EventName>
  • #<EventName>/<BlockNum>/<TransactionIndex>/<LogIndex>
  • #<FunctionName>