All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
4 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
0answers
5 views

Can I make a snapshot which contains less blocks than the actual blockchain?

My goal is to make a snapshot which contains the state of the blockchain untill a specific block (probably not block header). So the specific block must be "older" than the block header. For ...
0
votes
0answers
7 views

Get multiple rows in eosio smart contract

I have table with multiple rows for one account and i need to get all of his rows in mu smart contract, but i can't understand how i can get all rows in one time . Can someone explain me? thanks
0
votes
0answers
10 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 ...
0
votes
0answers
6 views

How to calculate cpu and net fraction value for PowerUp?

I am unable to understand the CPU and NET fraction values in the powerup action in eosio.system. For example, what should be the fraction values if I want to powerup 1.5 ms of CPU and 1 KB of NET.
0
votes
0answers
6 views

Table values write correctly but fails to read values, possible serialize error

I'm trying to write a contract that has a table with few vectors, even tho it seems to be writing all the values correctly it fails to read the values back. The structs and tables are bellow: struct ...
0
votes
1answer
24 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
0answers
21 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
1answer
14 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
1answer
9 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
0answers
11 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
0answers
12 views

How can we Burn native EOS tokens?

Outside of BP's burning EOS tokens, how can an average user or contract burn EOS tokens? I imagine transferring to eosio.null is the only way?
0
votes
0answers
11 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
1answer
16 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
1answer
29 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
votes
0answers
22 views

How to list an eosio token in a decentralized exchange?

I created my own eosio token based on the eosio.token contract. Now, I want to ideally deploy my token to mainnet and list it on a decentralized exchange (uniswap, pancakeswap, etc...) Assuming that I ...
0
votes
0answers
21 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
0answers
7 views

How to develop custom plugins?

Is there any good resources on how to develop plugins? The plugin creating script was updated years ago and even the custom plugins in https://github.com/liquidapps-io/awesome-eosio-plugins seem to be ...
0
votes
1answer
21 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
0answers
45 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 ...
0
votes
0answers
13 views

Using std::map inside multi-index

I was thinking on good practices when creating the persistence using the multi-index API, more specifically regarding future updates to the table model (ie. adding new members to the struct). All the ...
0
votes
0answers
11 views

Cleos commands whithin PHP exec

cleos -u https://wax.greymass.com push transaction test.json this command in console works exec("cleos -u https://wax.greymass.com push transaction test.json",$out,$tr); this code in php - ...
0
votes
0answers
9 views

using multi index table as temporary cache

I am making a game that generates a list of winners every round end and lets those winners claim their rewards every round. The way I made it work is to have the server write to a multi index table in ...
0
votes
0answers
7 views

How to derive a uint from a string to use it as key/index in eosio table

I want to store json key-value pairs in an eosio table. The keys in the json are unique and that's why it would be perfect to use them as primary_key or secondary_id for querying the table later. The ...
0
votes
1answer
70 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
0answers
5 views

any way to know inline action depth on blockchain explorer

the following error was encountered recently, any way to check the inline action depth of the transaction on blockchain explorer or other approach? max inline action depth per transaction reached
0
votes
1answer
30 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
1answer
29 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
1answer
14 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
1answer
36 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
0answers
14 views

What is the API to get a Merkle Proof for a transaction or a table row?

Ideally we need a Merkle Proof that a certain row is in a table. However, we may adapt our need to any form of Merkle Proof about a state or presence of a transaction. As far as I understand, the ...
0
votes
0answers
11 views

Is it possible to read the permissions tree table from within a contract?

From within a smart contract, I would like to discover whether an account has defined a specific permission name. I don't want to test whether it has that authorization (require_auth()); just whether ...
0
votes
0answers
14 views

How to make the code automatic appove smart contract action?

The environment is like this The user will click the login button to log in to the cloud wallet, so that the code gets the user's login permissions, but when performing certain actions, you still need ...
0
votes
0answers
36 views

Signing a transaction on an edge device without TAPoS fields and push it separately to the chain

I do have a use case where I need to sign a transaction on an edge device without having connection to the chain (but lets consider chain ID , user and private key are well known on the edge). I am ...
0
votes
2answers
83 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 ...
0
votes
0answers
12 views

recovery_key function failing to compile

so I'm trying to use the recovery_key function linked here: https://developers.eos.io/manuals/eosio.cdt/latest/group__crypto/?query=recover_key&page=1#function-recover_key Whenever I do use it ...
0
votes
0answers
20 views

Why EOS produce blocks continuously even if no transactions?

There are not much or daily transactions on the blockchain but BP's are producing blocks continuously. These blocks are empty. Can't we produce blocks only when the transaction is to be execute? Is ...
1
vote
1answer
47 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
1answer
25 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
0answers
8 views

Encrypt the parameters of an action

I am wondering if i can encrypt the parameters i pass to my action and decrypt the parameter in the smart contract. The goal would be to prevent the people to abuse the action. The action mint an nft ...
0
votes
0answers
19 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
0answers
19 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
0answers
23 views

Is there a small C++ library or a simple gist/function just for signing transactions?

I'm building an app that consists of two services, one service will run on the edge and the other in the cloud. Obviously, I want the service on the edge to be lightweight since It will run on ...
0
votes
0answers
105 views

Problem with WaxJS

I try to use waxjs V1.0.4. For example, I wanna know info about user account.If I copy code from example, it looks like this: import * as waxjs from "@waxio/waxjs/dist/index.js"; const wax =...
0
votes
1answer
51 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
1answer
43 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
1answer
21 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
0answers
37 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
0answers
23 views

Cant unstake with Anchor

I can't seem to manage to unstake my tokens on EOS Authority using the Anchor app. This is my account: haydemrwgqge. It keeps saying I don't have the permission although I am pretty sure I have the ...
0
votes
1answer
32 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-...

15 30 50 per page
1
2 3 4 5
48