Questions tagged [rpc]
The rpc tag has no usage guidance.
52
questions
0
votes
0answers
11 views
Read EOSIO contract state with dfuse
I need to read (not stream) data (a table row) from an EOS contract (JavaScript). How? I could use dfuse, because it's free.
In fact, I need to read an article HTML (knowing its title) from Everipedia....
0
votes
0answers
22 views
Strange error in get_table_rows
I'm getting a strange error when trying to get_table_rows...
<script src='/wp-content/themes/oceanwp/assets/beta3/eosjs-api.js'></script>
<script src='/wp-content/themes/oceanwp/...
1
vote
1answer
32 views
MacOS RPC Interface not working
So, I'm just starting and I run a MacOS device. First issue:
"Failed to connect to localhost port 8888: Connection refused" after running curl http://localhost:8888/v1/chain/get_info in MacOS
I ...
0
votes
1answer
35 views
eos-sharp api call gets failed
I am a beginner with EOSIO. I may make a mistake in code. I installed eos-sharp in the visual studio using the NuGet package. My code is as below:
using EosSharp;
using EosSharp.Core;
using EosSharp....
0
votes
1answer
33 views
Error RPC ERROR 3090003: Provided keys, permissions, and delays do not satisfy declared authorizations, how to solve this error
1.abi_json_to_bin
2.unlock default wallet
3.get public_key lists,"EOS5CMpK8wH5MzFA3Vptb3RizKr5MLmEF7A4K9FhL4HSyVrVRT7o8" is one of them
4.make sure the public_key is related to the account ...
0
votes
1answer
79 views
How to retrieve filtered multi-index table data?
I have a smart contract that has a multi-index table called reservations - account, time, date, entity. From the code I am trying to use get_table_rows to get all reservations related to a given ...
0
votes
1answer
34 views
Request blocks from EOS js
From the EOS-js readme, I've followed the instructions approximately. My understand is I do not need a signature for calls for data as I am not transacting. Fine, but what I do not understand is the ...
0
votes
1answer
27 views
Is there RPC API endpoint to request how much resources account uses?
Is there any way to track or get information about current user account resources consumption using RPC API? I.e. how many operations can be executed with the current tokens or how much RAM or CPU is ...
0
votes
1answer
85 views
How do I access (sha256) / sort (i128) a secondary/tertiary indices with cleos / curl?
I'm trying to access either of our additional indices of the accountext table. I'm able to access the 3rd index but I'm not sure how to sort it, the second index returns an empty table:
// this I ...
1
vote
0answers
77 views
Unable to retrieve user tokens using get_currency_balance
I am trying to get user tokens with the following method:
static async getUserTokens(userAccount) {
console.log("Get tokens for: " + userAccount);
try {
const rpc = new JsonRpc("http://...
0
votes
1answer
127 views
EOSIO - Error 3120006: No available wallet
I have created wallet using RPC API.
http://127.0.0.1:8891/v1/wallet/create
Here, keosd run on port number 8891 and nodeos run on 8892.
Then, I have opened, unlock and import key into wallet using ...
0
votes
1answer
67 views
Create test account using EOSIO
I am new with EOSIO.
I have created account using cleos command.
cleos create account eosio bob YOUR_PUBLIC_KEY
cleos create account eosio alice YOUR_PUBLIC_KEY
It's successfully created. But, I ...
1
vote
1answer
60 views
RPC Wallet integration API throwing an error
I am new with blockchain services. I have created wallet using command line.
curl -X POST http://127.0.0.1:8888/v1/wallet/create -d '"WalletTest"
It's created successfully.
But, I'm trying to ...
0
votes
1answer
350 views
Is there public node available for nodeos & keosd?
Is there any public node url exists of nodeos and keosd for EOSIO mainnet and testnet? Using that URL will access all RPC methods of chain and wallet.
0
votes
1answer
249 views
Get address or eos account transactions
I want to get transaction list of request address or account using EOSJS or any RPC method. Kindly guide for it. As per check EOS dev documentation unable to find method which fullfill this.
1
vote
1answer
264 views
Difference between EOS transaction “traces” and “trx”
I use RPC to retrieve transaction information - e.g:
{
"id": "84373c7756f0ad09972cd839c4b862328aa96b40ea52b3e91633acf583dffe44",
"trx": {
"receipt": {
"status": "executed",
"...
0
votes
1answer
40 views
Create account in EOS using RPC method or npm package [duplicate]
I wants to create account in EOS using RPC method or Npm package.As per review dev doc of EOS not found any methods for it. I am implementing this in nodejs.
Kindly guide for it, how can i process ...
2
votes
1answer
186 views
Where are lower_bound and upper_bound on get_table_row on nodeos 1.6+ rpc api?
I noticed that the lower_bound and upper_bound parameters do not exist anymore after the nodeos 1.6 version on the RPC api.
https://developers.eos.io/eosio-nodeos/v1.7.0/reference#get_table_rows
...
4
votes
2answers
502 views
Get Table Rows with Pagination
How do we get records from a table by pages?
My requirement: I have a table with 100 records and want to display all these records in my front-end-application with 10 records per page and if the user ...
1
vote
2answers
222 views
Is there a way to query table with the value of a particular data field
Is there a way to query table with the value of a particular data field (for example, a token value) when using 'get_table rpc'? Only users whose token value is greater than 30 are output.
5
votes
1answer
208 views
Different actions count returned in every request
I launched private EOS network with bios boot tutorial.
Then I pushed some transactions to the network. Now I want to retrieve all actions for an account useraaaaaaah. But every time I make a request ...
5
votes
1answer
316 views
Is it secure to use keosd in an aws to let dapp/app server sign transaction?
I would like to know if it is secure to run keosd on an aws locally as a hot-wallet, to let the server of a dapp send a transaction which should be signed to the aws. The server of the dapp would get ...
4
votes
1answer
613 views
New version of eosjs does not use chainId, How does it work?
I have worked with both new and previous versions of eosjs. In the previous version I had to make a config object like this:
Eos = require('eosjs')
// Default configuration
config = {
chainId: ...
0
votes
1answer
314 views
Understanding packed_trx
I have a problem with pushing transaction on blockchain, I think the problem is with the serialization of packed_trx. There is not enough info about it. So basically I took this JSON object below and ...
1
vote
2answers
544 views
How to implement “cleos push action” in Node.js via RPC or eosjs?
I'm working on Todos example in the following link.
To Do list smart contract
By using cleos utility, everything works fine.
Now, I'm trying to access the smart contract with Node.js RPC.
How ...
1
vote
2answers
126 views
Node API - Exception Details: 4 parse_error_exception: Parse Erro
I just used node api to access the keosd for wallet lock.
But I've got the following error..
2018-11-12T08:52:24.874 thread-0 http_plugin.cpp:474
handle_exception ] Exception Details: ...
2
votes
3answers
369 views
How to pack transaction without cleos?
So the new API only accepts a packed_trx but there is no RPC call to pack a signed transaction.
How can it be done on system without cleos installed? Is there any implementation in pure Python, ...
1
vote
0answers
193 views
List of transactions from a contract
I've been on this all day and can't figuring it out on my own so I'm reaching out for your help ;-)
How can I get the list of ALL the transactions associated with an account? I've tried to play ...
2
votes
1answer
166 views
Send same action as `cleos push action hello hi …` in smart contract tutorial
I finished smart contract tutorial, and it worked well.
Now I'm trying to send same action as cleos push action hello hi '["bob"]' -p user@active in tutorial by using RPC API, cause need to implement ...
2
votes
0answers
235 views
How do I pack a transactions in Python and push to RPC?
I am trying to write a python script to call my test network and create accounts and push transactions.
Is there any good RPC examples of creating and pushing transactions. The examples I found stop ...
1
vote
1answer
203 views
Getting bin for multiple json payloads via RPC abi_json_to_bin
I'm trying to get the bin data for a multi action transaction similar to account creation but the RPC abi_json_to_bin doesn't seem to accept a list of json payloads. Is there a keyword/struct I should ...
2
votes
1answer
166 views
The order of pushing actions using node RPC
I am writing a contract that will store specific data in the table. And I want to trigger a node js function on my server that will call a specific action on a contract with specific parameters. The ...
3
votes
1answer
607 views
how to create private network same as mainnet?
I want to build a private network same as the mainnet of eos. Just like it's mainnet I want to have 21 producers I want voting and etc. etc. how exactly I can do that can anyone list the steps for the ...
3
votes
2answers
290 views
transaction can't be found when use cleos
when use cleos
chuck@chuck-MacBook-Pro:~/seaify/mine/coindream(master↑1|✚3) % cleos
get transaction
5af0762b78073cf20769f9ca884e3c4ec29d0d0f564fb4da9c1361e2b7302954
(master↑1|✚3) Error 3200006: ...
1
vote
2answers
137 views
Problem with keosd connection via http rpc
I start nodeos and keosd as docker image. nodeos is listening on 8888, keosd - 8900.
When I work via cleos - this is normal.
When I get chain_info - nodeos get me normal info.
When I get wallet_list - ...
5
votes
1answer
112 views
why core_liquid_balance field not show at cleos get account?
when use http://api.oraclechain.io, core_liquid_balance field is missing
{
"account_name" => "wangmingyuan",
"head_block_num" => 12584842,
"head_block_time" => ...
3
votes
3answers
858 views
How to create wallet using eosjs or RPC call
I want to perform
cleos create wallet -n <wallet_name>
using an RPC call or any predefined library like eosjs.
Please Help...
EOS version : 1.2.0
2
votes
3answers
1k views
Where is wallet rpc api documentation?
Reading through the nodeos RPC API docs on the eos.io website, there are many different API's documented: Chain, History, Net, Producer, DBSize. And the docs for many of the RPC calls in these tell me ...
2
votes
3answers
385 views
RPC interface not working?
I am following the steps in this tutorial:
https://developers.eos.io/eosio-nodeos/docs/docker-quickstart
and everything has worked so far. However, when I try this:
"Also go to this address in ...
2
votes
1answer
686 views
EOS: How to get structured data within transaction?Is there restful API for this/
Suppose A sent a transaction to SC(smart contract), including structured data, for example:
{"intention":"like","target":"ae16xx0...."}
As usual, this transaction will be stored on all nodes in the ...
0
votes
1answer
850 views
Is it possible to create an account using RPC calls?
Is it possible to create an account in mainnet using RPC calls?
First, I built EOSIO nodeos in my own remote server, and I successfully created my coworker's account using cleos.
$ cleos system ...
1
vote
0answers
285 views
How to pack a transaction to be pushed to rpc using push_tranasction?
Im trying to figure out exactly what is expected to pack a transaction. I've written a class to pack my transaction based off of a couple of opensource projects I've seen. First of all is there any ...
1
vote
2answers
260 views
Wallet location different between RPC API and cleos
When running a local node (on a Mac), the RPC API uses a different location to locate the wallets compared to the cleos CLI.
RPC (E.g. http://127.0.0.1:8888/v1/wallet/list_wallets) uses:
/Users/<...
3
votes
3answers
840 views
Creating a keypair through the RPC API
Is there a way to create a keypair through the RPC API? Previously, I've been doing this with cleos wallet create_key or cleos create key but now I'm building an application that needs to do this ...
2
votes
2answers
671 views
How can I transfer tokens using RPC?
The RPC documentation doesn't list any functions for transferring tokens. How can I do this using RPC?
0
votes
1answer
305 views
How do you create the packed_trx field when submitting a transaction to the chain?
When submitting a signed transaction to the chain via the RPC interface, I get an error about an "Invalid packed transaction". What is the process for packing a transaction for submission to the ...
1
vote
1answer
2k views
Setup full eos node
Is there any way to setup eos node as full node for using it like some tracker (I mean for getting balance or transaction history by public address without importing private keys)?
6
votes
4answers
3k views
Get balance by address
Which endpoint can return me balance and full transaction history by given parameter address. Accordingly to this documentation RPC documentation I need to have account name. Or how can i start FUll ...
5
votes
1answer
111 views
How to bundle several transactions into one?
How can i bundle several transactions intro one to avoid multiple posts to the RPC API?
3
votes
1answer
197 views
The documents of RPC API has been out of date?
I want to provide some RPC interfaces for web to interact with my own contract. I want to use the way like
curl http://localhost:8888/v1/chain/push_transaction -X POST -d '{"ref_block_num":"100","...