2

I am interested in writing a small dApp that interacts with a web API such that a 0.0000 EOS transaction with JSON memo field needs to be stored per transaction.

To test this concept, I tried the scatter desktop but it refuses to send 0.0000 EOS transaction. I used to have a cleos set up on a VM but recently removed it so cannot test it on my own in the next 24 hours.

1
  • So far I heard from @NathanJames that token contract does not allow 0.0000 amount.
    – Kabir
    Commented Nov 13, 2018 at 7:07

2 Answers 2

3

No, the transfer function checks that the amount transferred is greater than 0:

eosio_assert( quantity.amount > 0, "must transfer positive quantity" );

You can still send actions with messages to other accounts without transferring EOS by using inline actions which passes the params of the function it's called from (e.g. see this answer)

0

It is impossible to send 'memo' without any token. The way to write memo in EOS block, First, send 0.0001 EOS with 'memo' Second, send any token with 'memo' Third, use smart contract such like eosforumtest

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.