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 ...
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 ...
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 ...
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 ...
tmm♦
- 2,114
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 ...
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, ...
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 ...
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 ...
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!
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 ...
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 ...
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 ...
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.
...
2
votes
Accepted
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": "...
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 = "...
1
vote
Is there a convert API for Bancor on EOS?
It looks like their API only supports ETH and the docs say that it's in alpha, so we may see it supporting EOS soon. You can ask in their Telegram to see if the API is ahead of their docs.
With that ...
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":"...
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 ...
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.
...
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....
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 ...
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/...
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.
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.
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.
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 ...
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 ...
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
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:/...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
api × 54nodeos × 11
rpc × 11
transactions × 10
eosjs × 7
smart-contract × 5
cleos × 5
account-name × 4
accounts × 3
action × 3
wallet × 3
javascript × 3
public-key × 3
apiendpoint × 3
eosio.token × 2
tokens × 2
c++ × 2
mainnet × 2
keosd × 2
wasm × 2
python × 2
c# × 2
explorer × 2
eosio-code × 1
block-producer × 1