Questions tagged [transfer]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
10
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 ...
4
votes
4answers
465 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!
4
votes
1answer
280 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" .....
3
votes
1answer
791 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
2answers
104 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" ...
3
votes
3answers
132 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
1answer
238 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
628 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 ...
2
votes
1answer
329 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::...
2
votes
1answer
38 views

Is there any possibility to hide account balance or transaction origination?

Imagine I have A and B A transfers tokens to B Is there any possibility to: hide A account balance? hide A EOS account name?
2
votes
1answer
53 views

Is there any way to “request transfer” from another EOS account without “multisig”

imagine I have account A and account B. Account A would like to ask B to transfer him some EOS tokens. Is it technically possible to: create a multisig request transaction from A side: "B, please ...
2
votes
2answers
627 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?
2
votes
1answer
143 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
2answers
911 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 ...
1
vote
1answer
266 views

How to write a contract to stake my own token without doing transfer?

In my case, I need to write a contract which has an action can stake my own token (issued by my account with eosio.token, like TADO). If A has 10 TADO already, when he stakes 4 TADO, his balance still ...
1
vote
1answer
146 views

Why am I getting Error 3010014: Invalid symbol when I perform a simple transfer

INFO Jungle Testnet 2.0 <myaccount1> has funds WHAT I WANT TO DO Just perform a simple transfer of EOS such as: cleos transfer <myaccount1> <myaccount2> "1.0000 EOS" cleos ...
1
vote
3answers
58 views

Is it posible to deny EOS transfers for Account?

Imagine I have account A and account B. Account A is the "owner" of B and A wants to deny EOS Transfers for Account B and allow all other Actions(that means A should have full "active" operations)? ...
1
vote
1answer
390 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 ...
1
vote
1answer
137 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 ...
1
vote
1answer
707 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","...
1
vote
1answer
64 views

The symbol does not match

Token transfer between 2 accounts give me this error. token transfer works though if one of the account is the token contract account. how do i fix this? "details": [ { "message": "...
1
vote
1answer
182 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 ...
1
vote
0answers
60 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
137 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
279 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
0answers
21 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 ...
1
vote
0answers
124 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<...
0
votes
2answers
31 views

Zero amount transfer?

I just want to use EOSIO as a DB of some events by sending transactions when other events fire. Is it possible to send ZERO amount transfers? The events are millions a day, and I don't know how to ...
0
votes
1answer
181 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) ...
0
votes
1answer
188 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?
0
votes
1answer
17 views

Sent EOS to wrong Account From exchange Coinbase

We transferred funds from Coinbase to another coinbase account but the account name was mistyped due to autocorrect and funds went to an account called 'counbasebase' instead of the exchange '...
0
votes
1answer
28 views

Monitoring transactions on a private blockchain

I just started working with EOSIO and I created a private blockchain with 4 producersfollowing the bios boot sequence tutorial (https://developers.eos.io/welcome/latest/tutorials/bios-boot-sequence). ...
0
votes
0answers
18 views

Error 3060002: Account Query Exception

I am getting failed to retrieve account for eosio.token while transferring tokens from account1 to account2. (dev) root@dev-eosio-1:/home/ldxdev/sghxtoken$ cleos get currency balance token1 ...
0
votes
1answer
15 views

Return token to owner after initiating a transfer to my contract

Good Day, I am working on a contract where for example, If I send 2 ETH to a contract, ( 1 ETH = 2 Cryptokitty tokens ) then that contract is supposed to return me 4 Cryptokitty tokens. What I Have ...
0
votes
0answers
32 views

EOS CPU Full i'm do nothing

Why CPU max overflow what I do nothing. Just I looked at https://bloks.io/ (or) https://eospark.com/ Of my account. Last Transaction is Oct-07-2019, 11:18:08 PM. to now is Oct-09-2019.
0
votes
0answers
33 views

Catch errors when calling deposit

When I send EOS in a contract to several recipients, it can happen that this fails, e.g. because a recipient has a contract running like that: Example contract of one recipient: [[eosio::on_notify("...
0
votes
1answer
40 views

How to operate the get_actions endpoint to get transaction history

Following what I think is the official EOS documentation for get_actions . I stumble upon the parameters pos and offset, but they are not documented anywhere. Can somebody explain to me, what these ...
0
votes
0answers
74 views

Make a transfer from contract code on behalf of user [duplicate]

Installed: eosio: 1.7.3; eosio.cdt: 1.6.1 Implemented and locally deployed: sample market contract and eosio.token contract. In order to make an inline transfer from market contract in behalf of a ...
0
votes
0answers
15 views

Is there an EOS-equivalent for the ERC-1404-Standard?

I recently saw a Video about the erc1404-standard and read some articles about it. I think It's an interesting standard for security-tokens and international regulatory requirements. Is there an ...
0
votes
1answer
120 views

Token transfer missing_auth_exception

{ "code":500,"message":"Internal Service Error", "error":{"code":3090004,"name":"missing_auth_exception", "what":"Missing required authority", "details":[{"message":"missing authority of thomsoimj21","...
0
votes
1answer
132 views

Need the updated parameters for push_transaction

I have some problems trying to transfer EOS in push_transaction. I followed the instructions from https://steemit.com/eos/@noprom/using-eos-rpc-api-to-transfer-eos and other references because the ...
0
votes
1answer
172 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 ...