Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
share
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张振华
share
Commits
7b4bb24a
Commit
7b4bb24a
authored
Dec 10, 2019
by
张振华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update 接口文档与代码对比工具说明.md
parent
5a6cfb9d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
接口文档与代码对比工具说明.md
接口文档和代码对比工具/接口文档与代码对比工具说明.md
+4
-4
No files found.
接口文档和代码对比工具/接口文档与代码对比工具说明.md
View file @
7b4bb24a
## 1
工具需要做的配置及使用
## 1
工具需要做的配置及使用
...
@@ -133,7 +133,7 @@ cids = ['93', '94', '100','99','98','97','96','102','105','104','108','110','115
...
@@ -133,7 +133,7 @@ cids = ['93', '94', '100','99','98','97','96','102','105','104','108','110','115


以交易接口为例,格式特点如下:
以交易接口为例,格式特点如下:
```
json
```
json
**请求报文
[
rpc/types/CreateTx
]
:**
**请求报文
<!--
[
rpc/types/CreateTx
]
-->
:**
json
json
{
{
"jsonrpc"
:
"2.0"
,
"jsonrpc"
:
"2.0"
,
...
@@ -168,7 +168,7 @@ json
...
@@ -168,7 +168,7 @@ json
|execer|string|-|执行器名称,如果是构造平行链的基础代币,此处要填写user.p.xxx.coins
|execer|string|-|执行器名称,如果是构造平行链的基础代币,此处要填写user.p.xxx.coins
```
```
(1)“请求报文
[
rpc/types/CreateTx
]
”关键字说明了这是一个请求接口,消息参数参见 chain33/rpc/types包里的CreateTx定义。
(1)“请求报文
<!--[rpc/types/CreateTx]-->
”关键字说明了这是一个请求接口,消息参数参见 chain33/rpc/types包里的CreateTx定义。
(2)"method":"Chain33.CreateRawTransaction" 说明了具体的接口名称CreateRawTransaction。
(2)"method":"Chain33.CreateRawTransaction" 说明了具体的接口名称CreateRawTransaction。
(3)"参数说明",是文档中描述的CreateTx消息的字段定义。工具根据“----|----|----”特征认为是文档对字段说明的开始,并扫描连续的多个字段名及类型,直到遇到空行结束。
(3)"参数说明",是文档中描述的CreateTx消息的字段定义。工具根据“----|----|----”特征认为是文档对字段说明的开始,并扫描连续的多个字段名及类型,直到遇到空行结束。
...
@@ -189,7 +189,7 @@ json
...
@@ -189,7 +189,7 @@ json
```
json
```
json
####
1.1
.
2
交易签名
SignRawTx
####
1.1
.
2
交易签名
SignRawTx
**请求报文
[
types/ReqSignRawTx
]
:**
**请求报文
<!--
[
types/ReqSignRawTx
]
-->
:**
`
`
`json
`
`
`json
{
{
"jsonrpc"
:
"2.0"
,
"jsonrpc"
:
"2.0"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment