0

Is there any documentation on staking or unstaking EOS using smart contracts?

I basically want to provide an escrow service where the seller needs to stake the value of the item and the buyer stakes the price of the item which are then both unstaked and given to the seller after the buyer receives the item.

Does anyone know if something like this can be done in an EOS smart contract?

1 Answer 1

1

If you see the system_contract::delegatebw, you will know that Stake is transfer to a third party account and make a record.

If you want do the things you mentioned:

  1. have trusted stake account
  2. hold the sellerer's value in stake account
  3. hold the buyer's price in stake account
  4. make an inline transaction to exchange them
2
  • What would the steps be of creating a trusted stake account?
    – Tachyon
    Mar 24, 2019 at 10:46
  • That depends on participants
    – Reason Lee
    Mar 25, 2019 at 2:20

Your Answer

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

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