Questions tagged [abi]

The Application Binary Interface (ABI) is the standard way to interact with contracts in the Ethereum ecosystem, both from outside the blockchain and for contract-to-contract interaction. Data is encoded according to its type, as described in this specification. The encoding is not self describing and thus requires a schema in order to decode.

The specification for ABI is a part of the Solidity documentation.

https://solidity.readthedocs.io/en/develop/abi-spec.html

493 questions
22
votes
4 answers

How get Constructor Arguments ABI-encoded?

Im trying to verify an ETH contract, but I complete the etherscan form to and i receive this message: "Error! Unable to verify source code Missing Constructor Arguments for function JL(uint256 initialSupply, string tokenName, string tokenSymbol)" My…
PoetaKarate
  • 221
  • 1
  • 2
  • 3
7
votes
1 answer

Can an ABI be embedded into a smart contract?

So one of the most unfriendly things about Ethereum is that every time I want to interact with a contract I need to load up the ABI from an external, centralized source. Sure Parity lets me save these ABI's once loaded, but MEW does not when I use a…
Joseph
  • 215
  • 1
  • 5
4
votes
1 answer

Can separate ABIs be concatenated into a single file?

I have seen Dapps made up of many contracts but a single ABI that I think needs to be referenced for example in a web3j Javascript file. Is it normal to concatenate the ABIs from separate contracts into a single ABI file? If so, how can this be…
Jeff
  • 213
  • 1
  • 8
2
votes
0 answers

Where to download ABI interfaces in JSON with minimum requirements?

Sorry for what I'm sure is a beginner question, but where can I dowwnload the ABIs in JSON format for only minimum required methods? I can't seem to find it anywhere on Google. For example, ERC721. I have four different ABIs sitting here for…
Matt Dizak
  • 21
  • 1
1
vote
2 answers

Is there a c++ library to encode abi

I am writing a c++ wallet and I need to be able to encode smart contract function calls in ABI format. I found that the web3 library has the ability, but it is written in JS. Is there a c++ alternative? Thank you
Epic
  • 121
  • 3
1
vote
0 answers

Where can i get total list of all existent Etehereum contract ABIs?

We all know that exists https://www.4byte.directory/ where we can get mapping (function selector) -> (function signatures). Is there a dataset where I can get mapping (contract address) -> (JSON contract abi) without any web requests? If there is no…
Iva Kam
  • 123
  • 3
1
vote
1 answer

Is Ethereum Contract Application Binary Interface (ABI) somewhat similar to WSDL in concept? To use an enterprise software term

Is Ethereum Contract Application Binary Interface (ABI) somewhat similar to WSDL in concept? Is it an accurate approximate? To use an enterprise software glossary term which could be useful in explaining to the folks who are familiar with the SOA,…
Nathan Aw
  • 1,954
  • 12
  • 27
1
vote
0 answers

Library/Framework for generating Contract Forms

Based on ABI, Mist is able to automatically generate forms for contracts for read/write access. Does someone know if there is a JS framework/library for this task? For the prototyping/demonstration purpose, it’s extremely useful to be able to…
ivicaa
  • 7,519
  • 1
  • 20
  • 50
1
vote
2 answers

Can you obtain the ABI of a smart contract using the contract address and contract code?

I have an ABI I'm trying to use to execute a withdraw of Ethereum from a smart contract via MyEtherWallet, but I'm receiving an error of "Please enter a valid ABI." I'm concerned the ABI I have is not correct so is there a way to generate the ABI…
NCOIN
  • 11
  • 1
1
vote
2 answers

Bytecode version of ABI

I wonder if aside the Json representation of ABI is there a bytecoded and compact version of the same interface. Json is human readable, but in some cases it is just an overkill.
Davide C
  • 896
  • 1
  • 9
  • 22
1
vote
0 answers

Why `bytesN` elements padded to the right, but all other elements (e.g. `uintN`) are padded to the left?

here is the great post how to encode arguments to ethereum functions https://medium.com/b2expand/abi-encoding-explanation-4f470927092d But WHY ethereum creators decided to pad like this?
srghma
  • 191
  • 9
1
vote
1 answer

Not sure how to decode log event where I can't get the ABI for the contract?

I am trying to decode some transactions logs and have hit a problem with one of the entries. In the event log for 0x1c50c336329a7ee41f722ce5d848ebd066b72bf44a1eaafcaa92e8c0282049d2 the first three events are a transfer, a deposit, and a transfer. …
0
votes
1 answer

Help decoding this Json ABI

I'm interested in reading how dHedge implemented their asset-buying program so would greatly appreciate if you guys could help me decode their json abi. I couldn't find a json abi decoder anywhere as the github web3 library says it hasn't…
0
votes
3 answers

How to call functions from a Smart Contract, without using web3?

I am trying to find out if there is a way to call functions from a smart contract which is already deployed on mainnet/testnet, without using web3. If so, how to do that?
Deb
  • 133
  • 8
0
votes
0 answers

Reinstantiating deployed contract

Looked at multiple answer for this question but they seem to be out of date. I committed a contract to the testnet chain, closed my geth console and upon starting the console again would like to redeploy contract. I know that I have to load the…
jojeyh
  • 769
  • 3
  • 8
1
2