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 [transfer]

The tag has no usage guidance.

1
vote
1answer
61 views

How to transfer token and do some action inline?Or how to parse string to signature and publickey?

I'm coding a contract, a game. I need players transfer some token(EOS etc.) to contract, and then, the contract will verify the signature(from player side) and insert a record into database. So I have ...
0
votes
1answer
38 views

Error when transfering EOS token on jungle testnet2 between my accounts

I've create 2 accounts on the testnet (jungle2) and funded one account with the faucet. I then tried to transfer some EOS to the other account. this is the command I've used but it's not working ...
1
vote
1answer
30 views

Using transfer to send tokens within a smart contract results in “unable to find key”

This is my example code deployed on myaccount #include <eosiolib/eosio.hpp> #include <eosiolib/print.hpp> #include <eosiolib/currency.hpp> using namespace eosio; class ...
4
votes
4answers
110 views

Why do token transfers on EOSIO consume RAM?

Very basic question but I just can't figure out why token transfers on EOS are stored in (expensive) RAM and not just simply in the blockchain? Please help me understand!
2
votes
1answer
70 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
0answers
41 views

How can I provide multiple currency support in my EOS smart contract

Can we transfer other crypto currencies which are based on different blockchains lets say bitcoin, litecoin, neo or ether, using the EOS smart contract. I heard that there is gonna be feature to ...
1
vote
1answer
68 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 ...
3
votes
1answer
382 views

How to transfer EOS after a particular delay?

I know that there is a concept called deferred transaction but how can I use this concept in transferring the EOS to another account. The scenario is: I need to transfer certain amount of coins ...
3
votes
3answers
92 views

How does one prevent smart contracts from taking all your tokens, when you give them your auth?

Suppose you are a malicious smart contract developer and embedded an inline transaction in your smart contract that calls eosio.token::transfer 100 eos from the caller's account to your account. An ...
3
votes
2answers
66 views

How do I ensure my Action Listener responds only to authentic senders?

I have an apply function that listeners for transfers to my contract from eosio.token. On notification of a transfer, a function (buy) is called within the contract. How do I ensure that this "buy" ...
1
vote
1answer
69 views

How to sell / transfer a token for EOS token?

Say I have created my own custom token (TOK) that I value at 100 TOK = 1 USD. Is there a way I can create a smart contract that accepts EOS from an account and then transfers TOK to an account, whilst ...
1
vote
0answers
209 views

How to pack a transaction to be pushed to rpc using push_tranasction?

Im trying to figure out exactly what is expected to pack a transaction. I've written a class to pack my transaction based off of a couple of opensource projects I've seen. First of all is there any ...
1
vote
2answers
502 views

inline transfer causes error

My inline transfer causes the following error. Error 3050003: eosio_assert_message assertion failure Error Details: assertion failure with message: read I dont know how to solve it. I ...
3
votes
1answer
169 views

Is there a way to create offline transaction with cleos (or any other safe tool)?

Trying to transfer EOS on main net using air gapped computer. Want to print a transaction and then type it manually.
3
votes
1answer
339 views

Can not unpack data from received eosio.token::transfer action

v1.0.6 I am trying to make my contract react to the token transfer. The code compiles fine, but I get the error when I do >cleos set contract accountsale . accountsale.wast accountsale.abi ...
0
votes
1answer
122 views

I tried to transfer token EOSDAC, but getting below error, can someone help me in this

cleos --url http://api.eosnewyork.io transfer ge4dimrzgige ironmanineos " 0.0001 EOSDAC" 157492ms thread-0 main.cpp:2712 main ] Failed with error: unspecified (0) ...
1
vote
0answers
18 views

ICO - can I block transaction before certain date?

Is it possible the following: A person send EOS to a contract account before certain date, and the tokens are rejected? Or I have to watch all the transactions and if they do not meet the criteria, I ...
2
votes
2answers
253 views

How can I transfer tokens using RPC?

The RPC documentation doesn't list any functions for transferring tokens. How can I do this using RPC?
1
vote
0answers
89 views

unpack_action_data - error: !“unresolvable”: env.free. #

I am trying to use unpack_action_data. void apply(const account_name contract, const account_name act) { if (act == N(transfer)) { transferReceived(eosio::unpack_action_data<...
1
vote
1answer
350 views

What is the use of “memo” while doing transfers?

Example in the following transaction details there is a "memo" key, but I cannot find any documentation about it eosio.token <= eosio.token::transfer {"from":"scott","to":"exchange","...
9
votes
2answers
2k views

How to do something when your contract is an action notification recipient (like when it receives funds)?

The EOSIO_ABI macro seems to only forward actions meant for our contract. How do you also listen to all other contract actions (like the very common transfer action for the account "eosio.token")? I ...