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.

Filter by
Sorted by
Tagged with
1
vote
0answers
1k views

Error: Couldn't decode uint256 from ABI: 0x

I'm aware this is a duplicate, but the other never got authoritative answers and this is a simpler demonstration of the problem. I created this Contract: https://etherscan.io/address/...
1
vote
0answers
27 views

Help! Unable to verify Token Contract, Where can get ByteCode and ABI? [duplicate]

Receiving the following errors: Note: Contract was created during Txn# Result: Does not match the input creation bytecode found at this address Error! Unable to generate Contract ByteCode and ABI ...
1
vote
1answer
32 views

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 ...
0
votes
1answer
223 views

Permanent deployment of contracts in Geth

My current method of deploying smart contracts in geth is by generating the bin and abi files of the corresponding sol and then loading the bin and abi files of the contract into geth using the ...
1
vote
1answer
162 views

How to call solidity function in html 'inspect' console properly?

I can see my contract in my console. The solidity code and abi is in the the index.html. I can't figure out how to call this function and send 0.01 ether with it as well. I would think it is something ...
1
vote
0answers
16 views

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 ...
3
votes
1answer
128 views

How does the EVM resolve method ID collision?

What happens if I craft an EVM binary such that the ABI sees two matching method IDs, and try to deploy the contract? Is it a valid transaction?
2
votes
0answers
213 views

“queue limit” error

I try to deploy a smart contract and every time i receive "queue limit" error. Here is what i do: Web3 = require("web3") web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545")); ...
4
votes
1answer
116 views

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 ...
2
votes
2answers
1k views

Unable to generate Go Ethereum Bindings using abigen

Not sure what the heck is going on, but I'm unable to use abigen to generate Go Ethereum bindings any more, I get an error that says EvalSymlinks: too many links solidity@pop-os:~/Documents/Code/...
1
vote
1answer
122 views

Can an ABI file be made from separate json files by stripping out information?

I am looking at the CryptoKitties KittyCore contract. What I notice is that there are multiple contracts within the file. (https://etherscan.io/address/0x06012c8cf97bead5deae237070f9587f8e7a266d#code)....
1
vote
1answer
411 views

Truffle: Creating a single ABI file if contracts are in separate .sol files?

I am building a project which is divided into separate .sol files, one per contract or interface. The tutorial shows a single file cryptozombies_abi.js which appears to me to be something like the ...
1
vote
1answer
235 views

Sending tokens via ethereumj. How create data block for transaction?

I am trying to send Plasma tokens in testnet but unfortunately misunderstand how I should create transaction properly. I try to create tx like this: String privateKeyString = "xxx"; BigInteger ...
2
votes
2answers
49 views

Does a caller contract needs to know the complete interface of a callee?

As far as I understand if a caller uses just one function from a callee contract it only needs to know the signature of this function, not the whole interface. Callee.sol (Kovan): contract Callee{ ...
3
votes
1answer
2k views

How to convert BN result into readable string or number in ethjs?

I'm receiving the result in BN format. How can I convert it into actual string or number? I'm using ethjs library to interact with Smart Contract. token.totalSupply().then((totalSupply) => { // ...
0
votes
1answer
96 views

Getting error : This type of error is only supported in new experimental ABI Encoder while passing struct inside function

How can I pass struct to Function I tried doing it but all in vain struct testSruct { uint size; } function testFunc( testSruct test) public returns(bool replaced) { return true; } ...
0
votes
1answer
325 views

Convert contract arguments to ABI-encoded format

My Contract Source https://gist.github.com/munggo/ed25afb0aff9169a6c57f1d464d13177 Convert contract arguments to ABI-encoded format How???
0
votes
1answer
112 views

Is remix ABI generator still working?

I have recently used the ABI generator fo remix, but when I copy the ABI and paste it in my Geth I get an error: var abi=x; // where x is abi copied from remix ethereum website. However, if I copy ...
0
votes
2answers
369 views

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 ...
1
vote
2answers
148 views

Do you know online tool for abi encoding?

Is there easy to use online tool to encode ABI parameters to pass verification on etherscan?
7
votes
1answer
4k views

This type is only supported in the new experimental ABI encoder - why?

I have the following struct and the contract stores an array of it: struct Issuer { address id; bytes32 name; IssuerStatus status; uint index; } I also have a function that returns ...
3
votes
0answers
69 views

Methods and constants order in the contract ABI

Is it possible to annotate methods and constants order in the contract ABI before compilation?
0
votes
1answer
534 views

Transfer ERC20 tokens by ruby

I found only one semi-automatic solution to transfer tokens from one wallet to another. But i want to do that by web3js way on ruby stack. Could you guys explain me, how exatly to get data for ...
1
vote
1answer
221 views

web3.py - Python dtype for contract function with int256[x]

Say I have this example contract: pragma solidity ^0.4.0; contract SEexample { int256[3] thing; uint8 internal i=0; function submit(int256[3] bids,int256[3] prefs) public returns (...
2
votes
3answers
3k views

Accessing a mapping variable from web3

Is there a way to access a mapping variable such as: mapping(bytes => bool) myMappingVar; which is NOT: Declared public explicitly without using indexed based id Also no corresponding public ...
1
vote
1answer
75 views

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.
4
votes
3answers
4k views

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 ...
2
votes
1answer
559 views

Why we need “stateMutability” in contract's ABI if we already have “constant” and “payable”? [duplicate]

stateMutability: a string with one of the following values: pure (specified to not read blockchain state), view (specified to not modify the blockchain state), nonpayable and payable (same as payable ...
3
votes
4answers
887 views

Should UIs handle 4Byte signature collisions

With 4 bytes collissions are possible. But they are not very likely. Currently in the 6,846 signatures in the 4Byte.direcory there are no collisions. Still they are possible. Now I wonder if UIs ...
0
votes
2answers
976 views

What is a good implementation to get function signatures from contract ABI?

This is a simple storage contract: contract SimpleStorage { uint public data; function set(uint x) public { data = x; } } The ABI is: [ { "constant": false, ...
0
votes
1answer
400 views

Padding parameter values in contract low-level call

In the following example: contract_address.call(bytes4(sha3("function_name(types)")),parameters_values) should we pad the parameters values to 32 bytes? Because I have seen code like if (!...
9
votes
3answers
7k views

TRUFFLE: What is the best way to to get the JSON ABI code after deploying a contract with truffle to Ganache or Kovan?

Remix makes it so easy to get the json abi code. Does anyone have any recommendation on how best to get he json abi code after successfully deploying a contract using truffle without having to ...
0
votes
1answer
1k views

Send tokens from ethereum address programmatically

I want to create a service to send tokens from different wallets. I already created the ethereum transactions, but I don't get tokens yet. It seems I need the ABI, but I would like to avoid using it. ...
0
votes
1answer
293 views

Can I find constructor arguments from truffle artifact?

I'm in the process of verifying my contract on Etherscan. Etherscan asks for ABI-encoded constructor arguments during the verification process, though I was a bit silly and don't quite know what they ...
3
votes
5answers
3k views

Is there a way to extract ABI from a deployed contract?

I am building a web UI for testing smart contracts and currently I have to supply the ABI for a contract I test. Is there a way to extract the ABI from a deployed contract (preferably programmatically)...
0
votes
1answer
695 views

Can not verify contract on etherscan.io “Error! Unable to generate Contract ByteCode and ABI”

I am getting the error "Error! Unable to generate Contract ByteCode and ABI" When I try to verify this code. I have split it into two pieces as I import it but not sure how to include it all in ...
2
votes
1answer
143 views

How can I check if a contract contains a specific function signature in the ABI?

I'm using Geth and thinking maybe I'll have to deep dive into the Go code to make this happen, but it should be possible. What would I need to do to check if a function signature exists in a contract?
1
vote
2answers
152 views

How can I find all contracts that support a particular ABI?

I'm trying to find an easy way to scan the blockchain for contracts that support a particular ABI. Take ERC20 as an example: What is the easiest way to find all the ERC20 supporting contracts on the ...
1
vote
1answer
104 views

ABI artifacts corrupted, manually edit ABI?

Is it possible to manually add functions to the ABI, specifically the getProduct and addProductToStore functions? Does it make a difference? Have already tried deleting build + recompiling + ...
0
votes
1answer
87 views

Specify full ABI of another contract?

Contract A calls contract B. Does contract A need to know B's full ABI for its external functions? Or can you just give it the interface for the functions that contract A will call.
1
vote
0answers
58 views

Where in the compile process do storage indexes get assigned to variable names and where can I sniff that data?

I have found the articles explaining how storage works and I understand that if I have a mapping that I need to know the key. What I'm trying to do is figure out how given, solidity code, abi, and ...
1
vote
1answer
1k views

How to get a variable from the smart contract with web3 and abi?

I use web3.js and try to take a value of the variable from the smart contract. My code for it is: var contract = web3.eth.contract(abi).at(address); where abi - json array and address - valid ...
4
votes
1answer
3k views

Decode Etherscan.io Contract Input Data

Reading my input data on etherscan, I see each value as hex values. Which is fine to read the addresses. But I would like to read the amounts [1] && [3] as numbers. Contract Method Function: ...
1
vote
1answer
58 views

Is there an online database that maps functions with their signature?

I have already seen a site with all the functions of solidity with its signature, but do not remember its url, I'm looking for it.
3
votes
2answers
2k views

Decoding transaction input data with web3j (Java)

My use case is the following: I would like to have a daemon monitoring how users are interacting with my smart contract. The way I see it is to look at incoming blocks and try to decode input data ...
0
votes
1answer
393 views

ABI for Etherscan verification

How I can get ABI in multiple contract code? if the code is here: Token address is: 0x4960a0Db832c3Bb503F3Da59a274D9385e0Ade5A Crowdsale contract: 0x7a76d1A86a8b801865eC9134552904366b327A45 I ...
8
votes
2answers
12k views

Getting ABI data for ERC20 tokens programatically with Web3 [duplicate]

I am just starting to dive into Web3. I am trying to display the various ERC20 token values for a given Ethereum Address. The pieces I need to do this are: Token Contract Address Token Contract ABI ...
4
votes
4answers
3k views

web3 contract instantiation

I'm trying to create a contract object with web3. var contract_abi = result['contracts']['Test']["interface"]; //[{"constant":false,"inputs":[],"name":"inc","outputs":[],"payable":false,"type"...
6
votes
2answers
556 views

Is sending some datas in the data field safe?

An airdrop ask to send it 0ETH with 150000 GAS and some datas in DATA field. Is it safe? What could be the aim of this transaction? Thanks.
0
votes
1answer
1k views

Can't compile contract - pragma error and Cannot read property 'interface' of undefined

I am trying to compile this simple contract: pragma solidity ^0.4.18; contract Tasks { struct TaskOwner { address TaskOwnerAddress; bytes32 TaskOwnerName; } mapping (address ...