All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
12 views

use of require_auth2

I'm interested in checking whether a specific permissions has been passed to a method invocation (as opposed to active) and have read one can use the require_auth2 method but when I try it I get the ...
0
votes
1answer
22 views

How to catch up with the latest block

Why did EOS fail to catch up with the latest block since yesterday? It was always a few minutes behind The latest block that was chased before but now can't be synchronized to the latest block and ...
0
votes
0answers
7 views

eosjs in ArangoDB Foxx service

Has anyone used eosjs lib in ArangoDB Foxx service? I tried a little and faced the issue of not being able to use Node randomBytes package. I replaced var randomBytes = require('randombytes'); to ...
0
votes
0answers
5 views

Is it possible to connect to the main net through the web ide?

I'm learning how to navigate my way around with Cleos on the Web IDE release by B1 late last year. I know it spins up a personal chain but is there a way to connect to the public chain and publish a ...
0
votes
0answers
9 views

I want to sell RAM using 'sellram' of eosio.I have written an eosjs code for the same, but it is giving error

async function sellRam(account_name, sell_bytes){ try{ const result = await api.transact ( { account: 'eosio', name: 'sellram', authorization: [ { actor: account_name, ...
0
votes
0answers
9 views

How many permissions can be created in the same account?

Is there any limit on the number of permissions that can be created in the same EOS account?
1
vote
0answers
35 views

What is the optimal hardware setup for a server designed to produce blocks with EOSIO?

When setting up a block producer server, what is the optimal hardware in order to produce blocks, where the criteria is: CPU speed must be as fast as possible at producing blocks Number of cores is ...
0
votes
1answer
27 views

How to check in my contract the incomming amount?

I would like to check in my contract the incomming amount. I tried these: void mycontract(name from, name to, eosio::asset quantity, std::string memo){ check( quantity.amount > 50, "must ...
0
votes
0answers
13 views

Find smart contract related to token

Some time ago I created and issued one token. As I remember I used this guide. https://hackernoon.com/how-to-create-and-deploy-your-own-eos-token-1f4c9cc0eca1 (now guide looks little bit corrupted) ...
0
votes
0answers
16 views

RECENT BLOCKS RECENT TRANSACTION

How I can do this with local Blockchain, I would like to have the RECENT TRANSACTIONS and RECENT BLOCKS. I use these two APIs: http://host/:port/v1/history/get_transaction http://localhost:8080/...
0
votes
0answers
13 views

Tools for development at the current stage of EOS

I am a developer coming here from Ethereum. Joining your Telegram chats and following the discussions in it, in my view, you have a lot of experience and helps the new devs. You are actually my dream ...
0
votes
1answer
34 views

How to reduce NET and CPU usage in Private EOS

I am trying to setup a private eos for my app, I want to know if there is possible to change the usage of CPU, NET etc in private setup without staking tokens. If YES, then please guide me with the ...
0
votes
0answers
9 views

Use EOS to check integrity of data

I would like to use EOS to guarantee the integrity of my data stored in a database. Each time I save the data in BD I send the corresponding hash in the Blochain. My questions are as follows: 1- Is ...
1
vote
2answers
23 views

How to get account name or list of accounts from a public key using eosjs? Account is on Jungle testnet

const { Api, JsonRpc } = require('eosjs'); const fetch = require('node-fetch'); const rpc = new JsonRpc('https://api.jungle.alohaeos.com:443', { fetch }); let validAccounts =await rpc....
0
votes
1answer
17 views

API to push action from a web application

I would like to know what is the API which corresponds to this command: cleos push action contract_name action_name'[param1,param2]' -p count@active Exemple command: cleos get info API: http://...
0
votes
2answers
24 views

Use UUID as primary key in multi_index

How can I use a uuid as the primary. struct [[eosio::table]] blackboxdata { name user; std::string uuid; std::string hash; std::string sqlrequest; uint64_t ...
0
votes
0answers
90 views

How does the new REX work in 2020 after the recent upgrade to fix the hogging up of REX resources by 1 entity

I've read that there is a new REX implementation to prevent users hogging up REX resources and causing transactions not to go through. How has it changed and how does it prevent users abusing ...
0
votes
1answer
19 views

Is it possible to see the RAM delta of a multi_index table operation, or see who is currently paying for a row in a table

My question is in the context of smart contract development, so I'm looking for solutions that work within smart contracts: 1st: Is is possible to see the RAM delta of either an individual ...
0
votes
2answers
22 views

I have some doubts about open function of eosio.token smartcontract

async function openAccount (tokenCreator ) { try{ const result = await api.transact({ actions: [{ account: tokenCreator, //'eosio.token', name: 'open', //'transfer'...
0
votes
0answers
10 views

Callback never gets called

I've got a basic contract working that issues a query and gets a query ID. however, the callback is never getting called. I have the CONTRACT_NAME and ORACLIZE_NETWORK_NAME set correctly (the latter ...
0
votes
0answers
8 views

Checking query IDs on the testnet?

I'm entering query IDs I get when running on Kylin on this website: https://app.provable.xyz/home/check_query but it's failing to find my IDs. I have a feeling that site is looking at mainnet (even ...
0
votes
0answers
10 views

Provable: incorrect account

in reading through this guide: https://docs.provable.xyz/#eos-advanced-topics I'm attempting to see the queries issued to the contract: cleos get actions oraclizeex1a -1 -4 --console but the account ...
0
votes
0answers
13 views

STD Exception encountered while processing chain.get_abi

I am trying to upload file on eos dapp but getting this error {\"code\":500,\"message\":\"Internal Service Error\",\"error\":{\"code\":0,\"name\":\"exception\",\"what\":\"unspecified\",\"details\":[{\...
0
votes
0answers
7 views

Some error when using mongodb plugin

I use the mongodb plugin and start nodeos --replay-blockchain, but something went wrong in the middle of replaying the transaction. At the same time, I found that during the replay transaction, mongod'...
0
votes
1answer
13 views

Oraclize inspecting contract queries

in reading through this guide: https://docs.provable.xyz/#eos-advanced-topics I'm attempting to see the queries issued to the contract: cleos -u https://kylin.eos.dfuse.io/ get actions oraclizeex1a -...
0
votes
1answer
32 views

Error 3090003: Provided keys, permissions, and delays do not satisfy declared authorizations on Kylin

I've created a test account on Kylin, funded it from a faucet, bought RAM and deployed a contract. when I try to call a contract method I get the above error my call attempt is made using cleos and ...
0
votes
0answers
9 views

Of what type is the return value of get_index?

Every single example out there that shows how to use a secondary index in the EOSIO platform, including the scant documentation on the function found here: https://eosio.github.io/eosio.cdt/latest/...
0
votes
0answers
11 views

ORACLIZE_NETWORK_NAME is not set

I've followed the guide on the Provable site (https://docs.provable.xyz/#eos-quick-start-checking-the-query-id) but when I try to compile, I receive the following error (it's a warning but it's fatal):...
1
vote
0answers
22 views

Is it possible to let caller to pay for the cpu of an inline deferred transaction of a contract?

For example, A send a transaction t1 that will call the contract action act1, act1 will send a deferred transaction t2. Is it possilbe that let A pay for the cpu instead of the contract account?
0
votes
1answer
17 views

Error: assertion failure with message: comparison of assets with different symbols is not allowed

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('...
0
votes
0answers
12 views

When does start eos_vm in 2.0.0-rc3?

Recently I downloaded the v2.0.0-rc3. I want to know how can eos_vm work on blockchain and when does it start. So I found it. void wasm_interface::apply(...) #ifdef EOSIO_EOS_VM_OC_RUNTIME_ENABLED ....
0
votes
0answers
17 views

Only including serialized action data in transaction

Typical eosio transactions fall just outside of the amount of data that can be sent over a LoRa radio frequency network packet. Is it possible to pack a transaction and submit it to the network with ...
0
votes
1answer
22 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('...
0
votes
1answer
33 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} = ...
2
votes
2answers
33 views

Problems with [[eosio::on_notify…]

Thanks in advance for any help. I can't seem to get on_notify to work (attempting to trigger for any tokens sent to the contract, but for the example I've tested both * and eosio.token) The method: ...
0
votes
0answers
12 views

Private Protected Blockchain Creation [duplicate]

As i am new to EOSIO, can anyone please help me in creating a private permissioned EOS blockchain on a local machine.
0
votes
1answer
24 views

Unsupported abi version

I am making an offline transaction. I am providing the API with the following parameters as an object: rpc: new JsonRpc('https://jungle.eos.dfuse.io/', { fetch }), signatureProvider: new ...
0
votes
1answer
28 views

I'm trying to transact EOS using Scatter in eosjs version 20.0. I'm getting the “f not a function” error. Can someone please guide me?

const ScatterJS = require('scatterjs-core').default const ScatterEOS = require('scatterjs-plugin-eosjs2').default const Eos = require('eosjs') const fetch = require('fetch'); //node only const { Api, ...
0
votes
1answer
17 views

EOSIO Block producer name private chain [duplicate]

I have built a private blockchain with EOSIO, but when I change the block producer name to my custom name it doesn't produce any blocks. I'm following the tutorial from the boot sequence of EOSIO. ...
0
votes
0answers
22 views

How to pass in a public key as a string to an action?

I see that public_key is public_key = std::variant<ecc_public_key, ecc_public_key, webauthn_public_key> While ecc_public_key is std::array<char, 33> How would I create a public key ...
0
votes
0answers
17 views

How to limit the maximum CPU usage in transcation in EOS smart contracts?

when I used "cleos push action ..... or push transation .....",I used "--max-cpu-usage-ms" to limit the actions not consume more cpu usage. and choice the most economical way to send Non-emergency ...
0
votes
1answer
22 views

on_notify fails to compile

I'm following the guidance at https://developers.eos.io/eosio-home/docs/notification-handlers where it states I can decorate a method with: [[eosio::on_notify("eosio.token::transfer”)]] however, ...
0
votes
0answers
7 views

How to interpret the contract?

LLVM was designed the way(Picture). And I want to know if i understand correctly. Smart Contract is byte code. So EOSIO need to interpret the byte code. EOSIO use WAVM converting to Middle End IR ...
0
votes
1answer
17 views

Cant create EOS Account with eosjs library(UnhandledPromiseRejectionWarning)

I have already run this code few week back and back then it was working perfectly but now its giving me error UnhandledPromiseRejectionWarning: Error: account names can only be 12 chars long I ...
1
vote
1answer
25 views

Can I transfer EOS from one account to other using eosjs or is EOS only used for buying RAM and staking? (Both accounts are on jungle testnet)

async function sendEos (sender, receiver ) { try{ const result = await api.transact({ actions: [{ account: 'eosio.token', //'eosio.token', name: 'transfer', //'...
1
vote
1answer
48 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
14 views

Send_transaction function is it used?

I found a strange function(send_transaction) in eos. The function is used in 1.7 version. But It looks like doesn't used in 1.8 version. And the function is duplicated of the push_transaction. ...
1
vote
1answer
25 views

How to use a secondary account to pay for primary accounts cpu/ram using eosjs java script library

I am trying to use a secondary account to pay for cpu/ram for the primary accounts eosio.tokens how do I do that using eosjs library My current action looks like this actions: [{ account: '...
0
votes
1answer
22 views

How to parse json string in contract?

My contract want to receive transfer with memo in json format, is there any libraries supporting the json parse?
1
vote
1answer
25 views

Error querying RAM: Unable to unpack built-in type etc

Hey guys I'm hitting an error while trying to query my RAM tables - the table definition has vectors of custom structs in it, and for some reason throws an error regardless of the datatype in the ...

15 30 50 per page