Questions tagged [json-rpc]

json-formatted remote procedure calls to communicate with ethereum clients

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

Why does ethereum JSON RPC encode bytes as hex?

Why not use base64 since it would be more compact?
1
vote
0answers
24 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 ...
0
votes
2answers
23 views

ERROR: Provided address “6.963865902119903e+47” is invalid

Full error log: formatters.js:471 Uncaught Error: Provided address "6.963865902119903e+47" is invalid, the capitalization checksum test failed, or its an indrect IBAN address which can't be ...
0
votes
0answers
25 views

Unable to get the Ethereum accounts (eth_accounts) using the JSON RPC

I launched an Ethereum installation with the Amazon Blockchain Templates using the simplest installation, the docker-local with a private network (not connected to the public Ethereum network). ...
0
votes
0answers
13 views

Can I send JSON RPC request to Parity not from intranet? (e.g. from another external IP address)

Can I send JSON-RPC request not from a local network(192.168.xxx) ? so that I can re-use my existing ETH nodes. thanks
0
votes
1answer
29 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 ...
1
vote
1answer
55 views

Parity IPC direct connect

Before Parity I used Geth, and made requests like: echo '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["latest", false],"id":1}' | nc -NU geth.ipc and It worked! In Parity v2.7.2 and ...
1
vote
1answer
17 views

Problem with contracts being deployed multiple times in Node.JS backend

I have a Javascript frontend that passes records in a JSON to the backend via Express to be deployed to the blockchain (currently using Rinkeby) with truffle-hdwallet-provider. This appears to work ...
1
vote
1answer
30 views

Difference between web3.eth.personal.getAccounts() with web3.eth.getAccounts()

What are the differences between web3.eth.personal.getAccounts() and web3.eth.getAccounts()? environment truffle: v5.1.7 using truffle console.
0
votes
1answer
17 views

Receiving unexpected JSONRPC requests on my website

I have a production website (nothing about blockchain or related) and I a received hundreds of POST request to "/" with these params. Obviously my server raise an error because it doesn't know how to ...
1
vote
1answer
35 views

Infura getLogs returns an empty result

I'm writing a crypto based system with PHP on Infura, and now I am coding a script to retrieve logs for a specific address. This is my code: $ch = curl_init($my_server_url); $data = array( '...
2
votes
0answers
16 views

Calculated blockhash of PoA block mismatches with actual blockhash returned by RPC

I set up a Demo PoA chain using Parity Etheruem. I sent some transactions to it and it started producing blocks. A block on my demo PoA chain was generated with block hash ...
1
vote
1answer
34 views

How to guarantee the order of transactions in MetaMask?

I create my transactions with ethers.js and push them into an array like this: const promises = []; promises.push(createTokenApprovalTx()); promises.push(createFooTx()); It's important that the ...
1
vote
1answer
58 views

transactions in rpc block response sometimes have chain null and sometimes correct chain

when doing e.g. a blockByNumber rpc request I am getting a result like this from parity: https://gist.github.com/ligi/fbc7061d93f087cf0eb0f4db83d1fced what is puzzling me that some transactions have: ...
0
votes
1answer
23 views

What is the client version?

I am using Infura and web3.py. When I connect to Infura the web3 object has a clientVersion property that reads this from JSON RPC "Geth/v1.8.15-omnibus-255989da/linux-amd64/go1.10.1" Can someone ...
1
vote
0answers
103 views

Curl Request Java - How To

I am looking to use some of the management admin API's found here: https://github.com/ethereum/go-ethereum/wiki/Management-APIs but unfortunately, the web3j library does not support the calls that I ...
1
vote
1answer
30 views

TxPool on Ganache

I started using Ganache to run Ethereum and tried via cURL the following: curl -X POST -d '{"jsonrpc":"2.0","method":"txpool_status","params":[],"id":1}' http://ip:port But I got the message: ...
1
vote
1answer
21 views

eth_getStorageAt params names

I am calling geth rpc method eth_getStorageAt using json-rpc-cpp libarary. I need to know the parameters' names for the method. I can find parameters' names for eth_sendTransaction from here, which ...
0
votes
0answers
12 views

hwo to identifie error from transaction error object?

is it possible to know what is the reason of transaction error from "error" object (nonce, insufficient fund ..) is there status or something to test using it ? Geth error message is generic, I ...
0
votes
1answer
36 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
27 views

Calling a string from smart contract in go

all I want to do is call a string from a smart contract I've written using go. My smart contract is: pragma solidity ^0.4.24; contract String { string store = "abcdef"; function getStore() ...
0
votes
1answer
22 views

JSON-RPC: TheDao contract returning not null values for not existing methods in the contract

When using the geth JSON-RPC eth_call to retrieve some ERC20 token contracts symbol and name information, it comes up the case of TheDao contract. I was expecting to receive a null/empty string like ...
1
vote
0answers
23 views

Inconsistent responses with 'eth_getTransactionByHash' through RPC API. Can anyone help?

I have been using the requests library with python to query the geth/rpc api in order to get ETH transaction data. I connected to geth via "geth --rpc --unlock TESTINGADDRESSWITHNOVALUE --allow-...
0
votes
1answer
38 views

Pending transactions not mined in private network

I have created a node with the following genesis block: { "config":{ "chainId":9119, ...
1
vote
2answers
372 views

How to check Ethereum smart contract info?

I want to know 3 things: Is an address a smart contract? Is this smart contract an ERC20 or ERC721 token? Is the Solidity code public?
0
votes
1answer
22 views

View sendTransaction implementation

I'd like to see code that implements getAccounts and sendTransaction in a provider. I tried digging into the Metamask source code and found the line where Metamask supplies the Web3 provider, but I ...
0
votes
1answer
25 views

How to get initial balances for all those who bought tokens?

Is it possible to get the initial balances for all those accounts who bought ERC20 tokens? If that’s possible, how that can be achieved? I’m wondering if there is any way of getting that information ...
1
vote
2answers
62 views

Get All Contracts from Blockchain

I am developing a large database of exploitable contract addresses and creating a website to host such a database for users to use to see if contracts are safe. Is there a way to get all contract ...
0
votes
0answers
15 views

What are the steps I have to perform to make a transaction using for ETC using Kotti Testnet geth JSON RPC APIs?

I've founded API resource from Resource, and from that resource I've got This reference, which redirected me to all those JSON RPC methods and localhost geth port and its setup. What should I have ...
0
votes
1answer
28 views

Is it possible to use address you don't own while running ethereum RPC node (using geth)?

In other words, you start your own node and then somehow add accounts you don't own (aka - you don't have their private keys)? I'm asking because I wanted to make my own node exposed via RPC/...
0
votes
1answer
45 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 ...
2
votes
1answer
20 views

How is the length of the message counted when calling eth_sign?

According to https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sign The sign method calculates an Ethereum specific signature with: sign(keccak256("\x19Ethereum Signed Message:\n" + len(message) +...
0
votes
0answers
26 views

invalid JSON RPC when using custom domain name

geth --testnet --networkid 3 --syncmode "fast" --datadir "." --cache=2048 --rpc --rpcport 8545 --rpcaddr example.ropsten.hk --rpcvhosts example.ropsten.hk --rpccorsdomain "*" --rpcapi="web3,miner,...
1
vote
2answers
60 views

“Gas estimation failed” on Ropsten with Invalid RPC JSON

I'm running into an issue going through a basic example in "Mastering Ethereum"... I have a Faucet contract (on Ropsten) per the book that looks like... pragma solidity ^0.5.1; //mastering ethereum ...
0
votes
1answer
118 views

How Do You Parse Web3 Retuned JSON Objects of Events?

I am using Web3 1.0 to listen to events from a contract like this: tokenContract.events.AddressList({ fromBlock: 6020474, toBlock: 'latest' }, (error, events) => { ...
1
vote
1answer
32 views

How to add a custom JSON-RPC endpoint to geth?

I'm building an Ethereum private network and I want to make a custom JSON-RPC endpoint. I've been customizing and adding some things in the go-ethereum source code but I don't know yet where to look ...
0
votes
0answers
26 views

Why is the filter ID different ganache-cli and geth

request {"jsonrpc":"2.0","method":"eth_newFilter","params":[{"topics":["0x100791de9f40bf2d56ffa6dc5597d2fd0b2703ea70bc7548cd74c04f5d215ab7"]}],"id":0} ganache-cli`s response {"jsonrpc"='2.0', "id"=...
1
vote
2answers
135 views

How to get the miner address of a block with infura Rinkeby endpoint?

I've read some docs online that to get the miner/sealer/signer address of a particular block that runs with the Ethereum PoA/Clique consensus (the Rinkeby testnet for example), I need to call the ...
0
votes
0answers
26 views

How to enable and use the accounting module?

I found the accounting module in this line and want to use them. i attached the accounting module to parameter --rpcapi accounting when run console node but could not found this module. run node: ....
1
vote
0answers
17 views

I want to make multi-node , not private network

I know how to make multi-node in private network, but I have a question how to make a multi-node with other machines. this picture shows independent two nodes, and you can see blank on admin.peers ...
0
votes
1answer
163 views

Uncaught TypeError: web3.eth.Contract is not a constructor

For whatever reason, when I attempt to set an instance of a contract in a javascript file, I get the following message in my console: Uncaught TypeError: web3.eth.Contract is not a constructor At ...
1
vote
1answer
459 views

Sending Tether USDT via RPC JSON API call

I'm trying to send Tether using JSON RPC API via 0xdac17f958d2ee523a2206206994597c13d831ec7 contract. I've tried to cases: From simple ETH wallet From ETH wallet, which has only USDT This is what ...
0
votes
1answer
169 views

JSON RPC-HTTP API have any sort of rate limiting or throttling?

Is there any sort of rate limiting on the RPC-HTTP API? Trying to track down why my node (private chain) can only handle ~40 requests per/second. I am only load testing it with eth_blockNumber so they ...
1
vote
1answer
38 views

Do smart-contracts work as APIs?

Is it possible to put a smart contract "behind" a restful API, i.e. expose my contract functions and properties through restuful API where I can make RPC to it? Or does it work as an API already, but ...
0
votes
0answers
128 views

sendRawTransaction insufficient funds while there is enough balance

Sorry I probably create a topic that was answered multiple times but unfortunately I couldn't find a solution. I'm trying to use RPC server of Geth to send a raw transaction. I've an address with a ...
0
votes
2answers
489 views

Infura Request Limitations

Are there any official information about request limitations? I know for example that there is a limit for the amount of results in getLogs: https://infura.io/docs/ethereum/json-rpc/eth_getLogs ...
2
votes
1answer
136 views

How to find the Bytecode of Ethereum Smart Contract by just it's address using JSON RPC

I am wondering that is there any way to find the byte-code of the Smart Contract which is published on a blockchain just by having only idea about it's contract address using JSON RPC running at 8545 ...
0
votes
0answers
113 views

“Method not found” when trying to parity_subscribe to eth_getFilterChanges

Parity Ethereum version: 2.5.1-beta, tested on 2.4.6 as well Operating system: Linux (Ubuntu) Installation: binary Fully synchronized: yes Network: ethereum Restarted: yes I'm using a websocket. I ...
0
votes
2answers
56 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,...
1
vote
1answer
159 views

How create transaction raw data for using “eth_sendRawTransaction” in C#

My IoT device connects to another computer via Wi-Fi on which Ethereum (Truffle/Ganache) is running which receive a RPC from the IoT. My task is to create raw transaction data on this IoT Device, so ...

1
2 3 4 5
10