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
0answers
31 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 ...
0
votes
1answer
43 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
183 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
81 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
50 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
55 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 ...
0
votes
0answers
116 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
335 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
146 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
206 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
109 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
17 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
167 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
71 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<...
8
votes
2answers
1k 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 ...