Creating Ethereum Contracts (go ethereum)

The ABI is the interface that your contract exposes. "evmCode" is the Ethereum byte code for your contract.

To work around your problem, go to https://chriseth.github.io/browser-solidity/ and plug your Solidity in. The Bytecode field on the right will give you the value for "evmCode" and Interface will give you the ABI.

You can also copy the snippet from "Web3 deploy" and paste it in your code to deploy your contract.


ABI is basically which is the public facing interface that shows what methods are available to call. The simplest way to get the abi would be to use https://remix.ethereum.org . just paste in your code and in Contract tab At the bottom of the column you’ll find a link that says Contract details which is basically the ABI json

Conversely you could also use the contracts.Introduction.interface api of web3 to get the abi.

Tags:

Ethereum