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
0 answers
12 views

i transfered over 300$ using EOSNCONTRACT wallet to another wallet but the token failed to deliver

I transferred the eos token from one wallet to another using the eosncontract wallet address Transaction id: 4458b2639b7cc5ffdde7785ed31d39a4910322baf2c220f0c0bc7d063e11e551 and ...
Emeka James's user avatar
0 votes
0 answers
41 views

EosioSwiftVault - SecKeyCreateWithData always returns nil in iOS 17

When I'm trying to create SecKey with EosioSwiftVault library using SecKeyCreateWithData it returns nil in iOS 17 (it's still working fine on iOS 16.4) with following error: var attributes: [String: ...
Artur Tkachenko's user avatar
0 votes
1 answer
21 views

Cannot deploy contract containing KV Map API

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
71 views

Is EOS.IO Archived ? No New release or security patches will be available?

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
81 views

Get table row count or property from the last row

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
75 views

What is the latest version of eosio and what is the new github site?

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
34 views

Maximum limit for data included in a transaction?

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
55 views

How to declare a table outside of its contract-class?

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
146 views

How to generate the EOS keys from Mnemonic/Seed on Expo

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
320 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 ...
Jesseeeee's user avatar
0 votes
1 answer
56 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?
Jesseeeee's user avatar
0 votes
0 answers
95 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 ...
bigbadboii's user avatar
1 vote
1 answer
553 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")), ...
Jesseeeee's user avatar
0 votes
1 answer
76 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 ...
Igor Medeiros's user avatar
0 votes
1 answer
35 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 ...
James Cai's user avatar
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"...
user3789474's user avatar
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 ...
Alex  Matei's user avatar
0 votes
1 answer
76 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 ...
Jesseeeee's user avatar
1 vote
1 answer
578 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 ...
Froggythep's user avatar
0 votes
1 answer
55 views

Issue in v2.0.2-rc1 The CMAKE_ASM-LLVMWAR_COMPILER: g++ is not a full path and was not found in the PATH

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

WAX - Signature error : "Message: transaction declares authority, but does not have signatures for it."

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
73 views

Testnet status for web portal

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
60 views

Runtime error (eos-vm system failure) on using C++ `virtual` keyword?

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
158 views

Building a contact in EOS Studio and getting eosio.code permissions when calling it

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
67 views

Buyng Ram EOSIO

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
275 views

Error 3080004 Transaction exceeded the current CPU usage limit imposed on the transaction

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
51 views

how to make sure the tx to be included in block

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
64 views

dApps: Public networks & Messaging

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
203 views

Inline action for transferring tokens

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
161 views

EOS STUDIO TERMINAL compilation issue

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
149 views

Code sample to use PowerUp feature

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.
Kevin's user avatar
  • 13
0 votes
2 answers
159 views

Status of EOS Powerup feature

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 ...
Kevin's user avatar
  • 13
1 vote
1 answer
58 views

GetAccount Not Found Error, is this Testnode Sync Issue?

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
31 views

How can i update a table by TransactionID? And can transactionId be the same when we update the data?

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
56 views

send different amount of tokens to different accounts in single transaction

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
144 views

How user stake and earn reward and How we can implement this staking model

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
44 views

Is having hashes of document certificates in EOS blockchain for tamper proof a good use case for EOS?

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
285 views

How can i convert a time_point to a string?

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
318 views

Convert type string to type checksum256

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
39 views

What is purpose of eos flag --enable-stale-production?

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
102 views

How to replace EOS as core system token with some other(created) token for private network

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
54 views

Can we make txs free of cost/without staking on privately deployed eos network

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
41 views

EOS Node Build Help

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
62 views

How to reduce block production speed in private Network Setup

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
56 views

eosio-explorer can't see block and transactions,postgreSQL light is red

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
70 views

How to integrate Restfull API with smart contract using c#?

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
40 views

No member name in namespace 'block-signing_authority' in eosio

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
386 views

Setting eosio.code permission for contract account in eosjs

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
46 views

Eos-sharp jungle Error 3090003 when trying to call external smart contract

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
81 views

I have doubts about intercontract communication

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