Questions tagged [eth-call]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

`web3.eth.abi.decodeParameters()` not returning correct values

I call to a method that returns two contract addresses, like this, where method is the method object taken from the ABI (triple-checked that already): web3.eth.call( { from: account, ...
1
vote
2answers
60 views

How to get reason revert using web3.eth.call

I have a smart contract with required message and pretend to use the required/validation message in front end. require(bytes(hashAlreadyRegistered[hash]).length == 0, "Hash already registered&...
2
votes
2answers
41 views

Why field `data` in `eth_call` optional?

Based on https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_call The data is optional, but it also says it contains hash of the method signature. In what scenario you can send a eth_call without ...
0
votes
1answer
23 views

linking form submission to smart contract

I have a smart contract that sends x ether to an address. I have an html page that has a form for the address, and the amount to be sent. Theoretically it should interface with the smart contract. ...
0
votes
1answer
21 views

got response data to nonsencical eth_call request. What is that response?

When I call a seemingly nonsensical transaction on mainnet and rinkeby. ethereum.send('eth_call', [{'from':'0x0000000000000000000000000000000000000000', 'to':'...
1
vote
1answer
128 views

How can I tell if a node I am using is a full archive node?

What is the best way to tell if the node I am is using a full archive node? One way I know if is to call a contract from the context of an old block, but this requires an RPC call and is not explicit ...
0
votes
2answers
110 views

Infura Json RPC: how to call a function passing parameters?

IMPORTANT My final goal is receive data via api on a php server and use Infura to call my contract to save the data Test Situation having this test contract on rinkeby contract test008 { ...
0
votes
1answer
38 views

What is the data field in eth_call commands for USDT?

I'm trying to use eth_call to send USDT (TetherToken) from one account to another (Although I know that eth_call just simiulate such transaction). Everything is clear in this regard, just the data ...
0
votes
0answers
17 views

nested calls fail on geth --dev but pass ganache-cli

I have the following solidity contracts defined. I want to test nested calls using the lowlevel api where C->D->E. However, running this code passes on ganache-cli but fails on geth --dev node. Im ...
0
votes
1answer
70 views

What is the ethersjs equivalent of `web3.eth.call` in web3js?

web3.js has the ability to call a transaction and get return data without sending a transaction: web3.eth.call(callObject [, defaultBlock] [, callback]) ethersjs apparently does not have this ...
0
votes
1answer
15 views

call: Alternative transfer at the byte code level

I am reading the following stuff from the research paper at: Restricted Transfer We define a property that guarantees that ether transfers (via call) cannot be invoked by any user a. Violation of ...
1
vote
1answer
49 views

web3py - Function Call when Sender Must Be Certain Address

I have a contract on Ropsten, and when I do this is python, I get a result: result = contract.functions.getLastUpdateTime(0).call() So I know the ABI is there, the address, etc. There's another ...
4
votes
1answer
35 views

Why does the `DoCall` function use the first account by default?

In this line, // Set sender address or use a default if none specified var addr common.Address if args.From == nil { if wallets := b.AccountManager().Wallets(); len(wallets) > ...
0
votes
0answers
207 views

Get Array from a call in Web3j

I have a solidity function that returns an array. I'm trying to read the values inside this array from web3j but it gives me stage results. My solidity function function getAllSubTokenByTokenID(...
0
votes
1answer
53 views

How to understand from web3py if I need a transaction or a call

I have a contract with a function in which only if a certain condition is true, it changes the state of the blockchain otherwise it emits an event and returns: address[] public global_state; function ...
2
votes
1answer
108 views

Call a view function of an Ethereum Smart Contract using a program written in C

my attempt is to call a view function to reatrieve some data from a contract on the Blockchain using a C program. I do have the interface of the contract. I think i need to performe two things in ...
1
vote
2answers
2k views

Can I get the return value of a .call from a contract from the Blockchain?

I know that if I use call from a contract, that I cannot get the return value. I get a true or a false. Is it possible for me to inspect the blockchain afterwords to get the return value? For ...
2
votes
1answer
1k views

Why does this throw a stack underflow error?

Simple contract, one function. function getSha256(uint32 nonce) returns (bytes32 hash) { return sha256(nonce); } > contractInstance.getSha256.call(1); Error: Error: VM Exception while ...
2
votes
1answer
930 views

What happens when you use multiple “call” arguments?

I have a piece of code like so: address x=0x01234..; x.call(data1, data2, data3); Will this do what I expect and call the contract at address x while passing the data in concatenated like data1+...
2
votes
0answers
1k views

eth_call using INFURA

I've developed a very simple smart contract and I'm trying to invoke a function using eth_call. The contract is deployed on the revived Ropsten testnet. If I invoke the function getSTR() sending the ...