4

This is a great answer that describes the ways you can handle user permission levels for inline actions. According to that answer:

This can be done a few ways (ordered from most risky for the user to least):

  1. The user may allow contract@active to satisfy their @active permission
  2. The user may set up a sub-permission (for example @xfer), link that as the minimum permission to eosio.token::transfer and allow contract@active to satisfy that permission
  3. require that the transfer be explicit (not inline) and then use the notification that is sent to your contract to (temporarily) record the details and read/assert/process them in a second action directly to your contract.

However, I was hoping if someone can share some implementation examples of the 3 methods above?

I found this which might be an example on how to achieve method (1) above? Would be good to know how the other 2 methods are achieved.

0

It seems hard to find an example that can answer all your questions.

Below is an example of sending an inline action without permission. You can learn a lot by reading this article.

https://trybe.one/the-ultimate-end-to-end-eos-dapp-tutorial-part-2/

How about making a reference to each of these examples?

How about making examples by referring to this content?

As time goes on, I will make it. Let's make it together.

  • Thanks for your response. This tutorial was what actually prompted me to ask this question. There was an issue with the way they implemented the inline action without permissions (look at this comment in their medium article). I’ll continue to investigate this and will post what I find. – ken Jun 30 '18 at 3:55
  • Ok, you did. So what if you want to ask specifically what you want with this example? In fact, I did not know exactly what you wanted by looking at your question. Others may be like me. – smarteasy Jun 30 '18 at 12:10
  • Sorry for being unclear. The way they (the article) handled inline actions were incorrect, according to this comment. You need to set up a chain of permission for a contract to transfer tokens on behalf of a user. This is what I do not know how to do. – ken Jul 4 '18 at 3:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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