[SON for Hive] - Enable Hive users to deposit/withdraw without sidechain address registration #163

Closed
opened 2021-08-05 12:34:06 +00:00 by serkixenos · 9 comments
serkixenos commented 2021-08-05 12:34:06 +00:00 (Migrated from gitlab.com)

We can avoid registering sidechain addresses for Hive users if they use memo field, from transfer operation, to instruct SON network to which account they want to depoist/withdraw funds.

Eg, Deposit, on Hive network
transfer account1.hive son-account "100.000 HIVE" account1.peerplays true

Eg, Withdraw, on Peerplays network
transfer account1.peerplays son-account 100 HIVE account1.hive true

We can avoid registering sidechain addresses for Hive users if they use memo field, from transfer operation, to instruct SON network to which account they want to depoist/withdraw funds. Eg, Deposit, on Hive network transfer account1.hive son-account "100.000 HIVE" account1.peerplays true Eg, Withdraw, on Peerplays network transfer account1.peerplays son-account 100 HIVE account1.hive true
serkixenos commented 2021-08-05 12:34:19 +00:00 (Migrated from gitlab.com)

changed time estimate to 40h

changed time estimate to 40h
serkixenos commented 2021-08-05 12:37:12 +00:00 (Migrated from gitlab.com)

assigned to @serkixenos

assigned to @serkixenos
bobinson commented 2021-08-06 08:31:53 +00:00 (Migrated from gitlab.com)

Expected deposit functionality as per the discussion : HIVE___HBD_Deposit.pdf

Expected deposit functionality as per the discussion : [HIVE___HBD_Deposit.pdf](/uploads/d725abcb1d8ab61ca0d9245198306063/HIVE___HBD_Deposit.pdf)
prandnum commented 2021-08-08 11:44:27 +00:00 (Migrated from gitlab.com)

marked this issue as related to #152

marked this issue as related to #152
serkixenos commented 2021-08-14 04:42:49 +00:00 (Migrated from gitlab.com)

We are unable to implement this type of withdrawal. In Peerplays, memo field is not plain string, and the message it is carrying is encrypted, so we are not able to transfer plain string message like we are in Hive.

We are unable to implement this type of withdrawal. In Peerplays, memo field is not plain string, and the message it is carrying is encrypted, so we are not able to transfer plain string message like we are in Hive.
serkixenos commented 2021-08-14 20:31:55 +00:00 (Migrated from gitlab.com)
https://gitlab.com/PBSA/peerplays/-/commit/cf7825a1841ce0014321722b027157ca8d14393f
serkixenos commented 2021-08-14 20:55:54 +00:00 (Migrated from gitlab.com)

assigned to @prandnum

assigned to @prandnum
prandnum commented 2021-08-17 16:00:17 +00:00 (Migrated from gitlab.com)

Took the latest code(git clone https://github.com/peerplays-network/peerplays-utils.git) and it is not working.

Tried the following

transfer hiveuser01 son-account "10000.000 TBD" "peerplaysuser01" true

where hiveuser01 is the user in HIVE network and peerplaysuser01 a normal user(no sidechain addresses associated with it)

unlocked >>> get_sidechain_addresses_by_account peerplaysuser01
get_sidechain_addresses_by_account peerplaysuser01
[]
unlocked >>> 
unlocked >>> list_account_balances peerplaysuser01
list_account_balances peerplaysuser01
5 TEST

unlocked >>> 
Took the latest code(git clone https://github.com/peerplays-network/peerplays-utils.git) and it is not working. Tried the following transfer hiveuser01 son-account "10000.000 TBD" "peerplaysuser01" true where hiveuser01 is the user in HIVE network and peerplaysuser01 a normal user(no sidechain addresses associated with it) ``` unlocked >>> get_sidechain_addresses_by_account peerplaysuser01 get_sidechain_addresses_by_account peerplaysuser01 [] unlocked >>> ``` ``` unlocked >>> list_account_balances peerplaysuser01 list_account_balances peerplaysuser01 5 TEST unlocked >>> ```
prandnum commented 2021-08-19 18:03:35 +00:00 (Migrated from gitlab.com)

Deposit works:

unlocked >>> transfer hiveuser01 son-account "10000.000 TBD" "peerplaysuser01" true
transfer hiveuser01 son-account "10000.000 TBD" "peerplaysuser01" true
2717123ms websocket_api.cpp:102         on_message           ] message: {"jsonrpc":"2.0","result":[{"id":39,"name":"hiveuser01","owner":{"weight_threshold":1,"account_auths":[],"key_auths":[["TST8aTvMfS3PFXmrX9hJ4sA57o2Zwcihfe8XjisA4arFGNrBRSna8",1]]},"active":{"weight_threshold":1,"account_auths":[],"key_auths":[["TST5QnWNfmqwUtkPn6FWSPY1NdCcBhc4uEt9of9ia6E1eWzpaoa9x",1]]},"posting":{"weight_threshold":1,"account_auths":[],"key_auths":[["TST69jMe4mWboU2bR9zkN7yRbPdJGRF1tEam32juH75gmhTjWD8Z7",1]]},"memo_key":"TST7Au6h62exu9cKfuLYEG8EeVwCW1Lni9xRBfr5s9KFya8EiHPhb","json_metadata":"","posting_json_metadata":"","proxy":"","last_owner_update":"1970-01-01T00:00:00","last_account_update":"1970-01-01T00:00:00","created":"2021-08-19T17:33:48","mined":false,"recovery_account":"initminer","last_account_recovery":"1970-01-01T00:00:00","reset_account":"null","comment_count":0,"lifetime_vote_count":0,"post_count":0,"can_vote":true,"voting_manabar":{"current_mana":357754041,"last_update_time":1629394479},"downvote_manabar":{"current_mana":89438510,"last_update_time":1629394479},"voting_power":0,"balance":"4990000.000 TESTS","savings_balance":"0.000 TESTS","hbd_balance":"5000000.000 TBD","hbd_seconds":"0","hbd_seconds_last_update":"2021-08-19T17:34:18","hbd_last_interest_payment":"1970-01-01T00:00:00","savings_hbd_balance":"0.000 TBD","savings_hbd_seconds":"0","savings_hbd_seconds_last_update":"1970-01-01T00:00:00","savings_hbd_last_interest_payment":"1970-01-01T00:00:00","savings_withdraw_requests":0,"reward_hbd_balance":"0.000 TBD","reward_hive_balance":"0.000 TESTS","reward_vesting_balance":"0.000000 VESTS","reward_vesting_hive":"0.000 TESTS","vesting_shares":"357.754041 VESTS","delegated_vesting_shares":"0.000000 VESTS","received_vesting_shares":"0.000000 VESTS","vesting_withdraw_rate":"0.000000 VESTS","post_voting_power":"357.754041 VESTS","next_vesting_withdrawal":"1969-12-31T23:59:59","withdrawn":0,"to_withdraw":0,"withdraw_routes":0,"pending_transfers":0,"curation_rewards":0,"posting_rewards":0,"proxied_vsf_votes":[0,0,0,0],"witnesses_voted_for":0,"last_post":"1970-01-01T00:00:00","last_root_post":"1970-01-01T00:00:00","last_vote_time":"1970-01-01T00:00:00","post_bandwidth":0,"pending_claimed_accounts":0,"delayed_votes":[{"time":"2021-08-19T17:34:39","val":357754041}],"vesting_balance":"0.000 TESTS","reputation":0,"transfer_history":[],"market_history":[],"post_history":[],"vote_history":[],"other_history":[],"witness_votes":[],"tags_usage":[],"guest_bloggers":[]}],"id":16}
2717127ms websocket_api.cpp:102         on_message           ] message: {"jsonrpc":"2.0","result":[{"id":39,"name":"hiveuser01","owner":{"weight_threshold":1,"account_auths":[],"key_auths":[["TST8aTvMfS3PFXmrX9hJ4sA57o2Zwcihfe8XjisA4arFGNrBRSna8",1]]},"active":{"weight_threshold":1,"account_auths":[],"key_auths":[["TST5QnWNfmqwUtkPn6FWSPY1NdCcBhc4uEt9of9ia6E1eWzpaoa9x",1]]},"posting":{"weight_threshold":1,"account_auths":[],"key_auths":[["TST69jMe4mWboU2bR9zkN7yRbPdJGRF1tEam32juH75gmhTjWD8Z7",1]]},"memo_key":"TST7Au6h62exu9cKfuLYEG8EeVwCW1Lni9xRBfr5s9KFya8EiHPhb","json_metadata":"","posting_json_metadata":"","proxy":"","last_owner_update":"1970-01-01T00:00:00","last_account_update":"1970-01-01T00:00:00","created":"2021-08-19T17:33:48","mined":false,"recovery_account":"initminer","last_account_recovery":"1970-01-01T00:00:00","reset_account":"null","comment_count":0,"lifetime_vote_count":0,"post_count":0,"can_vote":true,"voting_manabar":{"current_mana":357754041,"last_update_time":1629394479},"downvote_manabar":{"current_mana":89438510,"last_update_time":1629394479},"voting_power":0,"balance":"4990000.000 TESTS","savings_balance":"0.000 TESTS","hbd_balance":"5000000.000 TBD","hbd_seconds":"0","hbd_seconds_last_update":"2021-08-19T17:34:18","hbd_last_interest_payment":"1970-01-01T00:00:00","savings_hbd_balance":"0.000 TBD","savings_hbd_seconds":"0","savings_hbd_seconds_last_update":"1970-01-01T00:00:00","savings_hbd_last_interest_payment":"1970-01-01T00:00:00","savings_withdraw_requests":0,"reward_hbd_balance":"0.000 TBD","reward_hive_balance":"0.000 TESTS","reward_vesting_balance":"0.000000 VESTS","reward_vesting_hive":"0.000 TESTS","vesting_shares":"357.754041 VESTS","delegated_vesting_shares":"0.000000 VESTS","received_vesting_shares":"0.000000 VESTS","vesting_withdraw_rate":"0.000000 VESTS","post_voting_power":"357.754041 VESTS","next_vesting_withdrawal":"1969-12-31T23:59:59","withdrawn":0,"to_withdraw":0,"withdraw_routes":0,"pending_transfers":0,"curation_rewards":0,"posting_rewards":0,"proxied_vsf_votes":[0,0,0,0],"witnesses_voted_for":0,"last_post":"1970-01-01T00:00:00","last_root_post":"1970-01-01T00:00:00","last_vote_time":"1970-01-01T00:00:00","post_bandwidth":0,"pending_claimed_accounts":0,"delayed_votes":[{"time":"2021-08-19T17:34:39","val":357754041}],"vesting_balance":"0.000 TESTS","reputation":0,"transfer_history":[],"market_history":[],"post_history":[],"vote_history":[],"other_history":[],"witness_votes":[],"tags_usage":[],"guest_bloggers":[]}],"id":17}
2717129ms wallet.cpp:626                sign_transaction     ] v_approving_keys: ["TST5QnWNfmqwUtkPn6FWSPY1NdCcBhc4uEt9of9ia6E1eWzpaoa9x"]
2717129ms wallet.cpp:629                sign_transaction     ] approving_key: TST5QnWNfmqwUtkPn6FWSPY1NdCcBhc4uEt9of9ia6E1eWzpaoa9x
2717131ms websocket_api.cpp:102         on_message           ] message: {"jsonrpc":"2.0","result":{"head_block_number":1791,"head_block_id":"000006ff25f808b76b76616fe9aae2b6f3bdab97","time":"2021-08-19T17:45:15","current_witness":"initminer","total_pow":"18446744073709551615","num_pow_witnesses":0,"virtual_supply":"286181492.425 TESTS","current_supply":"250013686.665 TESTS","init_hbd_supply":"7000000.000 TBD","current_hbd_supply":"36167805.760 TBD","total_vesting_fund_hive":"33020605.098 TESTS","total_vesting_shares":"1181322.467300 VESTS","total_reward_fund_hive":"0.000 TESTS","total_reward_shares2":"0","pending_rewarded_vesting_shares":"0.000000 VESTS","pending_rewarded_vesting_hive":"0.000 TESTS","hbd_interest_rate":1000,"hbd_print_rate":0,"maximum_block_size":131072,"required_actions_partition_percent":0,"current_aslot":59262905,"recent_slots_filled":"340282366920938463463374607431768211455","participation_count":128,"last_irreversible_block_num":1770,"vote_power_reserve_rate":10,"delegation_return_period":432000,"reverse_auction_seconds":300,"available_account_subsidies":1421862,"hbd_stop_percent":1000,"hbd_start_percent":900,"next_maintenance_time":"2021-08-19T18:14:18","last_budget_time":"2021-08-19T17:14:18","next_daily_maintenance_time":"2021-08-19T18:14:18","content_reward_percent":6500,"vesting_reward_percent":1500,"sps_fund_percent":1000,"sps_interval_ledger":"164.654 TBD","downvote_pool_percent":2500},"id":18}
2717609ms websocket_api.cpp:102         on_message           ] message: {"jsonrpc":"2.0","result":{"id":"7498f8b98e2c9fe10a040b83b1dec5a6c4162f7f","block_num":1792,"trx_num":0,"expired":false},"id":19}
{
  "ref_block_num": 1791,
  "ref_block_prefix": 3070818341,
  "expiration": "2021-08-19T17:45:45",
  "operations": [[
      "transfer",{
        "from": "hiveuser01",
        "to": "son-account",
        "amount": "10000.000 TBD",
        "memo": "peerplaysuser01"
      }
    ]
  ],
  "extensions": [],
  "signatures": [
    "2042b2ce4336af30e10bcc5b2f9a2a3a6490199e9f98aff8ea35a78613ac5f6bd328ba97ea7054bc3ed633464c42daf3fc929c185db8e22d96be49c7e5309ddd8d"
  ],
  "transaction_id": "7498f8b98e2c9fe10a040b83b1dec5a6c4162f7f",
  "block_num": 1792,
  "transaction_num": 0
}
unlocked >>> transfer hiveuser01 son-account "10000.000 TESTS" "peerplaysuser01" true
transfer hiveuser01 son-account "10000.000 TESTS" "peerplaysuser01" true
56485ms websocket_api.cpp:102         on_message           ] message: {"jsonrpc":"2.0","result":[{"id":39,"name":"hiveuser01","owner":{"weight_threshold":1,"account_auths":[],"key_auths":[["TST8aTvMfS3PFXmrX9hJ4sA57o2Zwcihfe8XjisA4arFGNrBRSna8",1]]},"active":{"weight_threshold":1,"account_auths":[],"key_auths":[["TST5QnWNfmqwUtkPn6FWSPY1NdCcBhc4uEt9of9ia6E1eWzpaoa9x",1]]},"posting":{"weight_threshold":1,"account_auths":[],"key_auths":[["TST69jMe4mWboU2bR9zkN7yRbPdJGRF1tEam32juH75gmhTjWD8Z7",1]]},"memo_key":"TST7Au6h62exu9cKfuLYEG8EeVwCW1Lni9xRBfr5s9KFya8EiHPhb","json_metadata":"","posting_json_metadata":"","proxy":"","last_owner_update":"1970-01-01T00:00:00","last_account_update":"1970-01-01T00:00:00","created":"2021-08-19T17:33:48","mined":false,"recovery_account":"initminer","last_account_recovery":"1970-01-01T00:00:00","reset_account":"null","comment_count":0,"lifetime_vote_count":0,"post_count":0,"can_vote":true,"voting_manabar":{"current_mana":357754041,"last_update_time":1629394479},"downvote_manabar":{"current_mana":89438510,"last_update_time":1629394479},"voting_power":0,"balance":"4990000.000 TESTS","savings_balance":"0.000 TESTS","hbd_balance":"4990010.416 TBD","hbd_seconds":"0","hbd_seconds_last_update":"2021-08-19T17:45:15","hbd_last_interest_payment":"2021-08-19T17:45:15","savings_hbd_balance":"0.000 TBD","savings_hbd_seconds":"0","savings_hbd_seconds_last_update":"1970-01-01T00:00:00","savings_hbd_last_interest_payment":"1970-01-01T00:00:00","savings_withdraw_requests":0,"reward_hbd_balance":"0.000 TBD","reward_hive_balance":"0.000 TESTS","reward_vesting_balance":"0.000000 VESTS","reward_vesting_hive":"0.000 TESTS","vesting_shares":"357.754041 VESTS","delegated_vesting_shares":"0.000000 VESTS","received_vesting_shares":"0.000000 VESTS","vesting_withdraw_rate":"0.000000 VESTS","post_voting_power":"357.754041 VESTS","next_vesting_withdrawal":"1969-12-31T23:59:59","withdrawn":0,"to_withdraw":0,"withdraw_routes":0,"pending_transfers":0,"curation_rewards":0,"posting_rewards":0,"proxied_vsf_votes":[0,0,0,0],"witnesses_voted_for":0,"last_post":"1970-01-01T00:00:00","last_root_post":"1970-01-01T00:00:00","last_vote_time":"1970-01-01T00:00:00","post_bandwidth":0,"pending_claimed_accounts":0,"delayed_votes":[{"time":"2021-08-19T17:34:39","val":357754041}],"vesting_balance":"0.000 TESTS","reputation":0,"transfer_history":[],"market_history":[],"post_history":[],"vote_history":[],"other_history":[],"witness_votes":[],"tags_usage":[],"guest_bloggers":[]}],"id":20}
56489ms websocket_api.cpp:102         on_message           ] message: {"jsonrpc":"2.0","result":[{"id":39,"name":"hiveuser01","owner":{"weight_threshold":1,"account_auths":[],"key_auths":[["TST8aTvMfS3PFXmrX9hJ4sA57o2Zwcihfe8XjisA4arFGNrBRSna8",1]]},"active":{"weight_threshold":1,"account_auths":[],"key_auths":[["TST5QnWNfmqwUtkPn6FWSPY1NdCcBhc4uEt9of9ia6E1eWzpaoa9x",1]]},"posting":{"weight_threshold":1,"account_auths":[],"key_auths":[["TST69jMe4mWboU2bR9zkN7yRbPdJGRF1tEam32juH75gmhTjWD8Z7",1]]},"memo_key":"TST7Au6h62exu9cKfuLYEG8EeVwCW1Lni9xRBfr5s9KFya8EiHPhb","json_metadata":"","posting_json_metadata":"","proxy":"","last_owner_update":"1970-01-01T00:00:00","last_account_update":"1970-01-01T00:00:00","created":"2021-08-19T17:33:48","mined":false,"recovery_account":"initminer","last_account_recovery":"1970-01-01T00:00:00","reset_account":"null","comment_count":0,"lifetime_vote_count":0,"post_count":0,"can_vote":true,"voting_manabar":{"current_mana":357754041,"last_update_time":1629394479},"downvote_manabar":{"current_mana":89438510,"last_update_time":1629394479},"voting_power":0,"balance":"4990000.000 TESTS","savings_balance":"0.000 TESTS","hbd_balance":"4990010.416 TBD","hbd_seconds":"0","hbd_seconds_last_update":"2021-08-19T17:45:15","hbd_last_interest_payment":"2021-08-19T17:45:15","savings_hbd_balance":"0.000 TBD","savings_hbd_seconds":"0","savings_hbd_seconds_last_update":"1970-01-01T00:00:00","savings_hbd_last_interest_payment":"1970-01-01T00:00:00","savings_withdraw_requests":0,"reward_hbd_balance":"0.000 TBD","reward_hive_balance":"0.000 TESTS","reward_vesting_balance":"0.000000 VESTS","reward_vesting_hive":"0.000 TESTS","vesting_shares":"357.754041 VESTS","delegated_vesting_shares":"0.000000 VESTS","received_vesting_shares":"0.000000 VESTS","vesting_withdraw_rate":"0.000000 VESTS","post_voting_power":"357.754041 VESTS","next_vesting_withdrawal":"1969-12-31T23:59:59","withdrawn":0,"to_withdraw":0,"withdraw_routes":0,"pending_transfers":0,"curation_rewards":0,"posting_rewards":0,"proxied_vsf_votes":[0,0,0,0],"witnesses_voted_for":0,"last_post":"1970-01-01T00:00:00","last_root_post":"1970-01-01T00:00:00","last_vote_time":"1970-01-01T00:00:00","post_bandwidth":0,"pending_claimed_accounts":0,"delayed_votes":[{"time":"2021-08-19T17:34:39","val":357754041}],"vesting_balance":"0.000 TESTS","reputation":0,"transfer_history":[],"market_history":[],"post_history":[],"vote_history":[],"other_history":[],"witness_votes":[],"tags_usage":[],"guest_bloggers":[]}],"id":21}
56490ms wallet.cpp:626                sign_transaction     ] v_approving_keys: ["TST5QnWNfmqwUtkPn6FWSPY1NdCcBhc4uEt9of9ia6E1eWzpaoa9x"]
56490ms wallet.cpp:629                sign_transaction     ] approving_key: TST5QnWNfmqwUtkPn6FWSPY1NdCcBhc4uEt9of9ia6E1eWzpaoa9x
56493ms websocket_api.cpp:102         on_message           ] message: {"jsonrpc":"2.0","result":{"head_block_number":2104,"head_block_id":"000008389ce5779ac13ca8d70610214fb9dc1b2d","time":"2021-08-19T18:00:54","current_witness":"initminer","total_pow":"18446744073709551615","num_pow_witnesses":0,"virtual_supply":"286184023.772 TESTS","current_supply":"250016108.033 TESTS","init_hbd_supply":"7000000.000 TBD","current_hbd_supply":"36167915.739 TBD","total_vesting_fund_hive":"33022484.976 TESTS","total_vesting_shares":"1181385.252356 VESTS","total_reward_fund_hive":"0.000 TESTS","total_reward_shares2":"0","pending_rewarded_vesting_shares":"0.000000 VESTS","pending_rewarded_vesting_hive":"0.000 TESTS","hbd_interest_rate":1000,"hbd_print_rate":0,"maximum_block_size":131072,"required_actions_partition_percent":0,"current_aslot":59263218,"recent_slots_filled":"340282366920938463463374607431768211455","participation_count":128,"last_irreversible_block_num":2083,"vote_power_reserve_rate":10,"delegation_return_period":432000,"reverse_auction_seconds":300,"available_account_subsidies":1669023,"hbd_stop_percent":1000,"hbd_start_percent":900,"next_maintenance_time":"2021-08-19T18:14:18","last_budget_time":"2021-08-19T17:14:18","next_daily_maintenance_time":"2021-08-19T18:14:18","content_reward_percent":6500,"vesting_reward_percent":1500,"sps_fund_percent":1000,"sps_interval_ledger":"247.912 TBD","downvote_pool_percent":2500},"id":22}
56617ms websocket_api.cpp:102         on_message           ] message: {"jsonrpc":"2.0","result":{"id":"357b70d74d13acf20121a5d4d96413a462ca7609","block_num":2105,"trx_num":0,"expired":false},"id":23}
{
  "ref_block_num": 2104,
  "ref_block_prefix": 2591548828,
  "expiration": "2021-08-19T18:01:24",
  "operations": [[
      "transfer",{
        "from": "hiveuser01",
        "to": "son-account",
        "amount": "10000.000 TESTS",
        "memo": "peerplaysuser01"
      }
    ]
  ],
  "extensions": [],
  "signatures": [
    "204c2d8d2a3f03fbde05b5ecd4d96d8e31e28ecad7fe728fce5c50f370fc97176966b283daa80decb6a4dcb8aa6be0918be00bc176fb0d0c36e5d7029351a57fb0"
  ],
  "transaction_id": "357b70d74d13acf20121a5d4d96413a462ca7609",
  "block_num": 2105,
  "transaction_num": 0
}
unlocked >>>
unlocked >>> list_account_balances peerplaysuser01
list_account_balances peerplaysuser01
5 TEST
10000 HBD
10000 HIVE

unlocked >>> get_sidechain_addresses_by_account peerplaysuser01
get_sidechain_addresses_by_account peerplaysuser01
[]
unlocked >>>
Deposit works: ``` unlocked >>> transfer hiveuser01 son-account "10000.000 TBD" "peerplaysuser01" true transfer hiveuser01 son-account "10000.000 TBD" "peerplaysuser01" true 2717123ms websocket_api.cpp:102 on_message ] message: {"jsonrpc":"2.0","result":[{"id":39,"name":"hiveuser01","owner":{"weight_threshold":1,"account_auths":[],"key_auths":[["TST8aTvMfS3PFXmrX9hJ4sA57o2Zwcihfe8XjisA4arFGNrBRSna8",1]]},"active":{"weight_threshold":1,"account_auths":[],"key_auths":[["TST5QnWNfmqwUtkPn6FWSPY1NdCcBhc4uEt9of9ia6E1eWzpaoa9x",1]]},"posting":{"weight_threshold":1,"account_auths":[],"key_auths":[["TST69jMe4mWboU2bR9zkN7yRbPdJGRF1tEam32juH75gmhTjWD8Z7",1]]},"memo_key":"TST7Au6h62exu9cKfuLYEG8EeVwCW1Lni9xRBfr5s9KFya8EiHPhb","json_metadata":"","posting_json_metadata":"","proxy":"","last_owner_update":"1970-01-01T00:00:00","last_account_update":"1970-01-01T00:00:00","created":"2021-08-19T17:33:48","mined":false,"recovery_account":"initminer","last_account_recovery":"1970-01-01T00:00:00","reset_account":"null","comment_count":0,"lifetime_vote_count":0,"post_count":0,"can_vote":true,"voting_manabar":{"current_mana":357754041,"last_update_time":1629394479},"downvote_manabar":{"current_mana":89438510,"last_update_time":1629394479},"voting_power":0,"balance":"4990000.000 TESTS","savings_balance":"0.000 TESTS","hbd_balance":"5000000.000 TBD","hbd_seconds":"0","hbd_seconds_last_update":"2021-08-19T17:34:18","hbd_last_interest_payment":"1970-01-01T00:00:00","savings_hbd_balance":"0.000 TBD","savings_hbd_seconds":"0","savings_hbd_seconds_last_update":"1970-01-01T00:00:00","savings_hbd_last_interest_payment":"1970-01-01T00:00:00","savings_withdraw_requests":0,"reward_hbd_balance":"0.000 TBD","reward_hive_balance":"0.000 TESTS","reward_vesting_balance":"0.000000 VESTS","reward_vesting_hive":"0.000 TESTS","vesting_shares":"357.754041 VESTS","delegated_vesting_shares":"0.000000 VESTS","received_vesting_shares":"0.000000 VESTS","vesting_withdraw_rate":"0.000000 VESTS","post_voting_power":"357.754041 VESTS","next_vesting_withdrawal":"1969-12-31T23:59:59","withdrawn":0,"to_withdraw":0,"withdraw_routes":0,"pending_transfers":0,"curation_rewards":0,"posting_rewards":0,"proxied_vsf_votes":[0,0,0,0],"witnesses_voted_for":0,"last_post":"1970-01-01T00:00:00","last_root_post":"1970-01-01T00:00:00","last_vote_time":"1970-01-01T00:00:00","post_bandwidth":0,"pending_claimed_accounts":0,"delayed_votes":[{"time":"2021-08-19T17:34:39","val":357754041}],"vesting_balance":"0.000 TESTS","reputation":0,"transfer_history":[],"market_history":[],"post_history":[],"vote_history":[],"other_history":[],"witness_votes":[],"tags_usage":[],"guest_bloggers":[]}],"id":16} 2717127ms websocket_api.cpp:102 on_message ] message: {"jsonrpc":"2.0","result":[{"id":39,"name":"hiveuser01","owner":{"weight_threshold":1,"account_auths":[],"key_auths":[["TST8aTvMfS3PFXmrX9hJ4sA57o2Zwcihfe8XjisA4arFGNrBRSna8",1]]},"active":{"weight_threshold":1,"account_auths":[],"key_auths":[["TST5QnWNfmqwUtkPn6FWSPY1NdCcBhc4uEt9of9ia6E1eWzpaoa9x",1]]},"posting":{"weight_threshold":1,"account_auths":[],"key_auths":[["TST69jMe4mWboU2bR9zkN7yRbPdJGRF1tEam32juH75gmhTjWD8Z7",1]]},"memo_key":"TST7Au6h62exu9cKfuLYEG8EeVwCW1Lni9xRBfr5s9KFya8EiHPhb","json_metadata":"","posting_json_metadata":"","proxy":"","last_owner_update":"1970-01-01T00:00:00","last_account_update":"1970-01-01T00:00:00","created":"2021-08-19T17:33:48","mined":false,"recovery_account":"initminer","last_account_recovery":"1970-01-01T00:00:00","reset_account":"null","comment_count":0,"lifetime_vote_count":0,"post_count":0,"can_vote":true,"voting_manabar":{"current_mana":357754041,"last_update_time":1629394479},"downvote_manabar":{"current_mana":89438510,"last_update_time":1629394479},"voting_power":0,"balance":"4990000.000 TESTS","savings_balance":"0.000 TESTS","hbd_balance":"5000000.000 TBD","hbd_seconds":"0","hbd_seconds_last_update":"2021-08-19T17:34:18","hbd_last_interest_payment":"1970-01-01T00:00:00","savings_hbd_balance":"0.000 TBD","savings_hbd_seconds":"0","savings_hbd_seconds_last_update":"1970-01-01T00:00:00","savings_hbd_last_interest_payment":"1970-01-01T00:00:00","savings_withdraw_requests":0,"reward_hbd_balance":"0.000 TBD","reward_hive_balance":"0.000 TESTS","reward_vesting_balance":"0.000000 VESTS","reward_vesting_hive":"0.000 TESTS","vesting_shares":"357.754041 VESTS","delegated_vesting_shares":"0.000000 VESTS","received_vesting_shares":"0.000000 VESTS","vesting_withdraw_rate":"0.000000 VESTS","post_voting_power":"357.754041 VESTS","next_vesting_withdrawal":"1969-12-31T23:59:59","withdrawn":0,"to_withdraw":0,"withdraw_routes":0,"pending_transfers":0,"curation_rewards":0,"posting_rewards":0,"proxied_vsf_votes":[0,0,0,0],"witnesses_voted_for":0,"last_post":"1970-01-01T00:00:00","last_root_post":"1970-01-01T00:00:00","last_vote_time":"1970-01-01T00:00:00","post_bandwidth":0,"pending_claimed_accounts":0,"delayed_votes":[{"time":"2021-08-19T17:34:39","val":357754041}],"vesting_balance":"0.000 TESTS","reputation":0,"transfer_history":[],"market_history":[],"post_history":[],"vote_history":[],"other_history":[],"witness_votes":[],"tags_usage":[],"guest_bloggers":[]}],"id":17} 2717129ms wallet.cpp:626 sign_transaction ] v_approving_keys: ["TST5QnWNfmqwUtkPn6FWSPY1NdCcBhc4uEt9of9ia6E1eWzpaoa9x"] 2717129ms wallet.cpp:629 sign_transaction ] approving_key: TST5QnWNfmqwUtkPn6FWSPY1NdCcBhc4uEt9of9ia6E1eWzpaoa9x 2717131ms websocket_api.cpp:102 on_message ] message: {"jsonrpc":"2.0","result":{"head_block_number":1791,"head_block_id":"000006ff25f808b76b76616fe9aae2b6f3bdab97","time":"2021-08-19T17:45:15","current_witness":"initminer","total_pow":"18446744073709551615","num_pow_witnesses":0,"virtual_supply":"286181492.425 TESTS","current_supply":"250013686.665 TESTS","init_hbd_supply":"7000000.000 TBD","current_hbd_supply":"36167805.760 TBD","total_vesting_fund_hive":"33020605.098 TESTS","total_vesting_shares":"1181322.467300 VESTS","total_reward_fund_hive":"0.000 TESTS","total_reward_shares2":"0","pending_rewarded_vesting_shares":"0.000000 VESTS","pending_rewarded_vesting_hive":"0.000 TESTS","hbd_interest_rate":1000,"hbd_print_rate":0,"maximum_block_size":131072,"required_actions_partition_percent":0,"current_aslot":59262905,"recent_slots_filled":"340282366920938463463374607431768211455","participation_count":128,"last_irreversible_block_num":1770,"vote_power_reserve_rate":10,"delegation_return_period":432000,"reverse_auction_seconds":300,"available_account_subsidies":1421862,"hbd_stop_percent":1000,"hbd_start_percent":900,"next_maintenance_time":"2021-08-19T18:14:18","last_budget_time":"2021-08-19T17:14:18","next_daily_maintenance_time":"2021-08-19T18:14:18","content_reward_percent":6500,"vesting_reward_percent":1500,"sps_fund_percent":1000,"sps_interval_ledger":"164.654 TBD","downvote_pool_percent":2500},"id":18} 2717609ms websocket_api.cpp:102 on_message ] message: {"jsonrpc":"2.0","result":{"id":"7498f8b98e2c9fe10a040b83b1dec5a6c4162f7f","block_num":1792,"trx_num":0,"expired":false},"id":19} { "ref_block_num": 1791, "ref_block_prefix": 3070818341, "expiration": "2021-08-19T17:45:45", "operations": [[ "transfer",{ "from": "hiveuser01", "to": "son-account", "amount": "10000.000 TBD", "memo": "peerplaysuser01" } ] ], "extensions": [], "signatures": [ "2042b2ce4336af30e10bcc5b2f9a2a3a6490199e9f98aff8ea35a78613ac5f6bd328ba97ea7054bc3ed633464c42daf3fc929c185db8e22d96be49c7e5309ddd8d" ], "transaction_id": "7498f8b98e2c9fe10a040b83b1dec5a6c4162f7f", "block_num": 1792, "transaction_num": 0 } unlocked >>> transfer hiveuser01 son-account "10000.000 TESTS" "peerplaysuser01" true transfer hiveuser01 son-account "10000.000 TESTS" "peerplaysuser01" true 56485ms websocket_api.cpp:102 on_message ] message: {"jsonrpc":"2.0","result":[{"id":39,"name":"hiveuser01","owner":{"weight_threshold":1,"account_auths":[],"key_auths":[["TST8aTvMfS3PFXmrX9hJ4sA57o2Zwcihfe8XjisA4arFGNrBRSna8",1]]},"active":{"weight_threshold":1,"account_auths":[],"key_auths":[["TST5QnWNfmqwUtkPn6FWSPY1NdCcBhc4uEt9of9ia6E1eWzpaoa9x",1]]},"posting":{"weight_threshold":1,"account_auths":[],"key_auths":[["TST69jMe4mWboU2bR9zkN7yRbPdJGRF1tEam32juH75gmhTjWD8Z7",1]]},"memo_key":"TST7Au6h62exu9cKfuLYEG8EeVwCW1Lni9xRBfr5s9KFya8EiHPhb","json_metadata":"","posting_json_metadata":"","proxy":"","last_owner_update":"1970-01-01T00:00:00","last_account_update":"1970-01-01T00:00:00","created":"2021-08-19T17:33:48","mined":false,"recovery_account":"initminer","last_account_recovery":"1970-01-01T00:00:00","reset_account":"null","comment_count":0,"lifetime_vote_count":0,"post_count":0,"can_vote":true,"voting_manabar":{"current_mana":357754041,"last_update_time":1629394479},"downvote_manabar":{"current_mana":89438510,"last_update_time":1629394479},"voting_power":0,"balance":"4990000.000 TESTS","savings_balance":"0.000 TESTS","hbd_balance":"4990010.416 TBD","hbd_seconds":"0","hbd_seconds_last_update":"2021-08-19T17:45:15","hbd_last_interest_payment":"2021-08-19T17:45:15","savings_hbd_balance":"0.000 TBD","savings_hbd_seconds":"0","savings_hbd_seconds_last_update":"1970-01-01T00:00:00","savings_hbd_last_interest_payment":"1970-01-01T00:00:00","savings_withdraw_requests":0,"reward_hbd_balance":"0.000 TBD","reward_hive_balance":"0.000 TESTS","reward_vesting_balance":"0.000000 VESTS","reward_vesting_hive":"0.000 TESTS","vesting_shares":"357.754041 VESTS","delegated_vesting_shares":"0.000000 VESTS","received_vesting_shares":"0.000000 VESTS","vesting_withdraw_rate":"0.000000 VESTS","post_voting_power":"357.754041 VESTS","next_vesting_withdrawal":"1969-12-31T23:59:59","withdrawn":0,"to_withdraw":0,"withdraw_routes":0,"pending_transfers":0,"curation_rewards":0,"posting_rewards":0,"proxied_vsf_votes":[0,0,0,0],"witnesses_voted_for":0,"last_post":"1970-01-01T00:00:00","last_root_post":"1970-01-01T00:00:00","last_vote_time":"1970-01-01T00:00:00","post_bandwidth":0,"pending_claimed_accounts":0,"delayed_votes":[{"time":"2021-08-19T17:34:39","val":357754041}],"vesting_balance":"0.000 TESTS","reputation":0,"transfer_history":[],"market_history":[],"post_history":[],"vote_history":[],"other_history":[],"witness_votes":[],"tags_usage":[],"guest_bloggers":[]}],"id":20} 56489ms websocket_api.cpp:102 on_message ] message: {"jsonrpc":"2.0","result":[{"id":39,"name":"hiveuser01","owner":{"weight_threshold":1,"account_auths":[],"key_auths":[["TST8aTvMfS3PFXmrX9hJ4sA57o2Zwcihfe8XjisA4arFGNrBRSna8",1]]},"active":{"weight_threshold":1,"account_auths":[],"key_auths":[["TST5QnWNfmqwUtkPn6FWSPY1NdCcBhc4uEt9of9ia6E1eWzpaoa9x",1]]},"posting":{"weight_threshold":1,"account_auths":[],"key_auths":[["TST69jMe4mWboU2bR9zkN7yRbPdJGRF1tEam32juH75gmhTjWD8Z7",1]]},"memo_key":"TST7Au6h62exu9cKfuLYEG8EeVwCW1Lni9xRBfr5s9KFya8EiHPhb","json_metadata":"","posting_json_metadata":"","proxy":"","last_owner_update":"1970-01-01T00:00:00","last_account_update":"1970-01-01T00:00:00","created":"2021-08-19T17:33:48","mined":false,"recovery_account":"initminer","last_account_recovery":"1970-01-01T00:00:00","reset_account":"null","comment_count":0,"lifetime_vote_count":0,"post_count":0,"can_vote":true,"voting_manabar":{"current_mana":357754041,"last_update_time":1629394479},"downvote_manabar":{"current_mana":89438510,"last_update_time":1629394479},"voting_power":0,"balance":"4990000.000 TESTS","savings_balance":"0.000 TESTS","hbd_balance":"4990010.416 TBD","hbd_seconds":"0","hbd_seconds_last_update":"2021-08-19T17:45:15","hbd_last_interest_payment":"2021-08-19T17:45:15","savings_hbd_balance":"0.000 TBD","savings_hbd_seconds":"0","savings_hbd_seconds_last_update":"1970-01-01T00:00:00","savings_hbd_last_interest_payment":"1970-01-01T00:00:00","savings_withdraw_requests":0,"reward_hbd_balance":"0.000 TBD","reward_hive_balance":"0.000 TESTS","reward_vesting_balance":"0.000000 VESTS","reward_vesting_hive":"0.000 TESTS","vesting_shares":"357.754041 VESTS","delegated_vesting_shares":"0.000000 VESTS","received_vesting_shares":"0.000000 VESTS","vesting_withdraw_rate":"0.000000 VESTS","post_voting_power":"357.754041 VESTS","next_vesting_withdrawal":"1969-12-31T23:59:59","withdrawn":0,"to_withdraw":0,"withdraw_routes":0,"pending_transfers":0,"curation_rewards":0,"posting_rewards":0,"proxied_vsf_votes":[0,0,0,0],"witnesses_voted_for":0,"last_post":"1970-01-01T00:00:00","last_root_post":"1970-01-01T00:00:00","last_vote_time":"1970-01-01T00:00:00","post_bandwidth":0,"pending_claimed_accounts":0,"delayed_votes":[{"time":"2021-08-19T17:34:39","val":357754041}],"vesting_balance":"0.000 TESTS","reputation":0,"transfer_history":[],"market_history":[],"post_history":[],"vote_history":[],"other_history":[],"witness_votes":[],"tags_usage":[],"guest_bloggers":[]}],"id":21} 56490ms wallet.cpp:626 sign_transaction ] v_approving_keys: ["TST5QnWNfmqwUtkPn6FWSPY1NdCcBhc4uEt9of9ia6E1eWzpaoa9x"] 56490ms wallet.cpp:629 sign_transaction ] approving_key: TST5QnWNfmqwUtkPn6FWSPY1NdCcBhc4uEt9of9ia6E1eWzpaoa9x 56493ms websocket_api.cpp:102 on_message ] message: {"jsonrpc":"2.0","result":{"head_block_number":2104,"head_block_id":"000008389ce5779ac13ca8d70610214fb9dc1b2d","time":"2021-08-19T18:00:54","current_witness":"initminer","total_pow":"18446744073709551615","num_pow_witnesses":0,"virtual_supply":"286184023.772 TESTS","current_supply":"250016108.033 TESTS","init_hbd_supply":"7000000.000 TBD","current_hbd_supply":"36167915.739 TBD","total_vesting_fund_hive":"33022484.976 TESTS","total_vesting_shares":"1181385.252356 VESTS","total_reward_fund_hive":"0.000 TESTS","total_reward_shares2":"0","pending_rewarded_vesting_shares":"0.000000 VESTS","pending_rewarded_vesting_hive":"0.000 TESTS","hbd_interest_rate":1000,"hbd_print_rate":0,"maximum_block_size":131072,"required_actions_partition_percent":0,"current_aslot":59263218,"recent_slots_filled":"340282366920938463463374607431768211455","participation_count":128,"last_irreversible_block_num":2083,"vote_power_reserve_rate":10,"delegation_return_period":432000,"reverse_auction_seconds":300,"available_account_subsidies":1669023,"hbd_stop_percent":1000,"hbd_start_percent":900,"next_maintenance_time":"2021-08-19T18:14:18","last_budget_time":"2021-08-19T17:14:18","next_daily_maintenance_time":"2021-08-19T18:14:18","content_reward_percent":6500,"vesting_reward_percent":1500,"sps_fund_percent":1000,"sps_interval_ledger":"247.912 TBD","downvote_pool_percent":2500},"id":22} 56617ms websocket_api.cpp:102 on_message ] message: {"jsonrpc":"2.0","result":{"id":"357b70d74d13acf20121a5d4d96413a462ca7609","block_num":2105,"trx_num":0,"expired":false},"id":23} { "ref_block_num": 2104, "ref_block_prefix": 2591548828, "expiration": "2021-08-19T18:01:24", "operations": [[ "transfer",{ "from": "hiveuser01", "to": "son-account", "amount": "10000.000 TESTS", "memo": "peerplaysuser01" } ] ], "extensions": [], "signatures": [ "204c2d8d2a3f03fbde05b5ecd4d96d8e31e28ecad7fe728fce5c50f370fc97176966b283daa80decb6a4dcb8aa6be0918be00bc176fb0d0c36e5d7029351a57fb0" ], "transaction_id": "357b70d74d13acf20121a5d4d96413a462ca7609", "block_num": 2105, "transaction_num": 0 } unlocked >>> ``` ``` unlocked >>> list_account_balances peerplaysuser01 list_account_balances peerplaysuser01 5 TEST 10000 HBD 10000 HIVE unlocked >>> get_sidechain_addresses_by_account peerplaysuser01 get_sidechain_addresses_by_account peerplaysuser01 [] unlocked >>> ```
serkixenos (Migrated from gitlab.com) closed this issue 2021-08-20 13:40:23 +00:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Peerplays_Blockchain/peerplays_migrated#163
No description provided.