Newest Questions
2,407 questions
0
votes
0
answers
18
views
unstaking wax problem in eosauthority
i was unstaking wax in eosauthority, i waited 3 days after that i clicked the manually refund and it says Transaction failed - assertion failure with message: refund is not available yet.
0
votes
1
answer
45
views
What is the eosio private key when running on local?
I was trying to test the smart contract I created in my local but I am currently blocked as I can't create a new account. As per EOS documentation, I used the command below to create a new account:
...
1
vote
1
answer
45
views
I want to store additional data on the "submit_transaction" using transact on the api object
I am new to the eosio platform. My goal is to store additional data onto the testnet.eos.io and receive a transaction_id which I managed to do. However on searching my transaction_id I see my ...
0
votes
1
answer
97
views
Go Away: Wrong Chain
I am really not certain what happened here, but I was trying to change my keypair in the config.ini file because I could not get it to register as a block producer. And then after restarting it I have ...
1
vote
0
answers
53
views
How to catch transaction errors?
I'm trying to send a specific number of transactions per day to a smart contract.
Because of low CPU stake I easily get CPU error.
My goal is to catch this error and handle it in order to keep trying ...
0
votes
0
answers
29
views
How to import key to wallet using api
I want to import the key generated from the mnemonic to the wallet of eosio server using the api.
Please let me know the api like the work on the following cmd.
cleos wallet import ********************...
0
votes
0
answers
100
views
unable to unstake or withdraw tokens
I tried to withdraw my EOS from Simpleos wallet but was getting " Error: billed CPU time (286 us) is greater than the maximum billable CPU time for the transaction (0 us).
So ,I decided to stake ...
0
votes
1
answer
50
views
How does --contract-whitelist and --actor-whitelist work for nodeos?
Does the --actor-whitelist and --contract-whitelist work in the sense that if the list is set for that block producer that only those actors can perform transaction and only those contracts may be ...
0
votes
1
answer
426
views
Index - Constructor for must explicitly initialize the member which does not have a default constructor
I try to create two tables and mult_index, I received an error on output.
header file
#include <eosio/eosio.hpp>
#include <eosio/asset.hpp>
using namespace eosio;
CONTRACT game : public ...
1
vote
1
answer
327
views
How to extract data from atomic assets ATTRIBUTE_MAP
Title says it all. I'd like to get data from atomic assets' attribute map.
This is the link to their docs https://github.com/pinknetworkx/atomicassets-contract/wiki/Custom-Types#atomic_attrbiute tried ...
1
vote
0
answers
112
views
Staking NFT to withdraw a token
What would be a good example of a smart contract that will allow users to stake NFTs and withdraw an amount of a certain token on a daily basis?
0
votes
1
answer
26
views
How do you run nodeos as a non-root user?
I'm working on one node which is running on a testnet, and since I'm kinda new to this environment I'm wondering how can I drop privilege level to a non-root user for running a node on a server?
Can I ...
0
votes
1
answer
59
views
Is there a way to convert an object to JSON in the smart contract?
I want to convert a series of data/object/struct into a json text before saving it into my table.
Is this possible?
1
vote
0
answers
38
views
How to properly replay blocks to generate trace data?
When attempting to query a specific block against the trace_api on an EOS node that has full chain data and I'm receiving a 404 error.
curl https://mynode.localhost/v1/trace_api/get_block --data '{&...
0
votes
0
answers
99
views
Error 3070003: Serialization Error Processing WASM while set contract eosio.system
set contract: cleos set contract eosio ./eosio.system -p eosio@active
I get : Error 3070003: Serialization Error Processing WASM
Publishing contract...
Error 3070003: Serialization Error Processing ...
0
votes
2
answers
62
views
How to find lost tokens? I staked eos bet tokens from a trust wallet. I played on site where it showed they were staked. Went back and they were gon
I have a transaction number showing the 300 went to another address. Think it mighta been the wrong address. I was staking form trust wallet which is a binance address but I think it mighta sent to an ...
0
votes
1
answer
164
views
How to deploy a smart contract on the mainnet?
I created and tested my smart contract on testnet.
Now I want to deploy it on mainnet, I assume I have to purchase some EOS token and buy ram, cpu and net... I can't find anything in the docs about ...
1
vote
0
answers
137
views
solved - contract to transfer multiple tokens
I tried to create a function to transfer multiple tokens on one transaction.
code.
token.cpp
void token::transfers(const name &from,
const name &to,
...
0
votes
1
answer
84
views
Skipping resource provider: Blockchain not supported by this resource provider
I'm using Anchor Wallet to sign my transactions (through UAL) and sometimes, it's bugging with this error whenever I try to sign a transaction:
Skipping resource provider: Blockchain not supported by ...
3
votes
0
answers
192
views
Random Number Generator without wasting RAM
I want to implement RNG on EOS the mainnet. My reference is the WAX ORNG smart contract
It is based on the signidice which is an Ethereum implementation.
That algorithm is based on an external oracle ...
1
vote
1
answer
557
views
atomicassets mintasset in contract
I am trying to mint an NFT as a reward for player via the smart contract, here is my code.
eosio::action mint_action = eosio::action(
eosio::permission_level(_self, eosio::name("active")),
...
0
votes
1
answer
177
views
Windows Docker Wax Dev failing to build eosio.token contract
Im installing the Wax Dev docker container via:
docker run -it --name waxdev -v c:\wax:/wax waxteam/dev bash
I then go to run the basic tutorial of creating a simple EOSIO.token from https://...
1
vote
1
answer
42
views
confusion with contract names and account names in eosio testnet
When writing contracts, the contract class in file name_a.cpp is defined as follows:
class[[eosio::contract("name_a")]] name_b : public contract {..}
In my understanding the name of the ...
0
votes
1
answer
58
views
EOS Studio set code permission
Is it possible to set code permission inside EOS Studio?
I'm getting this error when I try to add one
0
votes
1
answer
117
views
Is there a C++ library just like eosjs?
I want to sign and send transactions (generally trigger any smart contract action) from a c++ external app. How can I do this?
If my app was in javascript, that would be easy since I know that I can ...
0
votes
2
answers
426
views
How to listen/get on-chain data in real time
I know that I can use eosjs to read/query multi_index table data from the chain. However, my goal is to listen to/on these changes. Specifically, I want to receive a notification whenever something ...
2
votes
1
answer
111
views
Can I make a http request from smart contract code?
I know that eosio has http plugins, which is why I'm thinking that maybe a http library is embedded to the eosio.hpp and that I can use it internally to send http requests. Is this possible?
My goal ...
0
votes
1
answer
72
views
How can I remove a corrupted multiindex table from RAM
Ok, so I made a beginner coding error in a token contract, mis-typing the return value from get without & (yes, I now see the Warning in the docs at https://developers.eos.io/manuals/eosio.cdt/...
0
votes
0
answers
53
views
How to link an external library to my eosio smart contract?
I normally use eosio-cpp to compile my smart contract, but recently I needed to use an external lib and link to it to build my project.
I checked the docs here, but it basically shows how to use cmake ...
0
votes
0
answers
36
views
Is ECDSA in EOS still viable?
I initially came from Ethereum and found out about ECDSA there. I'd like to do something similar at EOS.
I have found this code: https://github.com/miguelmota/eos-ecverify but it doesn't compile when ...
0
votes
1
answer
173
views
Nodeos unlinkable_block_exception
I'm currently trying to run WAX Mainnet locally but was getting unlinkable_block_exception. I tried to sync from different snapshots but was getting the same error. Starting from a genesis file didn't ...
0
votes
1
answer
83
views
Smart contract redeem token action - Example
Do you have some example that shows how to design an action for a smart contract that when the user sends a REDEEMCODE action the smart contract will transfer some quantity of a custom token for the ...
0
votes
1
answer
37
views
is it possible to listen the return asset quantity of specified account?
is it possible to listen the return asset quantity of specified account in contract?
e.g i use contract(A) to send asset of the specified account(B) to a DEX, can i listen the return asset quantity on ...
0
votes
0
answers
47
views
how can i pass array of integers to smartcontract action using SwiftSDK
I have following action in my smartcontract:
ACTION uploadfile1 (name creator, vector<uint8_t> content, string filename)
I'm trying to push action from my Swift application using following code:...
0
votes
1
answer
57
views
Immutable smart contract
In EOS, smart contracts can be updated by the account owner.
This could be a problem for certain applications in finance. For instance, if I want to deploy a token, the transfer function should be non-...
0
votes
1
answer
23
views
3060102 reversible_guard_exception
I am facing this issue after 3 month when i ran the node,
3060102 reversible_guard_exception: Reversible block log usage is at unsafe levels
reversible free: 2096992, guard size: 2097152
{"f"...
0
votes
0
answers
19
views
Nodeos folder non-existed after eosio installation with brew
I am trying to install and run an EOS node on macos.
I installed eosio with brew.
I used
brew tap eosio/eosio
brew install eosio
Everything went alright. But after installation the following folder ...
0
votes
2
answers
236
views
Connection refused from p2p-peer address for NODES-Producing Block
I am trying to setup EOSIO production node on Ubuntu. My specs are following:
NAME="Ubuntu"
VERSION="20.04.3 LTS (Focal Fossa)"
with 62GB RAM and 500GB storage.
I have installed ...
0
votes
1
answer
77
views
WARN: 10 attempts to find canonical signature
What does this warning mean?
WARN: 10 attempts to find canonical signature
This is a warning as I understand from eosjs.
1
vote
0
answers
732
views
eosio: assertion failure with message: datastream attempted to read past the end
Im getting this error "eosio: assertion failure with message: datastream attempted to read past the end" when i try to call transfer function from another mine smart contract.
void simplenft:...
0
votes
1
answer
66
views
Is there a max stack depth in EOSIO?
For ethereum it is 1024, is there one for EOSIO, if so what is it?
0
votes
2
answers
53
views
singleton table: "cannot create objects in table of another contract"
Newbie here struggling up the learning curve. I have a simple contract which updates a counter value in a singleton table every time its action is executed.
#include <eosio/eosio.hpp>
#include &...
0
votes
1
answer
42
views
Caller of action detail in code
I need to check Account of caller action ,as in ethereum we have a concept of msg.sender to get the caller eth_address, similar is there a way to get caller of action details in EOS.
0
votes
1
answer
68
views
Creating an account key pair outside of using eosjs
Hello Guys is there any method through which I can create a valid EOSIO key pair without using EOSJS, If that's not possible can any one explain how does eosjs-ecc create those keys and can I ...
0
votes
1
answer
81
views
Inline action with 2 permissions/authorizations
I have 3 accounts:
Contract Account.
Storage Account.
Recipient Account.
I made a smart contract to give out tokens from Storage Account to the Recipient Account using a claim function from the ...
0
votes
1
answer
51
views
What are recommended best practices for block producer key management?
I am not aware of BP key management best practices if there are any would be helpful.
I see these 2 questions:
Is It safe to Store User keys on local db server?
Best practice for storing private key ...
0
votes
3
answers
806
views
How to convert a key from old to new format?
So I was curious how to do that. I wasn't able to find any tools online to do that.
0
votes
1
answer
69
views
Signing and submission of transaction seperately
is there any way where we can have a user sign a transaction using their private key on the front end. And we get the signed transaction transfer it to our server over the internet and push the ...
1
vote
1
answer
583
views
Getting authorization to burn atomicassets via smart contract - WAX
i want to write a small smart contract game where players will be able to send Characters (NFTs, atomicassets) into a battlefield. On that battlefield they have a chance to die. Which means that asset ...
0
votes
2
answers
96
views
Reasons for transactions not getting confirmed
What are possible reasons for a transaction not getting confirmed even after it is successfully executed.
I'm following server-side signing and using the push_transaction API to execute the ...