Guest User

Untitled

a guest
Sep 25th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. void transfer_token(account_name receiver, asset quantity, std::string memo) {
  2.  
  3. action(
  4. permission_level{_self, N(active)},
  5. N(eosio.token),
  6. N(transfer),
  7. std::make_tuple(_self, receiver, quantity, memo)
  8. ).send();
  9. }
  10.  
  11. cleos set account permission <contract> active '{"threshold": 1,"keys": [{"key": <public_key>,"weight": 1}],"accounts": [{"permission":{"actor": <user>,"permission":"active"},"weight":1}]}' owner -p <contract>
Add Comment
Please, Sign In to add comment