Questions tagged [api]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
26 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 ...
0
votes
0answers
13 views

transaction authorization failed in execute A Multisig Transaction

I am facing this error,i follow all step first i propose a multisig transaction from the account of "adeelabbasna" then i approved the transaction with account of "rajazahoor11", ...
0
votes
2answers
31 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
0
votes
0answers
12 views

Does EOS.IO's ChainAPI support contract execution?

We are looking for contract-execution capabilities similar to Ethereum's eth_call that allows for executing a smart contract via sending an RPC call. From EOS.IO's Chain API, https://developers.eos....
0
votes
0answers
11 views

Does EOS.IO's ChainAPI supports Ethereum's `eth_call` style capability? [duplicate]

In Ethereum RPC, there is an eth_call that allows to execute a smart contract function on the RPC node. Does EOS.IO's ChainAPI supports the similar capability with eth_call?
0
votes
1answer
28 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
21 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,...
1
vote
1answer
23 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 ...
0
votes
1answer
42 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('...
1
vote
1answer
187 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} = ...
1
vote
1answer
174 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 ...
0
votes
1answer
58 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
18 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?
0
votes
1answer
22 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
304 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 ...
2
votes
1answer
101 views

modules.format.encodeName() replacement in 20.0.0?

In eosjs@16.0.9 I have a Eos.modules.format.encodeName() Is there something like that in eosjs@20.0.0 or what can I use to replace it?
4
votes
1answer
204 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 ...
0
votes
2answers
260 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, ...
4
votes
3answers
1k 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 ...
1
vote
1answer
63 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 ...
4
votes
1answer
564 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
282 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 ...
0
votes
1answer
81 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 ...
1
vote
1answer
100 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/...
1
vote
3answers
925 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 ...
1
vote
2answers
109 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
345 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
187 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 ...
1
vote
1answer
35 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.
2
votes
1answer
90 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 ...
1
vote
2answers
63 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 ...
3
votes
1answer
84 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 ...
2
votes
1answer
62 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 ...
3
votes
2answers
1k 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 ...
2
votes
2answers
880 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 ...
8
votes
1answer
161 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 ...
3
votes
1answer
441 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 ...
2
votes
2answers
202 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 "...
2
votes
1answer
793 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?
2
votes
1answer
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?
3
votes
3answers
824 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
211 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 ...
4
votes
2answers
591 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"...
5
votes
1answer
110 views

How to bundle several transactions into one?

How can i bundle several transactions intro one to avoid multiple posts to the RPC API?
4
votes
1answer
337 views

What is sender_id param in send_deferred function?

I tried to implement repeated execution of particular action and set this param as _self of calling contract, but the transaction gets executed only once in this case. Then i tried to set it as time() ...
3
votes
1answer
614 views

Can actions have return types?

I've been looking at most of the example contracts and every action seems to return void. Does this mean that you can not have a return type for your actions? Instead, would you have to send a ...
3
votes
1answer
220 views

How can I call third party APIs from inside a smart contract at a set time or interval?

In a scenario where a smart contract needs to check against a third party service (Let's say an API with weather information from a trusted source like Weather.com) and make a decision on moving ...
8
votes
4answers
622 views

Can EOS.IO DApps provide websocket based APIs?

Most of centralized exchanges support websocket based APIs to stream data to users efficiently. Can we implement the same feature using EOS.IO platform?