1.帐户名登录
发送数据:
{"id":1,"method":"call","params":[0,"get_key_references",[["COCOS5doctvP5ttXyn6mzxrHgp8fN8f9KL4f2P7FCqVzHtV8PpoFhXC"]]],"jsonrpc":"2.0"}
接收数据:
{"id":1,"jsonrpc":"2.0","result":[["1.2.926"]]}
- 私钥登录
《active》
发送数据:
{"id":1,"method":"call","params":[0,"get_key_references",[["COCOS76g2PGAudrC2JPpoKpVWMgqCoBC1Cp2ZuaF6RwghEHrfxKnrms"]]],"jsonrpc":"2.0"}
接收数据:
{"id":1,"jsonrpc":"2.0","result":[["1.2.926","1.2.926"]]}
《ownerKey》
发送数据:
{"id":1,"method":"call","params":[0,"get_key_references",[["COCOS5doctvP5ttXyn6mzxrHgp8fN8f9KL4f2P7FCqVzHtV8PpoFhXC"]]],"jsonrpc":"2.0"}
接收数据:
{"id":1,"jsonrpc":"2.0","result":[["1.2.926"]]}
- 查询账户信息
发送数据:
{"id":1,"method":"call","params":[0,"get_full_accounts",[["testtest2"],false]],"jsonrpc":"2.0"}
接收数据:
{"id":1,"jsonrpc":"2.0","result":[["testtest2",{"account":{"id":"1.2.926","membership_expiration_date":"1970-01-01T00:00:00","registrar":"1.2.17","referrer":"1.2.17","lifetime_referrer":"1.2.17","network_fee_percentage":2000,"lifetime_referrer_fee_percentage":3000,"referrer_rewards_percentage":0,"name":"testtest2","owner":{"weight_threshold":1,"account_auths":[],"key_auths":[["COCOS5doctvP5ttXyn6mzxrHgp8fN8f9KL4f2P7FCqVzHtV8PpoFhXC",1]],"address_auths":[]},"active":{"weight_threshold":1,"account_auths":[],"key_auths":[["COCOS76g2PGAudrC2JPpoKpVWMgqCoBC1Cp2ZuaF6RwghEHrfxKnrms",1]],"address_auths":[]},"options":{"memo_key":"COCOS76g2PGAudrC2JPpoKpVWMgqCoBC1Cp2ZuaF6RwghEHrfxKnrms","voting_account":"1.2.5","num_witness":0,"num_committee":0,"votes":[],"extensions":[]},"statistics":"2.6.926","contract_asset_locked":{"locked_total":[],"lock_details":[]},"whitelisting_accounts":[],"blacklisting_accounts":[],"whitelisted_accounts":[],"blacklisted_accounts":[],"owner_special_authority":[0,{}],"active_special_authority":[0,{}],"top_n_control_flags":0},"statistics":{"id":"2.6.926","owner":"1.2.926","most_recent_op":"2.9.10704098","total_ops":33,"removed_ops":0,"total_core_in_orders":0,"lifetime_fees_paid":10653880,"pending_fees":0,"pending_vested_fees":0},"registrar_name":"official-account","referrer_name":"official-account","lifetime_referrer_name":"official-account","votes":[],"balances":[{"id":"2.5.905","owner":"1.2.926","asset_type":"1.3.0","balance":977146120}],"vesting_balances":[],"limit_orders":[],"call_orders":[],"settle_orders":[],"proposals":[],"assets":[],"withdraws":[]}]]}
4.查询账户拥有的所有资产列表
发送数据:
{"id":1,"method":"call","params":[0,"get_full_accounts",[["testtest2"],false]],"jsonrpc":"2.0"}
接收数据:
{"id":2,"jsonrpc":"2.0","result":[{"id":"1.3.0","symbol":"COCOS","precision":5,"issuer":"1.2.17","options":{"max_supply":"10000000000000000","market_fee_percent":0,"max_market_fee":"1000000000000000","issuer_permissions":0,"flags":0,"core_exchange_rate":{"base":{"amount":1,"asset_id":"1.3.0"},"quote":{"amount":1,"asset_id":"1.3.0"}},"whitelist_authorities":[],"blacklist_authorities":[],"whitelist_markets":[],"blacklist_markets":[],"description":"","extensions":[]},"dynamic_asset_data_id":"2.3.0"}]}
网友评论