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

full_accounts needs list of withdrawal permissions from and to that account #230

Closed
xeroc opened this issue Feb 3, 2017 · 2 comments
Closed

Comments

@xeroc
Copy link
Member

xeroc commented Feb 3, 2017

Withdrawal permissions are pretty much useless if there is no way to obtain the object id of the withdrawal permission. And currently there is no way to obtain it except for looking the the created objects in the specific block

@oxarbitrage
Copy link
Member

commit:

oxarbitrage@422d895

sample output:

alfredo@graphene:~$  curl --data '{"jsonrpc": "2.0", "method": "call", "params": [0, "get_full_accounts", [["1.2.12112"], 1]], "id": 1}' http://127.0.0.1:8090/rpc
{"id":1,"result":[["1.2.12112",{"account":{"id":"1.2.12112","membership_expiration_date":"1970-01-01T00:00:00","registrar":"1.2.4","referrer":"1.2.0","lifetime_referrer":"1.2.0","network_fee_percentage":2000,"lifetime_referrer_fee_percentage":3000,"referrer_rewards_percentage":0,"name":"matias","owner":{"weight_threshold":1,"account_auths":[],"key_auths":[["BTS6S3grJdsuuqhRSNSi5qhTDB5nmgNrYm7C7VpxR4hPfr9eZD5gY",1]],"address_auths":[]},"active":{"weight_threshold":1,"account_auths":[],"key_auths":[["BTS6S3grJdsuuqhRSNSi5qhTDB5nmgNrYm7C7VpxR4hPfr9eZD5gY",1]],"address_auths":[]},"options":{"memo_key":"BTS6S3grJdsuuqhRSNSi5qhTDB5nmgNrYm7C7VpxR4hPfr9eZD5gY","voting_account":"1.2.5","num_witness":0,"num_committee":0,"votes":[],"extensions":[]},"statistics":"2.6.12112","whitelisting_accounts":["1.2.150830"],"blacklisting_accounts":[],"whitelisted_accounts":[],"blacklisted_accounts":[],"owner_special_authority":[0,{}],"active_special_authority":[0,{}],"top_n_control_flags":0},"statistics":{"id":"2.6.12112","owner":"1.2.12112","most_recent_op":"2.9.8698679","total_ops":71,"total_core_in_orders":0,"lifetime_fees_paid":5024557,"pending_fees":0,"pending_vested_fees":0},"registrar_name":"temp-account","referrer_name":"committee-account","lifetime_referrer_name":"committee-account","votes":[],"balances":[{"id":"2.5.46963","owner":"1.2.12112","asset_type":"1.3.0","balance":95530208},{"id":"2.5.7010","owner":"1.2.12112","asset_type":"1.3.121","balance":2},{"id":"2.5.47063","owner":"1.2.12112","asset_type":"1.3.1236","balance":0},{"id":"2.5.47686","owner":"1.2.12112","asset_type":"1.3.1237","balance":0}],"vesting_balances":[],"limit_orders":[],"call_orders":[],"proposals":[],"assets":[],"withdraws":[{"id":"1.12.0","withdraw_from_account":"1.2.12112","authorized_account":"1.2.109447","withdrawal_limit":{"amount":10000,"asset_id":"1.3.1236"},"withdrawal_period_sec":86400,"period_start_time":"2017-02-07T21:49:55","expiration":"2017-03-09T21:49:55","claimed_this_period":0}]}]]}alfredo@graphene:~$

@oxarbitrage
Copy link
Member

pull request:
#232

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

No branches or pull requests

3 participants