Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [eosio.token]

The tag has no usage guidance.

1
vote
1answer
29 views

In the eosio.token contract, why are the structs private?

In my contract, I'd like to be able to check how much EOS an account has. For that, I'd write some C++ code like this: token::accounts the_table("eosio.token"_n, "useraccount1"_n.value); auto it = ...
1
vote
0answers
29 views

Issue in transferring EOS from Ledger Nano to exchange

I was getting an issue at the time of transferring my EOS from Ledger Nano S using Fairy wallet to one exchange. It was unable to complete the transaction due to deadline. I got few good response and ...
1
vote
0answers
14 views

How does EOS21 protocol work on transfering (teleporting) Ethereum's ERC20 tokens to eos?

Is there a tutorial on how one would transfer ethereum erc20 tokens to eos? Who initiates this "transfer" and does it go into an ERC20 eos smart contract? Who takes control of it then?
1
vote
1answer
30 views

eosio.token vs copy of eosio.token

We've created a copy of eosio.token to issue our own in-game token. Going forward we might want to add our token to the crypto exchanges. Question: Given that this token was created by our own copy ...
1
vote
2answers
65 views

How to transfer/deposit tokens on Front end Dapp with Scatter?

I am working on an EOS frontend Dapp with Scatter on local chain. I am getting a problem with transfer/deposit tokens from one account to another. After logging into scatter with "test1" and trying to ...
1
vote
0answers
42 views

How to do a transaction using rpc with python?

I am trying to make a transaction on eos. I have a node running on docker and created an account with cleos. I tried following this: https://github.com/EOSBlock/EOS-Tutorials/blob/master/EN/transfer-...
1
vote
1answer
28 views

how to implement a 48-char-long symbol token with balances like “10.0000 custom.name.of.the.token”?

I need to create my.token smart contract on EOS that will be exactly the same as eosio.token contract but my.token's symbol_code will allow a much bigger string. Something like 50 character long ...
1
vote
1answer
34 views

Issue setting permissions for use of eosio.token in smart contract

I have an action in a smart contract called submanager that I want to make use of the transfer action from eosio.token (I'm using eosio.cdt v1.3). ACTION subscribe(name from, name to, asset quantity,...
2
votes
1answer
57 views

How do trade eosio token and other token (NFT) in contract?

I'm trying to develop NFT's contract with reference to unicoeos/eosio.nft. Also I'm trying to develop NFT's shop contract in order to trade NFT and eosio.token. The logic trading NFT and eosio....
1
vote
1answer
28 views

Tutorial on how to load up your own ERC20 EOS token using a template contract.

I have the following template contract: https://github.com/EOSIO/eos/tree/master/contracts/eosio.token Is there a step by step tutorial on what I need to do to load up my own token? What are the ...
1
vote
1answer
116 views

Solved - Unable to compile eosio.token

I'm following the https://developers.eos.io/eosio-home/docs/token-contract block one tutorial using the latest eosio/eos-dev docker image (v1.4.0). I have some issues when I compile eosio.token.cpp ...
2
votes
1answer
34 views

EOS have its official sidechains?

I heard of the concept of sidechains as scalability solutions applied to the EOS blockchain. Did Block.one make any announcement on launching its own sidechains, which in this case the token is EOS ...
2
votes
1answer
20 views

What is the command to use the retire function in eosio.token

Can anyone give me the command line to retire (burn) tokens? I couldn't find it in the developers portal but I see the function in the eosio.token abi Thanks in advance.
2
votes
1answer
63 views

Receiving EOS tokens in the contract's action

I am working on a DAPP which requires users to pay a small amount of EOS in order to participate in the DAPP. In ethereum, every transaction has msg.value which specifies the amount of ether in the ...
1
vote
2answers
49 views

How does EOS prevent spam if there are ZERO transaction fees? What is the purpose of the EOS coin then?

I read that EOS has zero transaction fees. How is spam prevented from someone just sending a bunch of eos to themselves to clog the network? And what is the purpose of the EOS coin if not the prevent ...
0
votes
1answer
18 views

Why we match asset quantity with the uris vector in issue action?

I am working on the repo https://github.com/unicoeos/eosio.nft If I want to issue some tokens to the another accout,For that I have to send account_name , asset, uris, name,memo to issue action as ...
3
votes
1answer
45 views

What are uri in issue action of eosio.nft contract , Do we really need this?

I go through this repo https://github.com/unicoeos/eosio.nft and set contract and provide permission successfully on my local nodeos. I successfully created a token CCN but I am not able to push ...
4
votes
2answers
128 views

Multiple EOS transfers in a single transaction

Is it possible to pack a few transfers of EOS token to different accounts inside of single transaction? I know it's possible to pack multiple arbitrary actions inside one tx, but what about EOS token ...
3
votes
3answers
109 views

How to add “time lock” to the EOS tokens

I have issued some tokens base on eosio.token in jungle testnet, and I am able to transfer the tokens between accounts. Now if I want to enforce some control to the tokens sent ( for example, time ...
2
votes
1answer
38 views

I want to perform 2000 transactions but when i am looping trough the eosjs code it throws an error

The error name is expired_tx_exception and the code for the same is 3040005 please tell me how can I perform these much transactions per seconds. I am able to perform 250 transactions per seconds but ...
1
vote
1answer
54 views

Hello contract: How do i execute “hi” action when notified by eosio.token contract of an EOS transfer?

I want to extend the Hello contract (as an exercise) How do i execute "hi" action when notified by eosio.token contract of an EOS transfer ? I understood i have to extend EOSIO_ABI macro to handle ...
0
votes
0answers
50 views

Error Moving Air Drop Tokens out of SimpleEOS Wallet

I want to move all of my EOS tokens from SimpleEOS to Ledger Nano S. I have all of my EOS tokens staked on SimpleEOS. And I have 1 EOS token on the new wallet on Ledger. I'm using Fairy Wallet with ...
6
votes
2answers
186 views

How I can typecast the “0.0001 EOS” into eosio::asset

I declared a variable value = "0.0001 EOS"; , inside my action I want to transfer those asset to a account .I am having difficulty to typacasting this string into the eosio::asset value . my code goes ...
2
votes
2answers
164 views

How to query for all tokens owned by an acoount?

Several airdrops are coming in these days. One doesn't know which tokens are gifted to them. How can I retrieve all tokens owned by a particular account? I know how to retrieve token balance, by ...
2
votes
1answer
202 views

How does the EOS account system work together with smart contracts?

It's my first step into eos and Trying to get some ideas. I really do hope you can help me. Question 1) As we all know, we can transfer some coins from one to another account by using account_names. ...
3
votes
1answer
78 views

Why did EOSio exclude all EOS ERC20-token holders who didn't register before 2st of June 2018?

They have made my ERC-20 EOS tokens non-transferable, so now the money I invested is lost. On my Trezor (MEW - MyEthereumWallet) Are there any official statements of the reasons to the malignant ...
2
votes
1answer
38 views

get token stats

I found the following in the eosjs docs: eos.getCurrencyStats(code, symbol) ⇒ getCurrencyStatsResult I was able to receive all stats for eos.getCurrencyStats('EOS', 'eosio.token') as well as ...
2
votes
2answers
352 views

Is “cleos transfer” just a shortcut for “cleos push action eosio.token transfer”?

Here is the documentation for cleos transfer. And here is the one for cleos push action. It seems that, whenever we want to write: cleos transfer account11111 account22222 "0.0001 EOS" "memo text" ...
2
votes
1answer
72 views

Issue while compiling contract using eosiocpp

I am facing an issue while compiling the token contract. cd eos/contract/eosio.token eosiocpp -o eosio.token.wast eosio.token.cpp But it shows the following response, eosiocpp: command ...
5
votes
2answers
808 views

Clearing RAM tables of eosio.token contract

What I am trying to do is clear the RAM table completely. This question is not a duplicate since it is asking for a full and a working solution. The contract that I was executing filling the RAM ...