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.

0
votes
1answer
9 views

eosio 1.5.1 - keosd & produces: Application does have a valid signature

Following the eosio website I install eosio with brew. https://developers.eos.io/eosio-home/docs/getting-the-software The first step after the install is to run keosd &. I get the following ...
1
vote
0answers
15 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 ...
0
votes
1answer
19 views

How to write correct recall action

I got a "missing authority of two" message when calling a custom recall action by command. cleos push action one create '{"to":"one", "quantity":"100000000.0000 SYS"}' -p one@active cleos push ...
0
votes
3answers
24 views

unknown type name `account_name` in current version of eosio.token contract?

I'm attempting to follow this guide, which seems official: https://developers.eos.io/eosio-home/docs/token-contract which uses the v1.4.0 branch of the EOSIO contracts when I follow the steps, the ...
0
votes
1answer
23 views

How can eosio.token (v1.4.0) compile?

I'm attempting to follow this guide, which seems official: https://developers.eos.io/eosio-home/docs/token-contract and which begins by grabbing the v1.4.0 branch of the EOSIO contracts: git clone ...
0
votes
1answer
18 views

can a deferred transaction makes the initial transaction fail

Imagine a user sent me some eosio.token to my contract when i receive the notification, i start a new deferred transaction that can fails later. So my question is can that deferred transaction makes ...
0
votes
2answers
21 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 ...
0
votes
0answers
18 views

Inherit from eosio.token

I want to inherit the eosio.token in my contract say MyCustomToken.cpp but i am getting an error: error: redefinition of 'apply' I want to call the eosio.token functions from my custom functions ...
2
votes
1answer
83 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 '...
0
votes
1answer
24 views

Blacklisting specific addresses on token::transfer

I've issued a token using eosio.token standard contract. I want to prevent transfers to a number of specific accounts, for a limited time. Since it is temporary, I think I can simply hardcode the ...
0
votes
1answer
40 views

I have got “cannot modify objects in table of another contract” when trying to modify a table in my transfer function

I saw some contract implement a handler which will be triggered when receiving EOS token via eosio.token::transfer. I tried to have the same transfer handler and change some row of my table. But I ...
1
vote
1answer
54 views

Transaction expiration time

Is it possible to configure or change the "expiration": "2018-06-26T14:33:24", time? Currently its 30 seconds on my local node after I generate a transaction so I do not get time to execute it and ...
1
vote
1answer
40 views

Push signed transaction without packed transaction data in EOS?

In ripple, bitcoin and ethereum you can sign a transaction and push/broadcast signed transaction hash only. That effectively represents the whole transaction. for example ...
0
votes
0answers
52 views

Trying to issue token and getting the following error

Assert Exception (10) !action_type.empty(): Unknown action create in contract eosio.token This is my terminal now: gavin@dreambidio:~/eos/build/contracts/eosio.token$ cleos set contract eosio....
0
votes
0answers
28 views

Serialization Error Processing WASM

So I have nodeos up and running perfectly. I created a directory for a test project where I'm trying to use the eosio.token files in eosio.cdt to create a new token. When I run... cleos set ...
1
vote
1answer
28 views

Makefile Compiler Error

I have been using this tutorial from Medium to build my first smart contract. I've come far, finally got a nodeos local node up and running and producing blocks on my Ubuntu VM. I've hit a snag though ...
1
vote
0answers
30 views

Whats the difference between EOS signature and ethereum signature

As I see, both use secp256k1 signcompact method So can I use ethereum crypto package when make an EOS transfer? the below source code sign https://github.com/ethereum/go-ethereum/blob/master/crypto/...
1
vote
1answer
44 views

How to send EOS tokens to a new account using cleos? Are EOS token created by default in private testing blockchians?

I'm using eos 1.4.3 and ubuntu 16.4 I'm not using docker, I've built the project locally. I've just created 2 new accounts (Alice and Bob), I've also instantiated the eosio account. I've read and ...
1
vote
1answer
43 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
60 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
20 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
47 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
1answer
42 views

If I issue an EOS token, how do I afford the running fee?

I got a question about how to afford the cost of emplace action... code in eosio.token like : statstable.emplace( _self, [&]( auto& s ) { s.supply.symbol = maximum_supply.symbol; ...
1
vote
2answers
117 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
112 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-...
3
votes
1answer
58 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 ...
3
votes
1answer
103 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
76 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
36 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 ...
2
votes
2answers
239 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 ...
2
votes
1answer
40 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
39 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
114 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
68 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
21 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
54 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 ...
5
votes
3answers
264 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
4answers
214 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
53 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
71 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
56 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
352 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
300 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
274 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
96 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
60 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
547 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
116 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
1k 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 ...