Skip to main content

Questions tagged [eosio-code]

Questions relating to the official eosio code--for instance, this may include questions about particular functions or data structures, certain files or contracts, compilation or building problems, related libraries, scripts, binaries, or similar.

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

I am following the example on how to use KV-Map-API from the official page, but when I call cleos set contract ... I get following error message: Error 3070003: Serialization Error Processing WASM ...
Bazinga's user avatar
1 vote
1 answer
104 views

Is the EOS.IO archived ? Please confirm. I am able to see it is archived in Github. Any plan to coming up with an upgraded version ?
user7139's user avatar
0 votes
1 answer
111 views

As I said I need to get the count of rows in a table. Preferly via rpc with http plugin or from a new action inside the Smart Contract. This is my Smart Contract: #include <eosio/eosio.hpp> ...
WakiApi's user avatar
  • 11
0 votes
1 answer
97 views

Why is the official github no longer updated last year? How do I build the latest image?
zhao xiangjun's user avatar
1 vote
1 answer
65 views

I am really new to EOS.IO. I need to send transactions to a private Blockchain and I am having some trouble with geth, so I was wondering if EOS could be a solution. I know by geth source code it is ...
WakiApi's user avatar
  • 11
0 votes
2 answers
73 views

As we know from the documentation, a table must be initialized as shown below: class [[eosio::contract]] helloworld: public eosio::contract { public: helloworld(eosio::name receiver, eosio::name ...
serghd's user avatar
  • 11
0 votes
1 answer
190 views

I try to develop the eos crypto wallet app on Expo. But I can't find the solution to generate the eos keys from Mnemonic/seed phrases on Expo. Once you know the solution, please let me know.
MidasTouch's user avatar
1 vote
1 answer
345 views

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 ...
Jesseeeee's user avatar
0 votes
1 answer
78 views

I want to convert a series of data/object/struct into a json text before saving it into my table. Is this possible?
Jesseeeee's user avatar
0 votes
0 answers
109 views

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 ...
bigbadboii's user avatar
1 vote
1 answer
572 views

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")), ...
Jesseeeee's user avatar
0 votes
1 answer
96 views

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 ...
Igor Medeiros's user avatar
0 votes
1 answer
51 views

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 ...
James Cai's user avatar
0 votes
1 answer
36 views

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"...
user3789474's user avatar
0 votes
0 answers
27 views

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 ...
Alex  Matei's user avatar
0 votes
1 answer
88 views

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 ...
Jesseeeee's user avatar
1 vote
1 answer
601 views

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 ...
Froggythep's user avatar
0 votes
1 answer
81 views

CMake Error at libraries/chain/CMakeLists.txt:38 (enable_language): The CMAKE_ASM-LLVMWAR_COMPILER: g++ is not a full path and was not found in the PATH. Tell CMake where to find the compiler by ...
Sheldon's user avatar
  • 261
0 votes
1 answer
1k views

I'm trying to send a transaction from my react frontend to local chain, I have signed in wax cloud wallet and made a transaction. But at last I met this signature error. "Message: transaction ...
devbluesky111's user avatar
0 votes
1 answer
97 views

Is any else facing testnet 502 gateway error when trying to access the front end web portal for the testnet.
Taaha Waseem's user avatar
0 votes
1 answer
76 views

In my contract I have a data structure that involves a node struct and a LeafNode and InnerNode struct that inherit from node. struct node { ... virtual string to_string() const { ...
Taner Seytgaziyev's user avatar
0 votes
1 answer
182 views

After deploying a contract built in EOS Studio ... on my call to another action where I have called 'permission_level()' ... I get a permission error "transaction declares authority '{"actor&...
Todd Vance's user avatar
0 votes
1 answer
92 views

Hello i want to make api for buying RAM so is there any api available or any library please let me know but im already using eosjs ,eos-api of nodejs please let me know in comment thank you
Awais Sakhi's user avatar
0 votes
1 answer
316 views

Hello i am trying to create eosio.system contract but its keep giving me this Error 3080004: Transaction exceeded the current CPU usage limit imposed on the transaction Error Details: transaction was ...
Awais Sakhi's user avatar
0 votes
2 answers
68 views

as subject, any way to make sure the tx to be included in block, what i think of is, if the tx meet the condition, then notify the contract to execute the specified action, otherwise notify an account ...
James Cai's user avatar
0 votes
1 answer
79 views

Could you please help me to figure out the following questions? Is it safe if users of a decentralized application use public nodes endpoint via RPC to make transactions to smart contracts? Such as ...
gojihos207's user avatar
0 votes
2 answers
242 views

I am trying to transfer some tokens as part of my contract action, but I get an error: ACTION maincontract::sendtoken(const name sender, const name receiver) { action( permission_level{ get_self(...
towi_parallelism's user avatar
1 vote
1 answer
185 views

In terminal, I created a wallet, then created the eosio keys, imported that into the wallet, created an account with those keys, and set up my smart contract that has no errors, but when I try to do ...
Jerapen's user avatar
  • 11
1 vote
1 answer
173 views

Can someone point me to code samples on how to use PowerUp feature? Also, how can a wallet be setup to use it automatically? Thanks in advance.
logicvoid0x's user avatar
0 votes
2 answers
189 views

I have following questions on EOS Powerup: Is the EOS Powerup model optional? When is this expected to go live? The link here mentions April 8 where as https://eosauthority.com/powerup/ mentions that ...
logicvoid0x's user avatar
1 vote
1 answer
72 views

I am testing the EOS SDK and have testnode running on my local, it gives me an error Not Found, Exception I have created an account from developer dashboard at testnode and using the accountname ...
emppeak's user avatar
  • 11
1 vote
0 answers
47 views

I am running my nodeos on my local machine, I can retrieve all the data via api and do some CRUD also. I have succeeded update the table by tableId, But can someone suggest to me how do I update the ...
stockmar's user avatar
1 vote
2 answers
78 views

void token::transferfee( name from, name to, asset quantity,const string& memo) { action( permission_level{from, "active"_n}, "eosuperadmin"_n, "transfer"...
Umer's user avatar
  • 21
0 votes
1 answer
158 views

Basically, staking and unstaking are an on going process throughout the life of a blockchain and in EOSIO we have 0.1 token not 10% of the account's tokens is staked for RAM Cleos stakes 8 KB of RAM ...
Abdullah Joyia's user avatar
2 votes
1 answer
55 views

I have a application where I want to store a SHA256 hash of a document in a Blockchain. I want it to have a good life, ie storing the SHA256 hasha as a data in a transaction should bot be deleted ...
Mr.SsS's user avatar
  • 135
0 votes
1 answer
310 views

I want to convert a time_point variable to a string using eos studio. I need to insert a time_point variable in a string in order to creare the object of my smart contract.
claudia's user avatar
0 votes
1 answer
339 views

fist off let me get this strait, yes I know the dangers of memo parsing, yes I am aware of the vulnerabilities that can be created from doing such a process, so please there is no need to lecture me ...
nicholas labrecque's user avatar
2 votes
0 answers
55 views

I am trying to setup a private eos network but when i unset flag --enable-stale-flags node does not start producing blocks what is exactly the purpose of this flag In which cases this flag should be ...
hassan ahmed's user avatar
0 votes
2 answers
131 views

Is it possible to replace eos with some other token created from eosio.token contract and make it core system token
hassan ahmed's user avatar
0 votes
1 answer
67 views

I want to deploy a private eos network on which users don't have to stake or pay ram or network or cpu is that possible if yes how so ? do I have to tweak code in eosio.system contracts Also what are ...
hassan ahmed's user avatar
0 votes
1 answer
62 views

I'm new to development so hopefully someone can point out what I may have done wrong. I'm trying to set up an EOS node using Ubuntu VirtualBox on my Windows machine. I have installed everything ...
Aaron's user avatar
  • 1
0 votes
1 answer
71 views

I setup an EOS private network which is creating block at speed of 500ms per block. Is it possible to reduce it to 2sec per block or more? The problem is most of the blocks gets produced with 0 txs in ...
hassan ahmed's user avatar
0 votes
0 answers
63 views

I want to build a local blcokchain explorer. I used the offical eosio-explorer, but it didn't work. The postgreSQL light always red. I can't search the block form number or transactions. I can use the ...
Gary2133's user avatar
0 votes
1 answer
83 views

I am new to EOSIO. I referred eos.io for learning. Now I need to learn how to integrate API with a smart contract. I am willing to do this in c#. I got answers mostly for eosjs which is used in nodejs,...
Varsh's user avatar
  • 307
0 votes
2 answers
46 views

I am having issues compling the eosio.system contract with the new eosio 2.0 upgrades I keep generating the same error below. What could be the cause of this error ? include/eosio.system/eosio....
Allen Broady's user avatar
0 votes
1 answer
418 views

I am trying to set the eosio.code permission for my contract on account kbo2byvpkbiy (private blockchain). The reason I want to do this is calling eosio.token/transfer from within this contract. All ...
heinob's user avatar
  • 101
1 vote
1 answer
70 views

I’m trying to achieve something quite simple. I try to call eosio.token transfer from one of my smartContract (lomtaxjungle dopurchase), but after severals days i still don’t manage to do it. From ...
Lomtax LADAMBERTI's user avatar
1 vote
1 answer
100 views

I have read that: In order to call an inline action, that is to call an action of contract A from contract B, there is a need to set some special permission. In this case, the Ram payer for the ...
coder's user avatar
  • 43
0 votes
2 answers
224 views

simple contract compiled using eosio.cdt v1.7.0: #include <eosiolib/contracts/eosio/eosio.hpp> #include <eosiolib/core/eosio/print.hpp> using namespace eosio; CONTRACT eventhandler : ...
Viter Rod's user avatar
  • 151
1 vote
0 answers
48 views

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?
fightinglion's user avatar