Skip to content

Commit

Permalink
modify description of gettransactionsfromthis and gettransactionstothis
Browse files Browse the repository at this point in the history
  • Loading branch information
houlei1017 committed Mar 8, 2019
1 parent f1cd154 commit e18d3dd
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
16 changes: 10 additions & 6 deletions TRX_CN/Tron-http.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,21 @@ demo:curl -X POST http://127.0.0.1:8091/walletsolidity/listexchanges
/walletextension/gettransactionsfromthis(新版本将不再支持)
作用:查询某个账号的出账交易记录
demo: curl -X POST http://127.0.0.1:8091/walletextension/gettransactionsfromthis -d '{"account" : {"address" : "41E552F6487585C2B58BC2C9BB4492BC1F17132CD0"}, "offset": 0, "limit": 10}'
参数说明:address是账号地址,需要是hexString格式;offset是起始交易的index;limit是期望返回的交易数量
返回值:Transaction列表
demo: curl -X POST http://127.0.0.1:8091/walletextension/gettransactionsfromthis -d '{"account"
: {"address" : "41E552F6487585C2B58BC2C9BB4492BC1F17132CD0"}, "offset": 0, "limit": 10,"startTime": 1546099200000, "endTime": 1552028828000}'
参数说明:address是账号地址,需要是hexString格式;offset是起始交易的index,不能大于10000,否则报错;limit是期望返回的交易数量,最大为50
,这个值可能会调整。当limit>50,或offset+limit>10000时,调整后满足limit<=50且offset+limit<=10000
返回值:Transaction列表,total在[startTime,endTime]时间段内允许分页的最大交易数,rangeTotal在[startTime,endTime]时间段的交易内的所有交易数。
备注:该接口在新版本节点中将不再提供,如需要该功能,可以使用中心节点提供的接口,47.90.247.237:8091/walletextension/gettransactionsfromthis,
使用参考getTransactionsFromThis。
/walletextension/gettransactionstothis(新版本将不再支持)
作用:查询某个账号的入账交易记录
demo: curl -X POST http://127.0.0.1:8091/walletextension/gettransactionstothis -d '{"account" : {"address" : "41E552F6487585C2B58BC2C9BB4492BC1F17132CD0"}, "offset": 0, "limit": 10}'
参数说明:address是账号地址,需要是hexString格式;offset是起始交易的index;limit是期望返回的交易数量
返回值:Transaction列表
demo: curl -X POST http://127.0.0.1:8091/walletextension/gettransactionstothis -d '{"account" :
{"address" : "41E552F6487585C2B58BC2C9BB4492BC1F17132CD0"}, "offset": 0, "limit": 10,"startTime": 1546099200000, "endTime": 1552028828000}'
参数说明:address是账号地址,需要是hexString格式;offset是起始交易的index;limit是期望返回的交易数量,最大为50,这个值可能会调整。当limit>50
,或offset+limit>10000时,调整后满足limit<=50且offset+limit<=10000
返回值:Transaction列表,total在[startTime,endTime]时间段内允许分页的最大交易数,rangeTotal在[startTime,endTime]时间段的交易内的所有交易数。
备注:该接口在新版本节点中将不再提供,如需要该功能,可以使用中心节点提供的接口,47.90.247.237:8091/walletextension/gettransactionstothis,
使用参考getTransactionsToThis。
Expand Down
14 changes: 13 additions & 1 deletion 中文文档/波场协议/波场钱包RPC-API.md
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,15 @@ rpc getTransactionsFromThis (Account) returns (TransactionList) {};
23.2 提供节点
soliditynode。
23.3 参数说明
Account:发起方账户,只需要地址。
Account:发起方账户,只需要地址。
offset: 分页的起始值,大于10000将提示错误。
limit: 分页大小,最大为50,这个值可能会调整。当limit>50,或offset+limit>10000时,调整后满足limit<=50且offset+limit<=10000
startTime:起始时间。
endTime: 结束时间,获取[startTime,endTime]时间段的交易。
23.4 返回值
TransactionList:交易列表。
total: 在[startTime,endTime]时间段内允许分页的最大交易数。
rangeTotal: 在[startTime,endTime]时间段的交易内的所有交易数。
23.5 功能说明
通过账户地址查询所有发起的交易。
23.6 备注说明
Expand All @@ -421,8 +427,14 @@ rpc getTransactionsToThis (Account) returns (NumberMessage) {};
soliditynode。
24.3 参数说明
Account:接收方账户,只需要地址。
offset: 分页的起始值,大于10000将提示错误。
limit: 分页大小,最大为50,这个值可能会调整。当limit>50,或offset+limit>10000时,调整后满足limit<=50且offset+limit<=10000
startTime:起始时间。
endTime: 结束时间,获取[startTime,endTime]时间段的交易。
24.4 返回值
TransactionList:交易列表。
total: 在[startTime,endTime]时间段内允许分页的最大交易数。
rangeTotal: 在[startTime,endTime]时间段的交易内的所有交易数。
24.5 功能说明
通过账户地址查询所有其它账户发起和本账户有关的交易。
24.6 备注说明
Expand Down

0 comments on commit e18d3dd

Please sign in to comment.