As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [eosio.token]

Questions related to the system contract for storing the EOS token

Filter by
Sorted by
Tagged with
8 votes
3 answers
2k 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 ...
Vasiliy Bondarenko's user avatar
7 votes
1 answer
689 views

How to debug eosio::on_notify("eosio.token::transfer") actions?

I'm working on a contract that will run an action when receiving tokens. The following code does not run when the account receives EOS or JUNGLE tokens on the Jungle Testnet. #include "./test.hpp" .....
marijn's user avatar
  • 71
6 votes
1 answer
1k 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 ...
Nirdesh Kumar Choudhary's user avatar
5 votes
2 answers
2k 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 ...
Damir Olejar's user avatar
4 votes
2 answers
610 views

How to airdrop an eosio token

I am trying to create a new eosio token and airdrop it at a 1:1 ratio to all eosio accounts. I have a snapshot csv file with all the eosio account names, the public key, and EOS token balances. My ...
Magic Man Xpress's user avatar
3 votes
1 answer
701 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. ...
Chemistry's user avatar
  • 225
3 votes
1 answer
181 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 ...
Viter Rod's user avatar
  • 151
3 votes
1 answer
177 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 ...
Rouse's user avatar
  • 131
3 votes
1 answer
253 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,...
JubJubTumTum's user avatar
3 votes
1 answer
126 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 ...
Nirdesh Kumar Choudhary's user avatar
3 votes
4 answers
800 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 ...
JackyZhang's user avatar
3 votes
1 answer
103 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 ...
Pasha's user avatar
  • 41
2 votes
1 answer
2k views

assertion failure with message: no balance object found

This error message occurs when trying to do a transfer: assertion failure with message: no balance object found What causes it and how can it be avoided?
Phillip Hamnett - EOS42's user avatar
2 votes
2 answers
681 views

Make a transfer inline

I would like to send SYS token owned by the smart contract account to a third party account when anyone call a specific action. I have tried the following code but I am getting an error: [[eosio::...
poiuytrez's user avatar
  • 165
2 votes
1 answer
84 views

What does it mean to have multiple blockchains on EOS

In the whitepaper v2, I saw a section for inter-blockchain communication. Does this mean communicating with blockchains based on other technologies like Ethereum? If not does that mean that each DApp ...
DEVANABOINA VINOD ANKITH's user avatar
2 votes
2 answers
1k 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" ...
Gassa's user avatar
  • 598
2 votes
2 answers
783 views

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 ...
mounibec's user avatar
2 votes
1 answer
65 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 ...
Matthew L's user avatar
2 votes
1 answer
286 views

Custom token in scatter

After researching on many sites i don't found any way to do this Is there any way that in scatter(chrome extention) to show balance of custom token? As shown in the image it shows balance of EOS and ...
Mr.Y's user avatar
  • 957
2 votes
1 answer
880 views

How to transfer EOS token using Scatter.js or eos.js?

I've successfully managed to use eosjs to transfer some EOS but when I'm trying to send something else (a token) it's no longer working. For example that code is working: import ScatterJS from '...
Linda's user avatar
  • 185
2 votes
1 answer
296 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.
Chitty's user avatar
  • 123
2 votes
1 answer
399 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 ...
Vivek Kumar's user avatar
2 votes
2 answers
967 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 ...
Blockchain Experts's user avatar
2 votes
1 answer
187 views

Error: Provided keys, permissions, and delays do not satisfy declared authorizations

I am facing some error while running this command cleos create account eosio eosio.bpay EOS6wFEd5JHuUHWtaV12mxnm1v9udPsdrB7LUy1mVFc8iYJNdDMaL It show's the output given below Error 3090003: Provided ...
Abdullah Joyia's user avatar
2 votes
1 answer
76 views

How to stop receiving EOS token from another account?

Sometimes we have to stop our service for system upgrades, repairs... So is there any way to stop receiving token from another account?
Son Le's user avatar
  • 77
2 votes
1 answer
88 views

Is there any BP node that provides full history per account for a given token contract?

Does any block producers currently provide public access API node with full history for each EOS account for any token contracts? I want to fetch all transaction data for any EOS account for any ...
Kabir's user avatar
  • 843
2 votes
1 answer
111 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 ...
yash vadhvani's user avatar
2 votes
2 answers
203 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 ...
Marcel's user avatar
  • 383
2 votes
1 answer
181 views

Is it possible to deploy contract via curl?

Using command line i am deploying smart contract "eosio.token". cleos -u http://127.0.0.1:8888 set contract eosio.token ./eosio.token -p eosio.token Is it possible to deploy smart contract using ...
msc's user avatar
  • 145
2 votes
2 answers
94 views

Is there a way to prevent me spending tokens until an action is called?

I am creating a smart contract but came to a halt when writing the code. Is there a way, in a smart contract, to prevent me from spending tokens transferred to me by another user through the smart ...
Oxyi's user avatar
  • 21
2 votes
1 answer
598 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 ...
vijay tomar's user avatar
2 votes
1 answer
283 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....
Winor's user avatar
  • 35
2 votes
1 answer
212 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 ...
cmr's user avatar
  • 135
1 vote
1 answer
1k views

What is the smallest unit of eos?

How many decimal places can eos be set to? I want to send the smallest amount of eos to another account.
Patoshi パトシ's user avatar
1 vote
2 answers
211 views

Is there any IDE for eos smart contract?

Is there any IDE for compiling eos smart contract? for example ethereum have remix to compile and run solidity based smart contract.
sachin murali's user avatar
1 vote
1 answer
144 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 = ...
Gassa's user avatar
  • 598
1 vote
1 answer
185 views

How can i send 10,000 NFT in a single transaction like we send EOS tokens

I have implemented the nft statndard in EOS but I am having issue that I can't send more than 60 tokens at a single time. In NFT standard each token has unique id so they need to be send one at a time....
Nirdesh Kumar Choudhary's user avatar
1 vote
1 answer
114 views

What is the major difference between system contract and other contracts?

What is the difference between defining actions inside a eosio contract such as eosio.token and other contracts. Can I costomize the eosio contract : for example can I customize the eosio.token ...
Nirdesh Kumar Choudhary's user avatar
1 vote
3 answers
126 views

on_notify does not get triggered

I am using a very simple example: mycontract.hpp: [[eosio::on_notify("eosio.token::transfer")]] void depos(name from, name to, asset quantity, string memo); mycontract.cpp: [[eosio::...
towi_parallelism's user avatar
1 vote
1 answer
47 views

Is it possible to get the initiating contract name from a token transfer?

When an external account transfers tokens to my account (which has a contract with an "on_notify" action for incoming transfers), is there any way I can get the name of the contract that ...
Matthew's user avatar
  • 11
1 vote
1 answer
175 views

Wondering how to fix eosio.token transfer error in contract

I am developing an EOS dapp game When the user acts on the contract after Scatter authentication, the logic is to deposit the bet amount from the user to the contract account. But I get an eosio....
Jeong-Ho Yu's user avatar
1 vote
1 answer
185 views

EOS Block Producer Claim Reward

I have followed Bios boot sequence tutorial from eosio and setup a private eos blockchain. The problem is the block producers i have created , when i tried to claim reward it shows "cannot claim ...
Ridham CPP's user avatar
1 vote
2 answers
107 views

How to display custom token on Mainnet Monitor?

Let`s assume that I deployed eosio.token to my own account, created some tokens there. I would like to know if it is possible for tokens on that account to be displayed in Account info on EOS Mainnet ...
Вадим Писаренко's user avatar
1 vote
2 answers
349 views

What is the difference between a method call and the use of SEND_INLINE_ACTION?

in looking at the code for eosio.token (https://github.com/EOSIO/eos/blob/master/contracts/eosio.token/eosio.token.cpp) the issue method calls the transfer method at the bottom, but instead of just ...
ekkis's user avatar
  • 515
1 vote
2 answers
52 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
1 vote
1 answer
41 views

Smart Contract Close Function

cleos push action eosio.token close '["bob","TIK"]' -p alice@active I'm calling close function of eosio.token smart contract using above command on local node.
Umer's user avatar
  • 21
1 vote
1 answer
42 views

Is there a requirement to use the eosio.token account/contract for managing tokens?

I understand that the eosio.token account/contract is used to maintain a 'register' of tokens and also maintains a balance for each user. Alternatively, I could create my own account and implement the ...
tommccann's user avatar
1 vote
1 answer
244 views

Where I can get EOS tokens number precision information

Where can I check EOS tokens(EOSDT, Everipedia, Newdex, etc) precision points?
Rafael's user avatar
  • 121
1 vote
1 answer
75 views

Why we need an EOSIO account to transfer token?

I have started working on EOSIO. I am following this document. I have created a wallet using cleos. Then open, unlock and import key in it. After that according to document, we need two accounts to ...
msc's user avatar
  • 145
1 vote
2 answers
302 views

Transferring EOS within Smart Contract

I'm building a Smart Contract that transfers EOS from my contract account to end user accounts. I can not seem to find up to date and correct syntax for transferring EOS using eosio.token from within ...
hughjammer's user avatar