Newest Questions
2,405 questions
0
votes
1
answer
60
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
101
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
67
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
167
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
86
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
195
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
181
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
433
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 ...