SEER浜ゆ槗鎵�鍙婄涓夋柟骞冲彴鍏呮彁缃戝叧鎺ュ叆鎸囧崡

# SEER浜ゆ槗鎵�鍙婄涓夋柟骞冲彴鍏呮彁缃戝叧鎺ュ叆鎸囧崡

鏈寚鍗椾富瑕佺洰鐨勬槸甯姪浜ゆ槗鎵�鍜屽叾瀹冪涓夋柟骞冲彴锛堝寘鎷絾涓嶉檺浜庨潪SEER DAPPs搴旂敤銆佷腑蹇冨寲搴旂敤绛夛級鎼缓鍏呮彁缃戝叧鎺ュ叆SEER涓荤綉锛屼笂绾縎EER涓昏祫浜у強鍩轰簬SEER鍖哄潡閾惧彂琛岀殑token锛屼緥濡侾FC銆丱PC绛夈��

浣跨敤SEER涓荤綉杩涜鍏呮彁绛夋搷浣滐紝鎵嬬画璐硅繙杩滀綆浜嶴EER鐨凟RC-20token鍜孊TS璧勪骇锛屼笖涓嶅彈浠ュお鍧婃嫢鍫电瓑浜嬩欢鐨勫奖鍝嶃��

## 鍩烘湰鍘熺悊

澶ч儴鍒嗕氦鏄撴墍鍙婄涓夋柟骞冲彴浣跨敤鐨勭綉鍏筹紙鍏呭�兼彁鐜帮級鏄竴涓腑蹇冨寲鐨勫簲鐢ㄦ湇鍔°��

浠ヤ氦鏄撴墍鍏呮彁涓轰緥锛屼氦鏄撴墍涓烘瘡浣嶇敤鎴锋彁渚涙湁涓�涓钩鍙癷d锛屼换浣曠敤鎴峰悜浜ゆ槗鎵�鐨凷EER涓荤綉璐︽埛杞处锛屽苟鍦∕EMO涓~鍐欒id锛屽綋浜ゆ槗鎵�鐨凷EER涓荤綉璐︽埛鏀跺埌涓�绗旇浆璐︽椂锛屽彲浠ユ牴鎹甅EMO涓~鍐欑殑淇℃伅纭畾鏄潵鑷摢浣嶇敤鎴风殑鍏呭�硷紝浠庤�屽湪浜ゆ槗鎵�骞冲彴鍐呬负鐢ㄦ埛涓婅处銆�

涓句緥锛�

1銆佸皬鏄庝粠鑷繁鐨凷EER涓荤綉璐︽埛`xiaoming`鍏呭�糮1000SEER`鍒颁氦鏄撴墍璐︽埛`seerdex`锛孧EMO涓~鍐檂10010`锛屼氦鏄撴墍妫�娴嬪埌涓荤綉璐︽埛`seerdex`鏀跺埌涓�绗擿1000SEER`鐨勮浆璐︼紝MEMO涓篳10010`锛屽垯鍦ㄥ皬鏄庣殑浜ゆ槗鎵�璐︽埛`10010`涓笂璐1000SEER`锛�

2銆佸皬鏄庤鏈嬪弸灏忚姳甯嚜宸卞厖鍊硷紝灏忚姳浠庤嚜宸辩殑SEER涓荤綉璐︽埛`xiaohua`鍏呭�糮1000SEER`鍒颁氦鏄撴墍璐︽埛`seerdex`锛孧EMO涓~鍐檂10010`锛屼氦鏄撴墍妫�娴嬪埌涓荤綉璐︽埛`seerdex`鏀跺埌涓�绗擿1000SEER`鐨勮浆璐︼紝MEMO涓篳10010`锛屽垯鍦ㄥ皬鏄庣殑浜ゆ槗鎵�璐︽埛`10010`涓笂璐1000SEER`锛�

3銆佸皬鏄庡皢鑷繁鐜╁ぇ瀵岀縼娓告垙涓耽寰楃殑SEER鍏呭�间氦鏄撴墍锛屽皬鏄庡湪澶у瘜缈佹父鎴忕殑鎻愮幇椤甸潰涓~鍐欐彁鐜癭1000SEER`鍒颁氦鏄撴墍璐︽埛`seerdex`锛屽苟濉啓MEMO`10010`锛屽ぇ瀵岀縼娓告垙鍦ㄥ钩鍙板唴鎵i櫎灏忔槑璐︽埛浣欓`1000SEER`锛屽悓鏃堕�氳繃澶у瘜缈佺殑SEER涓荤綉璐︽埛`dafuweng`鍚戜氦鏄撴墍璐︽埛`seerdex`杞处`1000SEER`锛孧EMO涓篳10010`锛屼氦鏄撴墍妫�娴嬪埌涓荤綉璐︽埛`seerdex`鏀跺埌涓�绗擿1000SEER`鐨勮浆璐︼紝MEMO涓篳10010`锛屽垯鍦ㄥ皬鏄庣殑浜ゆ槗鎵�璐︽埛`10010`涓笂璐1000SEER`銆�

`渚嬪瓙3`涓紝鎴戜滑涓句緥浜嗙敤鎴蜂粠绗笁鏂瑰钩鍙版彁鐜板埌浜ゆ槗鎵�鐨勬祦绋嬶紝浠庝氦鏄撴墍鎻愮幇鍒板彟涓�瀹朵氦鏄撴墍涔熸槸濡傛锛岃繖灏遍渶瑕佷氦鏄撴墍鍙婄涓夋柟骞冲彴鍦ㄨ璁℃彁鐜板姛鑳芥椂鎻愪緵`MEMO鍔熻兘`銆備负浜嗚祫閲戝畨鍏紝鎮ㄥ彲浠ラ儴缃蹭袱涓垨澶氫釜璐﹀彿锛屽叾涓竴涓处鍙疯礋璐g敤鎴峰厖鍊硷紝鍏跺畠璐﹀彿璐熻矗鎻愮幇銆�

## 鍑嗗宸ヤ綔

### 杩愯鐜

鎺ㄨ崘鏈嶅姟鍣ㄩ厤缃负锛�2vCPUs 4G鍐呭瓨 20G浠ヤ笂纭洏锛孶buntu 16.04.4 x64 绯荤粺銆�

### 鑾峰緱璐﹀彿鍙婄閽�

#### 娉ㄥ唽璐﹀彿

鎮ㄥ彲浠ラ�氳繃SEER缃戦〉閽卞寘 https://wallet.seer.best 娉ㄥ唽璐﹀彿锛屽叾涓处鍙蜂腑甯︽湁妯潬鎴栨暟瀛楃殑璐﹀彿涓烘櫘閫氳处鍙峰悕锛屽彲浠ョ洿鎺�鍏嶈垂娉ㄥ唽锛堢偣鍑讳簡瑙f柟娉曪級 锛屼緥濡俙seer-exchange`鎴朻seerdex01` 锛岃�岀敱绾嫳鏂囧瓧姣嶆瀯鎴愮殑璐﹀彿鍚嶄负楂樼骇鐢ㄦ埛鍚嶏紝渚嬪`seerdex`锛屽垯闇�閫氳繃涓�涓粓韬細鍛樿处鎴风即绾虫敞鍐屾墜缁垂鏉ユ敞鍐屻��

#### 鑾峰緱绉侀挜

鍦ㄥ厖鎻愮綉鍏崇瓑鍔熻兘涓紝鎴戜滑闇�瑕佽处鎴风殑鑷冲皯涓ゅ瀵嗛挜锛屽嵆褰撳墠璧勯噾瀵嗛挜锛圓ctive key锛夊拰褰撳墠澶囨敞瀵嗛挜锛坢emo key锛夛紝璧勯噾瀵嗛挜璁╂偍鎷ユ湁璧勯噾鐨勮浆璐﹀強鍏朵粬閾句笂鎿嶄綔鏉冮檺锛屽娉ㄥ瘑閽ヨ鎮ㄨ兘鐢熸垚鍜岃鍙栧拰璇ヨ处鍙风浉鍏崇殑MEMO淇℃伅銆�鐐瑰嚮杩欓噷浜嗚В鑾峰彇绉侀挜鐨勬柟娉� 銆�

## 閰嶇疆涓�涓猄EER鍏ㄨ妭鐐�

1銆佸湪鏈嶅姟鍣ㄦ柊寤轰竴涓悕鍙玸eer鐨勭獥鍙o紱

```linux

screen -S seer

```

2銆佸湪root鐩綍涓嬫柊寤轰竴涓悕鍙玸eer鐨勭洰褰曪紝涓嬭浇`v0.0.5鐗堟湰`鐨勭▼搴忓寘鍒版鐩綍锛屽苟鏇村悕涓篳seer.tar.gz`銆傦紙璇峰埌SEER杞欢鍙戝竷椤礹ttps://github.com/seer-project/seer-core-package/releases 澶嶅埗鏈�鏂扮殑ubuntu鐗堟湰绋嬪簭鍖呴摼鎺ユ浛鎹㈡帀姝や笅杞介摼鎺ャ�傦級

```linux

mkdir seer

curl -Lo seer/seer.tar.gz https://github.com/seer-project/seer-core-package/releases/download/v0.05/seer-ubuntu-0.0.5.tar.gz

```

3銆佽繘鍏eer鐩綍锛岃В鍘嬫杞欢鍖呫��

```linux

cd seer

tar xzvf seer.tar.gz

```

4銆佸甫websocket鍙傛暟鍚姩witness_node锛�

```linux

witness_node --rpc-endpoint=127.0.0.1:9090 partial-operations=true --track-account="\"seerdex-withdraw\"" --track-account="\"seerdex-deposit\"" max-ops-per-account=1000

```

鍏朵腑鐨刞--rpc-endpoint`鍙傛暟涓鸿妭鐐圭洃鍚殑websocket RPC IP鍦板潃鍜岀鍙e彿锛岄渶瑕佹偍鏇挎崲锛屾澶刞127.0.0.1`涓烘湰鏈猴紝`9090`鏄负鑺傜偣鎸囧畾鐨刉S绔彛銆�

瀵逛簬澶勭悊鍏呮彁涓氬姟鐨勮妭鐐癸紝鎴戜滑骞朵笉闇�瑕佷繚瀛樺叏閮ㄦ暟鎹紝浠呴渶瑕佷繚瀛樺拰浜ゆ槗鎵�璐︽埛鐩稿叧鐨勮处鎴锋暟鎹互鑺傜渷鍐呭瓨寮�鏀紝鍥犳鎴戜滑闇�瑕佽缃甡partial-operations`鍙傛暟鍜宍--track-account`鍙傛暟锛屾澶刞partial-operations=true `琛ㄧず鍙渶瑕侀儴鍒嗙殑鏁版嵁锛宍"\"seerdex-withdraw\""`鍜宍"\"seerdex-deposit\"" `琛ㄧず瑕佽拷韪殑涓�涓垨澶氫釜璐︽埛id锛岄渶瑕佹偍鏇挎崲銆�

`--max-ops-per-account`鍙傛暟璁惧畾鍐呭瓨涓繚鐣欒处鎴风殑澶氬皯鏉℃搷浣滆褰曪紝姝ゅ`1000`琛ㄧず淇濈暀杩借釜璐︽埛鐨刞1000`鏉℃搷浣滆褰曪紝闇�瑕佹偍鎸夐渶姹傚~鍐欍��

5銆佽瀵熻妭鐐硅繍琛屾甯稿悗锛宑trl+A d闅愯棌screen锛屾柇寮�鏈嶅姟鍣ㄣ�備箣鍚庤鍐嶆墦寮�杩愯鏈夎妭鐐圭殑Sreeen锛屽垯浣跨敤 `screen -R` 锛屾垨 `screen -r seer`銆�

鑺傜偣姝e父鍚姩鍚庯紝浼氭樉绀哄儚涓嬮潰涓�鏍风殑3绉掍竴涓殑鍑哄潡淇℃伅銆�

![鑺傜偣姝e父鍚姩鐨勭姸鎬乚(https://github.com/akirasen/seerdocs/raw/master/zh-Hans/img/640.gif)

濡傛灉瑕佸叧闂妭鐐癸紝鍒欎娇鐢╜control` + `C` 銆�

## 閰嶇疆涓�涓猄EER鍛戒护琛岄挶鍖�

1銆佸湪鏈嶅姟鍣ㄦ柊寤轰竴涓悕鍙玞li鐨勭獥鍙o紝杩愯seer鐩綍涓殑鍛戒护琛岄挶鍖呯▼搴忥紱

```linux

screen -S cli

cd~

seer/cli_wallet -s ws://127.0.0.1:9090 -r 127.0.0.1:9191 -H 127.0.0.1:9192

```

`-s`鍙傛暟鍙互璁剧疆瑕佽繛鎺ョ殑鑺傜偣api鍦板潃鍙婄鍙o紝姝ゅ`ws://127.0.0.1:9090`涓轰笂涓�姝ヤ腑杩愯鐨勬湰鍦拌妭鐐圭殑websocket RPC鍦板潃鍜岀鍙o紝鎮ㄤ篃鍙互鍦ㄦ澶勪娇鐢ㄥ眬鍩熺綉鎴栧叕缃戜腑鐨勫叾浠栧叕鍏盿pi鍦板潃锛屼笉杩囨湁鍥犲閮╝pi鏃犳硶鎻愪緵鏈嶅姟鑰屽鑷村懡浠よ閽卞寘寮傚父閫�鍑虹殑椋庨櫓锛�

`-r`鍙傛暟鍙互璁剧疆鍛戒护琛岄挶鍖呰鐩戝惉鐨剋ebsocket RPC鍦板潃鍜岀鍙o紝姝ゅ璁句负`127.0.0.1:9191`锛岃礋璐e厖鎻愪笟鍔$殑绋嬪簭鍙互浣跨敤姝ょ鍙h皟鐢ㄥ懡浠よ閽卞寘杩涜鎿嶄綔锛�

`-H`鍙傛暟鍙互璁剧疆鍛戒护琛岄挶鍖呰鐩戝惉鐨凥ttp-RPC鍦板潃鍜岀鍙o紝姝ゅ璁句负`127.0.0.1:9192`锛岃礋璐e厖鎻愪笟鍔$殑绋嬪簭涔熷彲浠ヤ娇鐢ㄦ绔彛璋冪敤鍛戒护琛岄挶鍖呰繘琛屾搷浣溿��

2銆侀挶鍖呭惎鍔ㄦ垚鍔熷悗锛屼細鏄剧ず锛�

```cmd

Please use the set_password method to initialize a new wallet before continuing

3564395ms th_a聽 聽 聽 main.cpp:227聽 聽 聽 聽 聽 聽 聽 聽 聽 main聽 聽 聽 聽 聽 聽 聽 聽 ] Listening for incoming RPC requests on 127.0.0.1:9191

3564396ms th_a聽 聽 聽 main.cpp:252聽 聽 聽 聽 聽 聽 聽 聽 聽 main聽 聽 聽 聽 聽 聽 聽 聽 ] Listening for incoming HTTP RPC requests on 127.0.0.1:9192

new >>>

```

鍏堣缃挶鍖呰В閿佸瘑鐮侊紝123鏇挎崲涓轰綘鎯宠缃殑瀵嗙爜

```cmd

set_password 123

```

瑙i攣閽卞寘

```cmd

unlock 123

```

瀵煎叆璐﹀彿璧勯噾绉侀挜鍜屽娉ㄧ閽�

```cmd

import_key seerdex-withdraw 5JkbV8aTaYRVaarTUJQ9Y56cr4QajxNFfCoQj6Q9JFL8XvUZ5CQ

import_key seerdex-withdraw 5KiSC6rRAEkTj72fg3G3zF8RHmCEgZw7aSXBjKqDfvY2XN1qvyd

```

鏄剧ず濡備笅锛�

```cmd

new >>> set_password 123

set_password 123

null

locked >>> unlock 123

unlock 123

null

unlocked >>> import_key seerdex-withdraw聽 5JkbV8aTaYRVaarTUJQ9Y56cr4QajxNFfCoQj6Q9JFL8XvUZ5CQ

import_key okok 5JkbV8aTaYRVaarTUJQ9Y56cr4QajxNFfCoQj6Q9JFL8XvUZ5CQ

3572083ms th_a聽 聽 聽 wallet.cpp:793聽 聽 聽 聽 聽 聽 聽 聽 save_wallet_file聽 聽 ] saving wallet to file wallet.json

3572084ms th_a聽 聽 聽 wallet.cpp:467聽 聽 聽 聽 聽 聽 聽 聽 copy_wallet_file聽 聽 ] backing up wallet wallet.json to after-import-key-1cd0784e.wallet

true

unlocked >>> import_key seerdex-withdraw聽 5KiSC6rRAEkTj72fg3G3zF8RHmCEgZw7aSXBjKqDfvY2XN1qvyd

import_key else 5KiSC6rRAEkTj72fg3G3zF8RHmCEgZw7aSXBjKqDfvY2XN1qvyd

3572941ms th_a聽 聽 聽 wallet.cpp:467聽 聽 聽 聽 聽 聽 聽 聽 copy_wallet_file聽 聽 ] backing up wallet wallet.json to before-import-key-1bece5d8.wallet

3573189ms th_a聽 聽 聽 wallet.cpp:793聽 聽 聽 聽 聽 聽 聽 聽 save_wallet_file聽 聽 ] saving wallet to file wallet.json

3573191ms th_a聽 聽 聽 wallet.cpp:467聽 聽 聽 聽 聽 聽 聽 聽 copy_wallet_file聽 聽 ] backing up wallet wallet.json to after-import-key-1bece5d8.wallet

true

unlocked >>>

```

## 鎺ュ叆鍛戒护琛岄挶鍖�

鍙互浣跨敤Http-RPC鎴杦ebsocket RPC鏂瑰紡鎺ュ叆鍛戒护琛岄挶鍖呫�備娇鐢↗SON-RPC杩滅▼璋冪敤鍗忚浼犲叆鐩稿簲鐨勬寚浠わ紝鍗冲彲璁╁懡浠よ閽卞寘杩涜鐩稿叧鎿嶄綔鎴栬繑鍥為渶瑕佺殑淇℃伅銆�

鏍煎紡濡備笅锛堝疄闄呬娇鐢ㄦ椂涓嶆崲琛屾棤娉ㄩ噴锛夛細

```json

{

聽 聽 "jsonrpc" : 2.0,//瀹氫箟JSON-RPC鐗堟湰

聽 聽 "method" : "get_block",//璋冪敤鐨勬柟娉曞悕锛屼緥濡傝浆璐� transfer 锛屽垪鍑鸿处鎴蜂綑棰� list_account_balances 绛夛紝姝ゅget_block涓鸿繑鍥炴寚浠ゅ潡鍙风殑鍖哄潡淇℃伅

聽 聽 "params" : [1], //鏂规硶浼犲叆鐨勫弬鏁帮紝鑻ユ棤鍙傛暟鍒欎负null锛屾澶�1琛ㄧず鍧楀彿

聽 聽 "id" : 1//璋冪敤鏍囪瘑绗�

}

```

### Http-RPC鎺ュ叆绀轰緥

鍙互浣跨敤curl鍛戒护鏉ユ祴璇旽ttp-RPC杩炴帴鍛戒护琛岄挶鍖呭疄鐜拌幏鍙栨寚瀹氳处鎴风殑鍚勮祫浜т綑棰�:

```linux

curl http://127.0.0.1:9192 -d '{"jsonrpc": "2.0", "method": "list_account_balances", "params": ["seerdex-withdraw"], "id": 1}'

{"id":1,"result":[{"amount":"7861151753754","asset_id":"1.3.0"},{"amount":97099800,"asset_id":"1.3.8"}]}

```

### websocket RPC鎺ュ叆绀轰緥

棣栧厛鍦ㄦ湇鍔″櫒涓婂畨瑁呬娇鐢╳scat娴嬭瘯ws锛�

```linux

apt install node-ws

```

娴嬭瘯閫氳繃websocket RPC杩炴帴鍛戒护琛岄挶鍖呭疄鐜颁竴绗旇浆璐︼細

```json

wscat -c ws://127.0.0.1:9191

> {"jsonrpc": "2.0", "method": "transfer", "params": ["seerdex-withdraw","ffffff","500000","SEER","Welcome to SEERTALK. https://forum.seerchain.org",true], "id": 1}

< {"id":1,"jsonrpc":"2.0","result":{"ref_block_num":64292,"ref_block_prefix":1517346144,"expiration":"2018-10-12T07:33:12","operations":[[0,{"fee":{"amount":2136718,"asset_id":"1.3.0"},"from":"1.2.105","to":"1.2.138","amount":{"amount":"50000000000","asset_id":"1.3.0"},"memo":{"from":"SEER8UAbnsAnXY1qr3CD6uzKaRuewsyPF9ynYJJGrdvSfDANxsGNxH","to":"SEER6QbqUZF6xzjdceVoLHS7K1KwvLyszVTZS8bbsQQQXcAm8L3aZp","nonce":"4469110159915322318","message":"482a7d070d298fe2a79d5f528f55778c62584d242274a7d697dae1ec63d7038b5a0b80dc9ba524e3f5f528bc717c60a635f89ff8af1cccbd1b4189f8ddc92e39"},"extensions":[]}]],"extensions":[],"signatures":["204e8746aac14a05fb3c66ac653429dead34bddac58911c53346feb365f0c7b5767ea870c1e5da6a104d8364e42f504fc1bdcfc442652f5c2e9bb9b26a858b0ccd"]}}聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽

```

鍒囨崲鍥炲懡浠よ閽卞寘鎵�鍦ㄧ獥鍙o紝鍙互鐪嬪埌閽卞寘鍐呮湁濡備笅淇℃伅锛�

```cmd

2230368ms th_a聽 聽 聽 websocket_api.cpp:109聽 聽 聽 聽 on_message聽 聽 聽 聽 聽 ] API call execution time limit exceeded. method: transfer params: ["seerdex-withdraw","ffffff","500000","SEER","Welcome to SEERTALK. https://forum.seerchain.org",true] time: 2310335

```

瀹炵幇浜嗚閽卞寘杩涜浜嗕竴娆¤浆璐︽搷浣溿��

## 甯哥敤鎸囦护

### get_dynamic_global_properties

浣滅敤锛氬垪鍑洪摼鐨勫綋鍓嶅叏灞�鍔ㄦ�佸弬鏁�

绀轰緥锛歚{"jsonrpc": "2.0", "method": "get_dynamic_global_properties", "params": [], "id": 1}`

杩斿洖淇℃伅绀轰緥锛�

```json

{

"id": 1,

"result": {

"id": "2.1.0",

"head_block_number": 3678309,//褰撳墠鍖哄潡楂樺害

"head_block_id": "00382065d1057b13415518f913ce26e46fe45cac",//褰撳墠鍧楀彿

"time": "2018-10-12T16:37:30",//閾句笂鏃堕棿锛堟牸鏋楀凹娌绘椂闂达級

"current_witness": "1.5.4",//褰撳墠鍑哄潡鐨勮璇佷汉

"next_maintenance_time": "2018-10-13T00:00:00",//涓嬫缁存姢鏇存柊鏃堕棿

"last_budget_time": "2018-10-12T00:00:00",//涓婃缁存姢鏃堕棿

"witness_budget": 3398400000,//鏈湡瑙佽瘉浜洪绠楁�婚

"accounts_registered_this_interval": 1,//璐︽埛娉ㄥ唽闂撮殧

"recently_missed_count": 0,//鏈�杩戠己澶卞尯鍧楁暟

"current_aslot": 4762199,//褰撳墠鎬诲潡锛堜涪鎺夌殑鍧楀姞瀹為檯鍧楅珮锛�

"recent_slots_filled": "340240787892099949526793007880921399231",//鐢ㄤ簬璁$畻瑙佽瘉浜哄弬涓庡害鐨勫弬鏁�

"dynamic_flags": 0,

"last_irreversible_block_num": 3678305//鏈�杩戜竴涓笉鍙�嗗潡鍧楀彿

}

}

```

鍏呮彁涓氬姟闇�鍏虫敞 `head_block_number` 褰撳墠鍖哄潡楂樺害锛� `last_irreversible_block_num` 鏈�杩戜竴涓笉鍙�嗗潡鍧楀彿銆傜敤浜庡垽鏂槸鍚︽槸鍙俊鍏呭�兼搷浣滀互鍙婃彁鐜版槸鍚﹀凡澶勭悊銆�

### info

浣滅敤锛氭樉绀哄綋鍓峉eer鍖哄潡閾剧殑鐘舵��

绀轰緥锛歚{"jsonrpc": "2.0", "method": "info", "params": [], "id": 1}`

杩斿洖淇℃伅绀轰緥锛�

```json

{"id":1,

"result":

{

"head_block_num":3678258,//褰撳墠鍧楅珮

"head_block_id":"00382032d0bfee243b0c5f6b37e3fd6f29682e6e",//褰撳墠鍧楀彿

"head_block_age":"0 second old",//涓婁竴涓尯鍧楃敓鎴愭椂闂�

"next_maintenance_time":"7 hours in the future",//缁存姢鏇存柊鏃堕棿

"chain_id":"da68a9c5f2fd9ed48e626ea301db1c77505523884ba0dd409e779246c6ea26cf",//閾惧彿

"participation":"88.28125000000000000",//鍖哄潡鐢熶骇鍙備笌鐜�

"active_witnesses"://娲昏穬瑙佽瘉浜篒D

["1.5.1","1.5.2","1.5.3","1.5.4","1.5.5","1.5.6","1.5.7","1.5.8"],

"active_committee_members"://娲昏穬鐞嗕簨浼氭垚鍛業D

["1.4.0","1.4.1","1.4.2","1.4.3","1.4.4","1.4.5","1.4.6","1.4.7"]

}

}

```

鍏呮彁涓氬姟闇�鍏虫敞 `head_block_age` 涓婁竴涓尯鍧楃敓鎴愭椂闂达紝`participation` 鍖哄潡鐢熶骇鍙備笌鐜囥�� 鎻愮幇鎿嶄綔鍓嶅垽鏂尯鍧楅摼鏄惁姝e父杩愯銆�

### list_account_balances

鏍煎紡锛歚list_account_balances` name

鍙傛暟锛歯ame鍙互鏄处鎴峰悕锛屼篃鍙互鏄处鎴风殑id

浣滅敤锛氬垪鍑鸿处鍙蜂负id鐨勮处鎴风殑鍚勮祫浜т綑棰�

绀轰緥锛歚{"jsonrpc": "2.0", "method": "list_account_balances", "params": ["abc"], "id": 1}`

杩斿洖淇℃伅绀轰緥锛�

```json

{

"id": 1,

"result": [{

"amount": "7861177753754",//浣欓锛岀簿搴�5,amount娌℃湁灏忔暟鐐癸紝鍏舵暟鍊艰涔樹互浜�10000 姝ゅ鍗�78611777.53754

"asset_id": "1.3.0"//璧勪骇绫诲瀷 姝ゅ涓篠EER

}, {

"amount": 97099800,//浣欓锛岀簿搴�5,amount娌℃湁灏忔暟鐐癸紝鍏舵暟鍊艰涔樹互浜�10000

"asset_id": "1.3.8"//璧勪骇绫诲瀷 姝ゅ涓烘祴璇曢摼涓婄殑ABC璧勪骇

}]

}

```

鍏呮彁涓氬姟闇�鍏虫敞`asset_id`涓�1.3.0(鍗砈EER)鐨刞amount` (浣欓)鏄惁瓒冲骞舵敮浠樼綉缁滄墜缁垂锛岃嫢娑夊強SEER閾句笂鍏朵粬璧勪骇鐨勫厖鎻愪笟鍔★紝鍒欒繕闇�瑕佸叧娉ㄧ浉搴旇祫浜х殑浣欓鏄惁瓒冲銆�

### transfer2

鏍煎紡锛歚transfer2` from to amount asset_symbol memo broadcast(true/false)

鍙傛暟锛歠rom涓鸿浆鍑鸿处鎴�,to涓烘帴鏀惰处鎴�,amount涓鸿浆璐︽暟閲�, asset_symbol涓鸿祫浜у悕,memo涓哄娉ㄣ�俧rom/to 鍙互鏄敤鎴峰悕鎴栬�卛d锛宐roadcast璁剧疆鏄惁骞挎挱銆�

浣滅敤锛氳浆璐�

绀轰緥锛歚{"jsonrpc": "2.0", "method": "transfer2", "params": ["seerdex-withdraw","ffffff","500000","SEER","Welcome to SEERTALK. https://forum.seerchain.org",true], "id": 1}`

杩斿洖淇℃伅绀轰緥锛�

```json

{

"id": 1,

"jsonrpc": "2.0",

"result":[

"7ab0e58b6391a770cb62f432e0f2aef93de4d18e",//浜ゆ槗id

{

"ref_block_num": 64292,//寮曠敤鐨勫尯鍧楀彿

"ref_block_prefix": 1517346144,//寮曠敤鐨勫尯鍧楀ご

"expiration": "2018-10-12T07:33:12",//浜ゆ槗杩囨湡鏃堕棿

"operations": [

[0, {//0琛ㄧず杞处

"fee": {//鎵嬬画璐�

"amount": 2136718,//閲戦 ,amount娌℃湁灏忔暟鐐癸紝鍏舵暟鍊艰涔樹互浜�10000

"asset_id": "1.3.0"//璧勪骇 姝ゅ琛ㄧずSEER

},

"from": "1.2.105",//杞嚭璐︽埛id

"to": "1.2.138",//杞叆璐︽埛id

"amount": {

"amount": "50000000000",//閲戦 amount娌℃湁灏忔暟鐐癸紝鍏舵暟鍊艰涔樹互浜�10000

"asset_id": "1.3.0"//璧勪骇 姝ゅ琛ㄧずSEER

},

"memo": {//memo鏉冮檺鐩稿叧

"from": "SEER8UAbnsAnXY1qr3CD6uzKaRuewsyPF9ynYJJGrdvSfDANxsGNxH",

"to": "SEER6QbqUZF6xzjdceVoLHS7K1KwvLyszVTZS8bbsQQQXcAm8L3aZp",

"nonce": "4469110159915322318",

"message": "482a7d070d298fe2a79d5f528f55778c62584d242274a7d697dae1ec63d7038b5a0b80dc9ba524e3f5f528bc717c60a635f89ff8af1cccbd1b4189f8ddc92e39"

},

"extensions": []

}]

],

"extensions": [],

"signatures": ["204e8746aac14a05fb3c66ac653429dead34bddac58911c53346feb365f0c7b5767ea870c1e5da6a104d8364e42f504fc1bdcfc442652f5c2e9bb9b26a858b0ccd"]

}

]

}

```

鍏呮彁涓氬姟闇�鍏虫敞杩斿洖淇℃伅鐨勭涓�涓瓧绗︿覆锛屽嵆浜ゆ槗id锛屽彟`expiration` 浜ゆ槗杩囨湡鏃堕棿銆�

### get_account_id

鏍煎紡锛歚get_account_id` name

鍙傛暟锛歯ame鏄处鎴峰悕

浣滅敤锛氬垪鍑鸿处鎴穘ame鐨勮处鎴穒d

绀轰緥锛歚{"jsonrpc": "2.0", "method": "get_account_id", "params": ["seerdex-withdraw"], "id": 1}`

杩斿洖淇℃伅绀轰緥锛�

```json

{"id":1,"result":"1.2.105"}

```

### get_relative_account_history

鏍煎紡锛歚get_relative_account_history` name start limit end

鍙傛暟锛歯ame鍙互鏄处鎴峰悕鎴杋d,start涓鸿繑鍥炵粨鏋滅殑鏈�灏忕紪鍙凤紝limit 涓鸿繑鍥炵粨鏋滅殑鏁伴噺涓婇檺锛宔nd涓鸿繑鍥炵粨鏋滅殑鏈�澶х紪鍙凤紱

杩斿洖鏁版嵁鎺掑簭鏂瑰紡涓烘寜鏃堕棿椤哄簭锛岃秺鏂扮殑瓒婇潬鍓嶏紱

缂栧彿浠�1寮�濮嬶紝鑻nd = 0锛屽垯杩斿洖鏈�鏂扮殑limit鏉℃搷浣滀俊鎭紱

鑻nd - start > limit锛屽垯杩斿洖婊¤冻鏉′欢鐨勬渶鏂扮殑limit鏉℃搷浣滀俊鎭��

浣滅敤锛氬垪鍑鸿处鎴穘ame鐨勬搷浣滃巻鍙茶褰�

聽 璇烽伩鍏嶄竴娆℃�ц繑鍥炶秴杩�100鏉℃暟鎹紝浠ュ厤鑺傜偣鎴栭挶鍖呮姤閿欍�傚悓鏃讹紝鍦ㄥ懡浠よ閽卞寘涓娇鐢ㄦ鍛戒护鏃跺彧浼氳繑鍥� "description"涓殑鏁版嵁锛岀敤RPC璋冪敤鏂硅兘杩斿洖瀹屾暣鏁版嵁銆�

绀轰緥锛歚{"jsonrpc": "2.0", "method": "get_relative_account_history", "params": ["seerdex-withdraw",15,1,30], "id": 1}`

杩斿洖淇℃伅绀轰緥锛�

```json

{

"id": 1,

"result": [

{

"memo": "give you 980 SEER",//瑙i攣骞舵湁鐩稿簲绉侀挜鐨勯挶鍖呮柟鑳芥樉绀篗EMO

"description": "Transfer 980 SEER from alice to okok -- Memo: give you 980 SEER聽 (Fee: 21.05468 SEER)",//閽卞寘涓�鑸彧鏄剧ず姝ゅ唴瀹�

"op": {

"id": "1.9.703568",//璇ユ搷浣滅殑瀵硅薄id锛屽彲閫氳繃get_object 1.9.703568鏌ョ湅姝ゆ搷浣�

"op": [

0, //鎿嶄綔绫诲瀷锛�0琛ㄧず杞处

{

"fee": {//鎵嬬画璐�

"amount": 2105468,//鏁伴

"asset_id": "1.3.0"//璧勪骇绫诲瀷

},

"from": "1.2.109",//杞嚭id

"to": "1.2.105",//鎺ユ敹id

"amount": {

"amount": 98000000,//杞处鏁伴

"asset_id": "1.3.0"//璧勪骇绫诲瀷

},

"memo": {//MEMO鏉冮檺鐩稿叧

"from": "SEER6sJwPuSSayEzHXLbVgw9HJsDnGBk5Dup5bq3ns1YziZEDMKMgU",

"to": "SEER8UAbnsAnXY1qr3CD6uzKaRuewsyPF9ynYJJGrdvSfDANxsGNxH",

"nonce": "394073041834538",

"message": "485e630438b9a38c94c12afd9b15007845484d7f0c8c2c29c135f4f9a155a1ee"

},

"extensions": []

}],

"result": [//鎿嶄綔杩斿洖缁撴灉

0,

{

}

],

"block_num": 3674099,//鍏ュ潡楂樺害

"trx_in_block": 0,//鎿嶄綔鎵�灞炰氦鏄撳湪鍖哄潡鍐呯殑浣嶇疆

"op_in_trx": 0,//鎿嶄綔鍦ㄤ氦鏄撳唴鐨勪綅缃�

"virtual_op": 52924//铏氭嫙鎿嶄綔缂栧彿

}

}]

}

```

`get_relative_account_history`浼氬垪鍑哄拰姝よ处鎴锋湁鍏崇殑鎵�鏈夋搷浣滐紝渚嬪鑷繁杞处缁欏埆浜猴紙鍖呮嫭鎻愮幇锛夈�佸埆浜鸿浆璐︾粰鑷繁锛堝寘鎷厖鍊硷級銆佽处鍙锋敞鍐屻�佸弬涓庨娴嬬瓑锛�

鍏呮彁涓氬姟鍙渶鍏虫敞`op.op.N`锛堟搷浣滅被鍨嬶級涓篳0`,鍗宠浆璐︾殑鎿嶄綔锛�

褰撶劧鏈�閲嶈鐨勬槸`memo`锛堣浆璐EMO锛夊拰`op.op.amount.amount`锛堣浆璐︽暟棰濓級浠ュ強`op.op.amount.asset_id`锛堣祫浜х被鍨嬶級锛�

浠ュ強`op.op.from`锛堣浆鍑篿d锛夛紝鑻ュ悓涓�涓处鍙峰嵆璐熻矗鍏呭�煎張璐熻矗鎻愮幇锛屽垯鍒ゆ柇`op.op.from`鏄惁鍜宍get_account_id`鑾峰緱鐨勫綋鍓嶈处鎴蜂竴鏍锋潵鍖哄垎璇ョ瑪鎿嶄綔鏄惁鏄湰甯愭埛鍙戣捣鐨勬彁鐜版搷浣滐紱

`op.id`涓鸿鎿嶄綔鐨勫璞d锛屼篃鏄杞处鎿嶄綔鐨勫敮涓�id锛�

鍙﹀锛岃繕闇�瑕佸叧娉╜op.block_num`锛屽嵆璇ユ搷浣滅殑鍏ュ潡楂樺害锛�

`op.trx_in_block` 璇ユ搷浣滄墍灞炰氦鏄撳湪璇ュ尯鍧楀唴鐨勪綅缃紝

`op.op_in_trx` 璇ユ搷浣滃湪璇ヤ氦鏄撳唴鐨勪綅缃紝

浠ュ強`op.virtual_op` 璇ユ搷浣滅殑铏氭嫙鎿嶄綔缂栧彿銆�

浠ヤ笂鍥涗釜鏁版嵁鍙互鍜屽叾浠栨寚浠ら厤鍚堣幏寰楄鎿嶄綔鎵�灞炵殑txid鍙婂垽鏂鎿嶄綔鐨勫敮涓�鎬с��

### get_block

鏍煎紡锛歚get_block` num

鍙傛暟锛氬潡鍙�

浣滅敤锛氭樉绀虹num涓潡鐨勬鍐�

绀轰緥锛歚get_block` 2090482

杩斿洖淇℃伅绀轰緥锛�

```json

get_block 2090482

{

聽 "previous": "001fe5f1e1dd8d195af805484ee8038a09866b76",//涓婁竴涓潡鐨勫潡鍙�

聽 "timestamp": "2018-07-30T07:31:54",//鏃堕棿鎴�

聽 "witness": "1.5.22",//瑙佽瘉浜�

聽 "transaction_merkle_root": "72756b0f1f1711622c8030eae65e6db055200320",

聽 "extensions": [],

聽 "witness_signature": "200d202d735de10f4f8213d71a8f946a2cc49bc02e930f682bea74321819b4bc7c4d436e366f1cad962f214eeaa42b5030fd716f692077f135b3cf33c688f68f1f",//瑙佽瘉浜虹鍚�

聽 "transactions": [{

聽 聽 聽 "ref_block_num": 58864,//寮曠敤鐨勫尯鍧楀彿

聽 聽 聽 "ref_block_prefix": 2207768636,//寮曠敤鐨勫尯鍧楀ご

聽 聽 聽 "expiration": "2018-07-30T07:33:51",//浜ゆ槗杩囨湡鏃堕棿

聽 聽 聽 "operations": [[

聽 聽 聽 聽 聽 0,{

聽 聽 聽 聽 聽 聽 "fee": {

聽 聽 聽 聽 聽 聽 聽 "amount": 200000,//鎵嬬画璐�

聽 聽 聽 聽 聽 聽 聽 "asset_id": "1.3.0"//璧勪骇绫诲瀷 1.3.0鎸嘢EER

聽 聽 聽 聽 聽 聽 },

聽 聽 聽 聽 聽 聽 "from": "1.2.1250",//鍙戣捣鐢ㄦ埛ID

聽 聽 聽 聽 聽 聽 "to": "1.2.1292",//鎺ユ敹鐢ㄦ埛ID

聽 聽 聽 聽 聽 聽 "amount": {

聽 聽 聽 聽 聽 聽 聽 "amount": 2000000000,//閲戦20000

聽 聽 聽 聽 聽 聽 聽 "asset_id": "1.3.0"//璧勪骇绫诲瀷 1.3.0鎸嘢EER

聽 聽 聽 聽 聽 聽 },

聽 聽 聽 聽 聽 聽 "extensions": []

聽 聽 聽 聽 聽 }

聽 聽 聽 聽 ]

聽 聽 聽 ],

聽 聽 聽 "extensions": [],

聽 聽 聽 "signatures": [

聽 聽 聽 聽 "205c1f92cd9eebba507094c0fe4a05be47d301b6b2e989f4f0fdcfc8acef69ceec5356faf1667b5576629bfbc29ee5a257dbfac935c5a8fef588e32d7a7902c2b3"//浜ゆ槗绛惧悕闆嗗悎

聽 聽 聽 ],

聽 聽 聽 "operation_results": [[

聽 聽 聽 聽 聽 0,{}

聽 聽 聽 聽 ]

聽 聽 聽 ]

聽 聽 }

聽 ],

聽 "block_id": "001fe5f26d0f3ee5b1569a1618fe903e4dc5aef0",//鍧楀彿

聽 "signing_key": "SEER5oyAoCzw5GRD9unKK6vsLXkPVx1aKU7i3hX19E8BRU5u3FoAoA",//瑙佽瘉浜虹鍚嶅叕閽�

聽 "transaction_ids": [

聽 聽 "30e73f68d163398005557a21c58bd751db22eb53"//浜ゆ槗id闆�

聽 ]

}

```

鍏呮彁涓氬姟闇�闇�閰嶅悎`get_relative_account_history`涓幏鍙栫殑`op.block_num`鏉ュ叧娉╜get_block`鑾峰彇鐨刞transaction_ids`鏁版嵁锛岃嫢鍚屼竴涓潡閲屾湁澶氱瑪浜ゆ槗锛屽垯浼氭湁澶氫釜`transaction_id`锛岄渶閰嶅悎`get_relative_account_history`涓幏鍙栧埌鐨刞op.trx_in_block`鏉ュ緱鍒拌鎿嶄綔鎵�瀵瑰簲鐨則xid銆�

## 澶勭悊鍏呭�间笟鍔�

1銆侀�氳繃`get_relative_account_history`鏌ヨ璐︽埛鐩稿叧鍘嗗彶銆�

杩斿洖缁撴灉涓苟娌℃湁鐩存帴鏄剧ず姣忔潯璁板綍鐨勫簭鍙凤紝闇�瑕佽嚜琛岃幏鍙栧拰璁板綍銆�

寤鸿锛氫粠start = 1锛宭imit = 1锛� end = 2寮�濮嬩互涓�瀹氭椂闂撮棿闅斿彂閫佽姹傦紝姣忔start 鍜� end 鍚勮嚜 +1锛宭imit鎭掔瓑浜�1锛岃嫢杩斿洖淇℃伅涓嶄负绌猴紝鍒欏皢璇ユ潯淇℃伅缂栧彿骞跺瓨鍌ㄣ�傝嫢杩斿洖淇℃伅涓虹┖锛歚{"id":1,"jsonrpc":"2.0","result":[]}`锛屽垯琛ㄧず娌℃湁鏂扮殑鎿嶄綔锛岀瓑寰呮湁鏂扮殑鎿嶄綔淇℃伅鏃剁户缁褰曞瓨鍌ㄣ��

2銆佸垽鏂槸鍚︿负鍏呭�间笟鍔°��

`get_relative_account_history`浼氬垪鍑哄拰姝よ处鎴锋湁鍏崇殑鎵�鏈夋搷浣滐紝渚嬪鑷繁杞处缁欏埆浜猴紙鍖呮嫭鎻愮幇锛夈�佸埆浜鸿浆璐︾粰鑷繁锛堝寘鎷厖鍊硷級銆佽处鍙锋敞鍐屻�佸弬涓庨娴嬬瓑锛屽厖鎻愪笟鍔″彧闇�瑕乣op.op.N`锛堟搷浣滅被鍨嬶級涓篳0`锛堣浆璐︼級鐨勬搷浣滄暟鎹紱

鑻ュ悓涓�涓处鍙峰嵆璐熻矗鍏呭�煎張璐熻矗鎻愮幇锛屽垯闇�瑕佸尯鍒哷op.op.from`鏄惁鍜屽綋鍓嶈处鎴穒d涓�鏍凤紝锛岃嫢涓�鏍凤紝鍒欐槸鏈笎鎴峰彂璧风殑鎻愮幇鎿嶄綔锛岄渶瑕佹帓闄ゆ帀锛�

鍓╀笅鐨勪究鏄緟澶勭悊鐨勫厖鍊兼搷浣溿��

3銆佽幏寰楃浉鍏冲厖鍊兼暟鎹��

閫氳繃Http-RPC鎴杦ebsocket-RPC杩炴帴鐨勫懡浠よ閽卞寘鍦╱nlocked鐘舵�佹椂锛屽湪`get_relative_account_history`杩斿洖鐨勪俊鎭腑鍙互鏌ョ湅`memo`鍐呭锛岀敤鎴峰~鍐欑殑浜ゆ槗鎵�ID绛夊叆璐︿俊鎭究浠庢澶勮幏鍙栵紱

閫氳繃`op.op.amount.amount`锛堣浆璐︽暟棰濓級鍔犱笂灏忔暟鐐癸紝渚挎槸鍏呭�兼暟棰濓紱

閫氳繃`op.op.amount.asset_id`锛堣祫浜х被鍨嬶級鏉ュ垽鏂槸鍚︽槸骞冲彴鏀寔鐨勬纭祫浜х被鍨嬨��

4銆佸垽鏂槸鍚︿负鍙俊鎿嶄綔銆�

涓嶅悓浜庢瘮鐗瑰竵鍜屼互澶潑閲囩敤纭鏁版潵浠庢鐜囦笂闄嶄綆浜ゆ槗琚��鍥炵殑鍙兘鎬э紝鍍廠EER杩欐牱鐨勭煶澧ㄧ儻椤圭洰涓湁`涓嶅彲閫嗗潡`鐨勬蹇碉紝`涓嶅彲閫嗗潡`鍙婃洿鏃╁尯鍧椾腑鐨勪氦鏄擄紝鍙互淇濊瘉涓嶄細鍙戠敓鍥為��銆�

`get_relative_account_history`浼氳繑鍥炶绗旀搷浣滄墍灞炵殑`op.block_num`(鍏ュ潡楂樺害)锛屼絾鍗充娇浜ゆ槗鏈叆鍧楋紝浠嶇劧鍙兘鍑虹幇鍦ㄨ处鎴峰巻鍙蹭腑锛屽洜姝ら渶瑕佸拰閫氳繃`get_dynamic_global_properties`鑾峰彇鍒扮殑`last_irreversible_block_num`锛堟渶杩戜竴涓笉鍙�嗗潡鍧楀彿锛夋瘮杈冿紝`op.block_num`蹇呴』灏忎簬鎴栫瓑浜巂last_irreversible_block_num`锛屾墠鑳借瑙嗕负鍙俊鎿嶄綔銆�

5銆佽褰曚笅璇ユ搷浣滅殑鐩稿叧淇℃伅銆�

`get_relative_account_history`涓幏鍙栧埌鐨刞op.block_num`+`op.trx_in_block` + `op.op_in_trx` + `op.virtual_op` 缁勫悎鍒颁竴璧凤紝鏍囪瘑璇ユ搷浣滅殑鍞竴鎬э紝鍙瘑鍒伩鍏嶉噸澶嶆搷浣滐紱

`get_relative_account_history`涓幏鍙栧埌鐨刞op.id`涔熸槸璇ヨ浆璐︽搷浣滅殑鍞竴id锛�

鍙互閫氳繃`get_object` `op.block_num` 鑾峰彇璇ヨ浆璐︽搷浣滄墍鍦ㄥ潡鐨勪俊鎭紝鍐嶉�氳繃`op.trx_in_block`鐨勬暟鍊兼潵鑾峰彇鍒板潡淇℃伅涓璥transaction_ids`鏁扮粍閲岃杞处鎿嶄綔瀵瑰簲鐨則xid锛屽悓涓�涓猼xid鍙兘瀵瑰簲澶氫釜鎿嶄綔銆�

6銆佸鏋滄湁鍏呭�肩殑MEMO鎴栬祫浜х被鍨嬩笉姝g‘锛屽缓璁笉瑕佺洿鎺ラ��鍥烇紝鑰屾槸绛夊緟鐢ㄦ埛涓诲姩鑱旂郴纭閫�鍥炶矾寰勶紝鍥犱负鐢ㄦ埛鍙兘鏄�氳繃浜ゆ槗鎵�鎴栫涓夋柟骞冲彴鎻愮幇杩囨潵鍏呭�肩殑锛岀洿鎺ラ��鍥炰絾娌℃湁瀵规柟MEMO鍙兘浼氶�犳垚澶勭悊鍥伴毦鐢氳嚦璧勪骇鎹熷け銆�

## 澶勭悊鎻愮幇涓氬姟

1銆佹彁鐜版搷浣滃墠妫�鏌ュ尯鍧楅摼缃戠粶鏄惁姝e父杩愯

鎻愮幇涓氬姟闇�鍏虫敞鍖哄潡閾剧綉缁滄槸鍚︽甯歌繍琛岀姸鎬侊紝鍙湪缃戠粶姝e父鏃跺鐞嗘彁鐜般��

閫氳繃`info`鎸囦护鑾峰彇鍒癭head_block_age`锛堜笂涓�涓尯鍧楃敓鎴愭椂闂达級锛岄』鍦�1鍒嗛挓浠ュ唴锛宍participation`锛堝尯鍧楃敓浜у弬涓庣巼锛夐』鍦�80浠ヤ笂锛岃〃绀�80%鐨勫尯鍧楃敓浜ц�呭湪姝e父宸ヤ綔銆�

鍚屾椂`get_dynamic_global_properties`鎸囦护鑾峰彇鍒扮殑 `head_block_number`锛堝綋鍓嶅尯鍧楅珮搴︼級鍜� `last_irreversible_block_num`锛堟渶杩戜竴涓笉鍙�嗗潡锛夌浉宸笉浼氬お澶э紝涓�鑸湪30浠ュ唴銆�

2銆佹鏌ユ彁鐜拌处鎴蜂綑棰�

閫氳繃`list_account_balances`鍒楀嚭璐︽埛鍚勮祫浜т綑棰濓紝妫�鏌asset_id`涓�1.3.0(鍗砈EER)鐨刞amount` (浣欓)鏄惁瓒冲骞舵敮浠樼綉缁滄墜缁垂锛岃嫢娑夊強SEER閾句笂鍏朵粬璧勪骇鐨勫厖鎻愪笟鍔★紝鍒欒繕闇�瑕佸叧娉ㄧ浉搴旇祫浜х殑浣欓鏄惁瓒冲銆�

3銆佽浆璐﹀苟璺熻釜鎿嶄綔鏄惁鎴愬姛

閫氳繃`transfer2`鍚戠敤鎴疯浆璐︾浉搴旀暟棰濈殑鎸囧畾璧勪骇銆�

闇�鍏虫敞杩斿洖淇℃伅涓殑`浜ゆ槗id`锛屽悜鐢ㄦ埛鎻愪緵姝や俊鎭彲浠ヨ鐢ㄦ埛鍦ㄥ尯鍧楁祻瑙堝櫒鏌ヨ鑷繁鐨勬彁鐜版搷浣滃湪鍖哄潡閾句笂鐨勭姸鎬佸拰淇℃伅锛屽湪杞嚭鐩爣鏈埌璐︾殑鎯呭喌涓嬬‘瀹氳绗旀搷浣滄槸鍚﹀凡鍑鸿处锛�

鍏虫敞`transfer2`杩斿洖淇℃伅涓殑`expiration`锛堜氦鏄撹繃鏈熸椂闂达級锛岃浆璐︽搷浣滃彂鍑哄悗锛屼竴鑸緢蹇彲浠ヤ粠`get_relative_account_history`涓幏鍙栧埌璇ョ瑪杞处鎿嶄綔鐨勪俊鎭紝骞堕�氳繃`op.block_num`鍜宍last_irreversible_block_num`姣旇緝鏉ョ‘璁ゅ叆鍧楋紱

锛�1锛夎嫢纭鍏ュ潡锛屽垯杩斿洖淇℃伅涓殑`浜ゆ槗id`搴旇宸茬粡瀛樺湪浜巂get_object` `op.block_num` 鑾峰彇璇ヨ浆璐︽搷浣滄墍鍦ㄥ潡淇℃伅鐨刞transaction_ids`鏁扮粍涓��

锛�2锛夎嫢鍙戝嚭鐨勮浆璐︽搷浣滆秴杩囦簡`expiration`杩樻湭纭鍏ュ潡锛屽垯杩欑瑪浜ゆ槗鍙兘鐢变簬鎮ㄥ悓鏃跺箍鎾殑鎿嶄綔澶绛夊悇绉嶅師鍥犳湭琚尯鍧楅摼鎵撳寘骞跺凡缁忚涓㈠純锛屾鏃堕噸鏂板彂璧疯浆璐︽槸瀹夊叏鐨勩��

鏈枃鐢眘eer鐖卞ソ鑰呮彁渚涳紝鍙兘鐞嗚В鏈夎锛屾杩庡埌github鎸囧嚭锛�

https://github.com/akirasen/seerdocs/tree/master/zh-Hans

你可能感兴趣的:(SEER浜ゆ槗鎵�鍙婄涓夋柟骞冲彴鍏呮彁缃戝叧鎺ュ叆鎸囧崡)