Skip to content

Commit

Permalink
update restful api doc (#633)
Browse files Browse the repository at this point in the history
  • Loading branch information
xizho10 authored and laizy committed Aug 30, 2018
1 parent dc908da commit f9f038d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/specifications/restful_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ This document describes the restful api format for the http/https used in the On
| [get_storage](#8-get_storage) | GET /api/v1/storage/:hash/:key| return the stored value according to the contract address hash and stored key|
| [get_balance](#9-get_balance) | GET /api/v1/balance/:addr | return balance of the account address |
| [get_contract_state](#10-get_contract_state) | GET /api/v1/contract/:hash | return contract state according to the contract address hash |
| [get_smtcode_evt_txs](#11-get_smtcode_evt_txs) | GET /api/v1/smartcode/event/transactions/:height | return the smartcode event in the block at the height |
| [get_sc_event_by_height](#11-get_sc_event_by_height) | GET /api/v1/smartcode/event/transactions/:height | return the smartcode event in the block at the height |
| [get_smtcode_evts](#12-get_smtcode_evts) | GET /api/v1/smartcode/event/txhash/:hash | return smartcode event by transaction hash |
| [get_blk_hgt_by_txhash](#13-get_blk_hgt_by_txhash) | GET /api/v1/block/height/txhash/:hash | return the block height where transaction at |
| [get_merkle_proof](#14-get_merkle_proof) | GET /api/v1/merkleproof/:hash| return merkle proof of the transaction |
Expand Down Expand Up @@ -467,7 +467,7 @@ curl -i http://server:port/api/v1/contract/fff49c809d302a2956e9dc0012619a452d4b8
}
```

#### 11 get_smtcode_evt_txs
#### 11 get_sc_event_by_height

Get smart contract event list by height.

Expand Down
4 changes: 2 additions & 2 deletions docs/specifications/restful_api_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
| [get_storage](#8-get_storage) | GET /api/v1/storage/:hash/:key| 通过合约地址哈希和键得到对应的值 |
| [get_balance](#9-get_balance) | GET /api/v1/balance/:addr | 得到该地址的账户的余额 |
| [get_contract_state](#10-get_contract_state) | GET /api/v1/contract/:hash | 得到合约状态 |
| [get_smtcode_evt_txs](#11-get_smtcode_evt_txs) | GET /api/v1/smartcode/event/transactions/:height | 得到该高度区块上的智能合约执行结果 |
| [get_sc_event_by_height](#11-get_sc_event_by_height) | GET /api/v1/smartcode/event/transactions/:height | 得到该高度区块上的智能合约执行结果 |
| [get_smtcode_evts](#12-get_smtcode_evts) | GET /api/v1/smartcode/event/txhash/:hash | 通过交易哈希得到该交易的执行结果 |
| [get_blk_hgt_by_txhash](#13-get_blk_hgt_by_txhash) | GET /api/v1/block/height/txhash/:hash | 通过交易哈希得到该交易落账的区块高度 |
| [get_merkle_proof](#14-get_merkle_proof) | GET /api/v1/merkleproof/:hash| 通过交易哈希得到该交易的merkle证明 |
Expand Down Expand Up @@ -466,7 +466,7 @@ curl -i http://server:port/api/v1/contract/fff49c809d302a2956e9dc0012619a452d4b8
}
```

#### 11 get_smtcode_evt_txs
#### 11 get_sc_event_by_height

得到该高度区块上的智能合约执行结果。

Expand Down

0 comments on commit f9f038d

Please sign in to comment.