Hot answers tagged

5 votes
Accepted

What is sender_id param in send_deferred function?

The sender_id is just a value set by the contract that sends the deferred transaction so that later operations can refer to the same transaction. The semantics are: sending a new transaction with ...
user avatar
4 votes
Accepted

New version of eosjs does not use chainId, How does it work?

eosjs does require chainId, but if it isn't provided directly it will be retrieved from the host endpoint. Api accepts chainId as an argument but if chainId isn't passed as an argument when the api ...
user avatar
  • 1,165
4 votes
Accepted

How to bundle several transactions into one?

There is an endpoint at /v1/chain/push_transactions which takes a payload that is a JSON array of the same JSON transactions you would send to /v1/chain/push_transaction and returns a JSON array of ...
user avatar
3 votes
Accepted

Creating a keypair through the RPC API

I would reconsider this approach because it is possible to expose your/the users private key if you rely on a thrid party to create the key. Even if the third party behaves correct, due to ...
user avatar
  • 2,104
3 votes

Can EOS.IO DApps provide websocket based APIs?

You can create a nodejs app (for example) that watches incoming blocks from EOSIO. Probably would be a good idea to create a 'cache' database for more streamlined "reading" not to query the eosio node ...
user avatar
3 votes
Accepted

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

This is a dynamic and constantly changing list and you need to find some sources for it and keep your system updated with it. Here is one place I found that lists some of the BP endpoints. Also, ...
user avatar
  • 1,686
2 votes

Can EOS.IO DApps provide websocket based APIs?

That's a really good question. Blockchain development is awesome but we have to find ways to build great experiences around it. We're asking the same type of questions as we're building our Carmel ...
user avatar
  • 131
2 votes
Accepted

Can EOS.IO DApps provide websocket based APIs?

As long as the EOS nodes are open source, we can always create plugins for it in C++. So I think it's a good idea to create a plugin that enables the running node to serve websockets connections in a ...
user avatar
  • 3,023
2 votes

Can EOS.IO DApps provide websocket based APIs?

If you want a websockets API that streams current blocks, but also past blocks, and allows you to filter actions, but also table changes.. check out https://dfuse.io .. just released!
user avatar
  • 550
2 votes
Accepted

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

@gustavomick , I think the issue is with the way you pack key256 in checksum256_to_sha256 I tested your code with static key256 checksum256_to_sha256(const checksum256 &hash) { const uint128_t ...
user avatar
2 votes
Accepted

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

According to the responses in this GitHub issue, the mechanisms that are meant to mitigate this issue are as follows: There's a maximum cpu time(30ms) for every transaction. If a transaction ...
user avatar
  • 5,524
2 votes

How to query account balance use EOS api?

You can check balance using account name. Check out get_currency_balance endpoint Balances are specific to a smart contract. Use eosio.token as code parameter for a system smart contract polling. You ...
user avatar
  • 21
2 votes

Creating a keypair through the RPC API

When you run nodeos, the RPC is start on the port number 8888. You can generate new keypair by following method: Note:- Creates a key within the specified wallet, wallet must be opened and unlocked. ...
user avatar
2 votes
Accepted

Get public key of an EOS account name

You should be able to use get_account
user avatar
2 votes
Accepted

Get_account with Python

You need 'account_name' instead of 'account', and json needs to be dumped. import requests, json url = "https://api.eosn.io/v1/chain/get_account" data = {"account_name": "...
user avatar
  • 2,255
1 vote

Understanding packed_trx

Updated Answer for producing Transaction: From the eosjs docs: https://github.com/EOSIO/eosjs You would hard code a key for dev purposes like so: const defaultPrivateKey = "...
user avatar
  • 3,405
1 vote
Accepted

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

Yes you can query that api end points as i have performed query on this api from https://www.eosdocs.io/resources/apiendpoints/ with post parameter {"public_key":"...
user avatar
  • 957
1 vote

STD Exception encountered while processing chain.get_account when requesting get_account

I think you are confused with account_name. Here, I can see two different names gy3dgnbsgige and eosblackteam. So, make sure you are using the correct account name which you created by using cleos ...
user avatar
1 vote
Accepted

cleos host not found problem

First of all I would recommend upgrading your client to match the version of the servers, since there could be a mismatch in the format or structure of the data passed around or something like that. ...
user avatar
1 vote

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

Update: EOS NY Will Pull a Snapshot for you on request and they've also open sourced their code: https://medium.com/eos-new-york/snapshots-as-a-service-airdrops-for-all-2bd51548b1ac https://www....
user avatar
  • 3,405
1 vote

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

cleos get table testtesttest testtesttest hasher --index 2 --key-type sha256 -L 45d944598dccadd8c5a56e29c9786f05fa4b23402b735de61ce2912c86bac4de This command giving you 3 rows because of usage of ...
user avatar
  • 957
1 vote
Accepted

How to pack transaction without cleos?

I ended up using https://github.com/OracleChain/chainkit/blob/master/chain/packedtransaction.cpp. This is my packtx.cpp: #include <iostream> #include <string> #include "chain/...
user avatar
  • 41
1 vote

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

You can use the get_actions filter on a Websocket connection and keep that running, and trigger things on your side with the https://dfuse.io API.
user avatar
  • 550
1 vote
Accepted

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

EOSTracker is a block explorer that stores actions for users and also provides an API.
user avatar
  • 5,524
1 vote
Accepted

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

Technically yes. Examle: a wallet can you only EOS and no backend. But in reality most probably you will need some backend.
user avatar
1 vote

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

Short answer: there is no free, open-source honey. You can start with small EC2 instance on Amazon AWS (even with "free" one) and scale up when you need it. So you will not pay a ton until you ...
user avatar
1 vote
Accepted

How to get transactions from an account through API call

It seems like retrieving transactions from an account works through get_actions but apparently, it doesn't show any data on the testnet, for people having this problem. Try check it on the ...
user avatar
  • 41
1 vote

How to get transactions from an account through API call

You can also use demux to watch for blocks that contain the actions you are interested in, then using websocket to push the data to your application
user avatar
1 vote

How to query for all tokens owned by an acoount?

Here is example: i want to check token with this account name "bitfinexeos1" I should check it with each contract name : eosio.token, eosadddddddd, eosdactokens, eoxeoxeoxeox ... from the link https:/...
user avatar
  • 174
1 vote
Accepted

How to query for all tokens owned by an acoount?

Attually, they have a list token name with token'account. You can refer here: https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/tokens.json
user avatar
  • 174

Only top scored, non community-wiki answers of a minimum length are eligible