Questions tagged [api]

The tag has no usage guidance.

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

Trace API get block call fails on a few blocks - _binary_to_variant function crashing

I'm running 6 mainnet archive nodes, today morning onwards a few blocks are returning 500, internal server error! curl --location $url/v1/trace_api/get_block --header 'Content-Type: application/json' -...
Shinto C V's user avatar
0 votes
1 answer
41 views

How to return all/multiple tokens owned by an account?

How do you return the balance of multiple tokens for an account in a single call? I'm using get_currency_balance to return the balance of a single token: POST https://eos.greymass.com/v1/chain/...
Yeti's user avatar
  • 3
0 votes
1 answer
29 views

Issue tokens via API

I can issue my own tokens via cleos, it works fine. But I can't find any reference on how to issue tokens via EOS API. Is there any way? Thanks in advance.
lxndrbnsv's user avatar
0 votes
0 answers
27 views

How to import key to wallet using api

I want to import the key generated from the mnemonic to the wallet of eosio server using the api. Please let me know the api like the work on the following cmd. cleos wallet import ********************...
MidasTouch's user avatar
0 votes
1 answer
122 views

Is the genesis.json initial_key is used to sign transactions in multi-node blockchain?

In my private multi-node blockchain. There are 4 nodes. One genesis (only receives blocks) and Others (Produce and receive blocks). All nodes share the same genesis.json file. Inside genesis.json I ...
Varsh's user avatar
  • 307
0 votes
1 answer
132 views

Get_account with Python

After reading the documentation about EOS APIs, I tried to get information about an account on the blockchain by following examples and docs. However it's not working and I really don't understand why....
Matteo Pinna's user avatar
0 votes
1 answer
267 views

EOSFLARE API Request

I'm trying to test the APIs I've found on eosflare because I need to find some blocks and transactions information for my thesis. I was wondering if I could retrieve the data without downloading cleos ...
Matteo Pinna's user avatar
1 vote
1 answer
74 views

EOSIO Error: 3040006 from api

from this afternoon we receive the error in question from the api, without having changed anything after several months of use. Anyone have an idea why?
Marco's user avatar
  • 11
1 vote
0 answers
12 views

Is there any way to know the number of transactions?

Is there a way to know in advance the number of transactions of the block value generated after 30 seconds, 1 minute, and 2 minutes?
heeeeehsh's user avatar
0 votes
1 answer
140 views

How to get the genesis block of a running EOSIO blockchain?

Given the P2P and API endpoints of a running, public EOSIO blockchain, how do I query either of them for the JSON genesis block description of that running blockchain? Specifically, I want to discover ...
Fabiana Cecin's user avatar
0 votes
2 answers
110 views

Can I send transactions to nodeos via websocket? are there any 'API' available?

For some reason I need send transactions to nodeos via WebSocket I tried to find relevant information from the developer documentation, but did not find
姜海涛's user avatar
  • 103
0 votes
1 answer
76 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....
Varsh's user avatar
  • 307
0 votes
1 answer
70 views

How to integrate Restfull API with smart contract using c#?

I am new to EOSIO. I referred eos.io for learning. Now I need to learn how to integrate API with a smart contract. I am willing to do this in c#. I got answers mostly for eosjs which is used in nodejs,...
Varsh's user avatar
  • 307
1 vote
1 answer
50 views

Profiling EOS.IO smart contract code

What's the best way for profiling the code of an EOS.IO smart contract? I'd like to know what percentage of the CPU time is spent on executing each function\line (including multi index table function ...
Yogev Mashiach's user avatar
1 vote
1 answer
128 views

Error: Number is out of range

I am trying to create and account from another account, both on JungleNet. I am using junglenet rpc. Here is my code: const {Api, JsonRpc} = require('eosjs'); const {JsSignatureProvider} = require('...
falcon's user avatar
  • 31
1 vote
1 answer
795 views

Error: fetching abi for eosio: unknown key

I am trying to create and account from another account, both on JungleNet. I am using dffuse for my rpc. Here is my code: const {Api, JsonRpc} = require('eosjs'); const {JsSignatureProvider} = ...
falcon's user avatar
  • 31
1 vote
1 answer
380 views

What is a replacement for deprecated v1/history/get_transaction?

https://developers.eos.io/eosio-nodeos/reference#get_transaction-1 Api docs says that history plugin is deprecated. So v1/history/get_transaction is deprecated as well. Many eos nodes don't support it ...
rvit34's user avatar
  • 111
0 votes
1 answer
190 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 ...
Viktor Gagaleski's user avatar
0 votes
1 answer
27 views

get total blocks on eos chain

Through one these api endpoints, is there a request I can make to query the total number of blocks on the chain?
Fifth Dimension Dragon's user avatar
0 votes
1 answer
76 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 ...
shalakhin's user avatar
  • 135
0 votes
1 answer
545 views

Get public key of an EOS account name

Most questions are asking about getting the account name from a public key. But what I'm looking for is getting the public key from an account name. How can this be done via one of the BP public api ...
Patoshi パトシ's user avatar
3 votes
2 answers
177 views

modules.format.encodeName() replacement in 20.0.0?

In [email protected] I have a Eos.modules.format.encodeName() Is there something like that in [email protected] or what can I use to replace it?
Ivan Lemeshonok's user avatar
5 votes
1 answer
219 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 ...
hungl's user avatar
  • 51
0 votes
2 answers
328 views

Mainnet Api to generate new account?

Using this api http://faucet.cryptokylin.io/create_account?testingaccoun2 it's possibile to generate new wallet whicch can be used on the testnet of crypto kylin. I need same thing for the mainnet, ...
Thomson Ignesious's user avatar
4 votes
3 answers
2k views

What is the most reliable endpoint for `/v1/history/get_actions/`

I want to get info about my account's actions So I am using the endpoint https://history.cryptolions.io/v1/history/get_actions/ also add the params required. But my question here is some time it takes ...
Nirdesh Kumar's user avatar
1 vote
1 answer
98 views

What actions should be done to get binargs without EOS api abi_json_to_bin?

I am writing java code for communication with eos network and now need steps which should be done for retrieving data in the bin format without help of the node. Unfortunately I have not found ...
Andrey's user avatar
  • 33
4 votes
1 answer
762 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: ...
Nirdesh Kumar's user avatar
0 votes
1 answer
486 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 ...
DedaDev's user avatar
  • 101
1 vote
1 answer
106 views

Is there a convert API for Bancor on EOS?

I was looking at the Bancor's documentation and was particularly interested in the Bancor API, mostly the convert function as described here. I've seen that it says only ETH is supported as of yet ...
Linda's user avatar
  • 185
1 vote
1 answer
150 views

Get all associated EOS accounts linked to a public key using javascript using a public endpoint?

I want to return all the associated EOS accounts that is linked to a specific public key in JSON format for my javascript dapp. Currently I can paste the pub key into: https://eosflare.io/key/...
Patoshi パトシ's user avatar
2 votes
3 answers
1k views

How to properly use cleos get table with --key-type sha256 / secondary index (failing on 1.4.2)

I am not able to filter a hash correctly, using get table / get_table_rows. Also I noticed that the abi is not generating a secondary index, although I am assuming this is not the problem, since ...
gustavomick's user avatar
1 vote
2 answers
182 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: ...
Sanghwan Lee's user avatar
3 votes
3 answers
522 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, ...
Gotenks's user avatar
  • 141
1 vote
0 answers
220 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 ...
Linda's user avatar
  • 185
1 vote
1 answer
61 views

Which eos block explorers have an API endpoint to query accounts?

Which eos block explorers has an api endpoint where I can query an account? I want to pull in account json data into my javascript application.
Patoshi パトシ's user avatar
2 votes
1 answer
217 views

ABI File To Communicate With Unity Game Engine

So I'm building an HTML5 Unity game that will run in an internet browser attached to the Interplanetary File System. Unity allows for JSON files to be used to send and receive binary data between ...
Brian M.'s user avatar
  • 141
1 vote
2 answers
82 views

Where is the best place to get API calls of what happens to an account?

Is there a blockchain explorer like blockchain.info that lets me access an API to do a query if something happens to an account? I want to get a json response of all transactions of an account. Say if ...
Patoshi パトシ's user avatar
3 votes
1 answer
105 views

Is it possible to use eos as the only backend for web application?

If I create a smart contract implementing the logic there and put js/images outside the eos platform (say S3 or else) is it possible to use eos platform to host 100% backend? As I understand eos ...
shalakhin's user avatar
  • 135
2 votes
1 answer
72 views

I Need Help Setting Up a Back-End Infrastructure for my Future DApp

I'm going through the process of designing a desktop DApp. I'm going to use GraphQL API's to connect the EOS blockchain to a Node.js server that'll use MongoDB with Electron.js and React.js on the ...
Brian M.'s user avatar
  • 141
3 votes
2 answers
2k views

How to get transactions from an account through API call

Is it possible to get the incoming and outgoing transactions from an account? according to this https://developers.eos.io/eosio-nodeos/reference link there is no way to do so. I've seen people making ...
Wesley's user avatar
  • 41
2 votes
2 answers
979 views

How to query for all tokens owned by an acoount?

Several airdrops are coming in these days. One doesn't know which tokens are gifted to them. How can I retrieve all tokens owned by a particular account? I know how to retrieve token balance, by ...
Blockchain Experts's user avatar
8 votes
1 answer
210 views

What limits does an API endpoint impose on transactions which fail due to assertions?

Scenario: I connect to an API endpoint and repeatedly send transactions (with cleos) which are all ultimately rejected with eosio_assert_message. Such transactions don't seem to eat up CPU or network ...
Gassa's user avatar
  • 598
3 votes
1 answer
568 views

STD Exception encountered while processing chain.get_account when requesting get_account

I'm trying to get account info by posting to /v1/chain/get_account But I'm getting the following error: STD Exception encountered while processing chain.get_account Exception Details: unknown key ...
j4ys0n's user avatar
  • 131
2 votes
2 answers
264 views

cleos host not found problem

I use docker cleos as below instruction: https://developers.eos.io/eosio-nodeos/docs/docker-quickstart Before the cleos command works fine, but recently the cleos only works for read type, when I run "...
Jimmy Yu's user avatar
2 votes
1 answer
1k views

How to get all the accounts of EOS mainnet for research purpose?

How many accounts are there on the blockchain? Are there APIs/sites to get a list of all the account names/publikeys of EOS mainet?
user avatar
2 votes
1 answer
2k views

How to query account balance use EOS api?

How to query the balance of an account using EOS api? Is is possible to query account balance with public key or account name?
user avatar
3 votes
3 answers
880 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 ...
Anconia's user avatar
  • 133
3 votes
2 answers
243 views

Adding a new api for smart contracts to WASM

I'm trying to add a new smart contract API to wasm_interface.cpp. I did the same things like context_free_transaction_api::tapos_block_prefix(), https://github.com/EOSIO/eos/pull/1217, adding ...
Eugene Chung's user avatar
4 votes
2 answers
724 views

How is the action data encoded?

Take for example this action belonging to a newaccount transaction: { "account": "eosio", "name": "newaccount", "authorization": [{ "actor": "eosio", "permission"...
aza-eos.ar's user avatar
5 votes
1 answer
133 views

How to bundle several transactions into one?

How can i bundle several transactions intro one to avoid multiple posts to the RPC API?
aza-eos.ar's user avatar