All Questions

0
votes
0answers
2 views

Can I deploy a contract from within a contract?

We can create accounts from contract code: https://github.com/angelol/smart_account_creator and we can query things about accounts: https://github.com/nsjames/Account-Has-Code is there a way to ...
0
votes
0answers
7 views

Error while pushing a transaction using python?

after successfully signed the transaction, when i try to push it using the pyton api from the eos developers portal, i got the following error {'code': 500, 'message': 'Internal Service Error', '...
0
votes
1answer
9 views

Can the eos active key change the eos owner key?

I forgot the owner key, can I change the owner key with the active key?
0
votes
1answer
8 views

running hello.cpp tutorial, stuck at compiling WASM, abigen error, file read error

I'm running 3 cores confirmed on virtual machine (per solve for similar problem), and I'm still getting this error: ~/eos$ eosio-cpp -abigen -o hello.wasm hello.cpp error: error reading '/home/corey/...
1
vote
1answer
24 views

Is it possible to create new contract from another?

Ethereum has a opportunity to create new contract from another. Does eosio has the same? I found a code with new account creation, but I didn't find nothing about setting code and abi from contract.
0
votes
1answer
20 views

Installing and running an EOS mainnet node

The purpose of this installation is for me to be able to make /v1/chain/ mainnet API requests on a remote server that I have access to that won't disrupt mainnet itself. I tried using EOSNation/...
0
votes
0answers
12 views

eosjs cors-error on jungle testnet

I access a trivial eos contract via eosjs, which works fine on a local net, and worked(!) fine on jungle testnet, too. Retesting stuff after a weeks break, I get this error (browser console): ...
2
votes
0answers
14 views

How to get the parent action in the inline action?

There's a contract A with action void a(string memo), it calls an inline action for contract B with action void b(), can I get the "memo" parameter in the function void b()? Note that I can't modify ...
0
votes
0answers
11 views

Error while signing a transaction using nodejs wallet API?

I am building an eosdapp using nodejs code.I got the wallet api from the developers portal,but when i run the code i get the following error. {"code":500,"message":"Internal Service Error","error":{"...
2
votes
1answer
21 views

How does a node discover new peers?

How does a node that joins the network for the first time connect to peers? Are there some hardcoded peers and does it use DNS (as other cryptocurrencies)? And then, how does a node learns about new ...
0
votes
0answers
13 views

EOSJS error Non-base58 character

Please help! I'm currently encountering the ff. error Uncaught Error: Non-base58 character at Object.decode (eosjs-jssig.js:26) at Object.checkDecode (eosjs-jssig.js:15) at y (...
0
votes
0answers
25 views

Cannot create account using the EOSJS Create Account

eosjs 20.0.0 cannot create new account using the eosjs rpc call see following code snippet below. const addPrivateKey = "EOS8i1CXTY4Sz39XaQWX2RpccsCZ1nWM3w9zRhjCFChdci2Y65ck4"; const rpc = new ...
0
votes
0answers
13 views

How to unlock my wallet using nodejs?

The code given below is my nodejs code forunlocking my wallet name "seek".I got this API from eos developers portal,but don't know how to pass input data(wallet name and password) into it.Please help ...
1
vote
1answer
13 views

Is it possible to lock publish contract with set permission?

Is it possible to setup a lock (multisig) for the command cleos set contract ? in order to request one or more signatures to deploy a contract ? cleos set action permission eosio eosio set ...
0
votes
0answers
9 views

Why don't we need to specify the account permission when executing unlinkAuth?

EOSIO account can create additional keys beyond just active and owner. By default, these new keys will have no permission to execute any transaction whatsoever. To give the key permission you call the ...
1
vote
0answers
20 views

CPU-Usage Optimization

I'm trying to figure out how to optimize one of my smart contracts for less billed CPU-usage. There are typically different methods to optimize performance of algorithms but I'm not clear about if a ...
1
vote
0answers
20 views

Why does using available_primary_key() as scope for a table result in this behaviour?

Scenario: Two tables, each using uint64_t as a primary key Table A rows need to reference rows in Table B Why? Relational database data duplication reasoning etc etc Both table's primary keys are ...
1
vote
1answer
17 views

Multiple active keys on an account?

Is it possible to have multiple active keys in an account? Say I wanted to have one at home and another where I want to share with a person I trust.
0
votes
1answer
18 views

It's April 2019, what's a good tutorial on how to link a web dapp to scatter or some other mobile wallet?

There have been a few tutorials on how to link scatter to a dapp which is just html/js, but those could be outdated due to the speed that eos has developed. What is the latest tutorial on how to link ...
1
vote
2answers
30 views

Why actions can't have return values?

I can't understand why actions can't return values. A simple use case is for adding records in multi_index. I need to return the primary key to link that to my off-chain data.
0
votes
0answers
18 views

Issue while compiling smart contract - eosio.cdt v1.6.1

I compile with old version to no error, but I compile smart contract with eosio.cdt v1.6.1 to error message. I use Ubuntu 18 ~/xxx/v.0.02$ eosio-cpp -o jdex.wasm jdex.cpp --abigen Warning, ...
0
votes
1answer
23 views

Cannot see my account in blocks.io

I used scatter to create my account, saved all the private info, sent EOS tokens to a contract. Here's txid Scatter shows that my account is active on mainnet, but I cant see this through any network ...
1
vote
1answer
51 views

on_notify not being fired on local or jungle testnet

I'm using the following contract on both my local and jungle testnets, the on_notify methods are not being fired. Everything appears to be in order, I'm hoping I've missed something obvious. I ...
0
votes
0answers
16 views

Duplicate symbol WASM compilation error when using header/hpp for contract

I'm looking to use a hpp file as an interface for multiple contracts. I've created a test contract and receiving a WASM compilation error. I based the test contract on the format used by eosio.token....
2
votes
1answer
30 views

Is there any way to discard a committed transaction?

I always have this doubt whenever i push a transcation. Is there any way to cancel a committed transaction before it's verifed by the block producers?
0
votes
0answers
13 views

Stuck after Docker Quick start [duplicate]

I followed steps from official guide here: https://developers.eos.io/eosio-nodeos/docs/docker-quickstart All seems to works as expected and I can navigate my browser to http://localhost:8888/v1/...
2
votes
1answer
35 views

Platforms for EOS research

Hello everyone is there a place where the community discusses relevant research for the advancement of EOS? Is there any community driven research like in Ethereum? Thanks and greetings :)
0
votes
1answer
13 views

State History - Max payload size exceeded in Jungle Block 21,289,343

The State History Plugin (SHiP) exposes the actions and deltas from the chain though Websocket. @tbfleming, the creator of SHiP, have an example application that connects to the node and gets the ...
0
votes
1answer
38 views

Casting checksum256 type to uint64_t type

I have a checksum256 type, I want to reach its specific elements as an integer. Ex cheksum256 myvar = 3dd6a4a0c86763d2a6fc1d5544eb58f3953b7cd03882e700b420fa0a89129f66; I want myvar[0] and myvar[2] ...
0
votes
0answers
17 views

error while compiling code in eosstudio?

Recentlty, i tried a eosio IDE named eosstudio,which is pretty impresive.The problem i face while compiling my code is given in the picture.then I got an advice from a telegram channel that,chenge the ...
1
vote
1answer
22 views

How to add nonce to generated (deferred) transcation

Using cleos -f adds a context_fee_action to the TX like so: "context_free_actions": [{ "account": "eosio.null", "name": "nonce", "authorization": [], "data": "...
0
votes
0answers
23 views

Uniquely identify every token

I try to develop a Token contract. I can do any modifications to this contract. Is there any possibility to uniquely identify every token created by my contract? or Is there any possibility to ...
1
vote
1answer
29 views

Build from docker clang fail v1.7.0

I have been build nodeos v1.7.0 on docker. but failed. build logs: [447/596] Building CXX object libraries/chain/CMakeFiles/eosio_chain.dir/controller.cpp.o FAILED: libraries/chain/CMakeFiles/...
0
votes
2answers
63 views

Is there any IDE for eos smart contract?

Is there any IDE for compiling eos smart contract? for example ethereum have remix to compile and run solidity based smart contract.
0
votes
1answer
44 views

How to create an API for EOSIO smart contract action?

// @abi action [[eosio::action]] void create(name user,string doctor_name,string doctor_contact,string doctor_address,string patient_problem,string patient_description,string patient_solution){...
0
votes
1answer
22 views

Any python api for getting account name by inputting public key?

Is there any python api for getting account name by inputting public key? I have got this code from developers portal, but I don't know how to use it. import requests url = "http://host/:port/v1/...
1
vote
1answer
39 views

require_auth( user ) not working in HelloWorld

I ran through the hello world tutorial. First time I ran through using v1.6 of nodeos and it worked as advertised. Upgraded to v1.7 of nodeos and the require_auth(user) did not restrict user from ...
0
votes
1answer
18 views

Is there a library for encryption/decryption in EOS? [duplicate]

I want to perform some encryption on a given message, so I am wondering if there is a library that I can use in EOS? And I have checked the post Cryptographic Operations in Smart Contracts?, but the ...
0
votes
0answers
16 views

eosjs dist files generation issue under Wsl

I would like to have a copy of the eosjs browser files as the generation of theses files (dist files) doesn't work under windows (wsl : unbuntu) where can I get these files? (I've tried to use ...
0
votes
1answer
16 views

Smart contract - find on two columns

I am currently writing a blog PoC on EOS. I would like the ability to delete a post. Now deleting by the ID alone is simple, I have it implemented as follows: whisper::post_index posts(_code, _code....
0
votes
1answer
27 views

Using the dfuse API, can I use a single EoswsClient-Instance to stream responds for multiple “getActionTraces”-requests?

example code below: client = new EoswsClient(createEoswsSocket(() => new ws(`wss://${config.dfuse.endpoint}/v1/stream?token=${config.dfuse.token}`, { origin: config.dfuse.origin }))); await ...
0
votes
1answer
34 views

how to avoid scatter confirmation message?

I have built an dapp EOS blockchain. It's almost like twitter where the user can tweet and also use as a microblogging site in EOS blockchain.I have used scatter as transaction signer for using my ...
0
votes
0answers
22 views

Regex validation on smart contracts

Is is possible to use regex validation in a smart contract?
1
vote
0answers
67 views

Node can't sync with the mainnet

my node has not been able to synchronize with the mainnet for a couple of months. A few weeks ago, synchronization was on ~95% but dropped to 93% in 2 weeks. Receiving new blocks in the mainnet faster ...
0
votes
0answers
16 views

Is it possible to encrypt a message with someone public key and decrypt with only his private key? [duplicate]

This one uses the sender's private key and recipient public key: https://github.com/EOS-Nation/eos-encrypt/blob/master/examples/encrypt-multiple-keys.ts Is it even possible to do the same but with ...
0
votes
0answers
19 views

eosjs-ecc in other languages?

I'm looking for a way to do this https://github.com/EOS-Nation/eos-encrypt/blob/master/examples/encrypt-multiple-keys.ts it Java and Swift. Did anyone try to port it?
0
votes
1answer
20 views

Stake EOS and then unstake

Is there any documentation on staking or unstaking EOS using smart contracts? I basically want to provide an escrow service where the seller needs to stake the value of the item and the buyer stakes ...
0
votes
1answer
20 views

How to add the formula of ram calculate price for eos in our project?

Actually I am building an application and I would like to add the ram calculation for eos there. if anyone wants to calculate the ram for the accounts creation, he can use our website.thanks.
0
votes
2answers
27 views

How to get data from a “packed_transaction”?

I am trying to extract the data out of a packed transaction. Specifically, I am reading a proposal from the eosio.msig table and trying to get the data from the proposed multisig transaction to ...
1
vote
0answers
21 views

No tables in abi file

I am trying to write a smart contract but for some reason my tables aren't being added to the abi file and therefore aren't being added to the blockchain. My code is as follows. Am I possibly ...

15 30 50 per page