From f9f038dadf773813f0028013efc8bf1bec094261 Mon Sep 17 00:00:00 2001 From: xizho10 Date: Thu, 30 Aug 2018 15:59:39 +0800 Subject: [PATCH] update restful api doc (#633) --- docs/specifications/restful_api.md | 4 ++-- docs/specifications/restful_api_CN.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/specifications/restful_api.md b/docs/specifications/restful_api.md index 9228c23731..bfd16645d9 100644 --- a/docs/specifications/restful_api.md +++ b/docs/specifications/restful_api.md @@ -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 | @@ -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. diff --git a/docs/specifications/restful_api_CN.md b/docs/specifications/restful_api_CN.md index ca103cde51..9a40fdcbc2 100644 --- a/docs/specifications/restful_api_CN.md +++ b/docs/specifications/restful_api_CN.md @@ -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证明 | @@ -466,7 +466,7 @@ curl -i http://server:port/api/v1/contract/fff49c809d302a2956e9dc0012619a452d4b8 } ``` -#### 11 get_smtcode_evt_txs +#### 11 get_sc_event_by_height 得到该高度区块上的智能合约执行结果。