I would get table entries by uuid. how can I convert string format 16cadf15-dda7-4be2-8026-c3c7875322d0 to an indexable eosio type ( uint64_t, uint128_t, uint256_t, double or long double). Or even use as primary key if possible. ACTION saveuuid(string uuid){ my_table mytable(_self, _self.value); mytable.emplace(_self, ( auto& row ) { row.id = mytable.available_primary_key(); ....
How reproduce sha256 in Javascript?
I actually use an implementation like the dice contract : https://github.com/EOSIO/eos/tree/v1.2.0/contracts/dice You create a key and his hash with sha256, you first send the hash and then the key to the smart-contract. The contract use the function assert_sha256. I have difficulty for creating the hash with sha256 in Javascript. The ....
How the RAM in Eos nodes works?
I want to create my own private Eos chain for my own specific use case which is very RAM hungry. Imagine that I have a network of nodes having, for example, 32GB of ram. But I have two contracts with very long arrays, each having 20GB. Are both contracts in ....
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, JsonRpc, RpcError } = require('eosjs'); //const api = new Api({ rpc, signatureProvider, textDecoder: new TextDecoder(), textEncoder: new TextEncoder() }); //required to submit transactions ScatterJS.plugins(new ScatterEOS()) const network = ScatterJS.Network.fromJson({ ....
Where is the API for block producer voting in EOSJS?
I have found the 'system voteproducer' command in cleos. Should I make a raw transaction or something like that? ....
Back up EOS ecosystem
I read some comment on reddit and this page, some people talked, EOS uses 21 BPs as active, and all of rest are standby. So I think EOS will use a server as a gateway to handle this like HAProxy, right? If it right so HAProxy will determine, which BP ....
Error 3030002 when trying to set contract steps
I'm following steps from exchange-tutorial-python's README file (https://github.com/EOSIO/eos/tree/slim/programs/exchange-tutorial-python) inside the Docker container: $ docker run -it eosio/eos # nodeosd.sh 2>/dev/null & # cleos wallet create Creating wallet: default Save password to use in the future to unlock this wallet. Without password imported keys will not be retrievable. "PW5J9S9Qwxewc8gnVpQBEedm4fGhFh4dhDzRtkAuFDPvZjsCVSLMa" # cleos ....
When will "pending schedule" become the "active schedule" for producers?
Once the block that contains the proposal becomes irreversible, the schedule is promoted to "pending" automatically. Once the block that promotes the schedule is irreversible, the schedule will become "active" ? (Question brought over from @the_dragon_master on Telegram) ....
Error: Provided keys, permissions, and delays do not satisfy declared authorizations
I am facing some error while running this command cleos create account eosio eosio.bpay EOS6wFEd5JHuUHWtaV12mxnm1v9udPsdrB7LUy1mVFc8iYJNdDMaL It show's the output given below Error 3090003: Provided keys, permissions, and delays do not satisfy declared authorizations Ensure that you have the related private keys inside your wallet and your wallet is unlocked. Error ....
How to change active key for an account?
My active and owner keys are the same. I want to change active key to be different from owner, for safety. What command should I use? ....