Questions tagged [json-rpc]

json-formatted remote procedure calls to communicate with ethereum clients

Filter by
Sorted by
Tagged with
0
votes
2answers
174 views

.json files for contracts are not created

I am really new in ethereum and solidity and I am having hard time to figure out how to get the .json equivalent for contracts. I have the Campaign.sol inside the contractsFolder. The Campaign.sol ...
0
votes
0answers
7 views

Is it possible to connect to infura using a standalone executable?

New to eth dev here, so trying to figure out what's currently possible. Can an HTTP response contain the wallet information required to run a contract on the ethereum blockchain? I am making a ...
1
vote
1answer
85 views

No shares accepted when connected to LAN farm node

I was mining for about 30 hours and nothing showed up at the pool. They never saw me connected. I was running geth on Ubuntu 16.04 and and mining on my windows PC connecting to geth on ubuntu box ...
0
votes
1answer
84 views

How a json-rpc client can tell that a transaction it's sent has been rejected?

Judging from https://github.com/ethereum/wiki/wiki/JSON-RPC the api client can synchronize on events such as: Transaction is received/pending: eth_gettransactionbyhash returns non-null with block ...
0
votes
0answers
25 views

Is the rate limit of bsc rpc endpoint for single user or all users that are using it at the same time? [closed]

I'm trying to build a bot that gets all of the transactions that occur in the BSC mainnet, I leant that there is a rate limit for the json rpc endpoints: https://docs.binance.org/smart-chain/developer/...
2
votes
2answers
941 views

Ether Historical Price Data

I am looking for historical ether prices. There was a thread already discussing this enter link description here, however, I would like to get not only the prices available for Ether on Poloniex but ...
1
vote
1answer
104 views

Cannot call function in openzepplin ERC1155 contract via web3/metamask

I am trying to call the balanceOf function in a pretty barebones openzepplin ERC1155 contract through metamask. I am using web3 only to generate the ABI, and metamask to actually send out the call. ...
3
votes
1answer
266 views

Getting the latest eth_call result from a cluster of nodes

What's the best way to know the block number associated with the result of an eth_call? Assume I have several nodes that i'm running and i'm making calls to all of them (for redundancy). My goal is ...
0
votes
1answer
40 views

Error: Invalid JSON RPC response: “”

I'm trying to get some info from an array using web3, when I try this async componentDidMount() { const product = await store.methods.storeProducts(0).call(); console.log(product); ...
1
vote
1answer
490 views

message: 'invalid argument 0: json: cannot unmarshal hex string without 0x prefix into Go struct field SendTxArgs.value of type *hexutil.Big'

I am using a JSON RPC request and source code is as follows: var options ={ url: "http://127.0.0.1:8545", method: "POST", headers: {"Content-Type":"...
1
vote
1answer
65 views

Binance Smart Chain RPC Rate Limit

In the BSC documentation, it says that we can make 10K/5mins RPC requests to their servers. Do you guys know if it's 10K per app or user?
0
votes
0answers
8 views

eth_pendingTransaction is no longer found in RPC definition, what happened and how to?

from the list of RPC definitions, we can no longer find 'eth_pendingTransactions' from the list, https://eth.wiki/json-rpc/API What replaced this API? i see that web3 still has web3.eth....
0
votes
0answers
27 views

Getting nonce too high on RPC debug_traceTransaction call

i am trying to get the transaction trace (similar to the one found as Geth trace_2 on etherscan) and to do so i try to use the debug_traceTransaction but each time with any transaction hash i am ...
12
votes
3answers
9k views

web3.js import contract abi from .json file

So I have a deployed contract with address0. I can easily interact with it using my index.html like so: import contract_artifacts from '../../build/contracts/contract.json' var contract0 = contract(...
0
votes
0answers
60 views

JSON RPC Error code -32000 when deploying on BSCTESTNET with Remix IDE using Metamask

So I wrote a contract here: https://github.com/connova/CareBuds-Finance/blob/main/contracts/Buds.sol When deploying this using the injected web3 on the binance testnet (network name BSC Testnet) using ...
0
votes
1answer
47 views

Fetch all tokens (ERC20, ERC721, ERC1155) owned by a specified address

I am building an app and I need to fetch all tokens (ERC20, ERC721, ERC1155) owned by a specified address. I've seen some services for fetching ERC20 (ETHplorer) or ERC721 (Etherscan, OpenSea) tokens ...
0
votes
0answers
25 views

I can't create new account via rpc with personal_newAccount method

I want to create new account via rpc curl -X POST http://localhost:8545 -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"...
0
votes
0answers
109 views

Create unique address per user and get notification of incoming transaction

With bitcoin I can getnewaddress for a specific user, and then receive a notification when a transfer comes in, which I can use to match to that particular user. I was wondering how I would go about ...
0
votes
1answer
121 views

Can I expose geth's rpc ONLY to Metamask connections?

I am building a private chain and rpcaddr is set to 0.0.0.0But recently I found out that this private chain has been attacked by a foreign IP, it kept trying to transfer those worthless ether out from ...
0
votes
1answer
285 views

Securing Quorum Geth Node

I have a dapp node which uses web3js to send transactions to quorum geth node. The html pages shows the http provider and the ports. In theory anyone can use these ip and public address in the html to ...
1
vote
1answer
202 views

Documentation For Token Smart Contracts with JSON RPC

This is the documentation for the Ethereum Json RPC: https://github.com/ethereum/wiki/wiki/JSON-RPC Pretty straight forward, but where is the documentation for dealing with tokens via this protocol? ...
2
votes
2answers
719 views

Checking if transaction failed over RPC

I call a contract over geth RPC using sendTransaction and get a transaction hash. Is there a way to verify over the geth RPC interface if this transaction failed due to a VM abort (Solidity throw ...
6
votes
6answers
15k views

Error: [ethjs-query] while formatting outputs from RPC: “message”:“invalid sender”

I'm using MetaMask with an app I'm developing, and previously working functions are now returning a quite ferocious error. This error has been duplicated on a number of functions in the platform, so I ...
0
votes
3answers
382 views

Unlocking Ethereum wallet using Geth JSON-RPC

When I use ETH with JSON-RPC I have error "message": "authentication needed: password or unlock» and If I manually unlock I have other error "message": "insufficient funds for gas * price + value" Any ...
1
vote
1answer
80 views

Trying to switch dapp to MATIC

I'm trying to switch a dapp to MATIC/Polygon. I get this strange error: Something went wrong: Error: Internal JSON-RPC error. { "details": "Unauthorized method: net_listening.", &...
0
votes
0answers
123 views

Transaction Underpriced at gas price less than 10Gwei on Binance Testnet

I am working on BEP20 token which I eventually want to deploy on the Mainnet. I have currently deployed the token on the Testnet. I am using metamask as my wallet. When I interact with the contract ...
0
votes
0answers
35 views

Geth Reverse Proxy “Invalid Host Specified”

I am getting 403 "invalid host specified" Running geth this way: docker run --rm -p 8547:8547 -p 30303:30303 --name=geth -dti -v /data/geth:/data ethereum-node --datadir=/data --http --http....
1
vote
0answers
37 views

Listening to smart contract events RPC, using web3, on aleth node

bakcground, I am working on an ethereum based fork of cpp-ethereum/aleth node and not using the official golang client (geth), unfortunately from what I read, websocket support has been 'ditched' in ...
0
votes
0answers
10 views

How to connect running node on aws server remotely as a rpc endpoint?

I have a full sync node running on an aws server, I am able to connect and interact with the node at 8545 locally. But I am not able to connect to it from remote computer. The code as follow. from ...
1
vote
1answer
18 views

How can I grab a list of all txHashes from the current/previous block with JSON-RPC

I would like to grab the list of txHashes in the current block or the previous block. I would like to grab this from a json-rpc api. Is this possible? All I found was grabbing info about the block not ...
2
votes
1answer
329 views

Is there any limitation for the number of threads to service RPC calls?

Bitcoin has the config. How about ethereum? (geth) https://en.bitcoin.it/wiki/Running_Bitcoin -rpcthreads=<n> Set the number of threads to service RPC calls (default: 4)
0
votes
2answers
542 views

How to get array elements in JavaScript from contract call with JSON-RPC returning an array?

I have a function in my Solidity contract whose prototype is: function checkLastCustomerInvoices() public view returns (bytes32 [] memory) When I call it from the Truffle console it returns an array ...
1
vote
0answers
15 views

What Standard RPC Errors Should I Handle?

Is there documentation that lists ALL the types of web3 exceptions that can be thrown by an RPC endpoint? eg. gas price too low, tx already known, etc.? Taking it a step further than that, is there ...
7
votes
2answers
2k views

Windows curl error with JSON-RPC

Using Windows, when I started Geth with: geth --rpc --rpcaddr 192.168.1.9 --rpcport 8545 --rpcapi "eth,net,web3,personal" --datadir C:\Users\BulldogBud\AppData\Roaming\Ethereum\testnet\chaindata --...
4
votes
2answers
1k views

Ethereum remix web3 connection problem

I tried to connect to an ethereum node by using remix. It means that I am using http and not https. However, I receive same error message: Not possible to connect to the Web3 provider. Make sure the ...
0
votes
3answers
123 views

Is there any way to scale geth (or any client) API Layer to query a single node?

as title suggest, what I'm trying to do is to have multiple "app" that expose Json RPC endpoints, like get_balance, get_block / eth_getBlockByNumber / eth_getBlockByHash, so I need to read a full node,...
9
votes
2answers
4k views

Is JSON-RPC error behavior documented?

Running geth, it's easy to see what its implementation of JSON-RPC does on errors: $ curl -X POST --data '{"jsonrpc":"2.0","method":"eth_compileSolidity","params":["contract test { function multiply(...
4
votes
1answer
4k views

UTC/json wallet file: deleted -> recovered -> corrupted. 0.1 ETH REWARD

--EDIT-- I have advanced in my research. The UTC/JSON file in question is a 491 byte file. There are 256 random characters in the file with each 16 possible characters. Like a 256-number long ...
1
vote
2answers
2k views

JSON RPC get address balance

I'm trying to get the ether balance for any ethereum address. I've set up a node with the Ethereum daemon, but as far as I can tell, using eth_getBalance you can only get the balance of your own ...
2
votes
1answer
164 views

Can't access swarm 8500 port from outside

I run local swarm node, so I can access it from localhost:8500. RPC request works fine locally. But when I try to send requests to swarm rpc from another server, it is not accessible. I see port 8500 ...
0
votes
1answer
3k views

CONNECTION ERROR: Couldn't connect to node http://localhost:8545

I have started geth using below: geth --rpc --rpccorsdomain * --rpcport 8545 --rpcapi personal,web3,eth,net and this is my web3.js code: <script src="/bower_components/web3/dist/web3.min.js">&...
0
votes
1answer
38 views

How to set params for eth_getLogs in order to query ERC721 burn event?

I want to query this data using curl. https://rinkeby.etherscan.io/tx/0x0819826eb519a33b5d856fd8566a902b7da3e30dd8635c90b75ccf70cf5cac9b#eventlog I tried this command but get an empty return. Is there ...
1
vote
1answer
885 views

web3.isConnected() returns false when connecting to geth with web3.js

I am totally new to cryptocurrency stuff. I have installed geth and web3. I want to build a web page showing account balance. I start geth with below command build/bin/geth --rpc --rpcaddr 127.0.0.1 ...
1
vote
1answer
157 views

Remix IDE Desktop + Geth node as test network

I'm trying to connect the Remix Desktop client to my local Geth node. as usual i added: geth --rpc --rpccorsdomain https://remix.ethereum.org while starting up the node. This obviously only works ...
1
vote
2answers
91 views

Accessing Ethereum network via JSON RPC from wallet balance/transactions

sorry if the question is silly.... I am tying to build a simple app that checks ETH wallet addresses balances and transactions (for both ETH and Tokens). As far as my knowledge goes, I think that I ...
0
votes
1answer
556 views

web3.eth.sendTransaction sending to random address

I've been trying since near 2 weeks to make my users able to deposit and send ethereum on site. I use geth mostly, and more recently web3.js. I face a very weird issue. All seems well, transaction ...
1
vote
1answer
30 views

Query ethereum chain without owning a node

When I want to query the ethereum blockchain I use infura server with a curl command like this: curl https://mainnet.infura.io/v3/2a8c33bac50647a6be2638a92f9d4a4c -X POST -H "Content-Type: ...
2
votes
1answer
778 views

how to call web3.isAddress() via JSON-RPC?

web3.isAddress (and other web3 methods such as toWei) works fine in the geth console, but when called from RPC (or IPC), it always returns {"jsonrpc":"2.0","id":1,"error":{"code":-32601,"message":"...
2
votes
2answers
2k views

web3 js eth.contract equivalent in PHP

var Web3 = require('web3'); var web3 = new Web3(); web3.setProvider(new web3.providers.HttpProvider("http://blahblah.com:8545")); var token = web3.eth.contract(ABI).at("x0x_contract_address") How ...
1
vote
1answer
461 views

Ethereum Contract ABI - Encoding for functions with no arguments

I am using argument encoding from this page (https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI) to build data field for offline signing. I am using eth.sendRawTransaction to call a function ...

1
2 3 4 5
11