Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for recurring payments #639

Closed
svk31 opened this issue Dec 29, 2015 · 4 comments
Closed

Add support for recurring payments #639

svk31 opened this issue Dec 29, 2015 · 4 comments

Comments

@svk31
Copy link
Contributor

svk31 commented Dec 29, 2015

No description provided.

@wmbutler wmbutler added this to the 2.0.160120 milestone Dec 29, 2015
@svk31
Copy link
Contributor Author

svk31 commented Dec 30, 2015

Most likely even the 160120 milestone is too soon for this, it will require some digging to find out how stuff works and what's actually possible.

@noisy
Copy link
Contributor

noisy commented Feb 2, 2016

This feature will be very good for new businesses. 👍

@svk31
Copy link
Contributor Author

svk31 commented Apr 4, 2016

Copy paste of xeroc's explanation of how this works on the blockchain level:

  1. you setup a withdraw permission:
get_prototype_operation withdraw_permission_create_operation
[
  25,{
    "fee": {
      "amount": 0,
      "asset_id": "1.3.0"
    },
    "withdraw_from_account": "1.2.0",
    "authorized_account": "1.2.0",
    "withdrawal_limit": {
      "amount": 0,
      "asset_id": "1.3.0"
    },
    "withdrawal_period_sec": 0,
    "periods_until_expiration": 0,
    "period_start_time": "1970-01-01T00:00:00"
  }
]

All you need to define is

  • The account from which to withdraw
  • The account that is allowed to withdraw
  • The asset and amount limit that is allowed to withdraw
  • And the period in which the limit is reset (e.g. 1k$ monthly.)
  • as well as the start time
  1. The other party can withdraw funds from your account with the
    withdraw operation:
get_prototype_operation withdraw_permission_claim_operation
[
  27,{
    "fee": {
      "amount": 0,
      "asset_id": "1.3.0"
    },
    "withdraw_permission": "1.12.0",
    "withdraw_from_account": "1.2.0",
    "withdraw_to_account": "1.2.0",
    "amount_to_withdraw": {
      "amount": 0,
      "asset_id": "1.3.0"
    }
  }
]

You need

  • The actually object id of that withdrawal permission
  • the account to withdraw from (imho redundant)
  • the account to withdraw to
  • and the amount

The biggest problem here is that the withdraw permissions are not
"searchable" and I don't think they are in the results of
get_full_account yet. @abit: maybe you can help add them there.

Once you have a withdraw permission object id (and the matching
account), you can create a withdrawal transaction!

@svk31
Copy link
Contributor Author

svk31 commented Jan 19, 2017

This issue was moved to bitshares/bitshares-ui#30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants