From 740e2015c912fe6ddfb5fae4fd16828413a3c9da Mon Sep 17 00:00:00 2001 From: ethan1844 <96821439+ethan1844@users.noreply.github.com> Date: Sun, 13 Oct 2024 15:14:17 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=205aaf3?= =?UTF-8?q?ae26be7700783791f5199017e9e8b1a3872=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 2 +- mechanism-algorithm/resource/index.html | 12 +- releases/history/index.html | 441 ++++++++++++++---------- search/search_index.json | 2 +- sitemap.xml | 104 +++--- sitemap.xml.gz | Bin 710 -> 710 bytes 6 files changed, 313 insertions(+), 248 deletions(-) diff --git a/index.html b/index.html index a059d1f..bc8375f 100644 --- a/index.html +++ b/index.html @@ -224,5 +224,5 @@
freezeBalanceV2 frozen_balance [ResourceCode:0 BANDWIDTH,1 ENERGY]
通过质押TRX获取的Energy 额度 = 为获取Energy质押的TRX / 整个网络为获取Energy质押的TRX 总额 * 150_000_000_000。
+通过质押TRX获取的Energy 额度 = 为获取Energy质押的TRX / 整个网络为获取Energy质押的TRX 总额 * 180_000_000_000。
也就是所有用户按质押的TRX数量平分固定额度的Energy,示例:
如全网只有两个人A,B分别质押2TRX,2TRX。
二人质押获得的可用Energy分别是
-A: 75_000_000_000 且energy_limit 为75_000_000_000
+A: 75_000_000_000 且energy_limit 为90_000_000_000
-B: 75_000_000_000 且energy_limit 为75_000_000_000
+B: 75_000_000_000 且energy_limit 为90_000_000_000
当第三人C质押1TRX时。
三人质押获得的可用Energy调整为
-A: 60_000_000_000 且energy_limit调整为60_000_000_000
+A: 60_000_000_000 且energy_limit调整为72_000_000_000
-B: 60_000_000_000 且energy_limit调整为60_000_000_000
+B: 60_000_000_000 且energy_limit调整为72_000_000_000
-B: 30_000_000_000 且energy_limit 为30_000_000_000
+B: 30_000_000_000 且energy_limit 为36_000_000_000
在执行合约时,逐条指令计算并扣除账户能量,账户能量消耗的优先级如下:
diff --git a/releases/history/index.html b/releases/history/index.html index b71100b..adb3671 100644 --- a/releases/history/index.html +++ b/releases/history/index.html @@ -129,13 +129,37 @@Anaximander版本引入了多个重要的优化和更新,优化的单元测试任务,提高了测试用例执行的稳定性;新增的TCP、UDP流量统计,进一步完善了节点监控数据;优化的远端节点空闲判断逻辑,提升了区块同步的稳定性;优化的节点连接随机断开逻辑,提高了节点网络健壮性。下面是详细介绍。
+Java-tron支持节点监控,并提供各项指标数据。Anaximander版本优化了节点HTTP请求监控指标的统计逻辑,在统计来自各个映射地址的请求数据时,保证了多线程并发访问时的数据一致性。
+源代码:https://github.com/tronprotocol/java-tron/pull/5920
+Anaximander版本优化了单元测试任务,通过使用gradle test-retry
插件使得执行失败的单测任务得以重新执行;通过@Ignore注释以跳过暂时不用且不稳定的测试用例。该优化提高了测试任务执行的稳定性。
源代码:https://github.com/tronprotocol/java-tron/pull/5916 https://github.com/tronprotocol/java-tron/pull/5927
+Anaximander版本新增节点TCP 流出量监控指标,并为/monitor/getstatsinfo
接口增加一个 UDP 流入统计量,进一步完善了节点监控数据。
源代码:https://github.com/tronprotocol/java-tron/pull/5942
+Anaximander版本优化了在区块同步过程中的判断远端节点是否空闲的相关逻辑,使得区块同步不受广播获取区块/交易(交易/区块广播流程)相关过程的影响,提升了区块同步效率,提高了节点间连接的稳定性。
+源代码:https://github.com/tronprotocol/java-tron/pull/5921
+Anaximander版本优化了节点排序方法,增加异常捕获,提高了节点间建立连接的效率。
+源代码:https://github.com/tronprotocol/java-tron/pull/5923
+Anaximander版本优化了对来自peer节点的请求获取区块清单消息的验证逻辑,请求的区块号不能超过链清单消息中的最大区块号,使节点得以及时发现非法消息,并断开与对方节点的连接,同时更丰富的节点日志,有利于节点间连接问题的排查与定位。
+源代码:https://github.com/tronprotocol/java-tron/pull/5922
+Anaximander版本优化了区块处理逻辑,在处理广播过来的区块后,及时更新与各个远端节点共同拥有的区块的区块 ID 及区块号,以便更好的了解远端节点状态。
+源代码:https://github.com/tronprotocol/java-tron/pull/5925
+当节点所连接的远端节点的最新区块都比自己低时,节点将无法同步区块,也无法广播交易,我们将这种节点称之为”孤岛节点”,孤岛节点其实是没有获取到有效的对等节点。为了防止节点进入孤岛状态,Anaximander版本优化了节点连接的随机断开逻辑,断开长时间不活跃的节点,增加有效连接的数量,提高了节点网络健壮性。
+源代码:https://github.com/tronprotocol/java-tron/pull/5924 https://github.com/tronprotocol/java-tron/pull/5944
+https://github.com/tronprotocol/java-tron/pull/5956
+https://github.com/tronprotocol/java-tron/pull/5984
Nature is eternal and does not age.
+---Anaximander
+Cleobulus版本引入了多个重要的优化和更新,新增调整部分 TVM 操作码能量成本的提案,使能量成本更加合理;增强的交易及区块检查逻辑,提高了系统的容错能力;优化的线程间同步逻辑,提高了数据一致性。下面是详细介绍。
-Cleobulus版本优化了产块逻辑,在获取到产块锁之后,再检查是否具备产块条件,以避免前后状态不一致,提高了TRON网络的稳定性。
Cleobulus版本增强了区块检查逻辑,所有节点增加对区块大小和区块时间的检查。
源代码:https://github.com/tronprotocol/java-tron/pull/5833 https://github.com/tronprotocol/java-tron/pull/5830
-Cleobulus版本优化了账户创建相关逻辑,加强了账户创建类交易的大小检查, 并增加了第82号TRON网络参数,来设置创建账户类交易所允许的最大字节数,该参数的取值范围为[500, 10000],初始值为1000,后期可以通过发起提案投票的方式修改。
源代码:https://github.com/tronprotocol/java-tron/pull/5835
Cleobulus版本优化了请求区块相关逻辑,在打印日志时不再读取fetchBlockInfo数据,提高了多线程对fetchBlockInfo对象的并发访问的稳定性。
Cleobulus版本优化了同步区块处理逻辑,无论syncBlockToFetch队列是否为空,节点均能正常处理区块数据,提高了区块同步效率。
源代码:https://github.com/tronprotocol/java-tron/pull/5831
https://github.com/tronprotocol/java-tron/pull/5832
Cleobulus版本删除了区块处理过程中的冗余逻辑,提高了代码的可读性和可维护性。
源代码:https://github.com/tronprotocol/java-tron/pull/5834
Bias版本引入了多个重要的优化和更新,新增了一个优化投票奖励提取性能的提案;重构的Gradle依赖,降低了波场核心协议开发的复杂度;对gRPC反射服务的支持及优化的日志系统,为用户带来更友好的开发体验。下面是详细介绍。
-TIP-465 旨在提高TRON网络投票奖励的计算性能,通过记录各个超级代表在各个维护期的单票累积奖励值,可以使投票奖励计算的时间复杂度从线性时间降低到常量时间。早在Socrates版本就已实现了 TIP-465 提议 ,并且已于2023-01-20 14:00:00正式通过了基于TIP-465的第82号提案,但该提案只优化了提案生效后产生的投票奖励的计算性能(常量时间复杂度),而提案生效前产生的投票奖励的计算性能仍然较低(线性时间复杂度)。
Bias版本对第82号提案生效前产生的投票奖励的计算性能进行了优化,通过后台任务提前计算出第82号提案生效前的各个超级代表在各个维护期的单票累积奖励值,并将计算结果保存到数据库中,这将使得第82号提案生效时间前后产生的投票奖励的计算性能保持一致,使得任何一个涉及奖励提取的交易均可在常量时间内完成奖励的计算,加快了投票奖励提取相关交易的执行速度,提升了网络吞吐量。
@@ -1529,7 +1594,7 @@TRON网络的区块固化机制为:一个区块被70%的超级代表确认后,才能固化,即区块数据被写入到磁盘,数据不可以被更改。无法固化的区块,一直被保存在内存中,如果未固化的区块持续增多,则可能导致内存耗尽,节点退出运行。Bias 版本增加了未固化区块数量检查功能,当检测到节点的未固化区块数量达到阈值时,节点将停止广播交易,避免网络中存在过多无法固化的交易,这不但可以降低节点对内存的占用,而且还可以减少区块中交易数量,提高区块执行速度,有利于后期网络的快速恢复。
该功能默认为关闭状态,节点部署者可以通过如下配置项开启该功能并配置阈值。
node.unsolidifiedBlockCheck = true
@@ -1540,7 +1605,7 @@ API¶<
1. 为/wallet/broadcasttransaction接口增加一个返回码BLOCK_UNSOLIDIFIED¶
Bias 版本新增未固化区块数量检查功能,当检测到节点的未固化区块数量达到阈值时,节点将停止广播交易。为了更好的反馈节点状态,Bias 版本为/wallet/broadcasttransaction
API新增了一个广播失败时返回的错误码BLOCK_UNSOLIDIFIED
,表明节点未固化区块过多,并且超过了阈值,此时无法广播交易。
源代码:https://github.com/tronprotocol/java-tron/pull/5643
-其它变更¶
+其它变更¶
1. HelloMessage消息中添加节点版本信息¶
Bias 在HelloMessage消息中新增一个表示版本信息的字段codeVersion
,使得节点在节点发现阶段即可获取对方节点的版本信息,有利于后期问题的排查与定位。
TIP: https://github.com/tronprotocol/tips/blob/master/tip-621.md
@@ -1569,7 +1634,7 @@
6. 删除framework模块下的LiteFullNodeT
7. 删除配置项node.discovery.bind.ip
¶
Bias 升级了libp2p到v2.2.1版本,可以直接通过libp2p来获取节点局域网IP,无需再手动配置。因此,Bias版本删除了不再使用的设置节点局域网IP的配置项node.discovery.bind.ip
,简化了用户使用的复杂度。
源代码:https://github.com/tronprotocol/java-tron/pull/5597 https://github.com/tronprotocol/java-tron/pull/5750
-8. 删除不再使用的构建脚本¶
+8. 删除不再使用的构建脚本¶
Bias版本删除了不再使用的项目构建脚本:checkStyle.sh, codecov.sh, querySonar.sh, sonar.sh。
源代码:https://github.com/tronprotocol/java-tron/pull/5580
9. 优先初始化节点API服务¶
@@ -1595,11 +1660,11 @@ 12. 优化
GreatVoyage-v4.7.3.1(Solon)¶
Solon版本是一个非强制升级版本,引入了两个变更,更稳定的HTTP接口以及轻节点数据剪裁工具,为用户带来更友好的开发体验。
下面是详细介绍。
-其它变更¶
+其它变更¶
1. 更稳定的 /wallet/getnodeinfo 接口¶
在Solon之前的版本中,极小概率可能出现调用 /wallet/getnodeinfo 接口时触发异常,这是由于区块数据对象序列化并发所导致,因此,Solon版本优化了区块数据对象的序列化逻辑,保证了区块数据获取的正确性,使 /wallet/getnodeinfo 接口更加稳定。
源代码:https://github.com/tronprotocol/java-tron/pull/5594
-2. 优化轻节点数据剪裁工具¶
+2. 优化轻节点数据剪裁工具¶
为了解决因异常宕机导致的节点数据库损坏问题,从Socrates版本开始,引入了Checkpoint V2机制,会在磁盘中保存多个checkpoint,对应多个已固化的区块数据,用于当节点数据库损坏时,可以在节点重启时恢复数据。而轻节点数据剪裁工具也应兼容checkpoint v2版本,当节点异常停止时,也可以使用剪裁工具恢复数据并完成数据的剪裁,因此,Solon优化了工具箱中的轻节点数据剪裁工具,当发现使用的是checkpoint v2时,会从v2版本的checkpoint数据库中查询数据,使得即使是节点异常停止时的数据,工具也可以恢复并剪裁数据,提高了轻节点数据剪裁工具的可用性。
源代码:https://github.com/tronprotocol/java-tron/pull/5658
@@ -1609,12 +1674,12 @@ 2. 优化轻节点数据剪裁工具GreatVoyage-v4.7.3(Chilon)¶
Chilon版本是一个非强制升级版本,引入了多个重要的优化和更新,更丰富的gRPC接口及更快的节点启动速度,为用户带来更友好的开发体验,优化的节点间的断连策略及同步流程,提高了节点之间连接的稳定性;优化的交易处理逻辑和数据库查询性能,提高了交易打包效率,提升了网络吞吐量。
下面是详细介绍。
-核心协议¶
+核心协议¶
1. 新增资源价格、交易备注费用查询接口的gRPC实现¶
Chilon 新增三个gRPC接口,用户可通过getBandwidthPrices
API获取历史带宽单价,通过getEnergyPrices
API获取历史能量单价,通过getMemoFee
获取交易备注费用,进一步提高开发者的体验。
TIP: https://github.com/tronprotocol/tips/blob/master/tip-586.md
源代码:https://github.com/tronprotocol/java-tron/pull/5412
-2. 补充节点间连接断开的原因¶
+2. 补充节点间连接断开的原因¶
当节点处理消息失败时,可能会触发断开与某个远端节点的连接,但在Chilon之前的版本中,在某些情况下,节点断开与对方节点的连接时,并未告知对方节点连接断开的原因,这不利于对方节点分析排查问题。
Chilon版本优化了节点间连接断开逻辑,新增两个断连原因,使节点在断开连接之前,均会发送断连原因给对方节点,以便于节点连接问题的高效处理。
TIP: https://github.com/tronprotocol/tips/blob/master/tip-592.md
@@ -1625,19 +1690,19 @@ 3. 丢弃来自作恶节点的交易4. 增强Stake 2.0代码可读性¶
Chilon版本规范了Stake 2.0相关代码,复杂方法简单化,提高了代码的简洁性与可读性。
源代码:https://github.com/tronprotocol/java-tron/pull/5426
-5. 交易缓存布隆过滤器持久化¶
+5. 交易缓存布隆过滤器持久化¶
节点启动时,会从数据库中读取最近65536个区块的交易,以构建交易缓存布隆过滤器,用于在后续验证交易时,进行重复交易判断。在Chilon之前的版本中,交易缓存的加载耗时占节点启动耗时的70%以上,占据了大部分节点启动时间。为了提高交易缓存的加载速度,Chilon版本对交易缓存布隆过滤器进行了持久化处理。当节点正常退出运行时,会将交易缓存布隆过滤器相关数据存储到磁盘,则节点重启时,将无需读取最近区块中的交易信息,而是直接将布隆过滤器数据加载的内存,加快了交易缓存布隆过滤器的初始化进程,大大提高了节点启动速度。
该功能默认为关闭状态,需要通过节点配置项storage.txCache.initOptimization = true
开启。
源代码:https://github.com/tronprotocol/java-tron/pull/5394 https://github.com/tronprotocol/java-tron/pull/5491 https://github.com/tronprotocol/java-tron/pull/5505 https://github.com/tronprotocol/java-tron/pull/5523 https://github.com/tronprotocol/java-tron/pull/5543
-6. 修复区块清单生成过程中由于并发导致的问题¶
+6. 修复区块清单生成过程中由于并发导致的问题¶
在Chilon之前的版本中,当一个节点A向节点B请求同步区块时,首先发送自己的链摘要给节点B,B收到后,结合本地链,生成并返回节点A的缺失区块清单。清单的生成过程为:首先,从节点A的链摘要中找到两个节点的最大共同块高,然后,将从最大共同块高开始的若干个区块的ID加入到节点A缺失的区块清单列表中。由于缺失区块清单的生成与切链是并发执行的,所以如果在生成缺失区块清单时发生了切链,则可能出现得到最大共同块高后,获取不到相应的区块id,使得生成的缺失区块清单与节点A的链摘要不匹配,从而导致节点连接被断开的发生。
Chilon版本优化了缺失区块清单的生成逻辑,当获取不到之前计算的最高共同区块的ID时,节点将进行重试,以保证返回的清单中包含最高共同区块信息,提高了节点间连接的稳定性。
源代码:https://github.com/tronprotocol/java-tron/pull/5393 https://github.com/tronprotocol/java-tron/pull/5532
-7. 优化服务关闭逻辑¶
+7. 优化服务关闭逻辑¶
在Chilon之前的版本中,服务被关闭时,可能出现异常报错的情况。Chilon版本优化了服务关闭逻辑,当使用kill -15
命令关闭服务时,可以确保各种类型资源释放顺序的准确性,以使节点可以正常退出运行。
源代码:https://github.com/tronprotocol/java-tron/pull/5410 https://github.com/tronprotocol/java-tron/pull/5425 https://github.com/tronprotocol/java-tron/pull/5421 https://github.com/tronprotocol/java-tron/pull/5429 https://github.com/tronprotocol/java-tron/pull/5447
API¶
-1. HTTP接口监控优化¶
+1. HTTP接口监控优化¶
Chilon版本优化了HTTP接口监控指标,不再统计对节点不支持的API的请求,使成功或失败的HTTP接口请求的统计数据更加精准。
源代码:https://github.com/tronprotocol/java-tron/pull/5332
2. 新增http/gRPC接口流量控制默认值配置¶
@@ -1655,7 +1720,7 @@ 4. 新增资源单价相关solidity接口5. 优化部分HTTP 接口的处理逻辑¶
Chilon版本优化了部分http接口:/wallet/getavailableunfreezecount
、/wallet/getcanwithdrawunfreezeamount
、/wallet/getcandelegatedmaxsize
和/wallet/getavailableunfreezecount
,使其对get和post方式的请求处理一致,包括参数校验及返回值。
源代码:https://github.com/tronprotocol/java-tron/pull/5408
-其它变更¶
+其它变更¶
1. 在获取交易时增加对过期交易的检查¶
Chilon版本增加了对其收到的广播清单中过期交易的检查,对于清单中已经超时的交易,不再向其远端节点进行请求,避免了由于交易处理失败导致的节点连接被断开,提高了节点连接稳定性。
源代码:https://github.com/tronprotocol/java-tron/pull/5460
@@ -1672,7 +1737,7 @@ 3. 删除不再使用的网络参数4. 调用libp2p获取节点外部IP¶
在Chilon之前的版本中,节点在启动时,重复的获取了外部IP,由Java-tron和lib2p2各执行了一次IP获取。为了提高节点启动速度,Chilon版本优化了外部IP获取逻辑,节点在启动时,直接调用libp2p来获取外部IP,并且可以直接赋值外部IP给libp2p使其无需重复获取。
源代码:https://github.com/tronprotocol/java-tron/pull/5407
-5. 新增事件订阅服务对质押相关交易的地址解析¶
+5. 新增事件订阅服务对质押相关交易的地址解析¶
Chilon版本优化了事件订阅服务,新增对质押相关交易中地址的解析,使事件订阅者可以获得质押、资源代理等交易中的地址信息。
源代码:https://github.com/tronprotocol/java-tron/pull/5419
6. 调整验签线程数的默认值为最大可用CPU核数¶
@@ -1691,7 +1756,7 @@ 8. 提高properties数据库查询性能GreatVoyage-v4.7.2(Periander)¶
Periander版本引入了多个重要的优化和更新,增加2个治理提案来对Stake 2.0进行易用性优化,大幅提高了波场质押机制的灵活性;增加1个治理提案来实现EIP-3855 PUSH0
指令,确保了波场和以太坊在虚拟机层面的兼容性的同时,还可以降低波场智能合约的使用成本;更友好的智能合约调用访问接口,提高了智能合约开发的便利性;P2P网络模块全面升级,支持IPV6网络协议、基于DNS的节点发现、报文压缩等等,大幅提升波场网络基础设施的性能。
下面是详细介绍。
-核心协议¶
+核心协议¶
1. libp2p 升级到v1.2.0¶
libp2p是Java-tron核心开发者开发的Java版本开源P2P协议框架,任何人都能基于libp2p开发分布式应用,Java-tron底层的P2P网络就是基于libp2p实现的,为了进一步提高Java-tron的底层网络性能,Periander版本将libp2p依赖库从v0.1.4版本升级到v1.2.0版本,libp2p v1.2.0具备如下新特性:
@@ -1817,7 +1882,7 @@ 3. 资源代理支持自定义锁定期https://github.com/tronprotocol/tips/blob/master/tip-542.md
- 源代码:https://github.com/tronprotocol/java-tron/pull/5255
-4. 优化有效节点获取策略¶
+4. 优化有效节点获取策略¶
当节点所连接的远端节点的最新区块都比自己低时,节点将无法同步区块,也无法广播交易,我们将这种节点称之为”孤岛节点”,孤岛节点其实是没有获取到有效的对等节点。
为了使节点能够连接到有效的对等节点,Periander版本优化了节点获取策略,增加了孤岛节点检测,如果节点发现其处于孤岛状态,则查找头块比本地头块高的节点并与之建立连接,该策略避免了节点长时间处于孤岛状态,保证了节点可以快速的补充有效连接,使其可以获取到新的区块并广播交易,提高了节点的稳定性。
该功能默认为关闭状态,需要通过设置节点配置项node.effectiveCheckEnable
开启。
@@ -1903,7 +1968,7 @@ 3. 优化getStorageAt接口https://github.com/tronprotocol/java-tron/pull/5061
-其它变更¶
+其它变更¶
1. 优化事件订阅中的事件转发逻辑¶
Java-tron支持事件订阅功能,在Periander之前的版本中,如果用户订阅了固化交易事件,则当节点接收到新的区块后,会将当前的最新固化块中的交易信息发送给订阅者。如果大多数SR节点所在的网络出现抖动,使得它们不能及时的同步和生产区块,在这种情况下,根据节点的最新固化块计算逻辑,其最新固化块高度将不能保证严格递增,使得在事件转发时获取的最新固化块,可能不是上一次转发给订阅者的固化块的下一个区块,导致少转发数据的发生。由于该问题复现的条件非常严格,在主网中基本不会出现。但为了避免在测试网或者私链中出现该问题,Periander版本优化了事件订阅中的事件转发逻辑,记录了上一次转发的固化块高度,在节点接收到新的区块后,会依次将上一次转发的固化块之后的区块到当前的最新固化块信息发送到订阅者,确保了数据转发的完整性。
当节点向某节点请求区块后,如果在一定时间内内没有接收到区块,则认为超时,然后会再选择其它满足条件的节点,并向其请求该区块,选择节点的其中一个条件是节点的区块获取延迟
低于区块超时时间
。因此,过低的区块超时时间
可能会使节点无法找到其它远端节点,从而导致区块同步慢或停止同步。
为了提高在网络不稳定情况下的区块同步性能,Periander版本将节点获取区块的超时时间的默认值从200ms提高到了500ms,不仅扩大了节点选择的范围,而且提高了成功获取区块的概率,大幅提升区块同步效率。节点部署者也可以通过node.fetchBlock.timeout
配置项调整超时时间。
为了方便节点部署者进行数据备份或数据统计,节点支持在特定的条件下停止运行,用户可以通过节点配置文件设置节点停止的条件,当满足设置的条件时,节点将停止同步并退出运行。但在Periander之前的版本中,节点仅支持停止在特定条件下,而在停止后不支持接口查询服务,使得用户无法调用接口来了解系统的状态。因此,Periander版本增加了一种新的节点启动方式,以支持在不启动网络模块的情况下提供数据查询服务,当节点成功停止在特定条件后,用户可以通过在启动命令中添加-p2p-disable true
参数,来启动节点,这时,节点将不启动网络模块,不进行节点发现与区块同步,但会提供接口查询服务,从而方便用户查询当前的系统状态。启动命令请参考:
java -jar FullNode.jar -c config.conf --p2p-disable true
源代码:https://github.com/tronprotocol/java-tron/pull/5096
-/wallet/getdelegatedresourcev2
接口可以查询一个地址代理给其它地址的资源情况,而资源代理可以选择是否锁定,给同一个地址的2笔代理,其中一笔可以选择锁定,另外一笔选择不锁定,所以/wallet/getdelegatedresourcev2
接口会返回两组信息:锁定的资源代理数据和非锁定的资源代理数据。在GreatVoyage-v4.7.1.1(Pittacus)之前的版本中,如果一个地址给另外一个地址代理的资源全部是锁定的,那么非锁定资源代理数据为0,则在这种情况下,接口可能也会将非锁定资源代理数据(0值)返回,GreatVoyage-v4.7.1.1(Pittacus)版本优化了/wallet/getdelegatedresourcev2
接口,只返回代理资源数量非0的数据,使得返回的数据更加简洁清晰。
源代码: https://github.com/tronprotocol/java-tron/pull/5123
-TRON网络支持合约部署者分摊一部分合约调用成本,为了方便用户查询合约交易的能量消耗情况,交易收据除了记录交易的总能量消耗量energy_usage_total
字段,还会记录合约部署者分摊的能量数量origin_energy_usage
字段,energy_usage_total
包含了origin_energy_usage
。在GreatVoyage-v4.7.1.1(Pittacus)之前的版本中,在极少数情况下会出现通过/wallet/gettransactioninfobyid查询到energy_usage_total
字段为0,而origin_energy_usage
字段不为0的情况,因此,GreatVoyage-v4.7.1.1(Pittacus)版本优化了交易收据中origin_energy_usage
的更新逻辑,保证查询合约部署者的能量的准确性。
源代码: https://github.com/tronprotocol/java-tron/pull/5120
@@ -2016,11 +2081,11 @@GreatVoyage-v4.7.1(Sartre)版本引入了多个重要的优化和更新,优化的区块同步逻辑,提高了区块同步的稳定性;优化的节点IP设置,提高了节点的可用性;优化的节点日志模块,提高节点的可维护性。
下面是详细介绍。
-节点启动时会获取节点的本地IP, 然后利用该IP与网路中的其他节点进行通信。如果节点无法访问外网,则将无法获取到本地IP,这时节点会将其本地IP设置为默认值0.0.0.0,而全0地址将使得节点无法与局域网内的其他节点正常通信,GreatVoyage-v4.7.1(Sartre)版本更改了节点默认IP,如果节点无法获取本地IP, 会将其本地IP设置为127.0.0.1,使得节点即便在没有连接外网的情况下,依然可以和局域网内的其它节点正常通信。
源代码:https://github.com/tronprotocol/java-tron/pull/4990
-在区块同步过程中,节点会维护一个区块请求列表,包含了已经向其他节点发送请求的所有区块的ID。当本节点和节点A连接极小概率异常断开时,会将向节点A正在请求的区块ID从请求列表中删除,此后节点会认为自己并没有请求过该区块,然后重新向节点B请求该区块,并将区块ID再次加入到请求列表中。而本节点在和节点A的连接断开之前,可能节点A已经向本节点发送了区块,断开连接后收到了该区块,由于发现是来自已断开节点A的区块,会丢弃该区块并将区块ID从请求列表中再次删除,导致本节点将再一次向节点B发送相同区块的请求。而当节点B收到重复的区块请求时,会认为是非法报文,断开与本节点的连接。
为了提高在并发场景下区块同步的效率,GreatVoyage-v4.7.1(Sartre)版本优化了区块请求列表的更新机制,列表中同时保存区块ID和节点信息,上述场景中,收到来自于已断开节点A区块后,将不会把向节点B请求的同一个区块ID从请求列表中删除,确保不会与节点B断开连接,从而提升区块同步的稳定性。
源代码:https://github.com/tronprotocol/java-tron/pull/4995
@@ -2034,11 +2099,11 @@GreatVoyage-v4.7.1(Sartre)版本优化了资源代理关系查询API,增加了对接口参数的检验,使接口更加稳定。
-在GreatVoyage-v4.7.1(Sartre)之前的版本,节点的不同模块检测当前节点是否为轻节点的逻辑是不一样的,GreatVoyage-v4.7.1(Sartre)版本统一了轻节点判断逻辑,使代码更加简洁。
源代码:https://github.com/tronprotocol/java-tron/pull/4986
-数据库日志
GreatVoyage-v4.7.0.1(Aristotle)版本开始,将LevelDB或者RocksDB数据库的日志重定向到节点日志文件中,简化了数据库故障排查的难度,GreatVoyage-v4.7.1(Sartre)版本进一步优化日志模块,将数据库日志输出到一个单独的db.log文件中,以使节点日志更加清晰。
源代码: https://github.com/tronprotocol/java-tron/pull/4985 https://github.com/tronprotocol/java-tron/pull/5001 https://github.com/tronprotocol/java-tron/pull/5010
@@ -2055,7 +2120,7 @@GreatVoyage-v4.7.0.1(Aristotle)版本引入了多个重要的优化和更新,全新的质押机制Stake 2.0, 提高了资源模型的灵活性和质押系统的稳定性;动态能量模型,有助于促进生态的均衡发展;二级缓存机制优化了数据库读取性能,提高了交易执行性能,提升了网络吞吐量;使用libp2p库作为Java-tron P2P网络模块,使代码结构更加清晰,并且降低代码耦合性;优化日志输出,将LevelDB和RocksDB的日志重定向到Java-tron日志文件;将更多工具包集成的toolkit工具箱,为用户带来更便捷的开发体验。
下面是详细介绍。
-GreatVoyage-v4.7.0.1(Aristotle)版本引入一种全新的质押模型Stake 2.0,旨在建立一种更为灵活,高效,稳定的质押系统。相比于目前的Stake1.0质押模型, Stake 2.0在下面几个方面进行了提升:
Java-tron采用内存和磁盘数据库的方式进行数据存储,固化的区块数据会保存在多个磁盘数据库中,未被固化的数据保存在内存中,当一个区块被固化后,会将相应的内存数据写入到磁盘数据库。在查询数据时,首先查询内存中的数据,如果没有找到,再查询磁盘数据库。而磁盘数据库查询是比较耗时的,因此,GreatVoyage-v4.7.0.1(Aristotle)版本优化了数据库查询性能,在进行底层磁盘数据库操作之前,增加了二级缓存。在将数据写入磁盘的同时,也将数据写入到二级缓存。当需要查询磁盘数据库时,如果二级缓存中存在要查询的数据,则直接返回,而无需再查询磁盘数据库。二级缓存减少了查询磁盘数据库的次数,提高了交易执行速度,提升了网络吞吐量。
动态能量模型是一种根据合约已知的能量使用情况来动态调整合约未来的能量消耗的方案,如果一个合约在一个周期内使用过多的资源,则下一个周期中该合约将增加一定百分比的惩罚性消耗,用户向该合约发送相同的交易将产生更多的能量消耗量。当合约合理使用资源时,用户调用该合约所产生的能源消耗将逐渐恢复正常,通过这个机制,让能源资源在链上的分配更加合理,防止网络资源过度集中在少数合约上。
更多关于动态能量模型的原理请参考:Introduction to Dynamic Energy Model。
动态能量模型是TRON网络中的一个动态参数,GreatVoyage-v4.7.0.1(Aristotle)部署之后默认为关闭状态,可以通过发起提案投票的方式开启。
@@ -2292,7 +2357,7 @@在GreatVoyage-v4.7.0.1(Aristotle)之前的版本中,可以通过/wallet/triggerconstantcontract
接口预估执行智能合约交易所需的能量消耗量,然后根据预估的消耗量来设置交易的feelimit
参数。但由于某些智能合约交易可能存在对其他智能合约的调用,这时有可能出现预估feelimit
参数不准确的情况。
因此,GreatVoyage-v4.7.0.1(Aristotle)版本新增了一个能量预估接口/wallet/estimateenergy
,利用该接口预估的feelimit
在任何情况下都是可靠的。该接口返回值中的energy_required
字段表示这笔智能合约调用交易执行成功所需要的能量预估量,用户根据该字段来计算feelimit
参数:feelimit
= energy_required
* 能量单价, 当前能量单价是210sun 。
如果由于某种原因导致预估接口执行失败时,energy_required
字段值为0,在返回值中将不显示该字段,这时可以通过result
字段查看预估失败原因。
GreatVoyage-v4.7.0.1(Aristotle)版本优化了Gradle编译参数,将JVM堆内存最小值设置成1G,以加快Java-tron gradle编译速度。
-为了方便节点部署者进行数据备份或数据统计,从GreatVoyage-v4.5.1(Tertullian)版本开始,节点支持在特定的条件下停止运行,用户可以通过节点配置文件设置节点停止的条件,在满足设置的条件时,节点将停止运行。支持3个停止条件同时设置,满足任意个条件即停止节点。这三个条件包括区块时间、区块高度以和节点从启动到停止需要同步的区块数量, 但是由于允许同时设置多个停止条件,当用户只需要一个条件时,需要在配置文件中注释掉其他2个条件配置项,因此,如果用户忘记注释,可能出现节点停止在非预期的区块上。但实际并没有需要同时设置多个条件的应用场景,所以,GreatVoyage-v4.7.0.1(Aristotle)版本优化了节点自动停止功能,可选的配置参数不变,但是仅允许同时设置一个有效参数,如果节点部署者设置了多个参数,节点将报错并退出运行。该优化极大的简化了用户使用的复杂度。
在GreatVoyage-v4.7.0.1(Aristotle)之前的版本中,节点日志中不包含LevelDB 或者 RocksDB 本身输出的底层日志,排查数据库读写问题比较困难。因此,GreatVoyage-v4.7.0.1(Aristotle)版本优化了数据库日志,将LevelDB或者RocksDB数据模块的底层日志的输出重定向到节点日志文件中,简化的了数据库故障排查的难度,提高了节点运维的效率。
GreatVoyage-v4.6.0(Socrates)版本引入了多个重要的优化和更新,优化的数据库检查点机制,提高了节点运行的稳定性;优化的资源代理关系存储结构,以及新的投票奖励计算模型,加快了交易的执行速度,提高了网络吞吐量;增加备注收费的提案,提高带备注交易的成本来减少低价值交易的数量,提升波场网络的安全性和可靠性。集成的toolkit工具包、新增的网络相关prometheus指标、新增的help命令行选项,为用户带来更便捷的开发体验。
下面是详细介绍。
-TRON网络中,账户可以通过质押将资源代理给其它账户,也可以接受其它账户为自己的资源代理,因此,每个账户都需要维护一个代理关系的记录,包含该账户代理出去的所有账户地址,和为自己代理资源的所有账户地址。
在GreatVoyage-v4.6.0(Socrates)之前的版本中,代理关系以列表的形式存储,当执行资源代理操作时,需要首先在列表中查找是否已经存在该代理账户,如果已经存在,则不需要添加到列表,只有当不存在时才将地址添加到列表中。如果某账户给多个其它账户代理了资源或者多个其它账户为自己代理了资源,那么该账户中的代理关系列表的长度将非常大,当执行涉及该账户的资源代理交易时,对列表的查找操作将非常耗时,导致交易执行时间很长。因此,GreatVoyage-v4.6.0(Socrates)版本优化了资源代理关系的存储结构,将代理关系存储结构从数组改为键值对,以实现在常量时间内完成对其数据的读取和更改,极大的加快了代理相关交易的执行速度,提高网络吞吐量。
@@ -2367,7 +2432,7 @@从GreatVoyage-v4.6.0(Socrates)版本开始,将对交易中的备注收取额外的费用,备注收费将提高带备注交易的成本,减少低价值交易的数量,提升波场网络的安全性和可靠性。
备注费用是TRON网络的一个动态参数,GreatVoyage-v4.6.0(Socrates)部署之后默认为0,单位是 sun, 可以通过发起提案投票指定一个非0值来开启,例如设置为1000000, 表示带备注的交易需要额外消耗1 TRX费用。
如果超级代表部署了主备节点,主备节点之间会保持连接,当主备节点因网络问题导致短暂性断连时,备用节点会认为主节点失效而参与区块生产,这种情况下会出现主备节点同时出块的情况,在GreatVoyage-v4.6.0(Socrates)之前的版本中,当主备节点收到了对方所产生的相同高度的区块时,各自都会暂停1-9个产块周期,也就是该超级代表会丢1-9个区块。
GreatVoyage-v4.6.0(Socrates)版本优化了主备节点产块的优先级,在上述情况中,当主备节点收到了对方所产生的相同高度的区块时,会比较自己生产区块的hash与对方生产区块的hash值。如果自己的hash更大,会继续产块。如果自己的hash更小,会暂停一个产块周期,之后会继续产块,再次进行区块hash比较, 总共27个超级代表顺序出块,所以跳过一个产块周期需要等待81秒,再此期间,如果主备节点之间的是因为网络短暂不佳,会有足够的时间恢复。另外其他节点收到这两个区块后也会选择hash较大的区块,丢弃hash较小的区块,因此该优化将大幅提高超级代表在主备节点之间网络通信不佳情况下的区块生产效率,提升网络的稳定性。
ArchiveManifest.jar是一个独立的LevelDB启动优化工具, 可以优化 LevelDB manifest的文件大小,从而减少内存占用,大幅提升节点启动速度。从 GreatVoyage-v4.6.0(Socrates)版本开始,将ArchiveManifest.jar工具集成到了Toolkit.jar工具中,未来Java-tron周边的工具将逐步都集成到Toolkit.jar工具箱中,以便于工具维护和开发者使用。
LiteFullNodeTool.jar是java-tron的轻节点工具, 主要功能是将全节点数据库转化为轻节点数据库,GreatVoyage-v4.6.0(Socrates)版本优化了该工具,提升了工具的便捷性和稳定性。
GreatVoyage-v4.5.2(Aurelius)版本引入了多个重要的优化更新,优化的交易缓存机制,大幅减少了内存占用,提高了节点性能;优化的对等节点连接策略,提高了对等节点间建立连接的效率,加快了节点同步进程;优化的区块生产及处理逻辑,提高了节点稳定性;新增的数据库存储分区工具,减轻了数据存储压力;新增的区块头查询API以及历史带宽单价查询API,为用户带来更便捷的开发体验。
-在GreatVoyage-v4.5.2(Aurelius)之前的版本中,区块生产、区块处理及交易处理等线程共同竞争同步锁,而在高并发,并且交易执行时间较长的情况下,区块生产或者区块处理线程获取到同步锁所需要的时间较长,从而导致小概率丢块事件的发生。为了提高节点稳定性,GreatVoyage-v4.5.2(Aurelius)版本优化了区块处理逻辑中的同步锁,仅允许一个交易处理线程与区块生产或处理线程竞争同步锁,并且当交易处理线程发现有区块相关线程在等待同步锁时,会主动退让,这大大提高了区块生产和区块处理线程获取到同步锁的概率,保证了节点高吞吐、稳定的运行。
TIP: https://github.com/tronprotocol/tips/blob/master/tip-428.md 源代码: https://github.com/tronprotocol/java-tron/pull/4551
-节点使用交易缓存来判断新收到交易是否是重复交易,在GreatVoyage-v4.5.2(Aurelius)之前的版本中,交易缓存是一个hashmap数据结构,该结构会保存最近65536个区块中的交易,hashmap会为每一条交易单独分配内存,因此,在节点运行过程中,交易缓存占据了约2G内存空间,而且由于频繁的内存申请会触发频繁的JVM垃圾回收,也间接影响着节点的性能。为此,GreatVoyage-v4.5.2(Aurelius)版本优化了交易缓存的实现,采用布隆过滤器代替hashmap,布隆过滤器使用固定且极小的内存空间来记录最近的历史交易,极大的减少了交易缓存对内存的占用,提高了节点性能。
TIP: https://github.com/tronprotocol/tips/blob/master/tip-440.md 源代码:https://github.com/tronprotocol/java-tron/pull/4538
@@ -2476,13 +2541,13 @@node.active
和node.passive
列表中配置的节点均为信任节点,不会被断开连接。
TIP: https://github.com/tronprotocol/tips/blob/master/tip-425.md 源代码: https://github.com/tronprotocol/java-tron/pull/4549
-在GreatVoyage-v4.5.2(Aurelius)之前的版本中,对于预执行正常的交易,在打包时可能会碰到JVM GC停顿,导致交易执行超时,从而被丢弃。因此GreatVoyage-v4.5.2(Aurelius)版本优化了区块打包逻辑,对于预执行正常的交易,如果在打包时执行超时,则采取重试操作,以避免在打包交易过程中,由于JVM GC停顿导致交易丢失。
源代码:https://github.com/tronprotocol/java-tron/pull/4387
-在TRON网络中偶尔会出现微分叉的情况,微分叉时会产生切链行为,在切链时会回退区块,并将被回退区块内交易重新放回到待打包交易队列中。当这些交易被重新打包执行时,可能会由于切链导致执行结果不一致,在GreatVoyage-v4.5.2(Aurelius)之前的版本中,整个过程引用的是同一个交易对象,所以切链可能会导致回退区块中的交易结果被更改。当再次发生切链,并且切回到原链时,会再次执行原链上的交易,就会产生Different resultCode
错误,从而导致节点停止同步。因此,GreatVoyage-v4.5.2(Aurelius)版本优化了切链逻辑,在进行区块回退时,为被回退区块内交易创建新的交易对象,避免交易结果被修改,提升了节点对微分叉处理的稳定性。
源代码:https://github.com/tronprotocol/java-tron/pull/4583
-随着链上数据增长,全节点的磁盘空间可能不足,需要更换更大容量的磁盘。为此,从GreatVoyage-v4.5.2(Aurelius)版本开始,提供了数据库存储分区工具,它能够根据用户的配置将部分数据库迁移到其它磁盘分区,因此用户只需根据容量需求添加磁盘即可,无需更换原磁盘,方便用户对磁盘进行扩容,同时降低节点运行成本。
源代码:https://github.com/tronprotocol/java-tron/pull/4545 https://github.com/tronprotocol/java-tron/pull/4559 @@ -2495,7 +2560,7 @@
根据带宽消耗规则,如果交易发起者账户通过质押获得的带宽或者免费带宽不足时,将燃烧TRX来支付带宽费用,这时,在交易记录中仅记录带宽费用,而不记录带宽消耗量,为了了解历史交易的带宽消耗量,从GreatVoyage-v4.5.2(Aurelius)版本开始,新增历史带宽单价查询API /wallet/getbandwidthprices
,用户可以通过该接口获取到带宽代价的历史记录,从而可以计算出历史交易的带宽消耗量。
源代码:https://github.com/tronprotocol/java-tron/pull/4556
-GreatVoyage-v4.5.2(Aurelius)版本优化了区块同步逻辑,避免了在同步区块过程中不必要的节点断连,提高了节点稳定性。
源代码:https://github.com/tronprotocol/java-tron/pull/4542 @@ -2513,7 +2578,7 @@
GreatVoyage-v4.5.1(Tertullian)版本引入多个重要的优化更新,优化的交易缓存加载流程,加快了节点启动速度;优化的获取区块逻辑和轻节点同步逻辑,提升了节点的稳定性;优化的账户资产结构和TVM存储结构,提升了交易的处理速度,从而进一步提高了节点的性能;支持prometheus协议接口为用户带来更便捷的开发体验,有助于进一步繁荣波场生态。
-GreatVoyage-v4.5.1(Tertullian)之前版本,从节点启动到区块同步需要较长的时间,其中交易缓存的加载占用了大部分的节点启动时间。交易缓存被节点用来判断一个交易是否是重复的交易,因此在节点启动过程中,需要将交易缓存从数据库加载到内存,而在GreatVoyage-v4.5.1(Tertullian)之前的版本中,交易缓存的加载是以交易为存储单元进行数据库读取的,因此读取的数据量较大,整个读取过程较耗时。
为了加快节点启动速度,GreatVoyage-v4.5.1(Tertullian)版本优化了交易缓存的加载方式,通过以区块为存储单元进行数据库读取,减少了数据库读取的次数,提高了交易缓存加载的效率,提升了节点启动的速度。
@@ -2527,10 +2592,10 @@TIP: https://github.com/tronprotocol/tips/blob/master/tip-388.md 源代码: https://github.com/tronprotocol/java-tron/pull/4323
-GreatVoyage-v4.5.1(Tertullian)版本优化了区块广播逻辑,使fast farward节点只将区块广播到接下来将要出块的三个超级代表节点(广播到的超级代表节点的数量可以通过配置文件更改),以保证超级代表节点可以及时的获取到最新区块,提高了区块生产的效率。
源代码:https://github.com/tronprotocol/java-tron/pull/4336
-由于网络原因,节点有可能接收不到广播的新区块,在GreatVoyage-v4.5.1(Tertullian)之前的版本中,当获取区块超时后,节点将通过P2P同步流程来获取该区块,但是同步流程比较复杂并且耗时,因此,GreatVoyage-v4.5.1(Tertullian)版本优化了获取最新区块的流程,节点将首先根据各个节点的状态选择一个节点,然后直接发送区块获取消息FetchInvDataMessage
给该节点,来获取最新区块,这节省了区块同步过程中的大部分时间,加快了最新区块获取的速度,提高了节点的稳定性。
TIP: https://github.com/tronprotocol/tips/blob/master/tip-391.md 源代码:https://github.com/tronprotocol/java-tron/pull/4326
@@ -2538,7 +2603,7 @@TIP: https://github.com/tronprotocol/tips/blob/master/tip-369.md 源代码:https://github.com/tronprotocol/java-tron/pull/4337
-为了方便节点部署者进行数据备份或数据统计,从GreatVoyage-v4.5.1(Tertullian)版本开始,节点支持在特定的条件下停止运行,用户可以通过节点配置文件设置节点停止的条件,如节点停止的区块时间,区块高度,节点从启动到停止需要同步的区块数量。在满足设置的条件时,节点将停止运行。
TIP: https://github.com/tronprotocol/tips/blob/master/tip-370.md
源代码:https://github.com/tronprotocol/java-tron/pull/4325
GreatVoyage-v4.4.6(David)更新了使用的fastjson依赖库版本,保证了使用fastjson的安全性。
-由于fastjson1.2.80及之前的版本存在安全漏洞,因此,GreatVoyage-v4.4.6(David)版本将fastjson依赖库的版本更新到1.2.83,并且开启fastjson的safemode
模式,保证了使用fastjson的安全性。
源代码:https://github.com/tronprotocol/java-tron/pull/4393
@@ -2566,7 +2631,7 @@GreatVoyage-v4.4.5(Cicero)版本优化了节点的查询接口,使其过滤掉无效字段,保证了接口解析数据的稳定性。
-GreatVoyage-v4.5.0(Cicero)版本优化了节点的查询接口,在解析获取到的数据时,节点将过滤掉无效字段,保证接口数据的正常返回。
源代码: https://github.com/tronprotocol/java-tron/pull/4349
@@ -2576,12 +2641,12 @@GreatVoyage-v4.4.4(Plotinus)版本引入多个重要的优化更新,降低了节点对内存的占用;加快了节点启动速度;优化的网络服务、产块线程,提升了节点的稳定性;改进的版本升级机制,实现了更高效的分散治理;TVM支持多版本程序执行器,使其更好的兼容EVM,为用户带来更便捷的开发体验,有助于进一步繁荣波场生态。
-GreatVoyage-v4.4.4(Plotinus)之前的版本,节点从启动到区块同步,需要执行约一分钟左右,区块同步线程首先会延迟30s来等待P2P线程发现其他远端节点, 然后与发现的节点建立TCP链接,最后进行区块同步,而这段延迟时间占据了大部分的启动时间。实际上每一次新发现的节点都会被持久化到本地,所以第二次节点启动时无需花额外时间去等待节点发现,完全可以使用之前持久化到本地的节点进行TCP连接, 因此从GreatVoyage-v4.4.4(Plotinus)版本开始,将等待节点发现的时间从30s降低到100ms, 以提升节点启动的速度。
TIP: https://github.com/tronprotocol/tips/blob/master/tip-366.md 源代码: https://github.com/tronprotocol/java-tron/pull/4254
-节点在广播交易时,为了避免重复广播,会将相应的交易存储到广播数据缓存池中, 但是由于JVM的回收策略限制,旧的缓存数据不能被及时删除,直至缓存池被占满才会触发旧数据回收,因此,容量较大的缓存池将极大的占用内存。在GreatVoyage-v4.4.4(Plotinus)之前的版本中,交易缓存池大小为100000笔。为了及时释放过期交易所占内存,GreatVoyage-v4.4.4(Plotinus)版本将交易缓存池大小更改为20000笔,以减少内存占用。
TIP: https://github.com/tronprotocol/tips/blob/master/tip-362.md 源代码: https://github.com/tronprotocol/java-tron/pull/4250
@@ -2593,11 +2658,11 @@源代码:https://github.com/tronprotocol/java-tron/pull/4257 https://github.com/tronprotocol/java-tron/pull/4259
-GreatVoyage-v4.4.4(Plotinus)版本修改了节点日志保留的时间,从3天增加到7天,以方便用户排查问题。
源代码:https://github.com/tronprotocol/java-tron/pull/4245
-GreatVoyage-v4.4.4(Plotinus)版本优化了网络服务关闭逻辑,先关闭同步服务,再关闭TCP连接服务,以确保所有P2P连接相关服务安全退出。
源代码:https://github.com/tronprotocol/java-tron/pull/4220
从GreatVoyage-v4.4.2(Augustinus)版本开始,根据数据库的读写频繁程度,对各个LevelDB数据库进行个性化参数设置,大幅提升数据库的性能。 源代码:https://github.com/tronprotocol/java-tron/pull/4154
@@ -2629,7 +2694,7 @@GreatVoyage-v4.4.0(Rousseau)版本引入了多个重要的更新:区块广播的优化将使区块可以更快的广播到全网;dynamic store
的查询性能优化以及数据库参数的优化将大幅提升区块处理速度,进而提升java-tron的性能;节点API定制化使得节点配置更加灵活以适应不同的应用场景;TVM也将更好的兼容EVM并适配以太坊London升级,全新的JSON-RPC API将为开发者们带来更好的开发体验,帮助开发者们更容易的加入到波场生态,促进波场生态繁荣。
在GreatVoyage-v4.4.0(Rousseau)之前的版本中,区块处理的逻辑是:验证区块->处理区块->广播区块。但由于区块处理时间较长,广播区块时有延迟。为了加快区块广播,GreatVoyage-v4.4.0(Rousseau)版本将区块处理逻辑更改为:验证区块->广播区块->处理区块,以使区块可以快速广播至全网。
TIP: https://github.com/tronprotocol/tips/blob/master/tip-289.md @@ -2641,7 +2706,7 @@
dynamic store
的查询性能3. 优化交易广播接口¶GreatVoyage-v4.4.0(Rousseau)版本优化了交易广播接口的处理流程,将交易广播由异步转为同步,广播成功后再返回结果,使得广播的返回结果更为准确。
源代码:https://github.com/tronprotocol/java-tron/pull/4000
-GreatVoyage-v4.4.0(Rousseau)版本优化了部分数据库参数,提升了数据库读写性能,从而提升了区块处理效率。
源代码:https://github.com/tronprotocol/java-tron/pull/4018 https://github.com/tronprotocol/java-tron/pull/3992
TriggerConstantContract
- callvalue
和 tokenvalue
非零值将不会产生执行异常
- TransactionExtention
中增加事件列表和内部交易列表
源代码: https://github.com/tronprotocol/java-tron/pull/4032
-BTTC
¶GreatVoyage-v4.4.0(Rousseau)中升级了事件插件,升级后的事件插件将支持BTTC
。
源代码:https://github.com/tronprotocol/java-tron/pull/4067
@@ -2693,7 +2758,7 @@start.sh
GreatVoyage-4.3.0(Bacon)¶
GreatVoyage-v4.3.0(Bacon)版本引入多个重要的优化更新,FREE_NET_LIMIT
和 TOTAL_NET_LIMIT
的可配置化有助于TRON社区完成更好的链上治理;全新的TVM指令和ABI类型使智能合约的使用场景更加丰富;全新的加密算法库提高了TRON网络的安全性;Account数据存储、交易验证流程的优化提升了交易处理速度和区块验证速度,从而大幅提高TRON网络的性能;节点启动速度的优化将为用户带来更好的体验,进一步繁荣波场生态。
在GreatVoyage-v4.3.0(Bacon)之前的版本中,账户每天的免费带宽额度固定为5000。GreatVoyage-v4.3.0(Bacon)版本增加了#61提案 FREE_NET_LIMIT
,使免费带宽额度可配置。超级代表和超级合伙人可针对61号提案发起投票请求来修改FREE_NET_LIMIT
,FREE_NET_LIMIT
的范围是[0, 100,000]
TransactionExtention
由于SpongyCastle已经不再被维护,从GreatVoyage-v4.3.0(Bacon)版本开始,采用Bouncy Castle作为加密算法的程序库。
GreatVoyage-v4.3.0(Bacon)之前的版本里,在节点启动过程中,会读取数据库中的交易缓存数据和区块数据来完成内存交易缓存的初始化。 在GreatVoyage-v4.3.0(Bacon)版本优化了内存交易缓存的初始化流程,去掉了一些不必要的解析过程, 优化后将提升节点启动的速度。
GreatVoyage-v4.3.0(Bacon)版本中,优化了交易处理流程,提前释放了不需要再使用的对象,优化内存使用。
GreatVoyage-v4.2.2.1(Epictetus) 版本已发布, 主要新功能和修改如下:
-pending transaction
的处理逻辑。¶在GreatVoyage-v4.2.2.1(Epictetus) 之前的版本中,如果节点如果开启了事件订阅服务,会有小概率发生节点同步异常的问题。
GreatVoyage-v4.2.2.1(Epictetus) 版本对pending transaction
的处理逻辑进行了优化,修复了该同步异常的问题,提升了事件订阅服务的稳定性。
pending transaction
的处
GreatVoyage-v4.2.2(Lucretius)版本引入了3个重要的优化更新,区块处理的优化有效得提高区块的执行速度,从而大幅提高TRON网络的性能,高效的HTTP/RPC查询和更高性能TVM将为TRON DAPP用户带来更好的体验,进一步繁荣波场生态。
-在GreatVoyage-v4.2.2(Lucretius)之前的版本中,区块处理过程中为了获取witness列表,执行了多次数据库查询和反序列化操作,这部分操作占用了近1/3的区块处理时间。
GreatVoyage-v4.2.2(Lucretius)版本简化了witness的查询,区块处理过程只需一次查询即可获取witness列表,经过测试,本次优化大幅提升了区块处理性能。
@@ -2805,7 +2870,7 @@在GreatVoyage-v4.2.2(Lucretius)之前的版本中,多个HTTP或RPC对链上数据的查询是互斥的,如果有查询请求正在处理,新的查询请求会等待之前的请求完成以后才会被处理。
实际上,查询数据的方法中并没有使用到共享数据, 所以并不需要加锁操作。本次优化去除了查询过程中不必要的同步锁,大幅提高了节点内部查询、HTTP和RPC的查询请求性能。
BatchValidateSign
的初始化流程。¶BatchValidateSign
GreatVoyage-4.2.0(Plato)版本引入了2个重要的更新,资源模型的优化将大福提升波场网络资源使用率,使资源获取方式更加合理。全新的TVM指令使智能合约的使用场景更加丰富,将进一步丰富波场生态。
-GreatVoyage-4.2.0(Plato)版本之前,用户通过质押TRX获取大额投票权的同时,也获得了大量的能量和带宽,而这部分资源的使用率极低,大多数处于闲置状态,增加了开发者们获取资源的成本,为了提高资源的利用率,GreatVoyage-4.2.0(Plato)版本提出了一种新的资源优化模型,质押TRX只获得带宽,能量,投票权三种资源中的一种,用户可以根据自己的需求获取相应的资源,从而提升资源的利用率。
GreatVoyage-4.1.3(Thales)版本主要有以下新功能和修改:
-在GreatVoyage-4.1.2及之前版本中,SR打包交易是按照交易到达的时间顺序进行的,这很容易受到低交易费用的攻击。
本次优化后,出块节点根据费用对待打包的交易进行排序,然后优先打包费用较高的交易, 防止低交易费用攻击。
@@ -2878,14 +2943,14 @@GreatVoyage-4.1.2版本发布, 本次升级主要有以下新功能和修改:
-该功能开启后,燃烧带宽/燃烧能量(OUT_OF_TIME除外)的手续费将转入到TRANSACTION_FEE_POOL,在块中所有交易处理完成后,按照SR设定的比例转发给当前产块SR及该SR的投票者。同时在transactioninfo中,增加packingFee字段,用于表示当前产块SR和该SR的投票者可获取的费用。
-账户历史余额查询功能可以方便开发者查询账户在特定区块高度的余额信息,开发者可以通过以下两个API获取到账户的历史余额信息。
GreatVoyage-4.1.1版本发布, 本次升级主要有以下新功能和修改:
-新的共识机制将波场现有的DPOS共识同PBFT共识机制进行结合,在区块固化阶段采用PBFT的三阶段投票机制进行确认。波场区块从生产出来到固化确认的时间将从原来的19个区块时间(1个区块时间为3s)缩短至平均1~2个区块时间,区块确认速度大幅提升。 - TIP: TICP-Optimized-PBFT - 源代码: #3082
-在现有FullNode的基础上新增了一种节点类型:Lite FullNode。Lite FullNode和普通的FullNode运行同样的代码,所不同的是Lite FullNode是基于状态数据快照进行启动,状态数据快照包含所有的状态数据和最近的256个区块的历史数据。 状态数据快照可以通过执行LiteFullNodeTool.jar进行获得(请参考:如何使用LiteFullNode Tool)。 - TIP: TIP-128 - 源代码: #3031
a. 增加新的指令CHAINID,用于获取当前链的创世区块id,防止交易在不同链上潜在的重放攻击风险。 - TIP: TIP-174 - 源代码: #3351
@@ -2946,11 +3011,11 @@1、增加了两个新的系统合约MarketSellAssetContract和MarketCancelOrderContract用于支持TRX、TRC10资产在链上去中心化交易所进行交易。 - TIP: TIP-127 - 源代码: #3302
-1、增加了多个节点性能指标数据。 - 源代码: #3350
2、在原有的transactionInfo接口中增加了市场订单详情的信息。 @@ -2966,9 +3031,9 @@
该版本为强制升级
-verifyMintProof
, verifyTransferProof
, verifyBurnProof
和 pedersenHash
)以支持基于零知识证明的TRC20 匿名交易(#3172)。verifyMintProof
: 用于验证 mint 函数的零知识证明。getTransactioninfoByBlkNum
异常,增加检查 getInstance 是否为空值(#3165)。奥德赛 3.7 版本为非强制升级,包含以下新功能和改进。
-奥德赛 3.7 进行了代码组织结构的模块化工作,方便开发者对模块进行自定义开发。几个主要模块如下:
-作为核心模块,框架模块既是区块链的入口,也将其他所有模块紧密地连接在一起。换言之,框架模块负责各个模块的初始化和模块之间的通信。
-去中心化波场协议可由任何团队实现,不受编程语言限制。所有遵循波场协议的客户端都能相互通信。 简洁高效的数据传输协议对分布式网络来说至关重要,对区块链而言则更甚。因此,该协议是基于谷歌(Google)的优质开源软件协议 Protocol Buffers 实现的。 协议所定义的区块链具体业务逻辑包括: - 消息的数据格式,包括区块、交易、提议、见证人、投票、账户、交易所等等。 - 区块链节点间的通信协议,包括节点发现协议、节点数据同步协议、节点打分协议等。 - 区块链为外部系统或客户端提供的接口协议。
-共识机制是区块链的重要组成部分。波场区块链采用 DPoS 作为核心共识机制,长期以来运行稳定。但是,要想将 Java-tron 改造成为强大的基础设施,支持搭建用于实际应用场景的区块链,我们就必须为其装备可替换的共识模块。 区块链开发者应选取最适合具体应用情景的共识机制。利用可替换的共识模块,我们的终极目标是使共识机制可以通过设置一些必要参数来决定。除此之外,只要实现几个必要的接口,开发者即可自定义共识模块。
-作为区块链的核心模块之一,加密是区块链数据安全的基础, 应用于公钥和私钥的推论、交易验证和零知识证明等。Java-tron 对加密模块进行了抽象化,并支持替换加密算法,可以根据不同的业务需求选择合适的加密算法。
-执行器是用于处理各种交易的核心模块。众所周知,波场区块链上的每一笔交易都包含一个合约。总体而言,波场区块链共有两种合约:系统合约和智能合约。大量应用程序通过智能合约实现,在区块链的内部虚拟机中运行。然而,智能合约在功能性和灵活性方面仍受限制,无法满足复杂应用程序的要求。自定义的执行器则为应用程序开发者提供了一种全新的开发方式。他们可以选择将应用程序的代码植入链内,而不用在虚拟机上运行。
-内存数据库专为区块链数据储存而设计。节点始终认为最长链是正确的区块链,并会持续将其延长。除非采用类似 PBFT 的确定性共识算法,目前区块链领域的常见做法是切换到最长链。因此,支持数据回滚是内存数据库模块最突出的功能。该模块中定义了几个设计精细的抽象接口,开发者可以自由选择存储引擎,实现对应的接口。现有的两个实现方案是 LevelDB 和 RocksDB。
-添加了用于更新固化块的订阅触发器,该触发器触发了固化块更新事件到消息队列,以便用户可以及时获取最新的固化块信息。固化块是指不可撤销的区块。所以,当一个区块变成固化块后,打包在该区块内的交易即被区块链接受。
gettransactioninfobyblocknum
@@ -3061,7 +3126,7 @@新的抵押机制提供了为SR设置佣金的功能,SR可以自行设置佣金比例,这样用户在为SR投票时可以进行参考,同时SR的佣金比例可以在链上进行查询,将使用户获得的投票奖励数额更加透明。另外,新的抵押机制为下一步进行更加复杂的共识机制和激励计划提供了实现基础。
-股权收益的分发从原来的部分去中心化方式变为完全去中心化的方式。一方面,股权收益的分发完全在区块链上进行,完全保证分发过程受到链的监督,是完全去中心化的;另一方面,减少了不必要的股权分红交易,从而减少了带宽消耗,波场网络的运行将更有效率。
出块奖励从原来的32TRX调整为16TRX,投票奖励从原来的16TRX提升为160TRX,这样大大促进了社区用户参与投票的热情,增加波场生态用户的锁仓率。同时结合新的股权分红机制,保证用户能够切实收到股权收益。
@@ -3074,7 +3139,7 @@将单位时间内能量的消耗统计方式由只统计质押的能量消耗调整为统计所有能量的消耗。这样统计的能量消耗数据更加精确有效,为能量上限的调整提供依据,有利于降低用户使用波场区块链网络的成本,提高波场网络的效率。
diff --git a/search/search_index.json b/search/search_index.json index cec0814..227ff6c 100644 --- a/search/search_index.json +++ b/search/search_index.json @@ -1 +1 @@ -{"config":{"indexing":"full","lang":["en"],"min_search_length":3,"prebuild_index":false,"separator":"[\\s\\-]+"},"docs":[{"location":"","text":"\u6b22\u8fce\u8bbf\u95eeJava-tron\u7528\u6237\u624b\u518c! \u00b6 Java-tron\u662f\u7528Java\u7f16\u5199\u7684TRON\u7f51\u7edc\u5ba2\u6237\u7aef\uff0c\u5b8c\u5168\u5f00\u6e90\uff0c\u60a8\u53ef\u4ee5\u5728Github\u4e0a\u4e0b\u8f7d Java-tron\u6e90\u4ee3\u7801 \u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u4e0eJava-tron\u76f8\u5173\u7684\u77e5\u8bc6\uff0c\u901a\u8fc7\u672c\u6587\u60a8\u5c06\u4e86\u89e3\u5230\u5982\u4f55\u4f7f\u7528Java-tron\u3001\u5982\u4f55\u53c2\u4e0eJava-tron\u7684\u5f00\u53d1\u4e0e\u7ef4\u62a4\uff0c\u5177\u4f53\u5305\u542b\u5982\u4e0b\u51e0\u4e2a\u90e8\u5206\uff1a Java-tron\u5165\u95e8 \u4f7f\u7528Java-tron \u6838\u5fc3\u534f\u8bae Java-tron\u5f00\u53d1 DAPP\u5f00\u53d1 APIs Wallet-CLI \u5173\u4e8e\u5176\u5b83TRON\u76f8\u5173\u77e5\u8bc6\uff0c\u8bf7\u8bbf\u95ee\u5b98\u7f51 tron.network \u6216\u8005\u4ee5\u4e0b\u8d44\u6e90\u94fe\u63a5: TRON Whitepaper TRON Architecture TRON Improvement Proposals (TIPs) TRON Developer Hub","title":"\u6b22\u8fce\u8bbf\u95eeJava-tron\u7528\u6237\u624b\u518c!"},{"location":"#java-tron","text":"Java-tron\u662f\u7528Java\u7f16\u5199\u7684TRON\u7f51\u7edc\u5ba2\u6237\u7aef\uff0c\u5b8c\u5168\u5f00\u6e90\uff0c\u60a8\u53ef\u4ee5\u5728Github\u4e0a\u4e0b\u8f7d Java-tron\u6e90\u4ee3\u7801 \u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u4e0eJava-tron\u76f8\u5173\u7684\u77e5\u8bc6\uff0c\u901a\u8fc7\u672c\u6587\u60a8\u5c06\u4e86\u89e3\u5230\u5982\u4f55\u4f7f\u7528Java-tron\u3001\u5982\u4f55\u53c2\u4e0eJava-tron\u7684\u5f00\u53d1\u4e0e\u7ef4\u62a4\uff0c\u5177\u4f53\u5305\u542b\u5982\u4e0b\u51e0\u4e2a\u90e8\u5206\uff1a Java-tron\u5165\u95e8 \u4f7f\u7528Java-tron \u6838\u5fc3\u534f\u8bae Java-tron\u5f00\u53d1 DAPP\u5f00\u53d1 APIs Wallet-CLI \u5173\u4e8e\u5176\u5b83TRON\u76f8\u5173\u77e5\u8bc6\uff0c\u8bf7\u8bbf\u95ee\u5b98\u7f51 tron.network \u6216\u8005\u4ee5\u4e0b\u8d44\u6e90\u94fe\u63a5: TRON Whitepaper TRON Architecture TRON Improvement Proposals (TIPs) TRON Developer Hub","title":"\u6b22\u8fce\u8bbf\u95eeJava-tron\u7528\u6237\u624b\u518c!"},{"location":"glossary/","text":"\u672f\u8bed\u8868 \u00b6 energyUsage \u6b64\u6b21\u8c03\u7528\u4e2d\uff0c\u5408\u7ea6\u8c03\u7528\u8005\u6d88\u8017\u7684Energy\u7684\u603b\u91cf energyFee \u6b64\u6b21\u8c03\u7528\u4e2d\uff0c\u5408\u7ea6\u8c03\u7528\u8005\u6d88\u8017\u7684Energy\u4e2d\uff0c\u9700\u8981TRX\u652f\u4ed8\u7684\u6570\u76ee(SUN\u4e3a\u5355\u4f4d) originEnergyUsage \u6b64\u6b21\u8c03\u7528\u4e2d\uff0c\u5408\u7ea6\u5f00\u53d1\u8005\u6d88\u8017\u7684Energy\u7684\u603b\u91cf energyUsageTotal \u6b64\u6b21\u8c03\u7528\u4e2d\uff0c\u5408\u7ea6\u8c03\u7528\u8005\u548c\u5408\u7ea6\u5f00\u53d1\u8005\u6d88\u8017\u7684Energy\u7684\u603b\u91cf Feelimit \u7528\u6237\u5728\u8c03\u7528\u6216\u8005\u521b\u5efa\u667a\u80fd\u5408\u7ea6\u65f6\uff0c\u6307\u5b9a\u7684\u6700\u9ad8\u53ef\u63a5\u53d7\u7684trx\u8d39\u7528\u6d88\u8017\uff0c\u5305\u542b\u6d88\u8017\u8d28\u62bc\u83b7\u5f97\u8d44\u6e90\u7684trx\u548c\u6d88\u8017\u7528\u6237\u672c\u8eab\u6301\u6709\u7684trx\u4e24\u90e8\u5206\uff0c\u4f18\u5148\u4f7f\u7528\u8d28\u62bc\u83b7\u5f97\u7684\u8d44\u6e90\u3002 CallValue \u7528\u6237\u5728\u667a\u80fd\u5408\u7ea6\u8c03\u7528\u6216\u521b\u5efa\u65f6\u7ed9\u667a\u80fd\u5408\u7ea6\u672c\u8eab\u7684\u8d26\u6237\u8f6c\u8d26\u7684trx\u6570\u91cf\uff0c\u5728\u5224\u65adfeelimit\u7684\u65f6\u5019\u4f1a\u629b\u53bb\u8fd9\u90e8\u5206\u7684\u503c\u3002 consume_user_resource_percent \u5bf9\u4e8e\u4e00\u4e2a\u667a\u80fd\u5408\u7ea6\u6765\u8bf4\uff0c\u4ed8\u8d39\u662f\u7531\u4e24\u5927\u90e8\u5206\u7ec4\u6210\u7684\u3002\u4e00\u90e8\u5206\u662f\u5408\u7ea6\u5f00\u53d1\u8005\u4ed8\u8d39\uff0c\u53e6\u4e00\u90e8\u5206\u662f\u7531\u5408\u7ea6\u8c03\u7528\u8005\u652f\u4ed8\u3002\u8fd9\u4e2a\u503c\u662f\u8c03\u7528\u8005\u4ed8\u8d39\u7684\u6bd4\u4f8b origin_energy_limit \u5f00\u53d1\u8005\u8bbe\u7f6e\u7684\u5728\u4e00\u6b21\u5408\u7ea6\u8c03\u7528\u8fc7\u7a0b\u4e2d\u81ea\u5df1\u6d88\u8017\u7684energy\u7684\u4e0a\u9650\uff0c\u5fc5\u987b\u5927\u4e8e0\u3002\u5bf9\u4e8e\u4e4b\u524d\u8001\u7684\u5408\u7ea6\uff0c\u6ca1\u6709\u63d0\u4f9b\u8bbe\u7f6e\u8be5\u503c\u7684\u53c2\u6570\uff0c\u4f1a\u5b58\u62100\uff0c\u4f46\u662f\u4f1a\u6309\u71671000\u4e07energy\u4e0a\u9650\u8ba1\u7b97\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u901a\u8fc7updateEnergyLimit\u63a5\u53e3\u91cd\u65b0\u8bbe\u7f6e\u8be5\u503c\uff0c\u8bbe\u7f6e\u65b0\u503c\u65f6\u4e5f\u5fc5\u987b\u5927\u4e8e0 net_usage \u672c\u6b21\u5408\u7ea6\u6d88\u8017\u7684Bandwidth(\u4e0d\u5305\u542bNetFee\u5bf9\u5e94\u7684) net_fee \u672c\u6b21\u5408\u7ea6\u56e0Bandwidth\u4e0d\u8db3\u6d88\u8017\u7684TRX Bandwidth \u5728\u6ce2\u573a\u7f51\u8def\u53d1\u8d77\u4ea4\u6613\u4f1a\u6d88\u8017\u5e26\u5bbd\uff0c\u6d88\u8017\u5e26\u5bbd\u7684\u591a\u5c11\u53d6\u51b3\u4e8e\u4ea4\u6613\u7684\u5b57\u8282\u6570\u5927\u5c0f\u3002\u4f8b\u5982\uff0c\u4ea4\u6613\u5927\u5c0f\u4e3a100\u4e2a\u5b57\u8282\uff0c\u90a3\u4e48\u5e7f\u64ad\u4ea4\u6613\u7684\u65f6\u5019\uff0c\u9700\u8981\u6d88\u8017100\u5355\u4f4d\u7684\u5e26\u5bbd\u3002 Energy \u5408\u7ea6\u7684\u90e8\u7f72\u4e0e\u8fd0\u884c\u9700\u8981\u6d88\u8017\u80fd\u91cf\u3002\u80fd\u91cf\u4ee3\u8868CPU\u8d44\u6e90\u7684\u6d88\u8017\uff0c1 Energy = 1 Microsecond (\u03bcs)\u3002 \u4f8b\u5982\uff0c\u4e00\u4e2a\u5408\u7ea6\u7684\u6267\u884c\u9700\u8981100\u03bcs\uff0c\u90a3\u4e48\u9700\u8981\u6d88\u8017100\u5355\u4f4d\u7684\u80fd\u91cf\u3002 TRON Power(TP) \u6bcf\u8d28\u62bc\u4e00\u4e2aTRX\uff0c\u53ef\u4ee5\u83b7\u5f97\u4e00\u4e2aTP\u3002 1\u4e2aTP\u4ee3\u8868\u4e00\u4e2a\u6295\u7968\u6743\u3002 Super Representative(SR) \u76ee\u524d\u6b63\u5728\u51fa\u5757\u7684\u524d27\u540d\u8282\u70b9\u3002","title":"\u672f\u8bed\u8868"},{"location":"glossary/#_1","text":"energyUsage \u6b64\u6b21\u8c03\u7528\u4e2d\uff0c\u5408\u7ea6\u8c03\u7528\u8005\u6d88\u8017\u7684Energy\u7684\u603b\u91cf energyFee \u6b64\u6b21\u8c03\u7528\u4e2d\uff0c\u5408\u7ea6\u8c03\u7528\u8005\u6d88\u8017\u7684Energy\u4e2d\uff0c\u9700\u8981TRX\u652f\u4ed8\u7684\u6570\u76ee(SUN\u4e3a\u5355\u4f4d) originEnergyUsage \u6b64\u6b21\u8c03\u7528\u4e2d\uff0c\u5408\u7ea6\u5f00\u53d1\u8005\u6d88\u8017\u7684Energy\u7684\u603b\u91cf energyUsageTotal \u6b64\u6b21\u8c03\u7528\u4e2d\uff0c\u5408\u7ea6\u8c03\u7528\u8005\u548c\u5408\u7ea6\u5f00\u53d1\u8005\u6d88\u8017\u7684Energy\u7684\u603b\u91cf Feelimit \u7528\u6237\u5728\u8c03\u7528\u6216\u8005\u521b\u5efa\u667a\u80fd\u5408\u7ea6\u65f6\uff0c\u6307\u5b9a\u7684\u6700\u9ad8\u53ef\u63a5\u53d7\u7684trx\u8d39\u7528\u6d88\u8017\uff0c\u5305\u542b\u6d88\u8017\u8d28\u62bc\u83b7\u5f97\u8d44\u6e90\u7684trx\u548c\u6d88\u8017\u7528\u6237\u672c\u8eab\u6301\u6709\u7684trx\u4e24\u90e8\u5206\uff0c\u4f18\u5148\u4f7f\u7528\u8d28\u62bc\u83b7\u5f97\u7684\u8d44\u6e90\u3002 CallValue \u7528\u6237\u5728\u667a\u80fd\u5408\u7ea6\u8c03\u7528\u6216\u521b\u5efa\u65f6\u7ed9\u667a\u80fd\u5408\u7ea6\u672c\u8eab\u7684\u8d26\u6237\u8f6c\u8d26\u7684trx\u6570\u91cf\uff0c\u5728\u5224\u65adfeelimit\u7684\u65f6\u5019\u4f1a\u629b\u53bb\u8fd9\u90e8\u5206\u7684\u503c\u3002 consume_user_resource_percent \u5bf9\u4e8e\u4e00\u4e2a\u667a\u80fd\u5408\u7ea6\u6765\u8bf4\uff0c\u4ed8\u8d39\u662f\u7531\u4e24\u5927\u90e8\u5206\u7ec4\u6210\u7684\u3002\u4e00\u90e8\u5206\u662f\u5408\u7ea6\u5f00\u53d1\u8005\u4ed8\u8d39\uff0c\u53e6\u4e00\u90e8\u5206\u662f\u7531\u5408\u7ea6\u8c03\u7528\u8005\u652f\u4ed8\u3002\u8fd9\u4e2a\u503c\u662f\u8c03\u7528\u8005\u4ed8\u8d39\u7684\u6bd4\u4f8b origin_energy_limit \u5f00\u53d1\u8005\u8bbe\u7f6e\u7684\u5728\u4e00\u6b21\u5408\u7ea6\u8c03\u7528\u8fc7\u7a0b\u4e2d\u81ea\u5df1\u6d88\u8017\u7684energy\u7684\u4e0a\u9650\uff0c\u5fc5\u987b\u5927\u4e8e0\u3002\u5bf9\u4e8e\u4e4b\u524d\u8001\u7684\u5408\u7ea6\uff0c\u6ca1\u6709\u63d0\u4f9b\u8bbe\u7f6e\u8be5\u503c\u7684\u53c2\u6570\uff0c\u4f1a\u5b58\u62100\uff0c\u4f46\u662f\u4f1a\u6309\u71671000\u4e07energy\u4e0a\u9650\u8ba1\u7b97\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u901a\u8fc7updateEnergyLimit\u63a5\u53e3\u91cd\u65b0\u8bbe\u7f6e\u8be5\u503c\uff0c\u8bbe\u7f6e\u65b0\u503c\u65f6\u4e5f\u5fc5\u987b\u5927\u4e8e0 net_usage \u672c\u6b21\u5408\u7ea6\u6d88\u8017\u7684Bandwidth(\u4e0d\u5305\u542bNetFee\u5bf9\u5e94\u7684) net_fee \u672c\u6b21\u5408\u7ea6\u56e0Bandwidth\u4e0d\u8db3\u6d88\u8017\u7684TRX Bandwidth \u5728\u6ce2\u573a\u7f51\u8def\u53d1\u8d77\u4ea4\u6613\u4f1a\u6d88\u8017\u5e26\u5bbd\uff0c\u6d88\u8017\u5e26\u5bbd\u7684\u591a\u5c11\u53d6\u51b3\u4e8e\u4ea4\u6613\u7684\u5b57\u8282\u6570\u5927\u5c0f\u3002\u4f8b\u5982\uff0c\u4ea4\u6613\u5927\u5c0f\u4e3a100\u4e2a\u5b57\u8282\uff0c\u90a3\u4e48\u5e7f\u64ad\u4ea4\u6613\u7684\u65f6\u5019\uff0c\u9700\u8981\u6d88\u8017100\u5355\u4f4d\u7684\u5e26\u5bbd\u3002 Energy \u5408\u7ea6\u7684\u90e8\u7f72\u4e0e\u8fd0\u884c\u9700\u8981\u6d88\u8017\u80fd\u91cf\u3002\u80fd\u91cf\u4ee3\u8868CPU\u8d44\u6e90\u7684\u6d88\u8017\uff0c1 Energy = 1 Microsecond (\u03bcs)\u3002 \u4f8b\u5982\uff0c\u4e00\u4e2a\u5408\u7ea6\u7684\u6267\u884c\u9700\u8981100\u03bcs\uff0c\u90a3\u4e48\u9700\u8981\u6d88\u8017100\u5355\u4f4d\u7684\u80fd\u91cf\u3002 TRON Power(TP) \u6bcf\u8d28\u62bc\u4e00\u4e2aTRX\uff0c\u53ef\u4ee5\u83b7\u5f97\u4e00\u4e2aTP\u3002 1\u4e2aTP\u4ee3\u8868\u4e00\u4e2a\u6295\u7968\u6743\u3002 Super Representative(SR) \u76ee\u524d\u6b63\u5728\u51fa\u5757\u7684\u524d27\u540d\u8282\u70b9\u3002","title":"\u672f\u8bed\u8868"},{"location":"api/http/","text":"HTTP API \u63a5\u53e3 \u00b6 \u672c\u7ae0\u8282\u4ecb\u7ecd\u8282\u70b9\u7684HTTP API\u53ca\u5176\u7528\u6cd5\u3002 \u6ce8\u610f \u5c3d\u7ba1\u6ce2\u573a\uff08TRON\uff09\u901a\u8fc7\u5c06 HTTP API \u7684 Content-Type \u8bbe\u7f6e\u4e3a application/json \u907f\u514d\u4e86 XSS \u653b\u51fb\uff0c\u4f46\u4ecd\u6709\u4e00\u4e9b API \u6ca1\u6709\u8f93\u5165\u9a8c\u8bc1\u3002\u4e3a\u4e86\u66f4\u597d\u5730\u4fdd\u62a4\u7528\u6237\u6570\u636e\u5b89\u5168\uff0c\u6211\u4eec\u5efa\u8bae\u60a8\u5728\u4f7f\u7528 API \u7684\u4efb\u4f55\u6570\u636e\u4e4b\u524d\uff0c\u5148\u5bf9\u5176\u8fdb\u884c\u6b63\u786e\u7f16\u7801\uff08\u5c24\u5176\u662f\u5f53\u53c2\u6570'visible'\u4e3atrue\u65f6\uff09\u3002 \u4ee5\u4e0b\u662f\u4e00\u79cd\u5178\u578b\u7684 XSS \u9632\u62a4\u65b9\u6cd5\uff1a\u5bf9\u6765\u81ea API \u7684\u6240\u6709\u6570\u636e\u5728 HTML \u4e2d\u8fdb\u884c\u7f16\u7801\u3002\u4f7f\u7528\u8bf8\u5982 encodeURIComponent() \u6216 escape() \u7b49\u65b9\u6cd5\u5bf9\u6570\u636e\u8fdb\u884c\u7f16\u7801\uff0c\u8fd9\u53ef\u4ee5\u5c06\u7279\u6b8a\u5b57\u7b26\u8f6c\u6362\u4e3a\u5176 HTML \u5b9e\u4f53\uff0c\u9632\u6b62\u6d4f\u89c8\u5668\u5c06\u5176\u89e3\u91ca\u4e3a HTML \u4ee3\u7801\u3002 \u8bf7\u52a1\u5fc5\u4e3a\u6765\u81ea API \u7684\u6240\u6709\u6570\u636e\u5b9e\u65bd XSS \u9632\u62a4\uff0c\u4ee5\u786e\u4fdd\u7528\u6237\u6570\u636e\u7684\u5b89\u5168\u3002\u6211\u4eec\u4e86\u89e3\u60a8\u53ef\u80fd\u9700\u8981\u6709\u5173 XSS \u9632\u62a4\u7684\u66f4\u591a\u4fe1\u606f\u3002\u5efa\u8bae\u60a8\u53c2\u8003\u4ee5\u4e0b\u8d44\u6e90\uff1a OWASP XSS Prevention Cheat Sheet \u3002 \u9996\u5148\uff0c\u5bf9HTTP API\u4e2d\u5730\u5740\u683c\u5f0f\u7684\u9009\u62e9\u8fdb\u884c\u8bf4\u660e\uff1aTRON\u7f51\u7edc\u8d26\u6237\u5730\u5740\u683c\u5f0f\u6709\u4e24\u79cd\uff1aHexString\u683c\u5f0f\u548cBase58\u683c\u5f0f\u3002\u8282\u70b9HTTP API\u652f\u6301\u5730\u5740\u683c\u5f0f\u9009\u62e9\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7visible\u53c2\u6570\u8bbe\u7f6e\u5730\u5740\u683c\u5f0f\uff0c\u9ed8\u8ba4\u503c\u4e3afalse\uff0c\u53c2\u6570\u53ca\u8fd4\u56de\u503c\u4e2d\u7684\u5730\u5740\u683c\u5f0f\u5747\u4e3ahex\u683c\u5f0f\uff0c\u5f53visible\u8bbe\u7f6e\u4e3atrue\u65f6\uff0c\u53c2\u6570\u53ca\u8fd4\u56de\u503c\u4e2d\u7684\u5730\u5740\u683c\u5f0f\u5747\u4e3aBase58\u683c\u5f0f\u3002\u5982\u679c\u53c2\u6570\u683c\u5f0f\u4e0evisible\u8bbe\u7f6e\u4e0d\u5339\u914d\uff0c\u5c06\u4f1a\u62a5\u9519\u3002\u8bbe\u7f6e\u65b9\u5f0f\uff1a \u5bf9\u4e8eGET\u65b9\u5f0f\u8bf7\u6c42\u63a5\u53e3\u6216\u8005\u4e0d\u9700\u8981\u53c2\u6570\u7684\u67e5\u8be2\u63a5\u53e3\uff0c\u901a\u8fc7\u5728url\u4e2d\u589e\u52a0\u53c2\u6570 visible=true http://127.0.0.1:8090/wallet/listexchanges?visible=true \u5bf9\u4e8ePOST\u65b9\u5f0f\u8bf7\u6c42\u63a5\u53e3\uff0c\u901a\u8fc7\u5728json\u7ed3\u6784\u4f53\u6700\u5916\u5c42\u4e2d\u589e\u52a0\u53c2\u6570 \"visible\": true curl - X POST h tt p : //127.0.0.1:8090/wallet/createtransaction -d ' { \"owner_address\" : \"TRGhNNfnmgLegT4zHNjEqDSADjgmnHvubJ\" , \"to_address\" : \"TJCnKsPa7y5okkXvQAidZBzqx3QyQ6sxMW\" , \"amount\" : 1000000 , \"visible\" : true } ' Fullnode HTTP API \u00b6 FullNode HTTP API\u5206\u7c7b\u5982\u4e0b: \u94fe\u4e0a\u8d26\u6237 \u8f6c\u8d26\u548c\u4ea4\u6613 \u8d26\u6237\u8d44\u6e90 \u67e5\u8be2\u94fe\u4e0a\u6570\u636e \u667a\u80fd\u5408\u7ea6 TRC-10\u901a\u8bc1 \u6295\u7968\u548cSR \u63d0\u6848 \u53bb\u4e2d\u5fc3\u5316\u4ea4\u6613\u6240 TRONZ \u533f\u540d\u667a\u80fd\u5408\u7ea6 Pending Pool \u94fe\u4e0a\u5e10\u6237 \u00b6 \u4e0b\u9762\u662f\u94fe\u4e0a\u8d26\u6237\u76f8\u5173API\uff1a wallet/validateaddress wallet/createaccount wallet/getaccount wallet/updateaccount wallet/accountpermissionupdate wallet/getaccountbalance wallet/setaccountid wallet/getaccountbyid wallet/validateaddress \u00b6 \u4f5c\u7528\uff1a\u68c0\u67e5\u5730\u5740\u662f\u5426\u6b63\u786e curl -X POST http://127.0.0.1:8090/wallet/validateaddress -d '{\"address\": \"4189139CB1387AF85E3D24E212A008AC974967E561\"}' \u53c2\u6570\u8bf4\u660e\uff1a\u5730\u5740\uff0c\u53ef\u4ee5\u662fbase58checksum\u3001hexString\u3001base64\u683c\u5f0f \u8fd4\u56de\u503c\uff1a\u5730\u5740\u6b63\u786e\u6216\u8005\u9519\u8bef wallet/createaccount \u00b6 \u4f5c\u7528\uff1a\u521b\u5efa\u8d26\u53f7\uff0c\u4e00\u4e2a\u5df2\u7ecf\u6fc0\u6d3b\u7684\u8d26\u53f7\u521b\u5efa\u4e00\u4e2a\u65b0\u8d26\u53f7\u3002\u5982\u679c\u521b\u5efa\u8005\u8d26\u53f7\u6709\u8db3\u591f\u7684\u901a\u8fc7\u8d28\u62bcTRX\u83b7\u5f97\u7684\u5e26\u5bbd\uff0c\u90a3\u4e48\u521b\u5efa\u8d26\u6237\u53ea\u4f1a\u6d88\u8017\u5e26\u5bbd\uff0c\u5426\u5219\uff0c\u4f1a\u70e7\u63890.1\u4e2aTRX\u6765\u652f\u4ed8\u5e26\u5bbd\u8d39\u7528\uff0c\u540c\u65f6\u9700\u8981\u989d\u5916\u652f\u4ed8 1 TRX\u7684\u521b\u5efa\u8d39\u7528 curl -X POST http://127.0.0.1:8090/wallet/createaccount -d '{\"owner_address\":\"41d1e7a6bc354106cb410e65ff8b181c600ff14292\", \"account_address\": \"41e552f6487585c2b58bc2c9bb4492bc1f17132cd0\"}' \u53c2\u6570\uff1a owner_address \u662f\u5df2\u7ecf\u6fc0\u6d3b\u7684\u8d26\u53f7\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f account_address \u662f\u65b0\u8d26\u53f7\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f\uff0c\u8fd9\u4e2a\u5730\u5740\u9700\u8981\u4e8b\u5148\u521b\u5efa\u597d Permission_id \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u672a\u7b7e\u540d\u7684\u521b\u5efa\u8d26\u53f7\u7684Transaction wallet/getaccount \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u4e00\u4e2a\u8d26\u6237\u7684\u4fe1\u606f curl -X POST http://127.0.0.1:8090/wallet/getaccount -d '{\"address\": \"41E552F6487585C2B58BC2C9BB4492BC1F17132CD0\"}' \u53c2\u6570\uff1a address \u8d26\u6237\u5730\u5740 \u8fd4\u56de\u503c\uff1aAccount\u5bf9\u8c61 wallet/updateaccount \u00b6 \u4f5c\u7528\uff1a\u4fee\u6539\u8d26\u53f7\u540d\u79f0 curl -X POST http://127.0.0.1:8090/wallet/updateaccount -d '{\"account_name\": \"0x7570646174654e616d6531353330383933343635353139\" ,\"owner_address\":\"41d1e7a6bc354106cb410e65ff8b181c600ff14292\"}' \u53c2\u6570\uff1a account_name \u662f\u8d26\u53f7\u540d\u79f0\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f owner_address \u662f\u8981\u4fee\u6539\u540d\u79f0\u7684\u8d26\u53f7\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f Permission_id \u53ef\u9009\u53c2\u6570, \u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u672a\u7b7e\u540d\u7684\u4fee\u6539\u540d\u79f0Transaction wallet/accountpermissionupdate \u00b6 \u4f5c\u7528\uff1a\u4fee\u6539\u8d26\u6237\u6743\u9650 curl -X POST http://127.0.0.1:8090/wallet/accountpermissionupdate -d '{ \"owner_address\": \"TRGhNNfnmgLegT4zHNjEqDSADjgmnHvubJ\", \"owner\": { \"type\": 0, \"permission_name\": \"owner\", \"threshold\": 1, \"keys\": [{ \"address\": \"TRGhNNfnmgLegT4zHNjEqDSADjgmnHvubJ\", \"weight\": 1 }] }, \"witness\": { \"type\": 1, \"permission_name\": \"witness\", \"threshold\": 1, \"keys\": [{ \"address\": \"TRGhNNfnmgLegT4zHNjEqDSADjgmnHvubJ\", \"weight\": 1 }] }, \"actives\": [{ \"type\": 2, \"permission_name\": \"active12323\", \"threshold\": 2, \"operations\": \"7fff1fc0033e0000000000000000000000000000000000000000000000000000\", \"keys\": [{ \"address\": \"TNhXo1GbRNCuorvYu5JFWN3m2NYr9QQpVR\", \"weight\": 1 }, { \"address\": \"TKwhcDup8L2PH5r6hxp5CQvQzZqJLmKvZP\", \"weight\": 1 }] }], \"visible\": true}' \u53c2\u6570\uff1a owner_address\uff1a\u521b\u5efa\u5408\u7ea6\u7684\u8d26\u6237\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f owner\uff1a\u8d26\u6237owner\u6743\u9650\u7684\u5206\u914d\u4fe1\u606f witness\uff1a\u51fa\u5757\u6743\u9650\u7684\u5206\u914d\u4fe1\u606f\uff0c\u5982\u679c\u4e0d\u662fwitness\uff0c\u4e0d\u9700\u8981\u8bbe\u7f6e actives\uff1a\u5176\u4ed6\u529f\u80fd\u6743\u9650\u7684\u5206\u914d\u4fe1\u606f \u8fd4\u56de\u503c:\u672a\u7b7e\u540d\u7684transaction wallet/getaccountbalance \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u8d26\u6237\u5386\u53f2\u4f59\u989d curl -X POST http://127.0.0.1:8090/wallet/getaccountbalance -d '{ \"account_identifier\": { \"address\": \"TLLM21wteSPs4hKjbxgmH1L6poyMjeTbHm\" }, \"block_identifier\": { \"hash\": \"0000000000010c4a732d1e215e87466271e425c86945783c3d3f122bfa5affd9\", \"number\": 68682 }, \"visible\": true }' \u53c2\u6570\uff1a \u8d26\u6237 address + \u533a\u5757 hash \u548c number\uff0c\u533a\u5757 hash \u548c number \u5fc5\u987b\u5339\u914d\u4e00\u81f4\u3002 \u8fd4\u56de\u503c\uff1a { \"balance\": 64086449348265042, \"block_identifier\": { \"hash\": \"0000000000010c4a732d1e215e87466271e425c86945783c3d3f122bfa5affd9\", \"number\": 68682 } } \u8fd4\u56de\u503c\u4e2d\u7684 block_identifier \u8868\u793a\u8d26\u6237\u4f59\u989d\u53d1\u751f\u53d8\u5316\u7684\u533a\u5757 wallet/setaccountid \u00b6 \u4f5c\u7528\uff1a\u8bbe\u7f6e\u4e00\u4e2a\u8d26\u6237\u7684accountID curl -X POST http://127.0.0.1:8090/wallet/setaccountid -d '{ \"owner_address\":\"41a7d8a35b260395c14aa456297662092ba3b76fc0\",\"account_id\":\"6161616162626262\"}' \u53c2\u6570\u8bf4\u660e\uff1a owner_address \uff1a\u662f\u4ea4\u6613\u5bf9\u521b\u5efa\u8005\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f account_id accountid,\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c:\u8bbe\u7f6eAccountID\u7684transaction wallet/getaccountbyid \u00b6 \u4f5c\u7528\uff1a\u901a\u8fc7accountId\u67e5\u8be2\u4e00\u4e2a\u8d26\u53f7\u7684\u4fe1\u606f curl -X POST http://127.0.0.1:8090/wallet/getaccountbyid -d '{\"account_id\":\"6161616162626262\"}' \u53c2\u6570\u8bf4\u660e\uff1a account_id \u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1aAccount\u5bf9\u8c61 \u8f6c\u8d26\u548c\u4ea4\u6613 \u00b6 \u4e0b\u9762\u662f\u8f6c\u8d26\u548c\u4ea4\u6613\u76f8\u5173API\uff1a wallet/createtransaction wallet/broadcasttransaction wallet/broadcasthex wallet/getsignweight wallet/getapprovedlist wallet/createtransaction \u00b6 \u4f5c\u7528\uff1a \u521b\u5efa\u4e00\u4e2a\u8f6c\u8d26\u7684Transaction\uff0c\u5982\u679c\u8f6c\u8d26\u7684to\u5730\u5740\u4e0d\u5b58\u5728\uff0c\u5219\u5728\u533a\u5757\u94fe\u4e0a\u521b\u5efa\u8be5\u8d26\u53f7 curl -X POST http://127.0.0.1:8090/wallet/createtransaction -d '{\"to_address\": \"41e9d79cc47518930bc322d9bf7cddd260a0260a8d\", \"owner_address\": \"41D1E7A6BC354106CB410E65FF8B181C600FF14292\", \"amount\": 1000 }' \u53c2\u6570\uff1a to_address \u662f\u8f6c\u8d26\u8f6c\u5165\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString owner_address \u662f\u8f6c\u8d26\u8f6c\u51fa\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString amount \u662f\u8f6c\u8d26\u6570\u91cf Permission_id \u53ef\u9009\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u672a\u7b7e\u540d\u7684\u8f6c\u8d26\u4ea4\u6613 wallet/broadcasttransaction \u00b6 \u4f5c\u7528\uff1a\u5bf9\u7b7e\u540d\u540e\u7684transaction\u8fdb\u884c\u5e7f\u64ad curl -X POST http://127.0.0.1:8090/wallet/broadcasttransaction -d '{\"signature\":[\"97c825b41c77de2a8bd65b3df55cd4c0df59c307c0187e42321dcc1cc455ddba583dd9502e17cfec5945b34cad0511985a6165999092a6dec84c2bdd97e649fc01\"],\"txID\":\"454f156bf1256587ff6ccdbc56e64ad0c51e4f8efea5490dcbc720ee606bc7b8\",\"raw_data\":{\"contract\":[{\"parameter\":{\"value\":{\"amount\":1000,\"owner_address\":\"41e552f6487585c2b58bc2c9bb4492bc1f17132cd0\",\"to_address\":\"41d1e7a6bc354106cb410e65ff8b181c600ff14292\"},\"type_url\":\"type.googleapis.com/protocol.TransferContract\"},\"type\":\"TransferContract\"}],\"ref_block_bytes\":\"267e\",\"ref_block_hash\":\"9a447d222e8de9f2\",\"expiration\":1530893064000,\"timestamp\":1530893006233}}' \u53c2\u6570\uff1a\u7b7e\u540d\u4e4b\u540e\u7684Transaction \u8fd4\u56de\u503c\uff1a\u5e7f\u64ad\u662f\u5426\u6210\u529f wallet/broadcasthex \u00b6 \u4f5c\u7528\uff1a\u5bf9\u7b7e\u540d\u540e\u7684transaction hex\u8fdb\u884c\u5e7f\u64ad curl -X POST http://127.0.0.1:8090/wallet/broadcasthex -d '{\"transaction\":\"0A8A010A0202DB2208C89D4811359A28004098A4E0A6B52D5A730802126F0A32747970652E676F6F676C65617069732E636F6D2F70726F746F636F6C2E5472616E736665724173736574436F6E747261637412390A07313030303030311215415A523B449890854C8FC460AB602DF9F31FE4293F1A15416B0580DA195542DDABE288FEC436C7D5AF769D24206412418BF3F2E492ED443607910EA9EF0A7EF79728DAAAAC0EE2BA6CB87DA38366DF9AC4ADE54B2912C1DEB0EE6666B86A07A6C7DF68F1F9DA171EEE6A370B3CA9CBBB00\"}' \u53c2\u6570\uff1a\u7b7e\u540d\u4e4b\u540e\u7684Transaction hex \u8fd4\u56de\u503c\uff1a\u5e7f\u64ad\u662f\u5426\u6210\u529f wallet/getsignweight \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u591a\u91cd\u7b7e\u540d\u7684\u4ea4\u6613\u7684\u76f8\u5173\u4fe1\u606f curl -X POST http://127.0.0.1:8090/wallet/getsignweight -d '{ \"signature\": [ \"e0bd4a60f1b3c89d4da3894d400e7e32385f6dd690aee17fdac4e016cdb294c5128b66f62f3947a7182c015547496eba95510c113bda2a361d811b829343c36501\", \"596ead6439d0f381e67f30b1ed6b3687f2bd53ce5140cdb126cfe4183235804741eeaf79b4e91f251fd7042380a9485d4d29d67f112d5387bc7457b355cd3c4200\" ], \"txID\": \"0ae84a8439f5aa8fd2c458879a4031a7452aebed8e6e99ffbccd26842d4323c4\", \"raw_data\": { \"contract\": [{ \"parameter\": { \"value\": { \"amount\": 1000000, \"owner_address\": \"TRGhNNfnmgLegT4zHNjEqDSADjgmnHvubJ\", \"to_address\": \"TJCnKsPa7y5okkXvQAidZBzqx3QyQ6sxMW\" }, \"type_url\": \"type.googleapis.com/protocol.TransferContract\" }, \"type\": \"TransferContract\" }], \"ref_block_bytes\": \"163d\", \"ref_block_hash\": \"77ef4ace148b05ba\", \"expiration\": 1555664823000, \"timestamp\": 1555664763418 }, \"raw_data_hex\": \"0a02163d220877ef4ace148b05ba40d8c5e5a6a32d5a69080112630a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412320a1541a7d8a35b260395c14aa456297662092ba3b76fc01215415a523b449890854c8fc460ab602df9f31fe4293f18c0843d2802709af4e1a6a32d\", \"visible\": true}' \u53c2\u6570\u8bf4\u660e\uff1a\u53c2\u6570\u6574\u4f53\u662f\u4e00\u4e2a\u5b8c\u6574\u7684\u4ea4\u6613 \u8fd4\u56de\u503c:\u5df2\u7b7e\u540d\u6743\u91cd\u662f\u5426\u8fbe\u5230\u9608\u503c\uff08\u5373\u662f\u5426\u6ee1\u8db3\u9a8c\u7b7e\u6807\u51c6\uff09\uff0c\u7b7e\u540d\u5730\u5740\u5217\u8868\uff0cpermission\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u5df2\u7b7e\u540d\u7684\u6743\u91cd\u53ca\u4ea4\u6613\u4fe1\u606f\u3002 wallet/getapprovedlist \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u591a\u91cd\u7b7e\u540d\u7684\u4ea4\u6613\u7684\u76f8\u5173\u4fe1\u606f curl -X POST http://127.0.0.1:8090/wallet/getapprovedlist -d '{ \"signature\": [ \"e0bd4a60f1b3c89d4da3894d400e7e32385f6dd690aee17fdac4e016cdb294c5128b66f62f3947a7182c015547496eba95510c113bda2a361d811b829343c36501\", \"596ead6439d0f381e67f30b1ed6b3687f2bd53ce5140cdb126cfe4183235804741eeaf79b4e91f251fd7042380a9485d4d29d67f112d5387bc7457b355cd3c4200\" ], \"txID\": \"0ae84a8439f5aa8fd2c458879a4031a7452aebed8e6e99ffbccd26842d4323c4\", \"raw_data\": { \"contract\": [{ \"parameter\": { \"value\": { \"amount\": 1000000, \"owner_address\": \"TRGhNNfnmgLegT4zHNjEqDSADjgmnHvubJ\", \"to_address\": \"TJCnKsPa7y5okkXvQAidZBzqx3QyQ6sxMW\" }, \"type_url\": \"type.googleapis.com/protocol.TransferContract\" }, \"type\": \"TransferContract\" }], \"ref_block_bytes\": \"163d\", \"ref_block_hash\": \"77ef4ace148b05ba\", \"expiration\": 1555664823000, \"timestamp\": 1555664763418 }, \"raw_data_hex\": \"0a02163d220877ef4ace148b05ba40d8c5e5a6a32d5a69080112630a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412320a1541a7d8a35b260395c14aa456297662092ba3b76fc01215415a523b449890854c8fc460ab602df9f31fe4293f18c0843d2802709af4e1a6a32d\", \"visible\": true}' \u53c2\u6570\u6574\u4f53\u662f\u4e00\u4e2a\u5b8c\u6574\u7684\u4ea4\u6613 \u8fd4\u56de\u503c:\u5df2\u7b7e\u540d\u6743\u91cd\u662f\u5426\u8fbe\u5230\u9608\u503c\uff08\u5373\u662f\u5426\u6ee1\u8db3\u9a8c\u7b7e\u6807\u51c6\uff09\uff0c\u7b7e\u540d\u5730\u5740\u5217\u8868\uff0c\u4ea4\u6613\u4fe1\u606f\u3002 \u5e10\u6237\u8d44\u6e90 \u00b6 \u4e0b\u9762\u662f\u94fe\u4e0a\u8d44\u6e90\u76f8\u5173API\uff1a wallet/getaccountresource wallet/getaccountnet wallet/unfreezebalance wallet/getdelegatedresource wallet/getdelegatedresourceaccountindex wallet/freezebalancev2 wallet/unfreezebalancev2 wallet/cancelallunfreezev2 wallet/delegateresource wallet/undelegateresource wallet/withdrawexpireunfreeze wallet/getavailableunfreezecount wallet/getcanwithdrawunfreezeamount wallet/getcandelegatedmaxsize wallet/getdelegatedresourcev2 wallet/getdelegatedresourceaccountindexv2 wallet/getaccountresource \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u8d26\u6237\u7684\u8d44\u6e90\u4fe1\u606f curl -X POST http://127.0.0.1:8090/wallet/getaccountresource -d {\"address\" : \"419844f7600e018fd0d710e2145351d607b3316ce9\"} \u53c2\u6570\uff1a address \uff1a\u67e5\u8be2\u8d26\u6237\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1a\u8d26\u6237\u7684\u8d44\u6e90\u4fe1\u606f wallet/getaccountnet \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u5e26\u5bbd\u4fe1\u606f\u3002 curl -X POST http://127.0.0.1:8090/wallet/getaccountnet -d '{\"address\": \"4112E621D5577311998708F4D7B9F71F86DAE138B5\"}' \u53c2\u6570\uff1a address - \u8d26\u6237\u5730\u5740 \u8fd4\u56de\u503c\uff1a\u5e26\u5bbd\u4fe1\u606f wallet/freezebalance \u00b6 \u4f5c\u7528\uff1a\u8d28\u62bctrx\uff0c\u83b7\u53d6\u5e26\u5bbd\uff0c\u83b7\u53d6\u6295\u7968\u6743\u3002\u8be5\u63a5\u53e3\u5df2\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528freezebalancev2\u8fdb\u884c\u8d28\u62bc\u3002 wallet/unfreezebalance \u00b6 \u4f5c\u7528\uff1a\u89e3\u9501Stake1.0\u9636\u6bb5\u8d28\u62bc\u7684\uff0c\u5e76\u5df2\u7ecf\u7ed3\u675f\u8d28\u62bc\u671f\u7684trx\uff0c\u4f1a\u540c\u65f6\u5931\u53bb\u8fd9\u90e8\u5206trx\u5e26\u6765\u7684\u5e26\u5bbd\u548c\u6295\u7968\u6743 curl -X POST http://127.0.0.1:8090/wallet/unfreezebalance -d '{ \"owner_address\":\"41e472f387585c2b58bc2c9bb4492bc1f17342cd1\", \"resource\": \"BANDWIDTH\", \"receiver_address\":\"414332f387585c2b58bc2c9bb4492bc1f17342cd1\" }' \u53c2\u6570\uff1a owner_address \u662f\u89e3\u9501trx\u8d26\u53f7\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f resource \u53ef\u4ee5\u662fBANDWIDTH\u6216\u8005ENERGY receiverAddress \u8868\u793a\u53d7\u59d4\u6258\u8d26\u6237\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u53ef\u9009\u53c2\u6570 Permission_id \uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u89e3\u9501trx\u7684transaction wallet/getdelegatedresource \u00b6 \u4f5c\u7528\uff1a\u67e5\u770b\u4e00\u4e2a\u8d26\u6237\u4ee3\u7406\u7ed9\u53e6\u5916\u4e00\u4e2a\u8d26\u6237\u7684\u8d44\u6e90\u60c5\u51b5 curl -X POST http://127.0.0.1:8090/wallet/getdelegatedresource -d ' { \"fromAddress\": \"419844f7600e018fd0d710e2145351d607b3316ce9\", \"toAddress\": \"41c6600433381c731f22fc2b9f864b14fe518b322f\" }' \u53c2\u6570\uff1a fromAddress \uff1a\u662f\u8981\u67e5\u8be2\u7684\u8d26\u6237\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f toAddress \uff1a\u4ee3\u7406\u5bf9\u8c61\u7684\u8d26\u6237\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1a\u8d26\u6237\u7684\u8d44\u6e90\u4ee3\u7406\u7684\u5217\u8868\uff0c\u5217\u8868\u7684\u5143\u7d20\u4e3aDelegatedResource wallet/getdelegatedresourceaccountindex \u00b6 \u4f5c\u7528\uff1a\u67e5\u770b\u4e00\u4e2a\u8d26\u6237\u7ed9\u54ea\u4e9b\u8d26\u6237\u4ee3\u7406\u4e86\u8d44\u6e90 curl -X POST http://127.0.0.1:8090/wallet/getdelegatedresourceaccountindex -d ' { \"value\": \"419844f7600e018fd0d710e2145351d607b3316ce9\", }' \u53c2\u6570\uff1a value \uff1a\u662f\u8981\u67e5\u8be2\u7684\u8d26\u6237\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1a\u8d26\u6237\u7684\u8d44\u6e90\u4ee3\u7406\u6982\u51b5\uff0c\u7ed3\u6784\u4e3aDelegatedResourceAccountIndex wallet/freezebalancev2 \u00b6 \u4f5c\u7528\uff1a\u8d28\u62bcTRX curl -X POST http://127.0.0.1:8090/wallet/freezebalancev2 -d '{ \"owner_address\": \"41e472f387585c2b58bc2c9bb4492bc1f17342cd1\", \"frozen_balance\": 10000, \"resource\": \"BANDWIDTH\" }' \u53c2\u6570\uff1a owner_address : \u8d28\u62bcTRX \u8d26\u53f7\u7684\u5730\u5740, HEX \u683c\u5f0f\u6216 Base58check \u683c\u5f0f frozen_balance : \u8d28\u62bcTRX \u7684\u6570\u91cf, \u5355\u4f4d\u4e3asun resource : \u8d28\u62bcTRX \u83b7\u53d6\u8d44\u6e90\u7684\u7c7b\u578b, \u53ef\u4ee5\u662f BANDWIDTH \u6216\u8005 ENERGY permission_id : \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528 \u8fd4\u56de\u503c\uff1a\u672a\u7b7e\u540d\u7684\u4ea4\u6613\u5bf9\u8c61 wallet/unfreezebalancev2 \u00b6 \u4f5c\u7528\uff1a \u89e3\u9501\u901a\u8fc7Stake2.0\u673a\u5236\u8d28\u62bc\u7684TRX, \u91ca\u653e\u6240\u76f8\u5e94\u6570\u91cf\u7684\u5e26\u5bbd\u548c\u80fd\u91cf\uff0c\u540c\u65f6\u56de\u6536\u76f8\u5e94\u6570\u91cf\u7684\u6295\u7968\u6743(TP) curl -X POST http://127.0.0.1:8090/wallet/unfreezebalancev2 -d '{ \"owner_address\": \"41e472f387585c2b58bc2c9bb4492bc1f17342cd1\", \"unfreeze_balance\": 1000000, \"resource\": \"BANDWIDTH\" }' \u53c2\u6570\uff1a owner_address : \u89e3\u9501TRX \u8d26\u53f7\u7684\u5730\u5740, HEX \u683c\u5f0f\u6216 Base58check \u683c\u5f0f resource : \u8d44\u6e90\u7c7b\u578b, BANDWIDTH \u6216\u8005 ENERGY unfreeze_balance : \u89e3\u8d28\u62bc\u7684TRX\u6570\u91cf\uff0c\u5355\u4f4d\u4e3asun permission_id : \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528 \u8fd4\u56de\u503c\uff1a\u672a\u7b7e\u540d\u7684\u4ea4\u6613\u5bf9\u8c61 wallet/cancelallunfreezev2 \u00b6 \u4f5c\u7528\uff1a \u53d6\u6d88\u6240\u6709\u672a\u5b8c\u6210\u7684\u89e3\u8d28\u62bc\uff0c\u5c06\u8fc7\u671f\u7684\u89e3\u8d28\u62bc\u91d1\u989d\u63d0\u53d6\u5230\u8d26\u6237\u4f59\u989d\u4e2d\uff0c\u5c06\u672a\u8fc7\u671f\u7684\u89e3\u8d28\u62bc\u91d1\u989d\u91cd\u65b0\u8d28\u62bc curl -X POST http://127.0.0.1:8090/wallet/cancelallunfreezev2 -d '{ \"owner_address\": \"41e472f387585c2b58bc2c9bb4492bc1f17342cd1\" }' \u53c2\u6570\uff1a owner_address : \u8d26\u6237\u5730\u5740, HEX \u683c\u5f0f\u6216 Base58check \u683c\u5f0f permission_id : \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528 \u8fd4\u56de\u503c\uff1a\u672a\u7b7e\u540d\u7684\u4ea4\u6613\u5bf9\u8c61 wallet/delegateresource \u00b6 \u4f5c\u7528\uff1a \u5c06\u5e26\u5bbd\u6216\u8005\u80fd\u91cf\u8d44\u6e90\u4ee3\u7406\u7ed9\u5176\u5b83\u8d26\u6237 curl -X POST http://127.0.0.1:8090/wallet/delegateresource -d '{ \"owner_address\": \"41e472f387585c2b58bc2c9bb4492bc1f17342cd1\", \"receiver_address\": \"41d1e7a6bc354106cb410e65ff8b181c600ff14292\", \"balance\": 1000000, \"resource\": \"BANDWIDTH\", \"lock\": false }' \u53c2\u6570\uff1a owner_address : \u4ea4\u6613\u53d1\u8d77\u8005\u8d26\u53f7\u7684\u5730\u5740, HEX \u683c\u5f0f\u6216 Base58check \u683c\u5f0f receiver_address : \u8d44\u6e90\u7684\u63a5\u6536\u8d26\u6237\u5730\u5740, HEX \u683c\u5f0f\u6216 Base58check \u683c\u5f0f balance : \u4ee3\u7406balance\u6570\u91cf\u7684TRX\u6240\u5bf9\u5e94\u7684\u8d44\u6e90\u7ed9\u76ee\u6807\u5730\u5740, \u5355\u4f4d\u4e3asun resource : \u4ee3\u7406\u7684\u8d44\u6e90\u7c7b\u578b, BANDWIDTH \u6216\u8005 ENERGY lock : true\u8868\u793a\u4e3a\u8be5\u8d44\u6e90\u4ee3\u7406\u64cd\u4f5c\u8bbe\u7f6e\u4e09\u5929\u7684\u9501\u5b9a\u671f\uff0c\u5373\u8d44\u6e90\u4ee3\u7406\u7ed9\u76ee\u6807\u5730\u5740\u540e\u7684\u4e09\u5929\u5185\u4e0d\u53ef\u4ee5\u53d6\u6d88\u5bf9\u5176\u7684\u8d44\u6e90\u4ee3\u7406\uff0c\u5982\u679c\u9501\u5b9a\u671f\u5185\uff0c\u518d\u6b21\u4ee3\u7406\u8d44\u6e90\u7ed9\u540c\u4e00\u76ee\u6807\u5730\u5740\uff0c\u5219\u9501\u5b9a\u671f\u5c06\u91cd\u65b0\u8bbe\u7f6e\u4e3a3\u5929\u3002false\u8868\u793a\u672c\u6b21\u8d44\u6e90\u4ee3\u7406\u6ca1\u6709\u9501\u5b9a\u671f\uff0c\u53ef\u968f\u65f6\u53d6\u6d88\u5bf9\u76ee\u6807\u5730\u5740\u7684\u8d44\u6e90\u4ee3\u7406 lock_period : \u9501\u5b9a\u5468\u671f\uff0c\u4ee5\u533a\u5757\u65f6\u95f4\uff083s\uff09\u4e3a\u5355\u4f4d\uff0c\u8868\u793a\u9501\u5b9a\u591a\u5c11\u4e2a\u533a\u5757\u7684\u65f6\u95f4\uff0c\u5f53lock\u4e3atrue\u65f6\uff0c\u8be5\u5b57\u6bb5\u6709\u6548\u3002\u5982\u679c\u4ee3\u7406\u9501\u5b9a\u671f\u4e3a1\u5929\uff0c\u5219lock_period\u4e3a\uff1a28800 permission_id : \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528 \u8fd4\u56de\u503c\uff1a\u672a\u7b7e\u540d\u7684\u4ea4\u6613\u5bf9\u8c61 wallet/undelegateresource \u00b6 \u4f5c\u7528\uff1a \u53d6\u6d88\u4e3a\u76ee\u6807\u5730\u5740\u4ee3\u7406\u7684\u5e26\u5bbd\u6216\u8005\u80fd\u91cf curl -X POST http://127.0.0.1:8090/wallet/undelegateresource -d '{ \"owner_address\": \"41e472f387585c2b58bc2c9bb4492bc1f17342cd1\", \"receiver_address\": \"41d1e7a6bc354106cb410e65ff8b181c600ff14292\", \"balance\": 1000000, \"resource\": \"BANDWIDTH\" }' \u53c2\u6570\uff1a owner_address : \u4ea4\u6613\u53d1\u8d77\u8005\u8d26\u53f7\u7684\u5730\u5740, HEX \u683c\u5f0f\u6216 Base58check \u683c\u5f0f receiver_address : \u8d44\u6e90\u7684\u63a5\u6536\u8d26\u6237\u5730\u5740, \u4e5f\u5c31\u662f\u53d6\u6d88\u4e3a\u8be5\u5730\u5740\u7684\u8d44\u6e90\u4ee3\u7406\u3002 HEX \u683c\u5f0f\u6216 Base58check \u683c\u5f0f balance : \u53d6\u6d88\u4ee3\u7406 balance\u6570\u91cf\u7684TRX\u6240\u5bf9\u5e94\u7684\u8d44\u6e90, \u5355\u4f4d\u4e3asun resource : \u53d6\u6d88\u4ee3\u7406\u7684\u8d44\u6e90\u7c7b\u578b, BANDWIDTH \u6216\u8005 ENERGY permission_id : \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528 \u8fd4\u56de\u503c\uff1a\u672a\u7b7e\u540d\u7684\u4ea4\u6613\u5bf9\u8c61 wallet/withdrawexpireunfreeze \u00b6 \u4f5c\u7528\uff1a\u63d0\u53d6\u5df2\u8fc7\u9501\u5b9a\u671f\u7684\u89e3\u8d28\u62bc\u7684\u672c\u91d1 curl -X POST http://127.0.0.1:8090/wallet/withdrawexpireunfreeze -d '{ \"owner_address\": \"41e472f387585c2b58bc2c9bb4492bc1f17342cd1\", }' \u53c2\u6570\uff1a owner_address : \u4ea4\u6613\u53d1\u8d77\u8005\u8d26\u53f7\u7684\u5730\u5740, HEX \u683c\u5f0f\u6216 Base58check \u683c\u5f0f permission_id : \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528 \u8fd4\u56de\u503c\uff1a\u672a\u7b7e\u540d\u7684\u4ea4\u6613\u5bf9\u8c61 wallet/getavailableunfreezecount \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u5f53\u524d\u89e3\u8d28\u62bc\u5269\u4f59\u6b21\u6570 curl -X POST http://127.0.0.1:8090/wallet/getavailableunfreezecount -d '{ \"owner_address\": \"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g\", \"visible\": true } ' \u53c2\u6570\uff1a owner_address : \u4ea4\u6613\u53d1\u8d77\u8005\u8d26\u53f7\u7684\u5730\u5740 \u8fd4\u56de\u503c\uff1a\u89e3\u8d28\u62bc\u7684\u5269\u4f59\u6b21\u6570 wallet/getcanwithdrawunfreezeamount \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u5728\u67d0\u65f6\u95f4\u70b9\u53ef\u4ee5\u63d0\u53d6\u7684\u89e3\u8d28\u62bc\u672c\u91d1\u6570\u91cf curl -X POST http://127.0.0.1:8090/wallet/getcanwithdrawunfreezeamount -d '{ \"owner_address\": \"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g\", \"timestamp\": 1667977444000, \"visible\": true } ' \u53c2\u6570\uff1a owner_address : \u4ea4\u6613\u53d1\u8d77\u8005\u8d26\u53f7\u7684\u5730\u5740 timestamp : \u67e5\u8be2\u5728\u8be5\u65f6\u95f4\u6233\u65f6\uff0c\u53ef\u63d0\u53d6\u7684\u672c\u91d1\u6570\u91cf\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2 \u8fd4\u56de\u503c\uff1a\u89e3\u8d28\u62bc\u672c\u91d1\u53ef\u63d0\u53d6\u6570\u91cf wallet/getcandelegatedmaxsize \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u76ee\u6807\u5730\u5740\u4e2d\u6307\u5b9a\u7c7b\u578b\u8d44\u6e90\u7684\u53ef\u4ee3\u7406\u6570\u91cf\uff0c\u5355\u4f4d\u4e3asun curl -X POST http://127.0.0.1:8090/wallet/getcandelegatedmaxsize -d '{ \"owner_address\": \"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g\", \"type\": 0, \"visible\": true } ' \u53c2\u6570\uff1a owner_address : \u4ea4\u6613\u53d1\u8d77\u8005\u8d26\u53f7\u7684\u5730\u5740 type : \u8d44\u6e90\u7c7b\u578b\uff0c0\u4e3a\u5e26\u5bbd\uff0c1\u4e3a\u80fd\u91cf \u8fd4\u56de\u503c\uff1a\u53ef\u4ee3\u7406\u5e26\u5bbd\u6216\u8005\u80fd\u91cf\u4efd\u989d\u7684\u6700\u5927\u503c\uff08\u5355\u4f4d\u4e3asun\uff09 wallet/getdelegatedresourcev2 \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u5728Stake2.0\u673a\u5236\u4e0b\uff0c\u67d0\u5730\u5740\u4ee3\u7406\u7ed9\u76ee\u6807\u5730\u5740\u7684\u8d44\u6e90\u60c5\u51b5 curl -X POST http://127.0.0.1:8090/wallet/getdelegatedresourcev2 -d '{ \"fromAddress\": \"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g\", \"toAddress\": \"TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1\", \"visible\": true } ' \u53c2\u6570\uff1a fromAddress : \u4ee3\u7406\u8d26\u6237\u5730\u5740 toAddress : \u8d44\u6e90\u7684\u63a5\u6536\u8d26\u6237\u5730\u5740 \u8fd4\u56de\u503c\uff1a\u67d0\u5730\u5740\u4ee3\u7406\u7ed9\u76ee\u6807\u5730\u5740\u7684\u8d44\u6e90\u60c5\u51b5\u7684\u5217\u8868 wallet/getdelegatedresourceaccountindexv2 \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u5728Stake2.0\u9636\u6bb5\uff0c\u67d0\u5730\u5740\u7684\u8d44\u6e90\u59d4\u6258\u7d22\u5f15\u3002\u8fd4\u56de\u4e24\u4e2a\u5217\u8868\uff0c\u4e00\u4e2a\u662f\u8be5\u5e10\u6237\u5c06\u8d44\u6e90\u59d4\u6258\u7ed9\u7684\u5730\u5740\u5217\u8868(toAddress)\uff0c\u53e6\u4e00\u4e2a\u662f\u5c06\u8d44\u6e90\u59d4\u6258\u7ed9\u8be5\u5e10\u6237\u7684\u5730\u5740\u5217\u8868(fromAddress) curl -X POST http://127.0.0.1:8090/wallet/getdelegatedresourceaccountindexv2 -d '{ \"value\": \"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g\", \"visible\": true } ' \u53c2\u6570\uff1a value : \u8d26\u6237\u5730\u5740 \u8fd4\u56de\u503c\uff1a\u67d0\u5730\u5740\u7684\u8d44\u6e90\u59d4\u6258\u7d22\u5f15\u3002\u8fd4\u56de\u4e24\u4e2a\u5217\u8868\uff0c\u4e00\u4e2a\u662f\u8be5\u5e10\u6237\u5c06\u8d44\u6e90\u59d4\u6258\u7ed9\u7684\u5730\u5740\u5217\u8868(toAddress)\uff0c\u53e6\u4e00\u4e2a\u662f\u5c06\u8d44\u6e90\u59d4\u6258\u7ed9\u8be5\u5e10\u6237\u7684\u5730\u5740\u5217\u8868(fromAddress) \u67e5\u8be2\u94fe\u4e0a\u6570\u636e \u00b6 \u4e0b\u9762\u662f\u67e5\u8be2\u94fe\u4e0a\u6570\u636e\u76f8\u5173API\uff1a wallet/getnowblock wallet/getblock wallet/getblockbynum wallet/getblockbyid wallet/getblockbylatestnum wallet/getblockbylimitnext wallet/getblockbalance wallet/gettransactionbyid wallet/gettransactioninfobyid wallet/gettransactioncountbyblocknum wallet/gettransactioninfobyblocknum wallet/listnodes wallet/getnodeinfo wallet/getchainparameters wallet/getenergyprices wallet/getbandwidthprices wallet/getburntrx wallet/getnowblock \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u6700\u65b0\u5757\u3002 curl -X POST http://127.0.0.1:8090/wallet/getnowblock \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c\uff1a\u5f53\u524d\u5757\u3002 wallet/getblock \u00b6 \u4f5c\u7528\uff1a\u6839\u636e\u533a\u5757\u9ad8\u5ea6\u6216\u8005\u533a\u5757\u54c8\u5e0c\u67e5\u8be2\u533a\u5757\u5934\u4fe1\u606f\u6216\u8005\u6574\u4e2a\u533a\u5757\u4fe1\u606f curl -X POST http://127.0.0.1:8090/wallet/getblock -d '{\"detail\":false}' \u53c2\u6570: id_or_num : \u533a\u5757\u9ad8\u5ea6\u6216\u8005\u533a\u5757\u54c8\u5e0c\uff0c\u4e0d\u8bbe\u7f6e\u8868\u793a\u67e5\u8be2\u6700\u65b0\u533a\u5757 detail : \u9ed8\u8ba4\u4e3afalse\uff0c\u8868\u793a\u53ea\u67e5\u8be2\u533a\u5757\u5934\u4fe1\u606f\uff0ctrue\u8868\u793a\u67e5\u8be2\u6574\u4e2a\u533a\u5757 \u8fd4\u56de\u503c\uff1a\u533a\u5757\u6216\u8005\u533a\u5757\u5934\u3002 wallet/getblockbynum \u00b6 \u4f5c\u7528\uff1a\u901a\u8fc7\u9ad8\u5ea6\u67e5\u8be2\u5757 curl -X POST http://127.0.0.1:8090/wallet/getblockbynum -d '{\"num\": 1}' \u53c2\u6570\u8bf4\u660e\uff1a\u5757\u9ad8\u5ea6\u3002 \u8fd4\u56de\u503c\uff1a\u5757\u3002 wallet/getblockbyid \u00b6 \u4f5c\u7528\uff1a\u901a\u8fc7ID\u67e5\u8be2\u5757 curl -X POST http://127.0.0.1:8090/wallet/getblockbyid -d '{\"value\": \"0000000000038809c59ee8409a3b6c051e369ef1096603c7ee723c16e2376c73\"}' \u53c2\u6570\u8bf4\u660e\uff1a\u5757ID\u3002 \u8fd4\u56de\u503c\uff1a\u5757\u3002 wallet/getblockbylatestnum \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u6700\u65b0\u7684\u51e0\u4e2a\u5757 curl -X POST http://127.0.0.1:8090/wallet/getblockbylatestnum -d '{\"num\": 5}' \u53c2\u6570\u8bf4\u660e\uff1a\u5757\u7684\u6570\u91cf\u3002 \u8fd4\u56de\u503c\uff1a\u5757\u7684\u5217\u8868\u3002 wallet/getblockbylimitnext \u00b6 \u4f5c\u7528\uff1a\u6309\u7167\u8303\u56f4\u67e5\u8be2\u5757 curl -X POST http://127.0.0.1:8090/wallet/getblockbylimitnext -d '{\"startNum\": 1, \"endNum\": 2}' \u53c2\u6570\u8bf4\u660e\uff1a startNum \uff1a\u8d77\u59cb\u5757\u9ad8\u5ea6\uff0c\u5305\u542b\u6b64\u5757 endNum \uff1a\u622a\u6b62\u5757\u9ad8\u5ea6\uff0c\u4e0d\u5305\u542b\u6b64\u6b64\u5757 \u8fd4\u56de\u503c\uff1a\u5757\u7684\u5217\u8868\u3002 wallet/getblockbalance \u00b6 \u4f5c\u7528\uff1a\u83b7\u53d6\u4e00\u4e2a\u533a\u5757\u4e2d\u6240\u6709\u7684\u4f59\u989d\u53d8\u5316\u64cd\u4f5c curl -X POST http://127.0.0.1:8090/wallet/getblockbalance -d '{ \"hash\": \"000000000000dc2a3731e28a75b49ac1379bcc425afc95f6ab3916689fbb0189\", \"number\": 56362, \"visible\": true }' \u53c2\u6570\u8bf4\u660e\uff1a\u533a\u5757hash\u548cnumber\u5fc5\u987b\u4e00\u81f4\u3002 \u8fd4\u56de\u503c\uff1a { \"block_identifier\": { \"hash\": \"000000000000dc2a3731e28a75b49ac1379bcc425afc95f6ab3916689fbb0189\", \"number\": 56362 }, \"timestamp\": 1530060672000, \"transaction_balance_trace\": [ { \"transaction_identifier\": \"e6cabb1833cd1f795eed39d8dd7689eaa70e5bb217611766c74c7aa9feea80df\", \"operation\": [ { \"operation_identifier\": 0, \"address\": \"TPttBLmFuykRi83y9HxDoEWxTQw6CCcQ4p\", \"amount\": -100000 }, { \"operation_identifier\": 1, \"address\": \"TLsV52sRDL79HXGGm9yzwKibb6BeruhUzy\", \"amount\": 100000 }, { \"operation_identifier\": 2, \"address\": \"TPttBLmFuykRi83y9HxDoEWxTQw6CCcQ4p\", \"amount\": -10000000 }, { \"operation_identifier\": 3, \"address\": \"TMrysg7DbwR1M8xqhpaPdVCHCuWFhw7uk1\", \"amount\": 10000000 } ], \"type\": \"TransferContract\", \"status\": \"SUCCESS\" } ] } wallet/gettransactionbyid \u00b6 \u4f5c\u7528\uff1a\u901a\u8fc7ID\u67e5\u8be2\u4ea4\u6613 curl -X POST http://127.0.0.1:8090/wallet/gettransactionbyid -d '{\"value\": \"d5ec749ecc2a615399d8a6c864ea4c74ff9f523c2be0e341ac9be5d47d7c2d62\"}' \u53c2\u6570\u8bf4\u660e\uff1a\u4ea4\u6613ID\u3002 \u8fd4\u56de\u503c\uff1a\u4ea4\u6613\u4fe1\u606f\u3002 wallet/gettransactioninfobyid \u00b6 \u4f5c\u7528\uff1a\u6839\u636eid\u67e5\u8be2\u4ea4\u6613\u7684fee\uff0c\u6240\u5728\u7684block curl -X POST http://127.0.0.1:8090/wallet/gettransactioninfobyid -d '{\"value\" : \"309b6fa3d01353e46f57dd8a8f27611f98e392b50d035cef213f2c55225a8bd2\"}' \u53c2\u6570\u8bf4\u660e\uff1avalue\u662f\u4ea4\u6613id \u8fd4\u56de\u503c\uff1aTransaction\u7684\u4ea4\u6613fee\uff0c\u6240\u5728block\u7684\u9ad8\u5ea6\uff0c\u521b\u5efa\u65f6\u95f4 wallet/gettransactioncountbyblocknum \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u7279\u5b9ablock\u4e0atransaction\u7684\u4e2a\u6570 curl -X POST http://127.0.0.1:8090/wallet/gettransactioncountbyblocknum -d '{\"num\" : 100}' \u53c2\u6570\u8bf4\u660e\uff1anum\u662f\u5757\u7684\u9ad8\u5ea6. \u8fd4\u56de\u503c\uff1atransaction\u7684\u4e2a\u6570. wallet/gettransactioninfobyblocknum \u00b6 \u4f5c\u7528\uff1a\u83b7\u53d6\u7279\u5b9a\u533a\u5757\u7684\u6240\u6709\u4ea4\u6613 Info \u4fe1\u606f curl -X POST http://127.0.0.1:8090/wallet/gettransactioninfobyblocknum -d '{\"num\" : 100}' \u53c2\u6570\u8bf4\u660e\uff1anum\u662f\u5757\u7684\u9ad8\u5ea6. \u8fd4\u56de\u503c\uff1a\u6307\u5b9a\u5757\u4e2d\uff0c\u5305\u542b\u7684transactioninfo\u7684\u5217\u8868. wallet/listnodes \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2api\u6240\u5728\u673a\u5668\u8fde\u63a5\u7684\u8282\u70b9\u3002 curl -X POST http://127.0.0.1:8090/wallet/listnodes \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c\uff1a\u8282\u70b9\u5217\u8868\u3002 wallet/getnodeinfo \u00b6 \u4f5c\u7528\uff1a\u67e5\u770b\u8282\u70b9\u7684\u4fe1\u606f curl http://127.0.0.1:8090/wallet/getnodeinfo \u8fd4\u56de\u503c\uff1a\u8282\u70b9\u5f53\u524d\u72b6\u6001\u7684\u76f8\u5173\u4fe1\u606f wallet/getchainparameters \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2TRON\u7f51\u7edc\u52a8\u6001\u53c2\u6570 curl -X POST http://127.0.0.1:8090/wallet/getchainparameters \u8fd4\u56de\u503c\uff1a\u533a\u5757\u94fe\u59d4\u5458\u4f1a\u53ef\u4ee5\u8bbe\u7f6e\u7684\u6240\u6709\u53c2\u6570 wallet/getenergyprices \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u80fd\u91cf\u5355\u4ef7\u5386\u53f2 curl -X POST http://127.0.0.1:8090/wallet/getenergyprices \u8fd4\u56de\u503c\uff1a\u6240\u6709\u5386\u53f2\u80fd\u91cf\u5355\u4ef7\u4fe1\u606f\u3002\u6bcf\u6b21\u5355\u4ef7\u53d8\u52a8\u4ee5\u9017\u53f7\u5206\u9694\uff0c\u5192\u53f7\u524d\u4e3a\u6beb\u79d2\u65f6\u95f4\u6233\uff0c\u5192\u53f7\u540e\u4e3a\u4ee5sun\u4e3a\u5355\u4f4d\u7684\u80fd\u91cf\u5355\u4ef7\u3002 wallet/getbandwidthprices \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u5e26\u5bbd\u5355\u4ef7\u5386\u53f2 curl -X POST http://127.0.0.1:8090/wallet/getbandwidthprices \u8fd4\u56de\u503c\uff1a\u6240\u6709\u5386\u53f2\u5e26\u5bbd\u5355\u4ef7\u4fe1\u606f\u3002\u6bcf\u6b21\u5355\u4ef7\u53d8\u52a8\u4ee5\u9017\u53f7\u5206\u9694\uff0c\u5192\u53f7\u524d\u4e3a\u6beb\u79d2\u65f6\u95f4\u6233\uff0c\u5192\u53f7\u540e\u4e3a\u4ee5sun\u4e3a\u5355\u4f4d\u7684\u5e26\u5bbd\u5355\u4ef7\u3002 wallet/getburntrx \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u71c3\u70e7\u7684TRX\u6570\u91cf curl -X POST http://127.0.0.1:8090/wallet/getburntrx \u8fd4\u56de\u503c\uff1a\u71c3\u70e7\u7684TRX\u6570\u91cf\uff0c\u4ee5sun\u4e3a\u5355\u4f4d\u3002 \u667a\u80fd\u5408\u7ea6 \u00b6 \u4e0b\u9762\u662f\u667a\u80fd\u5408\u7ea6\u76f8\u5173API\uff1a wallet/getcontract wallet/getcontractinfo wallet/deploycontract wallet/triggersmartcontract wallet/triggerconstantcontract wallet/updatesetting wallet/updateenergylimit wallet/clearabi wallet/estimateenergy wallet/getcontract \u00b6 \u4f5c\u7528\uff1a\u83b7\u53d6\u5408\u7ea6 curl -X POST http://127.0.0.1:8090/wallet/getcontract -d '{\"value\":\"4189139CB1387AF85E3D24E212A008AC974967E561\"}' \u53c2\u6570\u8bf4\u660e\uff1avalue\uff1a\u5408\u7ea6\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1aSmartContract\uff0c\u667a\u80fd\u5408\u7ea6\u7684\u5185\u5bb9 wallet/getcontractinfo \u00b6 \u4f5c\u7528\uff1a\u83b7\u53d6\u5408\u7ea6 curl -X POST http://127.0.0.1:8090/wallet/getcontractinfo -d '{\"value\":\"4189139CB1387AF85E3D24E212A008AC974967E561\"}' \u53c2\u6570\u8bf4\u660e\uff1avalue\uff1a\u5408\u7ea6\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1a\u67e5\u8be2\u94fe\u4e0a\u7684\u5408\u7ea6\u4fe1\u606f\u3002\u4e0ewallet/getcontract\u63a5\u53e3\u4e0d\u540c\u7684\u662f\uff0c\u8be5\u63a5\u53e3\u4e0d\u4ec5\u8fd4\u56debytecode\u8fd8\u4f1a\u8fd4\u56de\u5408\u7ea6\u7684runtime bytecode\u3002runtime bytecode\u76f8\u6bd4bytecode\uff0c\u4e0d\u5305\u542b\u6784\u9020\u51fd\u6570\u4ee5\u53ca\u6784\u9020\u51fd\u6570\u7684\u53c2\u6570\u4fe1\u606f\u3002 wallet/deploycontract \u00b6 \u4f5c\u7528\uff1a\u90e8\u7f72\u5408\u7ea6 curl -X POST http://127.0.0.1:8090/wallet/deploycontract -d '{\"abi\":\"[{\\\"constant\\\":false,\\\"inputs\\\":[{\\\"name\\\":\\\"key\\\",\\\"type\\\":\\\"uint256\\\"},{\\\"name\\\":\\\"value\\\",\\\"type\\\":\\\"uint256\\\"}],\\\"name\\\":\\\"set\\\",\\\"outputs\\\":[],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":true,\\\"inputs\\\":[{\\\"name\\\":\\\"key\\\",\\\"type\\\":\\\"uint256\\\"}],\\\"name\\\":\\\"get\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"value\\\",\\\"type\\\":\\\"uint256\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"}]\",\"bytecode\":\"608060405234801561001057600080fd5b5060de8061001f6000396000f30060806040526004361060485763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631ab06ee58114604d5780639507d39a146067575b600080fd5b348015605857600080fd5b506065600435602435608e565b005b348015607257600080fd5b50607c60043560a0565b60408051918252519081900360200190f35b60009182526020829052604090912055565b600090815260208190526040902054905600a165627a7a72305820fdfe832221d60dd582b4526afa20518b98c2e1cb0054653053a844cf265b25040029\",\"parameter\":\"\",\"call_value\":100,\"name\":\"SomeContract\",\"consume_user_resource_percent\":30,\"fee_limit\":10,\"origin_energy_limit\": 10,\"owner_address\":\"41D1E7A6BC354106CB410E65FF8B181C600FF14292\"}' \u53c2\u6570\u8bf4\u660e\uff1a abi \uff1aabi bytecode \uff1abytecode\uff0c\u9700\u8981\u662fhexString\u683c\u5f0f parameter \uff1a\u6784\u9020\u51fd\u6570\u7684\u53c2\u6570\u5217\u8868\uff0c\u9700\u8981\u6309\u7167ABI encoder\u7f16\u7801\u540e\u8f6c\u8bdd\u4e3ahexString\u683c\u5f0f\u3002\u5982\u679c\u6784\u9020\u51fd\u6570\u6ca1\u6709\u53c2\u6570\uff0c\u8be5\u53c2\u6570\u53ef\u4ee5\u4e0d\u7528\u8bbe\u7f6e\u3002 consume_user_resource_percent \uff1a\u6307\u5b9a\u7684\u4f7f\u7528\u8be5\u5408\u7ea6\u7528\u6237\u7684\u8d44\u6e90\u5360\u6bd4\uff0c\u662f[0, 100]\u4e4b\u95f4\u7684\u6574\u6570\u3002\u5982\u679c\u662f0\uff0c\u5219\u8868\u793a\u7528\u6237\u4e0d\u4f1a\u6d88\u8017\u8d44\u6e90\u3002\u5982\u679c\u5f00\u53d1\u8005\u8d44\u6e90\u6d88\u8017\u5b8c\u4e86\uff0c\u624d\u4f1a\u5b8c\u5168\u4f7f\u7528\u7528\u6237\u7684\u8d44\u6e90\u3002 fee_limit \uff1a\u6700\u5927\u6d88\u8017\u7684SUN\uff081TRX = 1,000,000SUN\uff09 call_value \uff1a\u672c\u6b21\u8c03\u7528\u5f80\u5408\u7ea6\u8f6c\u8d26\u7684SUN\uff081TRX = 1,000,000SUN\uff09 owner_address \uff1a\u53d1\u8d77deploycontract\u7684\u8d26\u6237\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f name \uff1a\u5408\u7ea6\u540d origin_energy_limit : \u521b\u5efa\u8005\u8bbe\u7f6e\u7684\uff0c\u5728\u4e00\u6b21\u5408\u7ea6\u6267\u884c\u6216\u521b\u5efa\u8fc7\u7a0b\u4e2d\u521b\u5efa\u8005\u81ea\u5df1\u6d88\u8017\u7684\u6700\u5927\u7684energy\uff0c\u662f\u5927\u4e8e0\u7684\u6574\u6570 call_token_value :\u672c\u6b21\u8c03\u7528\u5f80\u5408\u7ea6\u4e2d\u8f6c\u8d2610\u5e01\u7684\u6570\u91cf\uff0c\u5982\u679c\u4e0d\u8bbe\u7f6etoken_id\uff0c\u8fd9\u9879\u8bbe\u7f6e\u4e3a0\u6216\u8005\u4e0d\u8bbe\u7f6e token_id :\u672c\u6b21\u8c03\u7528\u5f80\u5408\u7ea6\u4e2d\u8f6c\u8d2610\u5e01\u7684id\uff0c\u5982\u679c\u6ca1\u6709\uff0c\u4e0d\u9700\u8981\u8bbe\u7f6e Permission_id \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1aTransactionExtention, TransactionExtention\u4e2d\u5305\u542b\u672a\u7b7e\u540d\u7684\u4ea4\u6613Transaction wallet/triggersmartcontract \u00b6 \u4f5c\u7528\uff1a\u8c03\u7528\u5408\u7ea6 curl -X POST http://127.0.0.1:8090/wallet/triggersmartcontract -d '{\"contract_address\":\"4189139CB1387AF85E3D24E212A008AC974967E561\",\"function_selector\":\"set(uint256,uint256)\",\"parameter\":\"00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002\",\"fee_limit\":10,\"call_value\":100,\"owner_address\":\"41D1E7A6BC354106CB410E65FF8B181C600FF14292\"}' \u53c2\u6570\u8bf4\u660e\uff1a contract_address \uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f function_selector \uff0c\u51fd\u6570\u7b7e\u540d\uff0c\u4e0d\u80fd\u6709\u7a7a\u683c parameter \uff1a\u8c03\u7528\u53c2\u6570[1,2]\u7684\u865a\u62df\u673a\u683c\u5f0f\uff0c\u4f7f\u7528remix\u63d0\u4f9b\u7684js\u5de5\u5177\uff0c\u5c06\u5408\u7ea6\u8c03\u7528\u8005\u8c03\u7528\u7684\u53c2\u6570\u6570\u7ec4[1,2]\u8f6c\u5316\u4e3a\u865a\u62df\u673a\u6240\u9700\u8981\u7684\u53c2\u6570\u683c\u5f0f data \uff1a\u4e0e\u667a\u80fd\u5408\u7ea6\u8fdb\u884c\u4ea4\u4e92\u7684\u6570\u636e\uff0c\u5305\u62ec\u6240\u8c03\u7528\u7684\u5408\u7ea6\u51fd\u6570\u548c\u53c2\u6570\u3002\u53ef\u4ee5\u9009\u62e9\u901a\u8fc7\u8be5\u5b57\u6bb5\uff0c\u4e5f\u53ef\u4ee5\u9009\u62e9\u901a\u8fc7function_selector\u548cparameter\u8fdb\u884c\u5408\u7ea6\u4ea4\u4e92\uff0c\u5f53data\u4e0efunction_selector\u540c\u65f6\u5b58\u5728\u65f6\uff0c\u4f7f\u7528function_selector\u8fdb\u884c\u5408\u7ea6\u4ea4\u4e92 fee_limit \uff1a\u6700\u5927\u6d88\u8017\u7684SUN\uff081TRX = 1,000,000SUN\uff09 call_value \uff1a\u672c\u6b21\u8c03\u7528\u5f80\u5408\u7ea6\u8f6c\u8d26\u7684SUN\uff081TRX = 1,000,000SUN\uff09 owner_address \uff1a\u53d1\u8d77triggercontract\u7684\u8d26\u6237\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f call_token_value :\u672c\u6b21\u8c03\u7528\u5f80\u5408\u7ea6\u4e2d\u8f6c\u8d2610\u5e01\u7684\u6570\u91cf\uff0c\u5982\u679c\u4e0d\u8bbe\u7f6etoken_id\uff0c\u8fd9\u9879\u8bbe\u7f6e\u4e3a0\u6216\u8005\u4e0d\u8bbe\u7f6e token_id :\u672c\u6b21\u8c03\u7528\u5f80\u5408\u7ea6\u4e2d\u8f6c\u8d2610\u5e01\u7684id\uff0c\u5982\u679c\u6ca1\u6709\uff0c\u4e0d\u9700\u8981\u8bbe\u7f6e Permission_id \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1aTransactionExtention, TransactionExtention\u4e2d\u5305\u542b\u672a\u7b7e\u540d\u7684\u4ea4\u6613Transaction wallet/triggerconstantcontract \u00b6 \u4f5c\u7528\uff1a\u8c03\u7528\u5e38\u91cf\u5408\u7ea6\uff0c\u4ea7\u751f\u7684\u4ea4\u6613\u4e0d\u4e0a\u94fe curl -X POST http://127.0.0.1:8090/wallet/triggerconstantcontract -d '{\"contract_address\":\"4189139CB1387AF85E3D24E212A008AC974967E561\",\"function_selector\":\"set(uint256,uint256)\",\"parameter\":\"00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002\",\"call_value\":100,\"owner_address\":\"41D1E7A6BC354106CB410E65FF8B181C600FF14292\"}' \u53c2\u6570\u8bf4\u660e\uff1a contract_address \uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f function_selector \uff0c\u51fd\u6570\u7b7e\u540d\uff0c\u4e0d\u80fd\u6709\u7a7a\u683c parameter \uff1a\u8c03\u7528\u53c2\u6570[1,2]\u7684\u865a\u62df\u673a\u683c\u5f0f\uff0c\u4f7f\u7528remix\u63d0\u4f9b\u7684js\u5de5\u5177\uff0c\u5c06\u5408\u7ea6\u8c03\u7528\u8005\u8c03\u7528\u7684\u53c2\u6570\u6570\u7ec4[1,2]\u8f6c\u5316\u4e3a\u865a\u62df\u673a\u6240\u9700\u8981\u7684\u53c2\u6570\u683c\u5f0f data \uff1a\u5408\u7ea6\u5b57\u8282\u7801\u6216\u8005\u4e0e\u667a\u80fd\u5408\u7ea6\u8fdb\u884c\u4ea4\u4e92\u7684\u6570\u636e\uff0c\u5305\u62ec\u6240\u8c03\u7528\u7684\u5408\u7ea6\u51fd\u6570\u548c\u53c2\u6570\u3002\u53ef\u4ee5\u9009\u62e9\u901a\u8fc7\u8be5\u5b57\u6bb5\uff0c\u4e5f\u53ef\u4ee5\u9009\u62e9\u901a\u8fc7function_selector\u548cparameter\u8fdb\u884c\u5408\u7ea6\u4ea4\u4e92\uff0c\u5f53data\u4e0efunction_selector\u540c\u65f6\u5b58\u5728\u65f6\uff0c\u4f18\u5148\u4f7f\u7528function_selector owner_address \uff1a\u53d1\u8d77triggercontract\u7684\u8d26\u6237\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f call_value \uff1a\u672c\u6b21\u8c03\u7528\u5f80\u5408\u7ea6\u8f6c\u8d26\u7684SUN\uff081TRX = 1,000,000SUN\uff09 call_token_value :\u672c\u6b21\u8c03\u7528\u5f80\u5408\u7ea6\u4e2d\u8f6c\u8d2610\u5e01\u7684\u6570\u91cf\uff0c\u5982\u679c\u4e0d\u8bbe\u7f6etoken_id\uff0c\u8fd9\u9879\u8bbe\u7f6e\u4e3a0\u6216\u8005\u4e0d\u8bbe\u7f6e token_id :\u672c\u6b21\u8c03\u7528\u5f80\u5408\u7ea6\u4e2d\u8f6c\u8d2610\u5e01\u7684id\uff0c\u5982\u679c\u6ca1\u6709\uff0c\u4e0d\u9700\u8981\u8bbe\u7f6e \u8fd4\u56de\u503c\uff1aTransactionExtention, TransactionExtention\u4e2d\u5305\u542b\u672a\u7b7e\u540d\u7684\u4ea4\u6613Transaction wallet/updatesetting \u00b6 \u4f5c\u7528\uff1a\u66f4\u65b0\u5408\u7ea6\u7684consume_user_resource_percent curl -X POST http://127.0.0.1:8090/wallet/updatesetting -d '{\"owner_address\": \"419844f7600e018fd0d710e2145351d607b3316ce9\", \"contract_address\": \"41c6600433381c731f22fc2b9f864b14fe518b322f\", \"consume_user_resource_percent\": 7}' \u53c2\u6570\u8bf4\u660e\uff1a owner_address \uff1a\u662f\u4ea4\u6613\u5bf9\u521b\u5efa\u8005\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f contract_address \uff1a\u8981\u4fee\u6539\u7684\u5408\u7ea6\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f consume_user_resource_percent \uff1a\u6307\u5b9a\u7684\u4f7f\u7528\u8be5\u5408\u7ea6\u7528\u6237\u7684\u8d44\u6e90\u5360\u6bd4 Permission_id \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1aTransactionExtention, TransactionExtention\u4e2d\u5305\u542b\u672a\u7b7e\u540d\u7684\u4ea4\u6613Transaction wallet/updateenergylimit \u00b6 \u4f5c\u7528\uff1a\u66f4\u65b0\u5408\u7ea6\u7684origin_energy_limit curl -X POST http://127.0.0.1:8090/wallet/updateenergylimit -d '{\"owner_address\": \"419844f7600e018fd0d710e2145351d607b3316ce9\", \"contract_address\": \"41c6600433381c731f22fc2b9f864b14fe518b322f\", \"origin_energy_limit\": 7}' \u53c2\u6570\u8bf4\u660e\uff1a owner_address \uff1a\u662f\u4ea4\u6613\u5bf9\u521b\u5efa\u8005\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f contract_address \uff1a\u8981\u4fee\u6539\u7684\u5408\u7ea6\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f origin_energy_limit \uff1a\u521b\u5efa\u8005\u8bbe\u7f6e\u7684\uff0c\u5728\u4e00\u6b21\u5408\u7ea6\u6267\u884c\u6216\u521b\u5efa\u8fc7\u7a0b\u4e2d\u521b\u5efa\u8005\u81ea\u5df1\u6d88\u8017\u7684\u6700\u5927\u7684energy Permission_id \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1aTransactionExtention, TransactionExtention\u4e2d\u5305\u542b\u672a\u7b7e\u540d\u7684\u4ea4\u6613Transaction wallet/clearabi \u00b6 \u4f5c\u7528\uff1a\u521b\u5efa\u6e05\u9664\u667a\u80fd\u5408\u7ea6ABI\u7684\u4ea4\u6613\u5bf9\u8c61 curl -X POST http://127.0.0.1:8090/wallet/clearabi -d '{ \"owner_address\":\"41a7d8a35b260395c14aa456297662092ba3b76fc0\", \"contract_address\":\"417bcb781f4743afaacf9f9528f3ea903b3782339f\"}' \u53c2\u6570\u8bf4\u660e\uff1a owner_address \uff1a\u521b\u5efa\u5408\u7ea6\u7684\u8d26\u6237\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f contract_address \uff1a\u5408\u7ea6\u5730\u5740,\u9ed8\u8ba4\u4e3ahexString \u8fd4\u56de\u503c:\u4ea4\u6613\u5bf9\u8c61 wallet/estimateenergy \u00b6 \u4f5c\u7528\uff1a\u9884\u4f30\u667a\u80fd\u5408\u7ea6\u4ea4\u6613\u6267\u884c\u6210\u529f\u9700\u8981\u63d0\u4f9b\u7684\u80fd\u91cf curl -X POST http://127.0.0.1:8090/wallet/estimateenergy -d '{ \"owner_address\": \"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g\", \"contract_address\": \"TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs\", \"function_selector\": \"transfer(address,uint256)\", \"parameter\": \"00000000000000000000004115208EF33A926919ED270E2FA61367B2DA3753DA0000000000000000000000000000000000000000000000000000000000000032\", \"visible\": true }' \u53c2\u6570\u8bf4\u660e\uff1a contract_address \uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f function_selector \uff0c\u51fd\u6570\u7b7e\u540d\uff0c\u4e0d\u80fd\u6709\u7a7a\u683c parameter \uff1a\u8c03\u7528\u53c2\u6570[1,2]\u7684\u865a\u62df\u673a\u683c\u5f0f\uff0c\u4f7f\u7528remix\u63d0\u4f9b\u7684js\u5de5\u5177\uff0c\u5c06\u5408\u7ea6\u8c03\u7528\u8005\u8c03\u7528\u7684\u53c2\u6570\u6570\u7ec4[1,2]\u8f6c\u5316\u4e3a\u865a\u62df\u673a\u6240\u9700\u8981\u7684\u53c2\u6570\u683c\u5f0f data \uff1a\u5408\u7ea6\u5b57\u8282\u7801\u6216\u8005\u4e0e\u667a\u80fd\u5408\u7ea6\u8fdb\u884c\u4ea4\u4e92\u7684\u6570\u636e\uff0c\u5305\u62ec\u6240\u8c03\u7528\u7684\u5408\u7ea6\u51fd\u6570\u548c\u53c2\u6570\u3002\u53ef\u4ee5\u9009\u62e9\u901a\u8fc7\u8be5\u5b57\u6bb5\uff0c\u4e5f\u53ef\u4ee5\u9009\u62e9\u901a\u8fc7function_selector\u548cparameter\u8fdb\u884c\u5408\u7ea6\u4ea4\u4e92\uff0c\u5f53data\u4e0efunction_selector\u540c\u65f6\u5b58\u5728\u65f6\uff0c\u4f18\u5148\u4f7f\u7528function_selector fee_limit \uff1a\u6700\u5927\u6d88\u8017\u7684SUN\uff081TRX = 1,000,000SUN\uff09 owner_address \uff1a\u53d1\u8d77triggercontract\u7684\u8d26\u6237\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f call_value \uff1a\u672c\u6b21\u8c03\u7528\u5f80\u5408\u7ea6\u8f6c\u8d26\u7684SUN\uff081TRX = 1,000,000SUN\uff09 call_token_value :\u672c\u6b21\u8c03\u7528\u5f80\u5408\u7ea6\u4e2d\u8f6c\u8d2610\u5e01\u7684\u6570\u91cf\uff0c\u5982\u679c\u4e0d\u8bbe\u7f6etoken_id\uff0c\u8fd9\u9879\u8bbe\u7f6e\u4e3a0\u6216\u8005\u4e0d\u8bbe\u7f6e token_id :\u672c\u6b21\u8c03\u7528\u5f80\u5408\u7ea6\u4e2d\u8f6c\u8d2610\u5e01\u7684id\uff0c\u5982\u679c\u6ca1\u6709\uff0c\u4e0d\u9700\u8981\u8bbe\u7f6e \u8fd4\u56de\u503c\uff1a\u80fd\u91cf\u9884\u4f30\u503c TRC10\u901a\u8bc1 \u00b6 \u4e0b\u9762\u662fTRC10\u4ee3\u5e01\u76f8\u5173API\uff1a wallet/getassetissuebyaccount wallet/getassetissuebyname wallet/getassetissuelistbyname wallet/getassetissuebyid wallet/getassetissuelist wallet/getpaginatedassetissuelist wallet/transferasset wallet/participateassetissue wallet/createassetissue wallet/unfreezeasset wallet/updateasset wallet/getassetissuebyaccount \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u8d26\u6237\u53d1\u884c\u7684token\u3002 curl -X POST http://127.0.0.1:8090/wallet/getassetissuebyaccount -d '{\"address\": \"41F9395ED64A6E1D4ED37CD17C75A1D247223CAF2D\"}' \u53c2\u6570\u8bf4\u660e\uff1a\u53d1\u884c\u8005\u8d26\u6237\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1a\u7528\u6237\u53d1\u884c\u7684token\uff08\u4e00\u4e2a\u7528\u6237\u53ea\u80fd\u53d1\u884c\u4e00\u4e2atoken\uff09\u3002 wallet/getassetissuebyname \u00b6 \u4f5c\u7528\uff1a\u6839\u636e\u540d\u79f0\u67e5\u8be2token\u3002 curl -X POST http://127.0.0.1:8090/wallet/getassetissuebyname -d '{\"value\": \"44756354616E\"}' \u53c2\u6570\u8bf4\u660e\uff1a\u901a\u8bc1\u540d\u79f0\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1atoken\u3002 \u6ce8\u610f\uff1aOdyssey-v3.2\u5f00\u59cb\uff0c\u63a8\u8350\u4f7f\u7528getassetissuebyid\u6216\u8005getassetissuelistbyname\u66ff\u6362\u6b64\u63a5\u53e3\uff0c\u56e0\u4e3a\u4ece3.2\u5f00\u59cb\u5c06\u5141\u8bb8\u901a\u8bc1\u540d\u79f0\u76f8\u540c\u3002\u5982\u679c\u5b58\u5728\u76f8\u540c\u7684\u901a\u8bc1\u540d\u79f0\uff0c\u6b64\u63a5\u53e3\u5c06\u4f1a\u62a5\u9519\u3002 wallet/getassetissuelistbyname \u00b6 \u4f5c\u7528\uff1a\u6839\u636e\u540d\u79f0\u67e5\u8be2token list\u3002 curl -X POST http://127.0.0.1:8090/wallet/getassetissuelistbyname -d '{\"value\": \"44756354616E\"}' \u53c2\u6570\u8bf4\u660e\uff1a\u901a\u8bc1\u540d\u79f0\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1atoken\u5217\u8868\u3002 wallet/getassetissuebyid \u00b6 \u4f5c\u7528\uff1a\u6839\u636eid\u67e5\u8be2token\u3002 curl -X POST http://127.0.0.1:8090/wallet/getassetissuebyid -d '{\"value\": \"1000001\"}' \u53c2\u6570\u8bf4\u660e\uff1a\u901a\u8bc1id \u8fd4\u56de\u503c\uff1atoken\u3002 wallet/getassetissuelist \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u6240\u6709token\u5217\u8868 curl -X POST http://127.0.0.1:8090/wallet/getassetissuelist \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c\uff1atoken\u5217\u8868\u3002 wallet/getpaginatedassetissuelist \u00b6 \u4f5c\u7528\uff1a\u5206\u9875\u67e5\u8be2token\u5217\u8868 curl -X POST http://127.0.0.1:8090/wallet/getpaginatedassetissuelist -d '{\"offset\": 0, \"limit\": 10}' \u53c2\u6570\u8bf4\u660e\uff1aoffset\u662f\u8d77\u59cbToken\u7684index\uff0climit\u662f\u671f\u671b\u8fd4\u56de\u7684Token\u6570\u91cf \u8fd4\u56de\u503c\uff1atoken\u5217\u8868\u3002 wallet/transferasset \u00b6 \u4f5c\u7528\uff1a\u8f6c\u8d26Token curl -X POST http://127.0.0.1:8090/wallet/transferasset -d '{\"owner_address\":\"41d1e7a6bc354106cb410e65ff8b181c600ff14292\", \"to_address\": \"41e552f6487585c2b58bc2c9bb4492bc1f17132cd0\", \"asset_name\": \"0x6173736574497373756531353330383934333132313538\", \"amount\": 100}' \u53c2\u6570\u8bf4\u660e\uff1a owner_address \u662ftoken\u8f6c\u51fa\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f to_address \u662ftoken\u8f6c\u5165\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f asset_name \u662ftoken\u540d\u79f0\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f amount \u662ftoken\u8f6c\u8d26\u6570\u91cf Permission_id \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1atoken\u8f6c\u8d26\u7684Transaction \u3010\u6ce8\u610f\u3011 - \u5f53\u524d\u7684asset_name\u4e3atoken\u540d\u79f0\u3002\u5f53\u59d4\u5458\u4f1a\u901a\u8fc7AllowSameTokenName\u63d0\u8bae\u540easset_name\u6539\u4e3atoken ID\u7684String\u7c7b\u578b\u3002 wallet/participateassetissue \u00b6 \u4f5c\u7528\uff1a\u53c2\u4e0etoken\u53d1\u884c curl -X POST http://127.0.0.1:8090/wallet/participateassetissue -d '{ \"to_address\": \"41e552f6487585c2b58bc2c9bb4492bc1f17132cd0\", \"owner_address\":\"41e472f387585c2b58bc2c9bb4492bc1f17342cd1\", \"amount\":100, \"asset_name\":\"3230313271756265696a696e67\" }' \u53c2\u6570\u8bf4\u660e\uff1a to_address \u662fToken\u53d1\u884c\u4eba\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f owner_address \u662f\u53c2\u4e0etoken\u4eba\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f amount \u662f\u53c2\u4e0etoken\u7684\u6570\u91cf asset_name \u662ftoken\u7684\u540d\u79f0\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f Permission_id \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u53c2\u4e0etoken\u53d1\u884c\u7684transaction \u3010\u6ce8\u610f\u3011 - \u5f53\u524d\u7684asset_name\u4e3atoken\u540d\u79f0\u3002\u5f53\u59d4\u5458\u4f1a\u901a\u8fc7AllowSameTokenName\u63d0\u8bae\u540easset_name\u6539\u4e3atoken ID\u7684String\u7c7b\u578b\u3002 wallet/createassetissue \u00b6 \u4f5c\u7528\uff1a\u53d1\u884cToken curl -X POST http://127.0.0.1:8090/wallet/createassetissue -d '{ \"owner_address\":\"41e552f6487585c2b58bc2c9bb4492bc1f17132cd0\", \"name\":\"0x6173736574497373756531353330383934333132313538\", \"abbr\": \"0x6162627231353330383934333132313538\", \"total_supply\" :4321, \"trx_num\":1, \"num\":1, \"start_time\" : 1530894315158, \"end_time\":1533894312158, \"description\":\"007570646174654e616d6531353330363038383733343633\", \"url\":\"007570646174654e616d6531353330363038383733343633\", \"free_asset_net_limit\":10000, \"public_free_asset_net_limit\":10000, \"frozen_supply\":{\"frozen_amount\":1, \"frozen_days\":2} }' \u53c2\u6570\u8bf4\u660e\uff1a owner_address \u53d1\u884c\u4eba\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f name \u662ftoken\u540d\u79f0\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f abbr \u662ftoken\u7b80\u79f0\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f total_supply \u662f\u53d1\u884c\u603b\u91cf trx_num \u548c num \u662ftoken\u548ctrx\u7684\u6700\u5c0f\u5355\u4f4d\u5151\u6362\u6bd4 start_time \u548c end_time \u662ftoken\u53d1\u884c\u8d77\u6b62\u65f6\u95f4 description \u662ftoken\u8bf4\u660e\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f url \u662ftoken\u53d1\u884c\u65b9\u7684\u5b98\u7f51\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f free_asset_net_limit \u662fToken\u7684\u603b\u7684\u514d\u8d39\u5e26\u5bbd public_free_asset_net_limit \u662f\u6bcf\u4e2atoken\u62e5\u62a4\u8005\u80fd\u4f7f\u7528\u672ctoken\u7684\u514d\u8d39\u5e26\u5bbd frozen_supply \u662ftoken\u53d1\u884c\u8005\u53ef\u4ee5\u5728\u53d1\u884c\u7684\u65f6\u5019\u6307\u5b9a\u8d28\u62bc\u7684token Permission_id \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u53d1\u884cToken\u7684Transaction wallet/unfreezeasset \u00b6 \u4f5c\u7528\uff1a\u89e3\u9501\u5df2\u7ecf\u7ed3\u675f\u8d28\u62bc\u671f\u7684Token curl -X POST http://127.0.0.1:8090/wallet/unfreezeasset -d '{ \"owner_address\":\"41e472f387585c2b58bc2c9bb4492bc1f17342cd1\", }' \u53c2\u6570\u8bf4\u660e\uff1a owner_address \u662f\u89e3\u9501token\u8d26\u53f7\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f Permission_id \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u89e3\u9501token\u7684transaction wallet/updateasset \u00b6 \u4f5c\u7528\uff1a\u4fee\u6539token\u4fe1\u606f curl -X POST http://127.0.0.1:8090/wallet/updateasset -d '{ \"owner_address\":\"41e472f387585c2b58bc2c9bb4492bc1f17342cd1\", \"description\": \"\"\uff0c \"url\": \"\", \"new_limit\" : 1000000, \"new_public_limit\" : 100 }' \u53c2\u6570\u8bf4\u660e\uff1a owner_address \u662ftoken\u53d1\u884c\u4eba\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f description \u662ftoken\u7684\u63cf\u8ff0\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f url \u662ftoken\u53d1\u884c\u4eba\u7684\u5b98\u7f51\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f new_limit \u662ftoken\u6bcf\u4e2a\u6301\u6709\u4eba\u80fd\u591f\u4f7f\u7528\u7684\u514d\u8d39\u5e26\u5bbd new_public_limit \u662f\u8be5token\u5168\u90e8\u7684\u514d\u8d39\u5e26\u5bbd Permission_id \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u4fee\u6539Token\u4fe1\u606f\u7684transaction \u6295\u7968\u548cSR \u00b6 \u4e0b\u9762\u662f\u6295\u7968\u548cSR\u76f8\u5173API\uff1a wallet/createwitness wallet/updatewitness wallet/listwitnesses wallet/withdrawbalance wallet/votewitnessaccount wallet/getBrokerage wallet/updateBrokerage wallet/getReward wallet/getnextmaintenancetime wallet/createwitness \u00b6 \u4f5c\u7528\uff1a\u7533\u8bf7\u6210\u4e3a\u8d85\u7ea7\u4ee3\u8868 curl -X POST http://127.0.0.1:8090/wallet/createwitness -d '{\"owner_address\":\"41d1e7a6bc354106cb410e65ff8b181c600ff14292\", \"url\": \"007570646174654e616d6531353330363038383733343633\"}' \u53c2\u6570\u8bf4\u660e\uff1a owner_address \u662f\u7533\u8bf7\u6210\u4e3a\u8d85\u7ea7\u4ee3\u8868\u7684\u8d26\u53f7\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f url \u662f\u5b98\u7f51\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u53ef\u9009\u53c2\u6570 Permission_id \uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u7533\u8bf7\u8d85\u7ea7\u4ee3\u8868\u7684Transaction wallet/updatewitness \u00b6 \u4f5c\u7528\uff1a\u4fee\u6539witness\u7684url curl -X POST http://127.0.0.1:8090/wallet/updatewitness -d '{ \"owner_address\":\"41d1e7a6bc354106cb410e65ff8b181c600ff14292\", \"update_url\": \"007570646174654e616d6531353330363038383733343633\" }' \u53c2\u6570\u8bf4\u660e\uff1a owner_address \u662f\u521b\u5efa\u4eba\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f update_url \u662f\u66f4\u65b0\u7684\u5b98\u7f51\u7684url\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u53ef\u9009\u53c2\u6570 Permission_id \uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u66f4\u65b0witness\u7684Transaction wallet/listwitnesses \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u6240\u6709witness\u5217\u8868 curl -X POST http://127.0.0.1:8090/wallet/listwitnesses \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c\uff1awitness\u5217\u8868\u3002 wallet/withdrawbalance \u00b6 \u4f5c\u7528\uff1a\u8d85\u7ea7\u4ee3\u8868\u63d0\u73b0\u5956\u52b1\u5230balance\uff0c\u6bcf24\u4e2a\u5c0f\u65f6\u53ef\u4ee5\u63d0\u73b0\u4e00\u6b21 curl -X POST http://127.0.0.1:8090/wallet/withdrawbalance -d '{ \"owner_address\":\"41e472f387585c2b58bc2c9bb4492bc1f17342cd1\", }' \u53c2\u6570\u8bf4\u660e\uff1a owner_address \u662f\u63d0\u73b0\u8d26\u53f7\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f Permission_id \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u63d0\u73b0Trx\u7684transaction wallet/votewitnessaccount \u00b6 \u4f5c\u7528\uff1a\u5bf9\u8d85\u7ea7\u4ee3\u8868\u8fdb\u884c\u6295\u7968 curl -X POST http://127.0.0.1:8090/wallet/votewitnessaccount -d '{ \"owner_address\":\"41d1e7a6bc354106cb410e65ff8b181c600ff14292\", \"votes\": [{\"vote_address\": \"41e552f6487585c2b58bc2c9bb4492bc1f17132cd0\", \"vote_count\": 5}] }' \u53c2\u6570\u8bf4\u660e\uff1a owner_address \u662f\u6295\u7968\u4eba\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f votes.vote_address \u662f\u88ab\u6295\u7968\u7684\u8d85\u7ea7\u4ee3\u8868\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f vote_count \u662f\u6295\u7968\u6570\u91cf \u53ef\u9009\u53c2\u6570 Permission_id \uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u6295\u7968\u7684Transaction wallet/getBrokerage \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2witness\u5f53\u524dBrokerage\u6bd4\u4f8b curl -X GET http://127.0.0.1:8090/wallet/getBrokerage -d '{ \"address\":\"41E552F6487585C2B58BC2C9BB4492BC1F17132CD0\"}' \u53c2\u6570\u8bf4\u660e\uff1a address \u662f\u88ab\u6295\u7968\u7684\u8d85\u7ea7\u4ee3\u8868\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1awitness\u5f53\u524dBrokerage\u6bd4\u4f8b wallet/updateBrokerage \u00b6 \u4f5c\u7528\uff1a\u66f4\u65b0witness\u5f53\u524dBrokerage\u6bd4\u4f8b curl -X POST http://47.252.81.126:8090/wallet/updateBrokerage -d '{ \"owner_address\":\"41E552F6487585C2B58BC2C9BB4492BC1F17132CD0\", \"brokerage\":30}' \u53c2\u6570\u8bf4\u660e\uff1a owner_address \u662f\u88ab\u6295\u7968\u7684\u8d85\u7ea7\u4ee3\u8868\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f brokerage \u662fwitness\u60f3\u8981\u66f4\u65b0\u4e3a\u7684Brokerage\u6bd4\u4f8b \u8fd4\u56de\u503c\uff1a\u66f4\u65b0Brokerage\u7684Transaction wallet/getReward \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u6295\u7968\u4eba\u672a\u9886\u53d6\u7684\u5956\u52b1 curl -X GET http://127.0.0.1:8090/wallet/getReward -d '{ \"address\":\"41E552F6487585C2B58BC2C9BB4492BC1F17132CD0\"}' \u53c2\u6570\u8bf4\u660e\uff1aaddress\u662f\u6295\u7968\u4eba\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1a\u6295\u7968\u4eba\u672a\u9886\u53d6\u7684\u5956\u52b1 wallet/getnextmaintenancetime \u00b6 \u4f5c\u7528\uff1a\u83b7\u53d6\u4e0b\u6b21\u7edf\u8ba1\u6295\u7968\u7684\u65f6\u95f4 curl -X POST http://127.0.0.1:8090/wallet/getnextmaintenancetime \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c\uff1a\u4e0b\u6b21\u7edf\u8ba1\u6295\u7968\u65f6\u95f4\u7684\u6beb\u79d2\u6570\u3002 \u63d0\u6848 \u00b6 \u4e0b\u9762\u662f\u63d0\u6848\u76f8\u5173API\uff1a wallet/proposalcreate wallet/getproposalbyid wallet/listproposals wallet/proposalapprove wallet/proposaldelete wallet/getpaginatedproposallist wallet/proposalcreate \u00b6 \u4f5c\u7528\uff1a\u521b\u5efa\u63d0\u6848 curl -X POST http://127.0.0.1:8090/wallet/proposalcreate -d {\"owner_address\" : \"419844F7600E018FD0D710E2145351D607B3316CE9\",\"parameters\":[{\"key\": 0,\"value\": 100000},{\"key\": 1,\"value\": 2}] } \u53c2\u6570\u8bf4\u660e\uff1a owner_address \uff1a\u521b\u5efa\u4eba\u5730\u5740 parameters \uff1a\u63d0\u6848\u53c2\u6570 \u53ef\u9009\u53c2\u6570 Permission_id \uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u521b\u5efa\u63d0\u6848\u7684\u4ea4\u6613 wallet/getproposalbyid \u00b6 \u4f5c\u7528\uff1a\u6839\u636eid\u67e5\u8be2\u63d0\u6848 curl -X POST http://127.0.0.1:8090/wallet/getproposalbyid -d {\"id\":1} \u53c2\u6570\u8bf4\u660e\uff1aid\uff1a\u63d0\u6848id \u8fd4\u56de\u503c\uff1a\u63d0\u6848\u8be6\u7ec6\u4fe1\u606f wallet/listproposals \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u6240\u6709\u63d0\u6848 curl -X POST http://127.0.0.1:8090/wallet/listproposals \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c\uff1a\u63d0\u6848\u5217\u8868\u4fe1\u606f wallet/proposalapprove \u00b6 \u4f5c\u7528\uff1a\u63d0\u6848\u6279\u51c6 curl -X POST http://127.0.0.1:8090/wallet/proposalapprove -d {\"owner_address\" : \"419844F7600E018FD0D710E2145351D607B3316CE9\", \"proposal_id\":1, \"is_add_approval\":true} \u53c2\u6570\u8bf4\u660e\uff1a owner_address \uff1a\u6279\u51c6\u4eba\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f proposal_id \uff1a\u63d0\u6848id is_add_approval \uff1a\u662f\u5426\u6279\u51c6 \u53ef\u9009\u53c2\u6570 Permission_id \uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u6279\u51c6\u63d0\u6848\u7684\u4ea4\u6613 wallet/proposaldelete \u00b6 \u4f5c\u7528\uff1a\u5220\u9664\u63d0\u6848 curl -X POST http://127.0.0.1:8090/wallet/proposaldelete -d {\"owner_address\" : \"419844F7600E018FD0D710E2145351D607B3316CE9\", \"proposal_id\":1} \u53c2\u6570\u8bf4\u660e\uff1a owner_address \uff1a\u5220\u9664\u4eba\u7684\u5730\u5740\uff0c\u53ea\u6709\u63d0\u6848\u6240\u6709\u4eba\u5141\u8bb8\u5220\u9664\u63d0\u6848\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f proposal_id \uff1a\u63d0\u6848id \u53ef\u9009\u53c2\u6570 Permission_id \uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u5220\u9664\u63d0\u6848\u7684\u4ea4\u6613 wallet/getpaginatedproposallist \u00b6 \u4f5c\u7528\uff1a\u5206\u9875\u67e5\u8be2proposal\u5217\u8868 curl -X POST http://127.0.0.1:8090/wallet/getpaginatedproposallist -d '{\"offset\": 0, \"limit\": 10}' \u53c2\u6570\u8bf4\u660e\uff1aoffset\u662f\u8d77\u59cbToken\u7684index\uff0climit\u662f\u671f\u671b\u8fd4\u56de\u7684Token\u6570\u91cf \u8fd4\u56de\u503c\uff1atoken\u5217\u8868\u3002 \u53bb\u4e2d\u5fc3\u5316\u4ea4\u6613\u6240 \u00b6 \u4e0b\u9762\u662f\u53bb\u4e2d\u5fc3\u5316\u4ea4\u6613\u6240\u76f8\u5173API\uff1a wallet/exchangecreate wallet/exchangeinject wallet/exchangewithdraw wallet/exchangetransaction wallet/getexchangebyid wallet/listexchanges wallet/getpaginatedexchangelist wallet/marketsellasset wallet/marketcancelorder wallet/getmarketorderbyaccount wallet/getmarketpairlist wallet/getmarketorderlistbypair wallet/getmarketpricebypair wallet/getmarketorderbyid wallet/exchangecreate \u00b6 \u4f5c\u7528\uff1a\u521b\u5efa\u4ea4\u6613\u5bf9 curl -X POST http://127.0.0.1:8090/wallet/exchangecreate -d {\"owner_address\":\"419844f7600e018fd0d710e2145351d607b3316ce9\", \u3001 \"first_token_id\":token_a, \"first_token_balance\":100, \"second_token_id\":token_b,\"second_token_balance\":200} \u53c2\u6570\u8bf4\u660e\uff1a first_token_id \uff1a\u7b2c1\u79cdtoken\u7684id\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f first_token_balance \uff1a\u7b2c1\u79cdtoken\u7684balance second_token_id \uff1a \u7b2c2\u79cdtoken\u7684id\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f second_token_balance \uff1a\u7b2c2\u79cdtoken\u7684balance \u53ef\u9009\u53c2\u6570 Permission_id \uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u521b\u5efa\u4ea4\u6613\u5bf9\u7684transaction\u3002 wallet/exchangeinject \u00b6 \u4f5c\u7528\uff1a\u7ed9\u4ea4\u6613\u5bf9\u6ce8\u8d44\uff0c\u6ce8\u8d44\u540e\u53ef\u4ee5\u9632\u6b62\u4ea4\u6613\u5bf9\u4ef7\u683c\u6ce2\u52a8\u592a\u5927 curl -X POST http://127.0.0.1:8090/wallet/exchangeinject -d {\"owner_address\":\"419844f7600e018fd0d710e2145351d607b3316ce9\", \"exchange_id\":1, \"token_id\":\"74726f6e6e616d65\", \"quant\":100} \u53c2\u6570\u8bf4\u660e\uff1a owner_address \uff1a\u4ea4\u6613\u5bf9\u521b\u5efa\u8005\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f exchange_id \uff1a\u4ea4\u6613\u5bf9id token_id \uff1a token\u7684id\uff0c\u4e00\u822c\u60c5\u51b5\u662ftoken\u7684name\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f quant \uff1a\u6ce8\u8d44token\u7684\u6570\u91cf \u53ef\u9009\u53c2\u6570 Permission_id \uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u6ce8\u8d44\u7684transaction\u3002 wallet/exchangewithdraw \u00b6 \u4f5c\u7528\uff1a\u5bf9\u4ea4\u6613\u5bf9\u64a4\u8d44\uff0c\u64a4\u8d44\u540e\u5bb9\u6613\u5f15\u8d77\u4ea4\u6613\u5bf9\u4ef7\u683c\u6ce2\u52a8\u592a\u5927\u3002 curl -X POST http://127.0.0.1:8090/wallet/exchangewithdraw -d {\"owner_address\":\"419844f7600e018fd0d710e2145351d607b3316ce9\", \"exchange_id\":1, \"token_id\":\"74726f6e6e616d65\", \"quant\":100} \u53c2\u6570\u8bf4\u660e\uff1a owner_address \uff1a\u662f\u4ea4\u6613\u5bf9\u521b\u5efa\u8005\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f exchange_id \uff1a\u4ea4\u6613\u5bf9id token_id \uff1a token\u7684id\uff0c\u4e00\u822c\u60c5\u51b5\u662ftoken\u7684name\uff0c\u9700\u8981\u662fhexString\u683c\u5f0f quant \uff1a\u64a4\u8d44token\u7684\u6570\u91cf \u53ef\u9009\u53c2\u6570 Permission_id \uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u64a4\u8d44\u7684transaction wallet/exchangetransaction \u00b6 \u4f5c\u7528\uff1a\u53c2\u4e0e\u4ea4\u6613\u5bf9\u4ea4\u6613\u3002 curl -X POST http://127.0.0.1:8090/wallet/exchangetransaction -d {\"owner_address\":\"419844f7600e018fd0d710e2145351d607b3316ce9\", \"exchange_id\":1, \"token_id\":\"74726f6e6e616d65\", \"quant\":100,\"expected\":10} \u53c2\u6570\u8bf4\u660e\uff1a owner_address \uff1a\u662f\u4ea4\u6613\u5bf9\u521b\u5efa\u8005\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f exchange_id \uff1a\u4ea4\u6613\u5bf9id token_id \uff1a \u5356\u51fa\u7684token\u7684id\uff0c\u4e00\u822c\u60c5\u51b5\u662ftoken\u7684name\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f quant \uff1a\u5356\u51fatoken\u7684\u6570\u91cf expected \uff1a\u671f\u671b\u4e70\u5165token\u7684\u6570\u91cf \u53ef\u9009\u53c2\u6570 Permission_id \uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1atoken\u4ea4\u6613\u7684transaction wallet/getexchangebyid \u00b6 \u4f5c\u7528\uff1a\u6839\u636eid\u67e5\u8be2\u4ea4\u6613\u5bf9 curl -X POST http://127.0.0.1:8090/wallet/getexchangebyid -d {\"id\":1} \u53c2\u6570\u8bf4\u660e\uff1aid\uff1a\u4ea4\u6613\u5bf9id \u8fd4\u56de\u503c\uff1a\u4ea4\u6613\u5bf9 wallet/listexchanges \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u6240\u6709\u4ea4\u6613\u5bf9 curl -X POST http://127.0.0.1:8090/wallet/listexchanges \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c\uff1a\u6240\u6709\u4ea4\u6613\u5bf9 wallet/getpaginatedexchangelist \u00b6 \u4f5c\u7528\uff1a\u5206\u9875\u67e5\u8be2\u4ea4\u6613\u5bf9\u5217\u8868 curl -X POST http://127.0.0.1:8090/wallet/getpaginatedexchangelist -d '{\"offset\": 0, \"limit\":10}' \u53c2\u6570\u8bf4\u660e\uff1aoffset\u662f\u8d77\u59cb\u4ea4\u6613\u5bf9\u7684index\uff0climit\u662f\u671f\u671b\u8fd4\u56de\u7684\u4ea4\u6613\u5bf9\u6570\u91cf \u8fd4\u56de\u503c\uff1aexchange\u5217\u8868 wallet/marketsellasset \u00b6 \u4f5c\u7528\uff1a\u521b\u5efa\u8ba2\u5355 curl -X POST http://127.0.0.1:8090/wallet/marketsellasset -d '{ \"owner_address\": \"4184894b42f66dce8cb84aec2ed11604c991351ac8\", \"sell_token_id\": \"5f\", \"sell_token_quantity\": 100, \"buy_token_id\": \"31303030303031\", \"buy_token_quantity\": 200 }' \u53c2\u6570\u8bf4\u660e\uff1a owner_address \uff1a\u8ba2\u5355\u53d1\u8d77\u8005\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f sell_token_id \uff1a\u5356\u51faasset\u7684id\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f sell_token_quantity \uff1a\u5356\u51faasset\u7684\u6570\u91cf buy_token_id \uff1a\u4e70\u5165asset\u7684id\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f buy_token_quantity \uff1a\u6700\u5c11\u4e70\u5165\u7684asset\u7684\u6570\u91cf \u8fd4\u56de\u503c\uff1a\u4ea4\u6613\u5bf9\u8c61 wallet/marketcancelorder \u00b6 \u4f5c\u7528\uff1a\u53d6\u6d88\u8ba2\u5355 curl -X POST http://127.0.0.1:8090/wallet/marketcancelorder -d '{ \"owner_address\": \"4184894b42f66dce8cb84aec2ed11604c991351ac8\", \"order_id\": \"0a7af584a53b612bcff1d0fc86feab05f69bc4528f26a4433bb344d453bd6eeb\" }' \u53c2\u6570\u8bf4\u660e\uff1a owner_address \uff1a\u8ba2\u5355\u53d1\u8d77\u8005\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f order_id \uff1a\u53d6\u6d88\u8ba2\u5355\u7684id \u8fd4\u56de\u503c\uff1a\u4ea4\u6613\u5bf9\u8c61 wallet/getmarketorderbyaccount \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u8d26\u6237\u62e5\u6709\u7684\u8ba2\u5355 curl -X POST http://127.0.0.1:8090/wallet/getmarketorderbyaccount -d '{ \"value\": \"4184894b42f66dce8cb84aec2ed11604c991351ac8\" }' \u53c2\u6570\u8bf4\u660e\uff1a value \uff1a\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1a\u8ba2\u5355\u5217\u8868 wallet/getmarketpairlist \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u5b58\u5728\u7684\u6240\u6709\u4ea4\u6613\u5bf9 curl -X get http://127.0.0.1:8090/wallet/getmarketpairlist \u53c2\u6570\u8bf4\u660e\uff1a \u65e0 \u8fd4\u56de\u503c\uff1a\u4ea4\u6613\u5bf9\u5217\u8868 wallet/getmarketorderlistbypair \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u67d0\u4ea4\u6613\u5bf9\u7684\u6240\u6709\u8ba2\u5355 curl -X POST http://127.0.0.1:8090/wallet/getmarketorderlistbypair -d '{ \"sell_token_id\": \"5f\" , \"buy_token_id\": \"31303030303031\" }' \u53c2\u6570\u8bf4\u660e\uff1a sell_token_id \uff1a\u5356\u51faasset\u7684id\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f buy_token_id \uff1a\u4e70\u5165asset\u7684id\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1a\u8ba2\u5355\u5217\u8868 wallet/getmarketpricebypair \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u67d0\u4ea4\u6613\u5bf9\u7684\u6240\u6709\u4ef7\u683c curl -X POST http://127.0.0.1:8090/wallet/getmarketpricebypair -d '{ \"sell_token_id\": \"5f\" \"buy_token_id\": \"31303030303031\" }' \u53c2\u6570\u8bf4\u660e\uff1a sell_token_id \uff1a\u5356\u51faasset\u7684id\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f buy_token_id \uff1a\u4e70\u5165asset\u7684id\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1a\u4ef7\u683c\u5217\u8868 wallet/getmarketorderbyid \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u8ba2\u5355 curl -X POST http://127.0.0.1:8090/wallet/getmarketorderbyid -d '{ \"value\": \"orderid\" }' \u53c2\u6570\u8bf4\u660e\uff1a - value \uff1aorder id\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1a\u8ba2\u5355 TRONZ \u533f\u540d\u667a\u80fd\u5408\u7ea6 \u00b6 \u4e0b\u9762\u662f TRONZ \u533f\u540d\u667a\u80fd\u5408\u7ea6\u76f8\u5173API\uff1a wallet/getexpandedspendingkey wallet/getakfromask wallet/getnkfromnsk wallet/getspendingkey wallet/getdiversifier wallet/getincomingviewingkey wallet/getzenpaymentaddress wallet/createshieldedtransactionwithoutspendauthsig wallet/scannotebyivk wallet/scanandmarknotebyivk wallet/scannotebyovk wallet/createshieldnullifier wallet/getshieldtransactionhash wallet/createshieldedtransaction wallet/getnewshieldedaddress wallet/createshieldedcontractparameters wallet/createshieldedcontractparameterswithoutask wallet/scanshieldedtrc20notesbyivk wallet/scanshieldedtrc20notesbyovk wallet/isshieldedtrc20contractnotespent wallet/gettriggerinputforshieldedtrc20contract wallet/getrcm wallet/getmerkletreevoucherinfo wallet/isspend wallet/createspendauthsig wallet/getexpandedspendingkey \u00b6 \u4f5c\u7528\uff1a\u83b7\u53d6expanded spending keys curl -X POST http://127.0.0.1:8090/wallet/getexpandedspendingkey -d '{ \"value\": \"06b02aaa00f230b0887ff57a6609d76691369972ac3ba568fe7a8a0897fce7c4\" }' \u53c2\u6570\u8bf4\u660e\uff1avalue\uff1aSpending key \u8fd4\u56de\u503c\uff1a Expanded spending keys. \u7531\u4e09\u4e2akey\u7ec4\u6210\uff0c\u5206\u522b\u662f ask\u3001 nsk\u548covk. wallet/getakfromask \u00b6 \u4f5c\u7528\uff1a\u4eceask\u83b7\u5f97ak curl -X POST http://127.0.0.1:8090/wallet/getakfromask -d '{ \"value\": \"653b3a3fdd40b60d2f53ba121df8840f6590384993f8fa9a0ecb0dfb23496604\" }' \u53c2\u6570\u8bf4\u660e\uff1avalue\uff1aAsk \u8fd4\u56de\u503c\uff1aAk wallet/getnkfromnsk \u00b6 \u4f5c\u7528\uff1a\u4ecensk\u83b7\u5f97nk curl -X POST http://127.0.0.1:8090/wallet/getnkfromnsk -d '{ \"value\": \"428ff3c9e101dc1fca08f7b0e3387b23b68016746ae565aefc19d112b696db01\" }' \u53c2\u6570\u8bf4\u660e\uff1avalue\uff1aNsk \u8fd4\u56de\u503c\uff1aNk wallet/getspendingkey \u00b6 \u4f5c\u7528\uff1a\u83b7\u5f97spending key curl -X GET http://127.0.0.1:8090/wallet/getspendingkey \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c\uff1aSpending key wallet/getdiversifier \u00b6 \u4f5c\u7528\uff1aTo get diversifier curl -X GET http://127.0.0.1:8090/wallet/getdiversifier \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c: Diversifier wallet/getincomingviewingkey \u00b6 \u4f5c\u7528\uff1a\u83b7\u5f97incoming viewing key curl -X POST http://127.0.0.1:8090/wallet/getincomingviewingkey -d '{ \"ak\":\"b443f1a303ef5837ba95750b48b6fef15f9c77f63a8c28c161bcd6613f423b5c\", \"nk\":\"632137e69179df3d10e252fcce85d13464c3163fe7a619edf8d43ebefa8162d9\" }' \u53c2\u6570\u8bf4\u660e\uff1a ak\uff1aAk nk\uff1aNk \u8fd4\u56de\u503c\uff1aIncoming viewing key wallet/getzenpaymentaddress \u00b6 \u4f5c\u7528\uff1a\u83b7\u5f97\u652f\u4ed8\u5730\u5740 curl -X POST http://127.0.0.1:8090/wallet/getzenpaymentaddress -d '{ \"ivk\":\"8c7852e10862d8eec058635974f70f24c1f8d73819131bb5b54028d0a9408a03\", \"d\":\"736ba8692ed88a5473e009\" }' \u53c2\u6570\u8bf4\u660e\uff1a ivk \uff1aIvk d \uff1aD \u8fd4\u56de\u503c\uff1a\u652f\u4ed8\u5730\u5740 wallet/createshieldedtransactionwithoutspendauthsig \u00b6 \u4f5c\u7528\uff1aTo create shielded transaction without using ask curl -X POST http://127.0.0.1:8090/wallet/createshieldedtransactionwithoutspendauthsig -d '{ \"ivk\":\"8c7852e10862d8eec058635974f70f24c1f8d73819131bb5b54028d0a9408a03\", \"d\":\"736ba8692ed88a5473e009\" }' \u53c2\u6570\u8bf4\u660e\uff1a transparent_from_address \uff1a\u900f\u660e\u53d1\u9001\u8005\u7684\u5730\u5740 from_amount \uff1a\u4ece\u900f\u660e\u5730\u5740\u8f6c\u51fa\u7684\u6570\u989d ask \uff1aAsk nsk \uff1aNsk ovk \uff1aOvk shielded_receives \uff1a\u533f\u540d\u63a5\u6536\u8005\u4fe1\u606f shieldedSpends \uff1a\u533f\u540d\u53d1\u9001\u8005\u4fe1\u606f transparent_to_address \uff1a\u900f\u660e\u63a5\u6536\u8005\u5730\u5740 to_amount \uff1a\u8f6c\u5165\u900f\u660e\u5730\u5740\u7684\u6570\u989d \u8fd4\u56de\u503c\uff1a\u4ea4\u6613\u5bf9\u8c61 wallet/createshieldedtransactionwithoutspendauthsig \u00b6 \u4f5c\u7528\uff1a\u521b\u5efa\u533f\u540d\u4ea4\u6613\uff08\u4e0d\u9700\u8981\u63d0\u4f9bask\uff09 curl -X POST http://127.0.0.1:8090/wallet/createshieldedtransactionwithoutspendauthsig -d '{ \"ak\": \"bf051629fd8122cd9dd8591d72947b026c214cf7cdac1f68eff97179727d38e9\", \"nsk\": \"42963d26af8122204273fa3489d9efd6babf1f7179ff193c955a1f3d9c2df10c\", \"ovk\": \"bc9848a83966709655b12efadc9e978785858316045e0115a0e72567a9a2a823\", \"shielded_spends\": [ { \"note\": { \"value\": 500000000, \"payment_address\": \"ztron1jld8fmvujrz2vgkc867zuwklmewy4ypw0wtwgweqs2paee0uhc8f3azy90el770arksa2kunl02\", \"rcm\": \"723053bcbfecdf5da66c18ab0376476ef308c61b7abe891b2c01e903bcb87c0e\" }, \"alpha\": \"2608999c3a97d005a879ecdaa16fd29ae434fb67b177c5e875b0c829e6a1db04\", \"voucher\": { \"tree\": { \"left\": { \"content\": \"a3d5c9b2db9699f32afec5febbd5586ce9ff33a0bef6fee5691028313b8e1f6a\" }, \"parents\": [ { \"content\": \"d9c38484296b3aa8f5e8b59d418a3775e2bb414e75498ad352e4614f05aae548\" }, { \"content\": \"d0420777afdc4151c3f14fbe4c714d82dc15873edb1ca65ebb3887334a4bae15\" } ] }, \"rt\": \"fb1115d5ddd16c5427c3a608d6b5add5967e70f51c890307c6142083a2c28565\" }, \"path\": \"2020b2eed031d4d6a4f02a097f80b54cc1541d4163c6b6f5971f88b6e41d35c538142012935f14b676509b81eb49ef25f39269ed72309238b4c145803544b646dca62d20e1f34b034d4a3cd28557e2907ebf990c918f64ecb50a94f01d6fda5ca5c7ef722028e7b841dcbc47cceb69d7cb8d94245fb7cb2ba3a7a6bc18f13f945f7dbd6e2a20a5122c08ff9c161d9ca6fc462073396c7d7d38e8ee48cdb3bea7e2230134ed6a20d2e1642c9a462229289e5b0e3b7f9008e0301cbb93385ee0e21da2545073cb582016d6252968971a83da8521d65382e61f0176646d771c91528e3276ee45383e4a20fee0e52802cb0c46b1eb4d376c62697f4759f6c8917fa352571202fd778fd712204c6937d78f42685f84b43ad3b7b00f81285662f85c6a68ef11d62ad1a3ee0850200769557bc682b1bf308646fd0b22e648e8b9e98f57e29f5af40f6edb833e2c492008eeab0c13abd6069e6310197bf80f9c1ea6de78fd19cbae24d4a520e6cf3023208d5fa43e5a10d11605ac7430ba1f5d81fb1b68d29a640405767749e841527673206aca8448d8263e547d5ff2950e2ed3839e998d31cbc6ac9fd57bc6002b15921620cd1c8dbf6e3acc7a80439bc4962cf25b9dce7c896f3a5bd70803fc5a0e33cf00206edb16d01907b759977d7650dad7e3ec049af1a3d875380b697c862c9ec5d51c201ea6675f9551eeb9dfaaa9247bc9858270d3d3a4c5afa7177a984d5ed1be245120d6acdedf95f608e09fa53fb43dcd0990475726c5131210c9e5caeab97f0e642f20bd74b25aacb92378a871bf27d225cfc26baca344a1ea35fdd94510f3d157082c201b77dac4d24fb7258c3c528704c59430b630718bec486421837021cf75dab65120ec677114c27206f5debc1c1ed66f95e2b1885da5b7be3d736b1de98579473048204777c8776a3b1e69b73a62fa701fa4f7a6282d9aee2c7a6b82e7937d7081c23c20ba49b659fbd0b7334211ea6a9d9df185c757e70aa81da562fb912b84f49bce722043ff5457f13b926b61df552d4e402ee6dc1463f99a535f9a713439264d5b616b207b99abdc3730991cc9274727d7d82d28cb794edbc7034b4f0053ff7c4b68044420d6c639ac24b46bd19341c91b13fdcab31581ddaf7f1411336a271f3d0aa52813208ac9cf9c391e3fd42891d27238a81a8a5c1d3a72b1bcbea8cf44a58ce738961320912d82b2c2bca231f71efcf61737fbf0a08befa0416215aeef53e8bb6d23390a20e110de65c907b9dea4ae0bd83a4b0a51bea175646a64c12b4c9f931b2cb31b4920d8283386ef2ef07ebdbb4383c12a739a953a4d6e0d6fb1139a4036d693bfbb6c20d0420777afdc4151c3f14fbe4c714d82dc15873edb1ca65ebb3887334a4bae1520d9c38484296b3aa8f5e8b59d418a3775e2bb414e75498ad352e4614f05aae5482001000000000000000000000000000000000000000000000000000000000000000600000000000000\" } ], \"shielded_receives\": [ { \"note\": { \"value\": 40000000, \"payment_address\": \"ztron1wd46s6fwmz99gulqpxul6zffqtevzfpl93ng3s5834fhwf6e7w5l6zmjhmpvtwsc4wxa7dusmvr\", \"rcm\": \"ccced07d36641fc93cba33cddda7064cb82f6962a0bdf15a4240a4a742770e03\" } } ] }' \u53c2\u6570\u8bf4\u660e\uff1a transparent_from_address \uff1a\u900f\u660e\u53d1\u9001\u8005\u7684\u5730\u5740 from_amount \uff1a\u4ece\u900f\u660e\u5730\u5740\u8f6c\u51fa\u7684\u6570\u989d ak \uff1aAk nsk \uff1aNsk ovk \uff1aOvk shielded_receives \uff1a\u533f\u540d\u63a5\u6536\u8005\u4fe1\u606f shieldedSpends \uff1a\u533f\u540d\u53d1\u9001\u8005\u4fe1\u606f transparent_to_address \uff1a\u900f\u660e\u63a5\u6536\u8005\u5730\u5740 to_amount \uff1a\u8f6c\u5165\u900f\u660e\u5730\u5740\u7684\u6570\u989d \u8fd4\u56de\u503c\uff1a\u4ea4\u6613\u5bf9\u8c61 wallet/scannotebyivk \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u4e0eivk\u76f8\u5173\u7684\u6240\u6709\u7684notes curl -X POST http://127.0.0.1:8090/wallet/scannotebyivk -d '{ \"start_block_index\": 0, \"end_block_index\": 100, \"ivk\": \"80a481c3c739e54b4e0608090b3a1a6e9f8dce42346e95bf5a2d8a487bf45c05\" }' \u53c2\u6570\u8bf4\u660e\uff1a start_block_index \uff1a\u5f00\u59cb\u533a\u5757\u9ad8\u5ea6\uff0c\u5305\u542b\u81ea\u8eab end_block_index \uff1a\u7ed3\u675f\u533a\u5757\u9ad8\u5ea6\uff0c\u4e0d\u5305\u542b\u81ea\u8eab ivk \uff1aIncoming viewing key \u8fd4\u56de\u503c\uff1aNotes\u5217\u8868 \u6ce8\u610f\uff1a\u533a\u95f4\u9650\u5236\uff08end_block_index - start_block_index <= 1000\uff09 wallet/scanandmarknotebyivk \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u4e0eivk\u76f8\u5173\u7684\u6240\u6709\u7684notes, \u5305\u542b\u662f\u5426\u82b1\u8d39\u72b6\u6001 curl -X POST http://127.0.0.1:8090/wallet/scanandmarknotebyivk -d '{ \"start_block_index\": 0, \"end_block_index\": 100, \"ivk\": \"80a481c3c739e54b4e0608090b3a1a6e9f8dce42346e95bf5a2d8a487bf45c05\", \"ak\": \"1d4f9b5551f4aa9443ceb263f0e208eb7e26080264571c5ef06de97a646fe418\", \"nk\": \"748522c7571a9da787e43940c9a474aa0c5c39b46c338905deb6726fa3678bdb\" }' \u53c2\u6570\u8bf4\u660e\uff1a start_block_index \uff1a\u5f00\u59cb\u533a\u5757\u9ad8\u5ea6\uff0c\u5305\u542b\u81ea\u8eab end_block_index \uff1a\u7ed3\u675f\u533a\u5757\u9ad8\u5ea6\uff0c\u4e0d\u5305\u542b\u81ea\u8eab ivk \uff1aIncoming viewing key ak \uff1aAk key nk \uff1aNk key \u8fd4\u56de\u503c\uff1aNotes\u5217\u8868 \u6ce8\u610f\uff1a\u533a\u95f4\u9650\u5236\uff08end_block_index - start_block_index <= 1000\uff09 wallet/scannotebyovk \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u4e0eovk\u76f8\u5173\u7684\u6240\u6709\u7684notes curl -X POST http://127.0.0.1:8090/wallet/scannotebyovk -d '{ \"start_block_index\": 0, \"end_block_index\": 100, \"ovk\": \"705145aa18cbe6c11d5d0011419a98f3d5b1d341eb4727f1315597f4bdaf8539\" }' \u53c2\u6570\u8bf4\u660e\uff1a start_block_index \uff1a\u5f00\u59cb\u533a\u5757\u9ad8\u5ea6\uff0c\u5305\u542b\u81ea\u8eab end_block_index \uff1a\u7ed3\u675f\u533a\u5757\u9ad8\u5ea6\uff0c\u4e0d\u5305\u542b\u81ea\u8eab ovk \uff1aOutgoing viewing key \u8fd4\u56de\u503c\uff1aNotes\u5217\u8868 \u6ce8\u610f\uff1a\u533a\u95f4\u9650\u5236\uff08end_block_index - start_block_index <= 1000\uff09 wallet/createshieldnullifier \u00b6 \u4f5c\u7528\uff1aTo create a shielded nullifier curl -X POST http://127.0.0.1:8090/wallet/createshieldnullifier -d '{ \"note\": { \"payment_address\": \"ztron1aqgauawtkelxfu2w6s48cwh0mchjt6kwpj44l4wym3pullx0294j4r4v7kpm75wnclzycsw73mq\", \"rcm\": \"74a16c1b27ec7fbf06881d9d35ddaab1554838b1bddcd54f6bd8a9fb4ba0b80a\", \"value\": 500000000 }, \"voucher\": { \"tree\": { \"left\": { \"content\": \"a4d763fae3fee78964ccdf7567ec3062c95a5b97825d731202d3dfa6cb01c143\" } }, \"rt\": \"7dc3652c2a16e8518a8be0e3e038f9d28c3eb96f13e8da8acc2a9b650702f33e\" }, \"ak\": \"a3e65d509b675aaa2aeda977ceff11eebd76218079b6f543d78a615e396ca129\", \"nk\": \"62cfda9bea09a53cf2a21022057913734a8458969e11e0bb9c59ead48fbce83e\" }' \u53c2\u6570\u8bf4\u660e\uff1a - note \uff1aNote\u4fe1\u606f - voucher \uff1aVoucher\u4fe1\u606f - ak \uff1aAk - nk \uff1aNk \u8fd4\u56de\u503c\uff1a\u533f\u540d\u7684nullifier wallet/getshieldtransactionhash \u00b6 \u4f5c\u7528\uff1a\u83b7\u5f97\u4e00\u7b14\u533f\u540d\u4ea4\u6613\u7684hash curl -X POST http://127.0.0.1:8090/wallet/getshieldtransactionhash -d '{ \"txID\": \"de639a64497d86bb27e34a2953093a0cc488ec4c7bc9624ac5857d3799748595\", \"raw_data\": { \"contract\": [ { \"parameter\": { \"value\": { \"binding_signature\": \"2b8ae5e11ecad3e6946f54b7ad513bd8692a3edae72d29e266b28e47c9b37ccdb38e3b6433575694b6681136b1734f85afcfe672061d2ee7368755ad0b96a80b\", \"spend_description\": [ { \"value_commitment\": \"cbe1063adbe7e10919421fa6133f03150253913f5aff02d165e2c019cea4a869\", \"anchor\": \"fb1115d5ddd16c5427c3a608d6b5add5967e70f51c890307c6142083a2c28565\", \"nullifier\": \"93e329d464e1dbddc8bb4d2dcc939a796dfe11e985d4e9033a15edf0e3df4f35\", \"rk\": \"10c702d6dff1509502ee5acc0b01d4b4531b2ff53b0dd54488aea6031b5e6d16\", \"zkproof\": \"abf64b3beacfd873b1db764c3da9f739993518f3f740e761cb8af60682b7171892895c3ccfb550c3cf757e906dbf5313a3676b8226b0b84960f76a185c8d3fdfc3fa9c08479a704852d7b3dfeb913cf13e01c25657561e00a06c61e7c65b50b812902ddc4f17bfe2bcb2f247c2dc6132d0f0e0abcecc0332fdd99077af10d07bbdb88c4fd257948428e233c57f84eee8b2eeab2162c1aeccf2e1dfaa306d5803a8b2d281a549440fbd5a3657a830c1ca07a384cea446aa077b195b29b23023b1\" } ], \"receive_description\": [ { \"value_commitment\": \"f6d45db8ec5a1c8dbbde040b4ea138efbe8db2d0597ed2306ff3fdd0620b3c5a\", \"note_commitment\": \"ec3f5472ac8114a9a07987d1c2a0e1254504e352d9574971e77084293900312e\", \"epk\": \"719eeb5ebaeeccc55c9f0d73767aadf0c0513603400ccb50bd789637d984b8e6\", \"c_enc\": \"3a6c4fe0e79f5b23fed34a419c4728d0b26bca23180a22871743b0a9444c27663cf07c55a0ea6db504d70421768bf17384e180b2ad8b8be88ff5cf662c53a4ba086effc3a4b1df39265f71dfac884bff5a69e1dcdcae8aecf6ae443168ffab692a5c1e4908b415dd830dcf6432fae1c32461132080da74d6b83d3d00887eb2ce9965a749f8d8410ea4182969371ac2fd5e0e74d27d883492a08e6209cd9959d74bb67c2a9fe7faac5a4777f1bff19cf0b6398a2faa9b194bbb93d60f132f382f7d693a722e8cbca1da084ee7e0c371397419a7259d1fa0943078cfe5ea352e4b53907bb6c04ca8ad409fb0ae0b110a6b312200e21ab79d543ae7aeb16802cf87afdac1e8954038caa42818f4ca2847fd642360c098accfeeade4abd1cc9ca3315a4336be224ba3516973c7dae3f41875457236675993df38d3a544470c4f9335d77b005e6a9aec40fd881b34852ec9bbbcc3d24ee92930eae770a5462ce04c4e37b0524ef07e00e8d58c810d6aefb19fa7bc2c3a2fdfab6dd4fe73dbecc0795a280f9b7ca35cc8bc1062aed8e26bd81ba33c6f4c318974636f6d796723e77772ced3dbc1f42afec6fc9bb61f8beac704affea9baf2e2de226250c1d427c7d78b1eb1d239e1f3eb6af0f017b80541333f4fce17340048d826b9b0be8477c996ad8bfc3440dc686fdff6d0d63986db4d95962d7977289cbfd14c745de7c79d4dc0bcd220e5b4ced5b409e79142e0f336e44ca29a9a87f6f43707d8c4936e895236dd2b393a478a8bc27b1f682496ba84a0ddc549da06cb7855c4d8680dc66ac40240733b7f\", \"c_out\": \"50be6e77854d4c427b2af4f16e5275f0b0c206b3ea2d2a24ffb287ea356f323523354cd83d15e7c48e6f1fa103dfca3d49ca2263dbb0cd8bfb35d72cdcad1351de6fba7a30aea27184a68bcda19cc6da\", \"zkproof\": \"a4e6c50d5753092d005689922c2bdeafc98775bce59db840974163ace23c13fec18112e32aae1c39842c645ed172ad8fa277e63c1e3d6d7fb12eb15d56b573237b776f562a81d0e6be362d147d8604fdfec421482270ca82950de1883fda06e719f5d256d7a039769bffc570a1778d70c17295d1c0336a6ae0903d2460dc139a9563c2d40f37bffefa73003a55af1ff0861b6f79ef40099b6a0cb25ab3f40727210e4629647d0711abff125712a5f0d64fcb6e6a6b0b34478d7da0552b493a80\" } ] }, \"type_url\": \"type.googleapis.com/protocol.ShieldedTransferContract\" }, \"type\": \"ShieldedTransferContract\" } ], \"ref_block_bytes\": \"0d59\", \"ref_block_hash\": \"7356ce5c35d8265e\", \"expiration\": 1559237283000, \"timestamp\": 1559201285590 }, \"raw_data_hex\": \"0a020d5922087356ce5c35d8265e40b899a3ceb02d5a940b0833128f0b0a35747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e536869656c6465645472616e73666572436f6e747261637412d50a1acb020a20cbe1063adbe7e10919421fa6133f03150253913f5aff02d165e2c019cea4a8691220fb1115d5ddd16c5427c3a608d6b5add5967e70f51c890307c6142083a2c285651a2093e329d464e1dbddc8bb4d2dcc939a796dfe11e985d4e9033a15edf0e3df4f35222010c702d6dff1509502ee5acc0b01d4b4531b2ff53b0dd54488aea6031b5e6d162ac001abf64b3beacfd873b1db764c3da9f739993518f3f740e761cb8af60682b7171892895c3ccfb550c3cf757e906dbf5313a3676b8226b0b84960f76a185c8d3fdfc3fa9c08479a704852d7b3dfeb913cf13e01c25657561e00a06c61e7c65b50b812902ddc4f17bfe2bcb2f247c2dc6132d0f0e0abcecc0332fdd99077af10d07bbdb88c4fd257948428e233c57f84eee8b2eeab2162c1aeccf2e1dfaa306d5803a8b2d281a549440fbd5a3657a830c1ca07a384cea446aa077b195b29b23023b122c2070a20f6d45db8ec5a1c8dbbde040b4ea138efbe8db2d0597ed2306ff3fdd0620b3c5a1220ec3f5472ac8114a9a07987d1c2a0e1254504e352d9574971e77084293900312e1a20719eeb5ebaeeccc55c9f0d73767aadf0c0513603400ccb50bd789637d984b8e622c4043a6c4fe0e79f5b23fed34a419c4728d0b26bca23180a22871743b0a9444c27663cf07c55a0ea6db504d70421768bf17384e180b2ad8b8be88ff5cf662c53a4ba086effc3a4b1df39265f71dfac884bff5a69e1dcdcae8aecf6ae443168ffab692a5c1e4908b415dd830dcf6432fae1c32461132080da74d6b83d3d00887eb2ce9965a749f8d8410ea4182969371ac2fd5e0e74d27d883492a08e6209cd9959d74bb67c2a9fe7faac5a4777f1bff19cf0b6398a2faa9b194bbb93d60f132f382f7d693a722e8cbca1da084ee7e0c371397419a7259d1fa0943078cfe5ea352e4b53907bb6c04ca8ad409fb0ae0b110a6b312200e21ab79d543ae7aeb16802cf87afdac1e8954038caa42818f4ca2847fd642360c098accfeeade4abd1cc9ca3315a4336be224ba3516973c7dae3f41875457236675993df38d3a544470c4f9335d77b005e6a9aec40fd881b34852ec9bbbcc3d24ee92930eae770a5462ce04c4e37b0524ef07e00e8d58c810d6aefb19fa7bc2c3a2fdfab6dd4fe73dbecc0795a280f9b7ca35cc8bc1062aed8e26bd81ba33c6f4c318974636f6d796723e77772ced3dbc1f42afec6fc9bb61f8beac704affea9baf2e2de226250c1d427c7d78b1eb1d239e1f3eb6af0f017b80541333f4fce17340048d826b9b0be8477c996ad8bfc3440dc686fdff6d0d63986db4d95962d7977289cbfd14c745de7c79d4dc0bcd220e5b4ced5b409e79142e0f336e44ca29a9a87f6f43707d8c4936e895236dd2b393a478a8bc27b1f682496ba84a0ddc549da06cb7855c4d8680dc66ac40240733b7f2a5050be6e77854d4c427b2af4f16e5275f0b0c206b3ea2d2a24ffb287ea356f323523354cd83d15e7c48e6f1fa103dfca3d49ca2263dbb0cd8bfb35d72cdcad1351de6fba7a30aea27184a68bcda19cc6da32c001a4e6c50d5753092d005689922c2bdeafc98775bce59db840974163ace23c13fec18112e32aae1c39842c645ed172ad8fa277e63c1e3d6d7fb12eb15d56b573237b776f562a81d0e6be362d147d8604fdfec421482270ca82950de1883fda06e719f5d256d7a039769bffc570a1778d70c17295d1c0336a6ae0903d2460dc139a9563c2d40f37bffefa73003a55af1ff0861b6f79ef40099b6a0cb25ab3f40727210e4629647d0711abff125712a5f0d64fcb6e6a6b0b34478d7da0552b493a802a402b8ae5e11ecad3e6946f54b7ad513bd8692a3edae72d29e266b28e47c9b37ccdb38e3b6433575694b6681136b1734f85afcfe672061d2ee7368755ad0b96a80b70d68b8ebdb02d\" }' \u53c2\u6570\u8bf4\u660e\uff1atransaction\uff1a\u4ea4\u6613\u5bf9\u8c61 \u8fd4\u56de\u503c\uff1a\u4e00\u7b14\u533f\u540d\u4ea4\u6613\u7684hash wallet/createshieldedtransaction \u00b6 \u4f5c\u7528\uff1a\u521b\u5efa\u533f\u540d\u4ea4\u6613\uff0c\u8bf7\u53c2\u7167\uff1a \u793a\u4f8b \u53c2\u6570\u8bf4\u660e\uff1a transparent_from_address \uff1a\u900f\u660e\u53d1\u9001\u8005\u7684\u5730\u5740 from_amount \uff1a\u4ece\u900f\u660e\u5730\u5740\u8f6c\u51fa\u7684\u6570\u989d ask \uff1aAsk nsk \uff1aNsk ovk \uff1aOvk shielded_receives \uff1a\u533f\u540d\u63a5\u6536\u8005\u4fe1\u606f shieldedSpends \uff1a\u533f\u540d\u53d1\u9001\u8005\u4fe1\u606f transparent_to_address \uff1a\u900f\u660e\u63a5\u6536\u8005\u5730\u5740 to_amount \uff1a\u8f6c\u5165\u900f\u660e\u5730\u5740\u7684\u6570\u989d \u8fd4\u56de\u503c\uff1a\u4ea4\u6613\u5bf9\u8c61 wallet/getnewshieldedaddress \u00b6 \u4f5c\u7528: \u83b7\u5f97shieldedAddress curl -X GET http://127.0.0.1:8090/wallet/getnewshieldedaddress \u53c2\u6570\u8bf4\u660e: \u65e0 \u8fd4\u56de\u503c: Spending key Ask key Nsk key Outgoing viewing key Ak Key Nk key incoming viewing key Diversifier pkD payment address wallet/createshieldedcontractparameters \u00b6 \u4f5c\u7528\uff1a\u521b\u5efa\u533f\u540dTRC20\u5408\u7ea6\u4ea4\u6613\u7684\u76f8\u5173\u53c2\u6570\uff0c\u5305\u62ecmint, transfer\u548cburn\u4e09\u79cd\u7c7b\u578b curl -X POST http://127.0.0.1:8090/wallet/createshieldedcontractparameters -d '{ \"ask\": \"0f63eabdfe2bbfe08012f6bb2db024e6809c16e8ed055aa41a6095424f192005\", \"nsk\": \"cd43d722fd4b6b01f19449ea826c3e935609648520fcc2a95c0026f0fa9ee404\", \"ovk\": \"1797de3b7f33cafffe3fe18c6b43ec6760add2ad81b10978d1fca5290497ede9\", \"from_amount\": \"5000\", \"shielded_receives\": { \"note\": { \"value\": 50, \"payment_address\": \"ztron15js0jkuxczt8caq5hp59rnh6rgf34sek7vqn9u6ljelxv4nuzz2x9qe3ffm2wzz6ck53yxyhxs6\", \"rcm\": \"74baec30dfac8ed59968955ff245ae002009005194e5b824c35ab88c52e5170e\" } }, \"shielded_TRC20_contract_address\": \"41f3392eaa7d38749176e0671dbc6912f8ef956943\" }' \u53c2\u6570\u8bf4\u660e\uff1a ask \uff1aAsk nsk \uff1aNsk ovk \uff1aOutgoing view key from_amount \uff1amint\u7684\u91d1\u989d\uff0c\u6839\u636e\u7f29\u653e\u56e0\u5b50scalingFactor\uff0c\u548cnote\u503c\u4e2d\u7684 value \u6210\u6bd4\u4f8b\u5173\u7cfb\uff0c\u5373 from_amount = value * scalingFactor. \u5728\u4e0a\u9762\u7684\u793a\u4f8b\u4e2d\uff0cscalingFactor\u503c\u4e3a100 shielded_receives : \u5f85\u521b\u5efa\u7684\u533f\u540d\u5408\u7ea6notes shielded_TRC20_contract_address : \u533f\u540dTRC20\u5408\u7ea6\u5730\u5740 \u8fd4\u56de\u503c\uff1a\u533f\u540dTRC20\u5408\u7ea6\u4ea4\u6613\u7684\u53c2\u6570 \u6ce8\u610f\uff1a\u6839\u636e\u5f85\u521b\u5efa\u7684\u533f\u540d\u5408\u7ea6\u4ea4\u6613\u7c7b\u578b\u7684\u4e0d\u540c\uff0c\u8f93\u5165\u7684\u53c2\u6570\u4e0d\u540c wallet/createshieldedcontractparameterswithoutask \u00b6 \u4f5c\u7528\uff1a\u5728\u6ca1\u6709Ask\u7684\u60c5\u51b5\u4e0b\uff0c\u521b\u5efa\u533f\u540dTRC20\u5408\u7ea6\u4ea4\u6613\u7684\u76f8\u5173\u53c2\u6570\uff0c\u5305\u62ecmint, transfer\u548cburn\u4e09\u79cd\u7c7b\u578b curl -X POST http://127.0.0.1:8090/wallet/createshieldedcontractparameterswithoutask -d '{ \"ovk\": \"cd361834b3adc06f130de24f7d0c18f92a093cc885d9ce492cc6c02071f7a4f0\", \"from_amount\": \"5000\", \"shielded_receives\": { \"note\": { \"value\": 50, \"payment_address\": \"ztron13lvfnt4rau4ad9mmgztd3aftw49e3amz8gm2kvyzrsaw0ugz2grxwkvcfys5e2gkchj7cnnetjz\", \"rcm\": \"499e73f2f8aaf05fac41a35b8343bde27f6629cbe66d35da5364a99b94a55a06\" } }, \"shielded_TRC20_contract_address\": \"41f3392eaa7d38749176e0671dbc6912f8ef956943\" }' \u53c2\u6570\u8bf4\u660e\uff1a ovk \uff1aOutgoing view key from_amount \uff1amint\u7684\u91d1\u989d\uff0c\u6839\u636e\u7f29\u653e\u56e0\u5b50 scalingFactor\uff0c\u548cnote\u503c\u4e2d\u7684value\u6210\u6bd4\u4f8b\u5173\u7cfb\uff0c\u5373 from_amount = value * scalingFactor. \u5728\u4e0a\u9762\u7684\u793a\u4f8b\u4e2d\uff0cscalingFactor\u503c\u4e3a100 shielded_receives : \u5f85\u521b\u5efa\u7684\u533f\u540d\u5408\u7ea6notes shielded_TRC20_contract_address : \u533f\u540dTRC20\u5408\u7ea6\u5730\u5740 \u8fd4\u56de\u503c\uff1a\u533f\u540dTRC20\u5408\u7ea6\u4ea4\u6613\u7684\u53c2\u6570 \u6ce8\u610f\uff1a\u6839\u636e\u5f85\u521b\u5efa\u7684\u533f\u540d\u5408\u7ea6\u4ea4\u6613\u7c7b\u578b\u7684\u4e0d\u540c\uff0c\u8f93\u5165\u7684\u53c2\u6570\u4e0d\u540c wallet/scanshieldedtrc20notesbyivk \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u533f\u540dTRC20\u5408\u7ea6\u4e2d\u4e0eivk\u76f8\u5173\u7684\u6240\u6709notes, \u5e76\u6807\u8bb0\u5176\u662f\u5426\u5df2\u82b1\u8d39 curl -X POST http://127.0.0.1:8090/wallet/scanshieldedtrc20notesbyivk -d '{ \"start_block_index\": 9200, \"end_block_index\": 9240, \"shielded_TRC20_contract_address\": \"41274fc7464fadac5c00c893c58bce6c39bf59e4c7\", \"ivk\": \"9f8e74bb3d7188a2781dc1db38810c6914eef4570a79e8ec8404480948e4e305\", \"ak\":\"8072d9110c9de9d9ade33d5d0f5890a7aa65b0cde42af7816d187297caf2fd64\", \"nk\":\"590bf33f93f792be659fd404df91e75c3b08d38d4e08ee226c3f5219cf598f14\" }' \u53c2\u6570\u8bf4\u660e\uff1a start_block_index \uff1a\u5f00\u59cb\u533a\u5757\u9ad8\u5ea6\uff0c\u5305\u542b\u81ea\u8eab end_block_index \uff1a\u7ed3\u675f\u533a\u5757\u9ad8\u5ea6\uff0c\u4e0d\u5305\u542b\u81ea\u8eab shielded_TRC20_contract_address : \u533f\u540dTRC20\u5408\u7ea6\u5730\u5740 ivk \uff1aIncoming viewing key ak \uff1aAk key nk \uff1aNk key \u8fd4\u56de\u503c\uff1aNotes\u5217\u8868 \u6ce8\u610f\uff1a\u533a\u95f4\u9650\u5236\uff08end_block_index - start_block_index <= 1000\uff09 wallet/scanshieldedtrc20notesbyovk \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u533f\u540dTRC20\u5408\u7ea6\u4e2d\u4e0eovk\u76f8\u5173\u7684\u6240\u6709notes curl -X POST http://127.0.0.1:8090/wallet/scanshieldedtrc20notesbyovk -d '{ \"start_block_index\": 9200, \"end_block_index\": 9240, \"shielded_TRC20_contract_address\": \"41274fc7464fadac5c00c893c58bce6c39bf59e4c7\", \"ovk\": \"0ff58efd75e083fe4fd759c8701e1c8cb6961c4297a12b2c800bdb7b2bcab889\" }' \u53c2\u6570\u8bf4\u660e\uff1a start_block_index \uff1a\u5f00\u59cb\u533a\u5757\u9ad8\u5ea6\uff0c\u5305\u542b\u81ea\u8eab end_block_index \uff1a\u7ed3\u675f\u533a\u5757\u9ad8\u5ea6\uff0c\u4e0d\u5305\u542b\u81ea\u8eab shielded_TRC20_contract_address : \u533f\u540dTRC20\u5408\u7ea6\u5730\u5740 ovk \uff1aOutgoing viewing key \u8fd4\u56de\u503c\uff1aNotes\u5217\u8868 \u6ce8\u610f\uff1a\u533a\u95f4\u9650\u5236\uff08end_block_index - start_block_index <= 1000\uff09 wallet/isshieldedtrc20contractnotespent \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u533f\u540dTRC20\u5408\u7ea6\u7684note\u662f\u5426\u5df2\u88ab\u82b1\u8d39 \u53c2\u6570\u8bf4\u660e\uff1a note \uff1aNote\u4fe1\u606f ak \uff1aAk nk \uff1aNk position \uff1anote\u627f\u8bfa\u5728\u533f\u540d\u5408\u7ea6Merkle\u6811\u53f6\u5b50\u8282\u70b9\u7684\u4f4d\u7f6e\u7d22\u5f15 shielded_TRC20_contract_address : \u533f\u540dTRC20\u5408\u7ea6\u5730\u5740 \u8fd4\u56de\u503c\uff1a\u4e00\u4e2anote\u662f\u5426\u5df2\u7ecf\u88ab\u82b1\u8d39\u72b6\u6001 \u6ce8\u610f: Note \u4e2dvalue\u662f\u7531 scalingFactor\u7f29\u653e\u540e\u7684\u503c\uff0cscalingFactor\u5728\u533f\u540dTRC-20\u5408\u7ea6\u4e2d\u8bbe\u7f6e\uff0c\u5b9e\u9645\u91d1\u989d real_amount = value * scalingFactor \u3002 wallet/gettriggerinputforshieldedtrc20contract \u00b6 \u4f5c\u7528: \u5bf9\u4e8e\u6ca1\u6709\u6388\u6743\u7b7e\u540d\u7684\u533f\u540dTRC-20\u5408\u7ea6\u53c2\u6570\uff0c\u751f\u6210\u89e6\u53d1\u5408\u7ea6\u7684\u8f93\u5165\u6570\u636e curl -X POST http://127.0.0.1:8090/wallet/gettriggerinputforshieldedtrc20contract -d '{ \"shielded_TRC20_Parameters\": {\"spend_description\": [{\"value_commitment\": \"e3fcc8609ff6a4b00b77a00ef624f305cec5f55cc7312ff5526d0b3057f2ef9e\",\"anchor\": \"4c9cbebece033dc1d253b93e4a3682187daae4f905515761d10287b801e69816\",\"nullifier\": \"74edce8798a3976ee41e045bb666f3a121c27235b0f1b44b3456d2c84bc725dc\",\"rk\": \"9dcf4254aa7c4fb7c8bc6956d4b0c7c6c87c37a2552e7bf4e60c12cb5bc6c8cd\",\"zkproof\": \"9926045cd1442a7d20153e6abda9f77a6526895f0a29a57cb1bc76ef6b7cacef2d0f4c94aa97c3acacdb95cabb065057b7edb4cbea098149a8aa7114a6a6b340c58007ac64b64e592eb18fdd299de5962a2a32ab0caebb2ab198704c751a9d0e143d68a50257d7c9e2230a7420fa46450299fd167141367e201726532d8e815413d8571d6c8c12937674dec92caf1f4583ebe560ac4c7eba290deee0a1c0da5f72c0b9df89fb3b338c683b654b3dc2373a4c2a4fef7f4fa489b44405fb7d2bfb\"}],\"binding_signature\": \"11e949887d9ec92eb32c78f0bc48afdc9a16a2ecbd5a0eca1be070fb900eeda347918bd6e9521d4baf1f74963bee0c1956559623a9e7cbc886941b227341ea06\",\"message_hash\": \"7e6a00736c4f9e0036cb74c7fa3b1e3cd8f6bf0f038edeb03b668c4c5536a357\",\"parameter_type\": \"burn\"}, \"spend_authority_signature\": [ { \"value\": \"eeaaecd725ac80ec398b95cf188b769c1be66cc8e76e6c90843b7f23818704595719ce8bf694ffb8cd7aaa8739d50fe8eea7ba39d5026c4b019c973185ca7201\" } ], \"amount\": \"6000\", \"transparent_to_address\": \"4140cd765f8e637a2bbe00f9bc458f6b21eb0e648f\" }' \u53c2\u6570\u8bf4\u660e: shielded_TRC20_Parameters : \u751f\u6210\u7684\u533f\u540dTRC-20\u5408\u7ea6\u53c2\u6570 spend_authority_signature : \u6388\u6743\u7b7e\u540d amount : \u4ea4\u6613\u91d1\u989d transparent_to_address : \u63a5\u6536\u8005\u5730\u5740. \u8fd4\u56de\u503c: \u89e6\u53d1TRC-20\u5408\u7ea6\u7684\u8f93\u5165\u6570\u636e wallet/getrcm \u00b6 \u4f5c\u7528\uff1a\u83b7\u5f97\u4e00\u4e2arcm curl -X GET http://127.0.0.1:8090/wallet/getrcm \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c\uff1arcm wallet/getmerkletreevoucherinfo \u00b6 \u4f5c\u7528\uff1a\u83b7\u5f97\u4e00\u4e2anote\u7684\u9ed8\u514b\u5c14\u6811\u4fe1\u606f curl -X POST http://127.0.0.1:8090/wallet/getmerkletreevoucherinfo -d '{ \"out_points\":[{ \"hash\":\"185b3e085723f5862b3a3c3cf54d52f5c1eaf2541e3a1e0ecd08bc12cd958d74\", \"index\":0 }] }' \u53c2\u6570\u8bf4\u660e\uff1aout_points\uff1aNote\u4fe1\u606f \u8fd4\u56de\u503c\uff1a\u4e00\u4e2anote\u7684\u9ed8\u514b\u5c14\u6811\u4fe1\u606f wallet/isspend \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u4e00\u4e2anote\u662f\u5426\u5df2\u7ecf\u88ab\u82b1\u8d39 curl -X POST http://127.0.0.1:8090/wallet/isspend -d '{ \"ak\": \"a3e65d509b675aaa2aeda977ceff11eebd76218079b6f543d78a615e396ca129\", \"nk\": \"62cfda9bea09a53cf2a21022057913734a8458969e11e0bb9c59ead48fbce83e\", \"note\": { \"payment_address\": \"ztron1aqgauawtkelxfu2w6s48cwh0mchjt6kwpj44l4wym3pullx0294j4r4v7kpm75wnclzycsw73mq\", \"rcm\": \"74a16c1b27ec7fbf06881d9d35ddaab1554838b1bddcd54f6bd8a9fb4ba0b80a\", \"value\": 500000000 }, \"txid\": \"7d09e471bb047d3ac044d5d6691b3721a2dddbb683ac02c207fbe78af6302463\", \"index\": 1 }' \u53c2\u6570\u8bf4\u660e\uff1a ak \uff1aAk nk \uff1aNk note \uff1aNote\u4fe1\u606f txid \uff1a\u4ea4\u6613id index \uff1aNote\u7d22\u5f15 \u8fd4\u56de\u503c\uff1a\u4e00\u4e2anote\u662f\u5426\u5df2\u7ecf\u88ab\u82b1\u8d39\u72b6\u6001 wallet/createspendauthsig \u00b6 \u4f5c\u7528\uff1a\u4e3a\u4e00\u4e2a\u4ea4\u6613\u521b\u5efa\u4e00\u4e2a\u7b7e\u540d curl -X POST http://127.0.0.1:8090/wallet/createspendauthsig -d '{ \"ask\": \"e3ebcba1531f6d9158d9c162660c5d7c04dadf77d85d7436a9c98b291ff69a09\", \"tx_hash\": \"3b78fee6e956f915ffe082284c5f18640edca9c57a5f227e5f7d7eb65ad61502\", \"alpha\": \"2608999c3a97d005a879ecdaa16fd29ae434fb67b177c5e875b0c829e6a1db04\" }' \u53c2\u6570\u8bf4\u660e\uff1a ask\uff1aAsk tx_hash\uff1a\u4ea4\u6613\u54c8\u5e0c alpha\uff1aAlpha \u8fd4\u56de\u503c\uff1a\u7b7e\u540d Pending Pool \u00b6 \u4e0b\u9762\u662fPending Pool\u76f8\u5173API\uff1a wallet/gettransactionfrompending wallet/gettransactionlistfrompending wallet/getpendingsize wallet/gettransactionfrompending \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2pending pool\u4e2d\u7684\u4ea4\u6613\u4fe1\u606f curl -X POST http://127.0.0.1:8090/wallet/gettransactionfrompending -d '{ \"value\": \"txId\" }' \u53c2\u6570\u8bf4\u660e\uff1avalue: \u4ea4\u6613id\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1a\u4ea4\u6613\u7684\u8be6\u7ec6\u4fe1\u606f wallet/gettransactionlistfrompending \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2pending pool\u4ea4\u6613\u5217\u8868id curl -X get http://127.0.0.1:8090/wallet/gettransactionlistfrompending \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c\uff1apending pool\u4ea4\u6613\u5217\u8868id wallet/getpendingsize \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2pending pool\u5927\u5c0f curl -X get http://127.0.0.1:8090/wallet/getpendingsize \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c\uff1apending pool \u5927\u5c0f FullNode Solidity HTTP API \u00b6 \u8d26\u6237\u8d44\u6e90 \u00b6 walletsolidity/getaccount \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u4e00\u4e2a\u8d26\u53f7\u7684\u4fe1\u606f curl -X POST http://127.0.0.1:8091/walletsolidity/getaccount -d '{\"address\": \"41E552F6487585C2B58BC2C9BB4492BC1F17132CD0\"}' \u53c2\u6570\u8bf4\u660e\uff1aaddress \u9ed8\u8ba4\u4e3ahexString \u8fd4\u56de\u503c\uff1aAccount\u5bf9\u8c61 walletsolidity/getdelegatedresource \u00b6 \u4f5c\u7528\uff1a\u67e5\u770b\u4e00\u4e2a\u8d26\u6237\u4ee3\u7406\u7ed9\u53e6\u5916\u4e00\u4e2a\u8d26\u6237\u7684\u8d44\u6e90\u60c5\u51b5 curl -X POST http://127.0.0.1:8091/walletsolidity/getdelegatedresource -d ' { \"fromAddress\": \"419844f7600e018fd0d710e2145351d607b3316ce9\", \"toAddress\": \"41c6600433381c731f22fc2b9f864b14fe518b322f\" }' \u53c2\u6570\u8bf4\u660e\uff1a fromAddress \uff1a\u662f\u8981\u67e5\u8be2\u7684\u8d26\u6237\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f toAddress \uff1a\u4ee3\u7406\u5bf9\u8c61\u7684\u8d26\u6237\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1a\u8d26\u6237\u7684\u8d44\u6e90\u4ee3\u7406\u7684\u5217\u8868\uff0c\u5217\u8868\u7684\u5143\u7d20\u4e3aDelegatedResource walletsolidity/getdelegatedresourceaccountindex \u00b6 \u4f5c\u7528\uff1a\u67e5\u770b\u4e00\u4e2a\u8d26\u6237\u7684\u8d44\u6e90\u4ee3\u7406\u60c5\u51b5 curl -X POST http://127.0.0.1:8091/walletsolidity/getdelegatedresourceaccountindex -d ' { \"value\": \"419844f7600e018fd0d710e2145351d607b3316ce9\", }' \u53c2\u6570\u8bf4\u660e\uff1a value \uff1a\u662f\u8981\u67e5\u8be2\u7684\u8d26\u6237\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1a\u8d26\u6237\u7684DelegatedResourceAccountIndex walletsolidity/getaccountbyid \u00b6 \u4f5c\u7528\uff1a\u901a\u8fc7accountId\u67e5\u8be2\u4e00\u4e2a\u8d26\u53f7\u7684\u4fe1\u606f curl -X POST http://127.0.0.1:8091/walletsolidity/getaccountbyid -d '{\"account_id\":\"6161616162626262\"}' \u53c2\u6570\u8bf4\u660e\uff1aaccount_id \u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1aAccount\u5bf9\u8c61 walletsolidity/getavailableunfreezecount \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u5f53\u524d\u89e3\u8d28\u62bc\u5269\u4f59\u6b21\u6570 curl -X POST http://127.0.0.1:8090/walletsolidity/getavailableunfreezecount -d '{ \"owner_address\": \"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g\", \"visible\": true } ' \u53c2\u6570\uff1a owner_address : \u4ea4\u6613\u53d1\u8d77\u8005\u8d26\u53f7\u7684\u5730\u5740 \u8fd4\u56de\u503c\uff1a\u89e3\u8d28\u62bc\u7684\u5269\u4f59\u6b21\u6570 walletsolidity/getcanwithdrawunfreezeamount \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u5728\u67d0\u65f6\u95f4\u70b9\u53ef\u4ee5\u63d0\u53d6\u7684\u89e3\u8d28\u62bc\u672c\u91d1\u6570\u91cf curl -X POST http://127.0.0.1:8090/walletsolidity/getcanwithdrawunfreezeamount -d '{ \"owner_address\": \"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g\", \"timestamp\": 1667977444000, \"visible\": true } ' \u53c2\u6570\uff1a owner_address : \u4ea4\u6613\u53d1\u8d77\u8005\u8d26\u53f7\u7684\u5730\u5740 timestamp : \u67e5\u8be2\u5728\u8be5\u65f6\u95f4\u6233\u65f6\uff0c\u53ef\u63d0\u53d6\u7684\u672c\u91d1\u6570\u91cf\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2 \u8fd4\u56de\u503c\uff1a\u89e3\u8d28\u62bc\u672c\u91d1\u53ef\u63d0\u53d6\u6570\u91cf walletsolidity/getcandelegatedmaxsize \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u76ee\u6807\u5730\u5740\u4e2d\u6307\u5b9a\u7c7b\u578b\u8d44\u6e90\u7684\u53ef\u4ee3\u7406\u6570\u91cf\uff0c\u5355\u4f4d\u4e3asun curl -X POST http://127.0.0.1:8090/walletsolidity/getcandelegatedmaxsize -d '{ \"owner_address\": \"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g\", \"type\": 0, \"visible\": true } ' \u53c2\u6570\uff1a owner_address : \u4ea4\u6613\u53d1\u8d77\u8005\u8d26\u53f7\u7684\u5730\u5740 type : \u8d44\u6e90\u7c7b\u578b\uff0c0\u4e3a\u5e26\u5bbd\uff0c1\u4e3a\u80fd\u91cf \u8fd4\u56de\u503c\uff1a\u53ef\u4ee3\u7406\u5e26\u5bbd\u6216\u8005\u80fd\u91cf\u4efd\u989d\u7684\u6700\u5927\u503c\uff08\u5355\u4f4d\u4e3asun\uff09 walletsolidity/getdelegatedresourcev2 \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u5728Stake2.0\u673a\u5236\u4e0b\uff0c\u67d0\u5730\u5740\u4ee3\u7406\u7ed9\u76ee\u6807\u5730\u5740\u7684\u8d44\u6e90\u60c5\u51b5 curl -X POST http://127.0.0.1:8090/walletsolidity/getdelegatedresourcev2 -d '{ \"fromAddress\": \"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g\", \"toAddress\": \"TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1\", \"visible\": true } ' \u53c2\u6570\uff1a fromAddress : \u4ee3\u7406\u8d26\u6237\u5730\u5740 toAddress : \u8d44\u6e90\u7684\u63a5\u6536\u8d26\u6237\u5730\u5740 \u8fd4\u56de\u503c\uff1a\u67d0\u5730\u5740\u4ee3\u7406\u7ed9\u76ee\u6807\u5730\u5740\u7684\u8d44\u6e90\u60c5\u51b5\u7684\u5217\u8868 walletsolidity/getdelegatedresourceaccountindexv2 \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u5728Stake2.0\u9636\u6bb5\uff0c\u67d0\u5730\u5740\u7684\u8d44\u6e90\u59d4\u6258\u7d22\u5f15\u3002\u8fd4\u56de\u4e24\u4e2a\u5217\u8868\uff0c\u4e00\u4e2a\u662f\u8be5\u5e10\u6237\u5c06\u8d44\u6e90\u59d4\u6258\u7ed9\u7684\u5730\u5740\u5217\u8868(toAddress)\uff0c\u53e6\u4e00\u4e2a\u662f\u5c06\u8d44\u6e90\u59d4\u6258\u7ed9\u8be5\u5e10\u6237\u7684\u5730\u5740\u5217\u8868(fromAddress) curl -X POST http://127.0.0.1:8090/walletsolidity/getdelegatedresourceaccountindexv2 -d '{ \"value\": \"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g\", \"visible\": true } ' \u53c2\u6570\uff1a value : \u8d26\u6237\u5730\u5740 \u8fd4\u56de\u503c\uff1a\u67d0\u5730\u5740\u7684\u8d44\u6e90\u59d4\u6258\u7d22\u5f15\u3002\u8fd4\u56de\u4e24\u4e2a\u5217\u8868\uff0c\u4e00\u4e2a\u662f\u8be5\u5e10\u6237\u5c06\u8d44\u6e90\u59d4\u6258\u7ed9\u7684\u5730\u5740\u5217\u8868(toAddress)\uff0c\u53e6\u4e00\u4e2a\u662f\u5c06\u8d44\u6e90\u59d4\u6258\u7ed9\u8be5\u5e10\u6237\u7684\u5730\u5740\u5217\u8868(fromAddress) \u6295\u7968\u548cSR \u00b6 walletsolidity/listwitnesses \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u8d85\u7ea7\u4ee3\u8868\u5217\u8868 curl -X POST http://127.0.0.1:8091/walletsolidity/listwitnesses \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c\uff1a\u6240\u6709\u8d85\u7ea7\u4ee3\u8868\u5217\u8868 TRC10 \u901a\u8bc1 \u00b6 walletsolidity/getassetissuelist \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u6240\u6709Token\u5217\u8868 curl -X POST http://127.0.0.1:8091/walletsolidity/getassetissuelist \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c\uff1a\u6240\u6709Token\u5217\u8868 walletsolidity/getpaginatedassetissuelist \u00b6 \u4f5c\u7528\uff1a\u5206\u9875\u67e5\u8be2Token\u5217\u8868 curl -X POST http://127.0.0.1:8091/walletsolidity/getpaginatedassetissuelist -d '{\"offset\": 0, \"limit\":10}' \u53c2\u6570\u8bf4\u660e\uff1aoffset\u662f\u8d77\u59cbToken\u7684index\uff0climit\u662f\u671f\u671b\u8fd4\u56de\u7684Token\u6570\u91cf \u8fd4\u56de\u503c\uff1aToken\u5217\u8868 walletsolidity/getassetissuebyname \u00b6 \u4f5c\u7528\uff1a\u6839\u636e\u540d\u79f0\u67e5\u8be2token\u3002 curl -X POST http://127.0.0.1:8091/walletsolidity/getassetissuebyname -d '{\"value\": \"44756354616E\"}' \u53c2\u6570\u8bf4\u660e\uff1a\u901a\u8bc1\u540d\u79f0\uff0c\u9ed8\u8ba4\u4e3ahexString\u3002 \u8fd4\u56de\u503c\uff1atoken\u3002 \u6ce8\u610f\uff1aOdyssey-v3.2\u5f00\u59cb\uff0c\u63a8\u8350\u4f7f\u7528getassetissuebyid\u6216\u8005getassetissuelistbyname\u66ff\u6362\u6b64\u63a5\u53e3\uff0c\u56e0\u4e3a\u4ece3.2\u5f00\u59cb\u5c06\u5141\u8bb8\u901a\u8bc1\u540d\u79f0\u76f8\u540c\u3002\u5982\u679c\u5b58\u5728\u76f8\u540c\u7684\u901a\u8bc1\u540d\u79f0\uff0c\u6b64\u63a5\u53e3\u5c06\u4f1a\u62a5\u9519\u3002 walletsolidity/getassetissuelistbyname \u00b6 \u4f5c\u7528\uff1a\u6839\u636e\u540d\u79f0\u67e5\u8be2token list\u3002 curl -X POST http://127.0.0.1:8091/walletsolidity/getassetissuelistbyname -d '{\"value\": \"44756354616E\"}' \u53c2\u6570\u8bf4\u660e\uff1a\u901a\u8bc1\u540d\u79f0\uff0c\u9ed8\u8ba4\u4e3ahexString\u3002 \u8fd4\u56de\u503c\uff1atoken\u5217\u8868\u3002 walletsolidity/getassetissuebyid \u00b6 \u4f5c\u7528\uff1a\u6839\u636eid\u67e5\u8be2token\u3002 curl -X POST http://127.0.0.1:8091/walletsolidity/getassetissuebyid -d '{\"value\": \"1000001\"}' \u53c2\u6570\u8bf4\u660e\uff1a\u901a\u8bc1id \u8fd4\u56de\u503c\uff1atoken\u3002 \u533a\u5757 \u00b6 walletsolidity/getnowblock \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u6700\u65b0block curl -X POST http://127.0.0.1:8091/walletsolidity/getnowblock \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c\uff1asolidityNode\u4e0a\u7684\u6700\u65b0block walletsolidity/getblockbynum \u00b6 \u4f5c\u7528\uff1a\u6309\u7167\u9ad8\u5ea6\u67e5\u8be2block curl -X POST http://127.0.0.1:8091/walletsolidity/getblockbynum -d '{\"num\" : 100}' \u53c2\u6570\u8bf4\u660e\uff1anum\u662f\u5757\u7684\u9ad8\u5ea6 \u8fd4\u56de\u503c\uff1a\u6307\u5b9a\u9ad8\u5ea6\u7684block walletsolidity/getblockbyid \u00b6 \u4f5c\u7528\uff1a\u901a\u8fc7ID\u67e5\u8be2\u5757 curl -X POST http://127.0.0.1:8091/walletsolidity/getblockbyid-d '{\"value\": \"0000000000038809c59ee8409a3b6c051e369ef1096603c7ee723c16e2376c73\"}' \u53c2\u6570\u8bf4\u660e\uff1a\u5757ID\u3002 \u8fd4\u56de\u503c\uff1a\u5757\u3002 walletsolidity/getblockbylimitnext \u00b6 \u4f5c\u7528\uff1a\u6309\u7167\u8303\u56f4\u67e5\u8be2\u5757 curl -X POST http://127.0.0.1:8091/walletsolidity/getblockbylimitnext -d '{\"startNum\": 1, \"endNum\": 2}' \u53c2\u6570\u8bf4\u660e\uff1a startNum \uff1a\u8d77\u59cb\u5757\u9ad8\u5ea6\uff0c\u5305\u542b\u6b64\u5757 endNum \uff1a\u622a\u6b62\u5757\u9ad8\u5ea6\uff0c\u4e0d\u5305\u542b\u6b64\u6b64\u5757 \u8fd4\u56de\u503c\uff1a\u5757\u7684\u5217\u8868\u3002 walletsolidity/getblockbylatestnum \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u6700\u65b0\u7684\u51e0\u4e2a\u5757 curl -X POST http://127.0.0.1:8091/walletsolidity/getblockbylatestnum -d '{\"num\": 5}' \u53c2\u6570\u8bf4\u660e\uff1a\u5757\u7684\u6570\u91cf\u3002 \u8fd4\u56de\u503c\uff1a\u5757\u7684\u5217\u8868\u3002 wallet/getnodeinfo \u00b6 \u4f5c\u7528\uff1a\u83b7\u53d6\u5f53\u524dnode\u7684\u4fe1\u606f curl -X GET http://127.0.0.1:8091/wallet/getnodeinfo \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c\uff1a\u5f53\u524d\u8282\u70b9\u7684\u4fe1\u606fNodeInfo \u4ea4\u6613 \u00b6 walletsolidity/gettransactionbyid \u00b6 \u4f5c\u7528\uff1a\u6839\u636eid\u67e5\u8be2\u4ea4\u6613 curl -X POST http://127.0.0.1:8091/walletsolidity/gettransactionbyid -d '{\"value\" : \"309b6fa3d01353e46f57dd8a8f27611f98e392b50d035cef213f2c55225a8bd2\"}' \u53c2\u6570\u8bf4\u660e\uff1avalue\u662f\u4ea4\u6613id \u8fd4\u56de\u503c\uff1a\u6307\u5b9aID\u7684Transaction walletsolidity/gettransactioncountbyblocknum \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u7279\u5b9ablock\u4e0atransaction\u7684\u4e2a\u6570 curl -X POST http://127.0.0.1:8091/walletsolidity/gettransactioncountbyblocknum -d '{\"num\" : 100}' \u53c2\u6570\u8bf4\u660e\uff1anum\u662f\u5757\u7684\u9ad8\u5ea6 \u8fd4\u56de\u503c\uff1atransaction\u7684\u4e2a\u6570 walletsolidity/gettransactioninfobyid \u00b6 \u4f5c\u7528\uff1a\u6839\u636eid\u67e5\u8be2\u4ea4\u6613\u7684fee\uff0c\u6240\u5728\u7684block curl -X POST http://127.0.0.1:8091/walletsolidity/gettransactioninfobyid -d '{\"value\" : \"309b6fa3d01353e46f57dd8a8f27611f98e392b50d035cef213f2c55225a8bd2\"}' \u53c2\u6570\u8bf4\u660e\uff1avalue\u662f\u4ea4\u6613id \u8fd4\u56de\u503c\uff1aTransaction\u7684\u4ea4\u6613fee\uff0c\u6240\u5728block\u7684\u9ad8\u5ea6\uff0c\u521b\u5efa\u65f6\u95f4 walletsolidity/gettransactioninfobyblocknum \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u7279\u5b9ablock\u4e0atransaction\u7684\u4e2a\u6570 curl -X POST http://127.0.0.1:8091/walletsolidity/gettransactioninfobyblocknum -d '{\"num\" : 100}' \u53c2\u6570\u8bf4\u660e\uff1anum\u662f\u5757\u7684\u9ad8\u5ea6 \u8fd4\u56de\u503c\uff1a\u6307\u5b9a\u5757\u4e2d\uff0c\u5305\u542b\u7684transactioninfo\u7684\u5217\u8868 \u53bb\u4e2d\u5fc3\u5316\u4ea4\u6613\u6240 \u00b6 walletsolidity/getexchangebyid \u00b6 \u4f5c\u7528\uff1a\u6839\u636eid\u67e5\u8be2\u4ea4\u6613\u5bf9 curl -X POST http://127.0.0.1:8091/walletsolidity/getexchangebyid -d {\"id\":1} \u53c2\u6570\u8bf4\u660e\uff1a id\uff1a\u4ea4\u6613\u5bf9id \u8fd4\u56de\u503c\uff1a\u4ea4\u6613\u5bf9 walletsolidity/listexchanges \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u6240\u6709\u4ea4\u6613\u5bf9 curl -X POST http://127.0.0.1:8091/walletsolidity/listexchanges \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c\uff1a\u6240\u6709\u4ea4\u6613\u5bf9 TRONZ\u533f\u540d\u667a\u80fd\u5408\u7ea6 \u00b6 walletsolidity/getmerkletreevoucherinfo \u00b6 \u4f5c\u7528\uff1a\u83b7\u5f97\u4e00\u4e2anote\u7684\u9ed8\u514b\u5c14\u6811\u4fe1\u606f curl -X POST http://127.0.0.1:8090/walletsolidity/getmerkletreevoucherinfo -d '{ \"out_points\":[{ \"hash\":\"185b3e085723f5862b3a3c3cf54d52f5c1eaf2541e3a1e0ecd08bc12cd958d74\", \"index\":0 }] }' \u53c2\u6570\u8bf4\u660e\uff1a out_points \uff1aNote\u4fe1\u606f \u8fd4\u56de\u503c\uff1a\u4e00\u4e2anote\u7684\u9ed8\u514b\u5c14\u6811\u4fe1\u606f walletsolidity/scannotebyivk \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u4e0eivk\u76f8\u5173\u7684\u6240\u6709\u7684notes curl -X POST http://127.0.0.1:8090/walletsolidity/scannotebyivk -d '{ \"start_block_index\": 0, \"end_block_index\": 100, \"ivk\": \"80a481c3c739e54b4e0608090b3a1a6e9f8dce42346e95bf5a2d8a487bf45c05\" }' \u53c2\u6570\u8bf4\u660e\uff1a start_block_index \uff1a\u5f00\u59cb\u533a\u5757\u9ad8\u5ea6\uff0c\u5305\u542b\u81ea\u8eab end_block_index \uff1a\u7ed3\u675f\u533a\u5757\u9ad8\u5ea6\uff0c\u4e0d\u5305\u542b\u81ea\u8eab ivk \uff1aIncoming viewing key \u8fd4\u56de\u503c\uff1aNotes\u5217\u8868 \u6ce8\u610f\uff1a\u533a\u95f4\u9650\u5236\uff08end_block_index - start_block_index <= 1000\uff09 walletsolidity/scanandmarknotebyivk \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u4e0eivk\u76f8\u5173\u7684\u6240\u6709\u7684notes, \u5305\u542b\u662f\u5426\u82b1\u8d39\u72b6\u6001 curl -X POST http://127.0.0.1:8090/walletsolidity/scanandmarknotebyivk -d '{ \"start_block_index\": 0, \"end_block_index\": 100, \"ivk\": \"80a481c3c739e54b4e0608090b3a1a6e9f8dce42346e95bf5a2d8a487bf45c05\", \"ak\": \"1d4f9b5551f4aa9443ceb263f0e208eb7e26080264571c5ef06de97a646fe418\", \"nk\": \"748522c7571a9da787e43940c9a474aa0c5c39b46c338905deb6726fa3678bdb\" }' \u53c2\u6570\u8bf4\u660e\uff1a start_block_index \uff1a\u5f00\u59cb\u533a\u5757\u9ad8\u5ea6\uff0c\u5305\u542b\u81ea\u8eab end_block_index \uff1a\u7ed3\u675f\u533a\u5757\u9ad8\u5ea6\uff0c\u4e0d\u5305\u542b\u81ea\u8eab ivk \uff1aIncoming viewing key ak \uff1aAk key nk \uff1aNk key \u8fd4\u56de\u503c\uff1aNotes\u5217\u8868 \u6ce8\u610f\uff1a\u533a\u95f4\u9650\u5236\uff08end_block_index - start_block_index <= 1000\uff09 walletsolidity/scannotebyovk \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u4e0eovk\u76f8\u5173\u7684\u6240\u6709\u7684notes curl -X POST http://127.0.0.1:8090/walletsolidity/scannotebyovk -d '{ \"start_block_index\": 0, \"end_block_index\": 100, \"ovk\": \"705145aa18cbe6c11d5d0011419a98f3d5b1d341eb4727f1315597f4bdaf8539\" }' \u53c2\u6570\u8bf4\u660e\uff1a start_block_index \uff1a\u5f00\u59cb\u533a\u5757\u9ad8\u5ea6\uff0c\u5305\u542b\u81ea\u8eab end_block_index \uff1a\u7ed3\u675f\u533a\u5757\u9ad8\u5ea6\uff0c\u4e0d\u5305\u542b\u81ea\u8eab ovk \uff1aOutgoing viewing key \u8fd4\u56de\u503c\uff1aNotes\u5217\u8868 \u6ce8\u610f\uff1a\u533a\u95f4\u9650\u5236\uff08end_block_index - start_block_index <= 1000\uff09 walletsolidity/isspend \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u4e00\u4e2anote\u662f\u5426\u5df2\u7ecf\u88ab\u82b1\u8d39 curl -X POST http://127.0.0.1:8090/walletsolidity/isspend -d '{ \"ak\": \"a3e65d509b675aaa2aeda977ceff11eebd76218079b6f543d78a615e396ca129\", \"nk\": \"62cfda9bea09a53cf2a21022057913734a8458969e11e0bb9c59ead48fbce83e\", \"note\": { \"payment_address\": \"ztron1aqgauawtkelxfu2w6s48cwh0mchjt6kwpj44l4wym3pullx0294j4r4v7kpm75wnclzycsw73mq\", \"rcm\": \"74a16c1b27ec7fbf06881d9d35ddaab1554838b1bddcd54f6bd8a9fb4ba0b80a\", \"value\": 500000000 }, \"txid\": \"7d09e471bb047d3ac044d5d6691b3721a2dddbb683ac02c207fbe78af6302463\", \"index\": 1 }' \u53c2\u6570\u8bf4\u660e\uff1a ak \uff1aAk nk \uff1aNk note \uff1aNote\u4fe1\u606f txid \uff1a\u4ea4\u6613id index \uff1aNote\u7d22\u5f15 \u8fd4\u56de\u503c\uff1a\u4e00\u4e2anote\u662f\u5426\u5df2\u7ecf\u88ab\u82b1\u8d39\u72b6\u6001 walletsolidity/scanshieldedtrc20notesbyivk \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u533f\u540dTRC20\u5408\u7ea6\u4e2d\u4e0eivk\u76f8\u5173\u7684\u6240\u6709notes, \u5e76\u6807\u8bb0\u5176\u662f\u5426\u5df2\u82b1\u8d39 curl -X POST http://127.0.0.1:8091/walletsolidity/scanshieldedtrc20notesbyivk -d '{ \"start_block_index\": 9200, \"end_block_index\": 9240, \"shielded_TRC20_contract_address\": \"41274fc7464fadac5c00c893c58bce6c39bf59e4c7\", \"ivk\": \"9f8e74bb3d7188a2781dc1db38810c6914eef4570a79e8ec8404480948e4e305\", \"ak\":\"8072d9110c9de9d9ade33d5d0f5890a7aa65b0cde42af7816d187297caf2fd64\", \"nk\":\"590bf33f93f792be659fd404df91e75c3b08d38d4e08ee226c3f5219cf598f14\" }' \u53c2\u6570\u8bf4\u660e\uff1a start_block_index \uff1a\u5f00\u59cb\u533a\u5757\u9ad8\u5ea6\uff0c\u5305\u542b\u81ea\u8eab end_block_index \uff1a\u7ed3\u675f\u533a\u5757\u9ad8\u5ea6\uff0c\u4e0d\u5305\u542b\u81ea\u8eab shielded_TRC20_contract_address : \u533f\u540dTRC20\u5408\u7ea6\u5730\u5740 ivk \uff1aIncoming viewing key ak \uff1aAk key nk \uff1aNk key \u8fd4\u56de\u503c\uff1aNotes\u5217\u8868 \u6ce8\u610f\uff1a\u533a\u95f4\u9650\u5236\uff08end_block_index - start_block_index <= 1000\uff09 walletsolidity/scanshieldedtrc20notesbyovk \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u533f\u540dTRC20\u5408\u7ea6\u4e2d\u4e0eovk\u76f8\u5173\u7684\u6240\u6709notes curl -X POST http://127.0.0.1:8091/walletsolidity/scanshieldedtrc20notesbyovk -d '{ \"start_block_index\": 9200, \"end_block_index\": 9240, \"shielded_TRC20_contract_address\": \"41274fc7464fadac5c00c893c58bce6c39bf59e4c7\", \"ovk\": \"0ff58efd75e083fe4fd759c8701e1c8cb6961c4297a12b2c800bdb7b2bcab889\" }' \u53c2\u6570\u8bf4\u660e\uff1a start_block_index \uff1a\u5f00\u59cb\u533a\u5757\u9ad8\u5ea6\uff0c\u5305\u542b\u81ea\u8eab end_block_index \uff1a\u7ed3\u675f\u533a\u5757\u9ad8\u5ea6\uff0c\u4e0d\u5305\u542b\u81ea\u8eab shielded_TRC20_contract_address : \u533f\u540dTRC20\u5408\u7ea6\u5730\u5740 ovk \uff1aOutgoing viewing key \u8fd4\u56de\u503c\uff1aNotes\u5217\u8868 \u6ce8\u610f\uff1a\u533a\u95f4\u9650\u5236\uff08end_block_index - start_block_index <= 1000\uff09 walletsolidity/isshieldedtrc20contractnotespent \u00b6 \u4f5c\u7528\uff1a\u67e5\u8be2\u533f\u540dTRC20\u5408\u7ea6\u7684note\u662f\u5426\u5df2\u88ab\u82b1\u8d39 curl -X POST http://127.0.0.1:8091/walletsolidity/scanshieldedtrc20notesbyovk -d '{ \"note\": { \"value\": 40, \"payment_address\":\"ztron1768kf7dy4qquefp46szk978d65eeua66yhr4zv260c0uzj68t3tfjl3en9lhyyfxalv4jus30xs\", \"rcm\": \"296070782a94c6936b0b4f6daf8d7c7605a4374fe595b96148dc0f4b59015d0d\" }, \"ak\": \"8072d9110c9de9d9ade33d5d0f5890a7aa65b0cde42af7816d187297caf2fd64\", \"nk\": \"590bf33f93f792be659fd404df91e75c3b08d38d4e08ee226c3f5219cf598f14\", \"position\": 272, \"shielded_TRC20_contract_address\": \"41274fc7464fadac5c00c893c58bce6c39bf59e4c7\" }' \u53c2\u6570\u8bf4\u660e\uff1a note \uff1aNote\u4fe1\u606f ak \uff1aAk nk \uff1aNk position \uff1anote\u627f\u8bfa\u5728\u533f\u540d\u5408\u7ea6Merkle\u6811\u53f6\u5b50\u8282\u70b9\u7684\u4f4d\u7f6e\u7d22\u5f15 shielded_TRC20_contract_address : \u533f\u540dTRC20\u5408\u7ea6\u5730\u5740 \u8fd4\u56de\u503c\uff1a\u4e00\u4e2anote\u662f\u5426\u5df2\u7ecf\u88ab\u82b1\u8d39\u72b6\u6001 \u6ce8\u610f: Note \u4e2d value \u662f\u7531 scalingFactor \u7f29\u653e\u540e\u7684\u503c\uff0c scalingFactor \u5728\u533f\u540dTRC-20\u5408\u7ea6\u4e2d\u8bbe\u7f6e\uff0c\u5b9e\u9645\u91d1\u989d real_amount = value * scalingFactor \u3002","title":"HTTP \u63a5\u53e3"},{"location":"api/http/#http-api","text":"\u672c\u7ae0\u8282\u4ecb\u7ecd\u8282\u70b9\u7684HTTP API\u53ca\u5176\u7528\u6cd5\u3002 \u6ce8\u610f \u5c3d\u7ba1\u6ce2\u573a\uff08TRON\uff09\u901a\u8fc7\u5c06 HTTP API \u7684 Content-Type \u8bbe\u7f6e\u4e3a application/json \u907f\u514d\u4e86 XSS \u653b\u51fb\uff0c\u4f46\u4ecd\u6709\u4e00\u4e9b API \u6ca1\u6709\u8f93\u5165\u9a8c\u8bc1\u3002\u4e3a\u4e86\u66f4\u597d\u5730\u4fdd\u62a4\u7528\u6237\u6570\u636e\u5b89\u5168\uff0c\u6211\u4eec\u5efa\u8bae\u60a8\u5728\u4f7f\u7528 API \u7684\u4efb\u4f55\u6570\u636e\u4e4b\u524d\uff0c\u5148\u5bf9\u5176\u8fdb\u884c\u6b63\u786e\u7f16\u7801\uff08\u5c24\u5176\u662f\u5f53\u53c2\u6570'visible'\u4e3atrue\u65f6\uff09\u3002 \u4ee5\u4e0b\u662f\u4e00\u79cd\u5178\u578b\u7684 XSS \u9632\u62a4\u65b9\u6cd5\uff1a\u5bf9\u6765\u81ea API \u7684\u6240\u6709\u6570\u636e\u5728 HTML \u4e2d\u8fdb\u884c\u7f16\u7801\u3002\u4f7f\u7528\u8bf8\u5982 encodeURIComponent() \u6216 escape() \u7b49\u65b9\u6cd5\u5bf9\u6570\u636e\u8fdb\u884c\u7f16\u7801\uff0c\u8fd9\u53ef\u4ee5\u5c06\u7279\u6b8a\u5b57\u7b26\u8f6c\u6362\u4e3a\u5176 HTML \u5b9e\u4f53\uff0c\u9632\u6b62\u6d4f\u89c8\u5668\u5c06\u5176\u89e3\u91ca\u4e3a HTML \u4ee3\u7801\u3002 \u8bf7\u52a1\u5fc5\u4e3a\u6765\u81ea API \u7684\u6240\u6709\u6570\u636e\u5b9e\u65bd XSS \u9632\u62a4\uff0c\u4ee5\u786e\u4fdd\u7528\u6237\u6570\u636e\u7684\u5b89\u5168\u3002\u6211\u4eec\u4e86\u89e3\u60a8\u53ef\u80fd\u9700\u8981\u6709\u5173 XSS \u9632\u62a4\u7684\u66f4\u591a\u4fe1\u606f\u3002\u5efa\u8bae\u60a8\u53c2\u8003\u4ee5\u4e0b\u8d44\u6e90\uff1a OWASP XSS Prevention Cheat Sheet \u3002 \u9996\u5148\uff0c\u5bf9HTTP API\u4e2d\u5730\u5740\u683c\u5f0f\u7684\u9009\u62e9\u8fdb\u884c\u8bf4\u660e\uff1aTRON\u7f51\u7edc\u8d26\u6237\u5730\u5740\u683c\u5f0f\u6709\u4e24\u79cd\uff1aHexString\u683c\u5f0f\u548cBase58\u683c\u5f0f\u3002\u8282\u70b9HTTP API\u652f\u6301\u5730\u5740\u683c\u5f0f\u9009\u62e9\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7visible\u53c2\u6570\u8bbe\u7f6e\u5730\u5740\u683c\u5f0f\uff0c\u9ed8\u8ba4\u503c\u4e3afalse\uff0c\u53c2\u6570\u53ca\u8fd4\u56de\u503c\u4e2d\u7684\u5730\u5740\u683c\u5f0f\u5747\u4e3ahex\u683c\u5f0f\uff0c\u5f53visible\u8bbe\u7f6e\u4e3atrue\u65f6\uff0c\u53c2\u6570\u53ca\u8fd4\u56de\u503c\u4e2d\u7684\u5730\u5740\u683c\u5f0f\u5747\u4e3aBase58\u683c\u5f0f\u3002\u5982\u679c\u53c2\u6570\u683c\u5f0f\u4e0evisible\u8bbe\u7f6e\u4e0d\u5339\u914d\uff0c\u5c06\u4f1a\u62a5\u9519\u3002\u8bbe\u7f6e\u65b9\u5f0f\uff1a \u5bf9\u4e8eGET\u65b9\u5f0f\u8bf7\u6c42\u63a5\u53e3\u6216\u8005\u4e0d\u9700\u8981\u53c2\u6570\u7684\u67e5\u8be2\u63a5\u53e3\uff0c\u901a\u8fc7\u5728url\u4e2d\u589e\u52a0\u53c2\u6570 visible=true http://127.0.0.1:8090/wallet/listexchanges?visible=true \u5bf9\u4e8ePOST\u65b9\u5f0f\u8bf7\u6c42\u63a5\u53e3\uff0c\u901a\u8fc7\u5728json\u7ed3\u6784\u4f53\u6700\u5916\u5c42\u4e2d\u589e\u52a0\u53c2\u6570 \"visible\": true curl - X POST h tt p : //127.0.0.1:8090/wallet/createtransaction -d ' { \"owner_address\" : \"TRGhNNfnmgLegT4zHNjEqDSADjgmnHvubJ\" , \"to_address\" : \"TJCnKsPa7y5okkXvQAidZBzqx3QyQ6sxMW\" , \"amount\" : 1000000 , \"visible\" : true } '","title":"HTTP API \u63a5\u53e3"},{"location":"api/http/#fullnode-http-api","text":"FullNode HTTP API\u5206\u7c7b\u5982\u4e0b: \u94fe\u4e0a\u8d26\u6237 \u8f6c\u8d26\u548c\u4ea4\u6613 \u8d26\u6237\u8d44\u6e90 \u67e5\u8be2\u94fe\u4e0a\u6570\u636e \u667a\u80fd\u5408\u7ea6 TRC-10\u901a\u8bc1 \u6295\u7968\u548cSR \u63d0\u6848 \u53bb\u4e2d\u5fc3\u5316\u4ea4\u6613\u6240 TRONZ \u533f\u540d\u667a\u80fd\u5408\u7ea6 Pending Pool","title":"Fullnode HTTP API"},{"location":"api/http/#_1","text":"\u4e0b\u9762\u662f\u94fe\u4e0a\u8d26\u6237\u76f8\u5173API\uff1a wallet/validateaddress wallet/createaccount wallet/getaccount wallet/updateaccount wallet/accountpermissionupdate wallet/getaccountbalance wallet/setaccountid wallet/getaccountbyid","title":"\u94fe\u4e0a\u5e10\u6237"},{"location":"api/http/#walletvalidateaddress","text":"\u4f5c\u7528\uff1a\u68c0\u67e5\u5730\u5740\u662f\u5426\u6b63\u786e curl -X POST http://127.0.0.1:8090/wallet/validateaddress -d '{\"address\": \"4189139CB1387AF85E3D24E212A008AC974967E561\"}' \u53c2\u6570\u8bf4\u660e\uff1a\u5730\u5740\uff0c\u53ef\u4ee5\u662fbase58checksum\u3001hexString\u3001base64\u683c\u5f0f \u8fd4\u56de\u503c\uff1a\u5730\u5740\u6b63\u786e\u6216\u8005\u9519\u8bef","title":"wallet/validateaddress"},{"location":"api/http/#walletcreateaccount","text":"\u4f5c\u7528\uff1a\u521b\u5efa\u8d26\u53f7\uff0c\u4e00\u4e2a\u5df2\u7ecf\u6fc0\u6d3b\u7684\u8d26\u53f7\u521b\u5efa\u4e00\u4e2a\u65b0\u8d26\u53f7\u3002\u5982\u679c\u521b\u5efa\u8005\u8d26\u53f7\u6709\u8db3\u591f\u7684\u901a\u8fc7\u8d28\u62bcTRX\u83b7\u5f97\u7684\u5e26\u5bbd\uff0c\u90a3\u4e48\u521b\u5efa\u8d26\u6237\u53ea\u4f1a\u6d88\u8017\u5e26\u5bbd\uff0c\u5426\u5219\uff0c\u4f1a\u70e7\u63890.1\u4e2aTRX\u6765\u652f\u4ed8\u5e26\u5bbd\u8d39\u7528\uff0c\u540c\u65f6\u9700\u8981\u989d\u5916\u652f\u4ed8 1 TRX\u7684\u521b\u5efa\u8d39\u7528 curl -X POST http://127.0.0.1:8090/wallet/createaccount -d '{\"owner_address\":\"41d1e7a6bc354106cb410e65ff8b181c600ff14292\", \"account_address\": \"41e552f6487585c2b58bc2c9bb4492bc1f17132cd0\"}' \u53c2\u6570\uff1a owner_address \u662f\u5df2\u7ecf\u6fc0\u6d3b\u7684\u8d26\u53f7\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f account_address \u662f\u65b0\u8d26\u53f7\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f\uff0c\u8fd9\u4e2a\u5730\u5740\u9700\u8981\u4e8b\u5148\u521b\u5efa\u597d Permission_id \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u672a\u7b7e\u540d\u7684\u521b\u5efa\u8d26\u53f7\u7684Transaction","title":"wallet/createaccount"},{"location":"api/http/#walletgetaccount","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u4e00\u4e2a\u8d26\u6237\u7684\u4fe1\u606f curl -X POST http://127.0.0.1:8090/wallet/getaccount -d '{\"address\": \"41E552F6487585C2B58BC2C9BB4492BC1F17132CD0\"}' \u53c2\u6570\uff1a address \u8d26\u6237\u5730\u5740 \u8fd4\u56de\u503c\uff1aAccount\u5bf9\u8c61","title":"wallet/getaccount"},{"location":"api/http/#walletupdateaccount","text":"\u4f5c\u7528\uff1a\u4fee\u6539\u8d26\u53f7\u540d\u79f0 curl -X POST http://127.0.0.1:8090/wallet/updateaccount -d '{\"account_name\": \"0x7570646174654e616d6531353330383933343635353139\" ,\"owner_address\":\"41d1e7a6bc354106cb410e65ff8b181c600ff14292\"}' \u53c2\u6570\uff1a account_name \u662f\u8d26\u53f7\u540d\u79f0\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f owner_address \u662f\u8981\u4fee\u6539\u540d\u79f0\u7684\u8d26\u53f7\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f Permission_id \u53ef\u9009\u53c2\u6570, \u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u672a\u7b7e\u540d\u7684\u4fee\u6539\u540d\u79f0Transaction","title":"wallet/updateaccount"},{"location":"api/http/#walletaccountpermissionupdate","text":"\u4f5c\u7528\uff1a\u4fee\u6539\u8d26\u6237\u6743\u9650 curl -X POST http://127.0.0.1:8090/wallet/accountpermissionupdate -d '{ \"owner_address\": \"TRGhNNfnmgLegT4zHNjEqDSADjgmnHvubJ\", \"owner\": { \"type\": 0, \"permission_name\": \"owner\", \"threshold\": 1, \"keys\": [{ \"address\": \"TRGhNNfnmgLegT4zHNjEqDSADjgmnHvubJ\", \"weight\": 1 }] }, \"witness\": { \"type\": 1, \"permission_name\": \"witness\", \"threshold\": 1, \"keys\": [{ \"address\": \"TRGhNNfnmgLegT4zHNjEqDSADjgmnHvubJ\", \"weight\": 1 }] }, \"actives\": [{ \"type\": 2, \"permission_name\": \"active12323\", \"threshold\": 2, \"operations\": \"7fff1fc0033e0000000000000000000000000000000000000000000000000000\", \"keys\": [{ \"address\": \"TNhXo1GbRNCuorvYu5JFWN3m2NYr9QQpVR\", \"weight\": 1 }, { \"address\": \"TKwhcDup8L2PH5r6hxp5CQvQzZqJLmKvZP\", \"weight\": 1 }] }], \"visible\": true}' \u53c2\u6570\uff1a owner_address\uff1a\u521b\u5efa\u5408\u7ea6\u7684\u8d26\u6237\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f owner\uff1a\u8d26\u6237owner\u6743\u9650\u7684\u5206\u914d\u4fe1\u606f witness\uff1a\u51fa\u5757\u6743\u9650\u7684\u5206\u914d\u4fe1\u606f\uff0c\u5982\u679c\u4e0d\u662fwitness\uff0c\u4e0d\u9700\u8981\u8bbe\u7f6e actives\uff1a\u5176\u4ed6\u529f\u80fd\u6743\u9650\u7684\u5206\u914d\u4fe1\u606f \u8fd4\u56de\u503c:\u672a\u7b7e\u540d\u7684transaction","title":"wallet/accountpermissionupdate"},{"location":"api/http/#walletgetaccountbalance","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u8d26\u6237\u5386\u53f2\u4f59\u989d curl -X POST http://127.0.0.1:8090/wallet/getaccountbalance -d '{ \"account_identifier\": { \"address\": \"TLLM21wteSPs4hKjbxgmH1L6poyMjeTbHm\" }, \"block_identifier\": { \"hash\": \"0000000000010c4a732d1e215e87466271e425c86945783c3d3f122bfa5affd9\", \"number\": 68682 }, \"visible\": true }' \u53c2\u6570\uff1a \u8d26\u6237 address + \u533a\u5757 hash \u548c number\uff0c\u533a\u5757 hash \u548c number \u5fc5\u987b\u5339\u914d\u4e00\u81f4\u3002 \u8fd4\u56de\u503c\uff1a { \"balance\": 64086449348265042, \"block_identifier\": { \"hash\": \"0000000000010c4a732d1e215e87466271e425c86945783c3d3f122bfa5affd9\", \"number\": 68682 } } \u8fd4\u56de\u503c\u4e2d\u7684 block_identifier \u8868\u793a\u8d26\u6237\u4f59\u989d\u53d1\u751f\u53d8\u5316\u7684\u533a\u5757","title":"wallet/getaccountbalance"},{"location":"api/http/#walletsetaccountid","text":"\u4f5c\u7528\uff1a\u8bbe\u7f6e\u4e00\u4e2a\u8d26\u6237\u7684accountID curl -X POST http://127.0.0.1:8090/wallet/setaccountid -d '{ \"owner_address\":\"41a7d8a35b260395c14aa456297662092ba3b76fc0\",\"account_id\":\"6161616162626262\"}' \u53c2\u6570\u8bf4\u660e\uff1a owner_address \uff1a\u662f\u4ea4\u6613\u5bf9\u521b\u5efa\u8005\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f account_id accountid,\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c:\u8bbe\u7f6eAccountID\u7684transaction","title":"wallet/setaccountid"},{"location":"api/http/#walletgetaccountbyid","text":"\u4f5c\u7528\uff1a\u901a\u8fc7accountId\u67e5\u8be2\u4e00\u4e2a\u8d26\u53f7\u7684\u4fe1\u606f curl -X POST http://127.0.0.1:8090/wallet/getaccountbyid -d '{\"account_id\":\"6161616162626262\"}' \u53c2\u6570\u8bf4\u660e\uff1a account_id \u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1aAccount\u5bf9\u8c61","title":"wallet/getaccountbyid"},{"location":"api/http/#_2","text":"\u4e0b\u9762\u662f\u8f6c\u8d26\u548c\u4ea4\u6613\u76f8\u5173API\uff1a wallet/createtransaction wallet/broadcasttransaction wallet/broadcasthex wallet/getsignweight wallet/getapprovedlist","title":"\u8f6c\u8d26\u548c\u4ea4\u6613"},{"location":"api/http/#walletcreatetransaction","text":"\u4f5c\u7528\uff1a \u521b\u5efa\u4e00\u4e2a\u8f6c\u8d26\u7684Transaction\uff0c\u5982\u679c\u8f6c\u8d26\u7684to\u5730\u5740\u4e0d\u5b58\u5728\uff0c\u5219\u5728\u533a\u5757\u94fe\u4e0a\u521b\u5efa\u8be5\u8d26\u53f7 curl -X POST http://127.0.0.1:8090/wallet/createtransaction -d '{\"to_address\": \"41e9d79cc47518930bc322d9bf7cddd260a0260a8d\", \"owner_address\": \"41D1E7A6BC354106CB410E65FF8B181C600FF14292\", \"amount\": 1000 }' \u53c2\u6570\uff1a to_address \u662f\u8f6c\u8d26\u8f6c\u5165\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString owner_address \u662f\u8f6c\u8d26\u8f6c\u51fa\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString amount \u662f\u8f6c\u8d26\u6570\u91cf Permission_id \u53ef\u9009\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u672a\u7b7e\u540d\u7684\u8f6c\u8d26\u4ea4\u6613","title":"wallet/createtransaction"},{"location":"api/http/#walletbroadcasttransaction","text":"\u4f5c\u7528\uff1a\u5bf9\u7b7e\u540d\u540e\u7684transaction\u8fdb\u884c\u5e7f\u64ad curl -X POST http://127.0.0.1:8090/wallet/broadcasttransaction -d '{\"signature\":[\"97c825b41c77de2a8bd65b3df55cd4c0df59c307c0187e42321dcc1cc455ddba583dd9502e17cfec5945b34cad0511985a6165999092a6dec84c2bdd97e649fc01\"],\"txID\":\"454f156bf1256587ff6ccdbc56e64ad0c51e4f8efea5490dcbc720ee606bc7b8\",\"raw_data\":{\"contract\":[{\"parameter\":{\"value\":{\"amount\":1000,\"owner_address\":\"41e552f6487585c2b58bc2c9bb4492bc1f17132cd0\",\"to_address\":\"41d1e7a6bc354106cb410e65ff8b181c600ff14292\"},\"type_url\":\"type.googleapis.com/protocol.TransferContract\"},\"type\":\"TransferContract\"}],\"ref_block_bytes\":\"267e\",\"ref_block_hash\":\"9a447d222e8de9f2\",\"expiration\":1530893064000,\"timestamp\":1530893006233}}' \u53c2\u6570\uff1a\u7b7e\u540d\u4e4b\u540e\u7684Transaction \u8fd4\u56de\u503c\uff1a\u5e7f\u64ad\u662f\u5426\u6210\u529f","title":"wallet/broadcasttransaction"},{"location":"api/http/#walletbroadcasthex","text":"\u4f5c\u7528\uff1a\u5bf9\u7b7e\u540d\u540e\u7684transaction hex\u8fdb\u884c\u5e7f\u64ad curl -X POST http://127.0.0.1:8090/wallet/broadcasthex -d '{\"transaction\":\"0A8A010A0202DB2208C89D4811359A28004098A4E0A6B52D5A730802126F0A32747970652E676F6F676C65617069732E636F6D2F70726F746F636F6C2E5472616E736665724173736574436F6E747261637412390A07313030303030311215415A523B449890854C8FC460AB602DF9F31FE4293F1A15416B0580DA195542DDABE288FEC436C7D5AF769D24206412418BF3F2E492ED443607910EA9EF0A7EF79728DAAAAC0EE2BA6CB87DA38366DF9AC4ADE54B2912C1DEB0EE6666B86A07A6C7DF68F1F9DA171EEE6A370B3CA9CBBB00\"}' \u53c2\u6570\uff1a\u7b7e\u540d\u4e4b\u540e\u7684Transaction hex \u8fd4\u56de\u503c\uff1a\u5e7f\u64ad\u662f\u5426\u6210\u529f","title":"wallet/broadcasthex"},{"location":"api/http/#walletgetsignweight","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u591a\u91cd\u7b7e\u540d\u7684\u4ea4\u6613\u7684\u76f8\u5173\u4fe1\u606f curl -X POST http://127.0.0.1:8090/wallet/getsignweight -d '{ \"signature\": [ \"e0bd4a60f1b3c89d4da3894d400e7e32385f6dd690aee17fdac4e016cdb294c5128b66f62f3947a7182c015547496eba95510c113bda2a361d811b829343c36501\", \"596ead6439d0f381e67f30b1ed6b3687f2bd53ce5140cdb126cfe4183235804741eeaf79b4e91f251fd7042380a9485d4d29d67f112d5387bc7457b355cd3c4200\" ], \"txID\": \"0ae84a8439f5aa8fd2c458879a4031a7452aebed8e6e99ffbccd26842d4323c4\", \"raw_data\": { \"contract\": [{ \"parameter\": { \"value\": { \"amount\": 1000000, \"owner_address\": \"TRGhNNfnmgLegT4zHNjEqDSADjgmnHvubJ\", \"to_address\": \"TJCnKsPa7y5okkXvQAidZBzqx3QyQ6sxMW\" }, \"type_url\": \"type.googleapis.com/protocol.TransferContract\" }, \"type\": \"TransferContract\" }], \"ref_block_bytes\": \"163d\", \"ref_block_hash\": \"77ef4ace148b05ba\", \"expiration\": 1555664823000, \"timestamp\": 1555664763418 }, \"raw_data_hex\": \"0a02163d220877ef4ace148b05ba40d8c5e5a6a32d5a69080112630a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412320a1541a7d8a35b260395c14aa456297662092ba3b76fc01215415a523b449890854c8fc460ab602df9f31fe4293f18c0843d2802709af4e1a6a32d\", \"visible\": true}' \u53c2\u6570\u8bf4\u660e\uff1a\u53c2\u6570\u6574\u4f53\u662f\u4e00\u4e2a\u5b8c\u6574\u7684\u4ea4\u6613 \u8fd4\u56de\u503c:\u5df2\u7b7e\u540d\u6743\u91cd\u662f\u5426\u8fbe\u5230\u9608\u503c\uff08\u5373\u662f\u5426\u6ee1\u8db3\u9a8c\u7b7e\u6807\u51c6\uff09\uff0c\u7b7e\u540d\u5730\u5740\u5217\u8868\uff0cpermission\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u5df2\u7b7e\u540d\u7684\u6743\u91cd\u53ca\u4ea4\u6613\u4fe1\u606f\u3002","title":"wallet/getsignweight"},{"location":"api/http/#walletgetapprovedlist","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u591a\u91cd\u7b7e\u540d\u7684\u4ea4\u6613\u7684\u76f8\u5173\u4fe1\u606f curl -X POST http://127.0.0.1:8090/wallet/getapprovedlist -d '{ \"signature\": [ \"e0bd4a60f1b3c89d4da3894d400e7e32385f6dd690aee17fdac4e016cdb294c5128b66f62f3947a7182c015547496eba95510c113bda2a361d811b829343c36501\", \"596ead6439d0f381e67f30b1ed6b3687f2bd53ce5140cdb126cfe4183235804741eeaf79b4e91f251fd7042380a9485d4d29d67f112d5387bc7457b355cd3c4200\" ], \"txID\": \"0ae84a8439f5aa8fd2c458879a4031a7452aebed8e6e99ffbccd26842d4323c4\", \"raw_data\": { \"contract\": [{ \"parameter\": { \"value\": { \"amount\": 1000000, \"owner_address\": \"TRGhNNfnmgLegT4zHNjEqDSADjgmnHvubJ\", \"to_address\": \"TJCnKsPa7y5okkXvQAidZBzqx3QyQ6sxMW\" }, \"type_url\": \"type.googleapis.com/protocol.TransferContract\" }, \"type\": \"TransferContract\" }], \"ref_block_bytes\": \"163d\", \"ref_block_hash\": \"77ef4ace148b05ba\", \"expiration\": 1555664823000, \"timestamp\": 1555664763418 }, \"raw_data_hex\": \"0a02163d220877ef4ace148b05ba40d8c5e5a6a32d5a69080112630a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412320a1541a7d8a35b260395c14aa456297662092ba3b76fc01215415a523b449890854c8fc460ab602df9f31fe4293f18c0843d2802709af4e1a6a32d\", \"visible\": true}' \u53c2\u6570\u6574\u4f53\u662f\u4e00\u4e2a\u5b8c\u6574\u7684\u4ea4\u6613 \u8fd4\u56de\u503c:\u5df2\u7b7e\u540d\u6743\u91cd\u662f\u5426\u8fbe\u5230\u9608\u503c\uff08\u5373\u662f\u5426\u6ee1\u8db3\u9a8c\u7b7e\u6807\u51c6\uff09\uff0c\u7b7e\u540d\u5730\u5740\u5217\u8868\uff0c\u4ea4\u6613\u4fe1\u606f\u3002","title":"wallet/getapprovedlist"},{"location":"api/http/#_3","text":"\u4e0b\u9762\u662f\u94fe\u4e0a\u8d44\u6e90\u76f8\u5173API\uff1a wallet/getaccountresource wallet/getaccountnet wallet/unfreezebalance wallet/getdelegatedresource wallet/getdelegatedresourceaccountindex wallet/freezebalancev2 wallet/unfreezebalancev2 wallet/cancelallunfreezev2 wallet/delegateresource wallet/undelegateresource wallet/withdrawexpireunfreeze wallet/getavailableunfreezecount wallet/getcanwithdrawunfreezeamount wallet/getcandelegatedmaxsize wallet/getdelegatedresourcev2 wallet/getdelegatedresourceaccountindexv2","title":"\u5e10\u6237\u8d44\u6e90"},{"location":"api/http/#walletgetaccountresource","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u8d26\u6237\u7684\u8d44\u6e90\u4fe1\u606f curl -X POST http://127.0.0.1:8090/wallet/getaccountresource -d {\"address\" : \"419844f7600e018fd0d710e2145351d607b3316ce9\"} \u53c2\u6570\uff1a address \uff1a\u67e5\u8be2\u8d26\u6237\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1a\u8d26\u6237\u7684\u8d44\u6e90\u4fe1\u606f","title":"wallet/getaccountresource"},{"location":"api/http/#walletgetaccountnet","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u5e26\u5bbd\u4fe1\u606f\u3002 curl -X POST http://127.0.0.1:8090/wallet/getaccountnet -d '{\"address\": \"4112E621D5577311998708F4D7B9F71F86DAE138B5\"}' \u53c2\u6570\uff1a address - \u8d26\u6237\u5730\u5740 \u8fd4\u56de\u503c\uff1a\u5e26\u5bbd\u4fe1\u606f","title":"wallet/getaccountnet"},{"location":"api/http/#walletfreezebalance","text":"\u4f5c\u7528\uff1a\u8d28\u62bctrx\uff0c\u83b7\u53d6\u5e26\u5bbd\uff0c\u83b7\u53d6\u6295\u7968\u6743\u3002\u8be5\u63a5\u53e3\u5df2\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528freezebalancev2\u8fdb\u884c\u8d28\u62bc\u3002","title":"wallet/freezebalance"},{"location":"api/http/#walletunfreezebalance","text":"\u4f5c\u7528\uff1a\u89e3\u9501Stake1.0\u9636\u6bb5\u8d28\u62bc\u7684\uff0c\u5e76\u5df2\u7ecf\u7ed3\u675f\u8d28\u62bc\u671f\u7684trx\uff0c\u4f1a\u540c\u65f6\u5931\u53bb\u8fd9\u90e8\u5206trx\u5e26\u6765\u7684\u5e26\u5bbd\u548c\u6295\u7968\u6743 curl -X POST http://127.0.0.1:8090/wallet/unfreezebalance -d '{ \"owner_address\":\"41e472f387585c2b58bc2c9bb4492bc1f17342cd1\", \"resource\": \"BANDWIDTH\", \"receiver_address\":\"414332f387585c2b58bc2c9bb4492bc1f17342cd1\" }' \u53c2\u6570\uff1a owner_address \u662f\u89e3\u9501trx\u8d26\u53f7\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f resource \u53ef\u4ee5\u662fBANDWIDTH\u6216\u8005ENERGY receiverAddress \u8868\u793a\u53d7\u59d4\u6258\u8d26\u6237\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u53ef\u9009\u53c2\u6570 Permission_id \uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u89e3\u9501trx\u7684transaction","title":"wallet/unfreezebalance"},{"location":"api/http/#walletgetdelegatedresource","text":"\u4f5c\u7528\uff1a\u67e5\u770b\u4e00\u4e2a\u8d26\u6237\u4ee3\u7406\u7ed9\u53e6\u5916\u4e00\u4e2a\u8d26\u6237\u7684\u8d44\u6e90\u60c5\u51b5 curl -X POST http://127.0.0.1:8090/wallet/getdelegatedresource -d ' { \"fromAddress\": \"419844f7600e018fd0d710e2145351d607b3316ce9\", \"toAddress\": \"41c6600433381c731f22fc2b9f864b14fe518b322f\" }' \u53c2\u6570\uff1a fromAddress \uff1a\u662f\u8981\u67e5\u8be2\u7684\u8d26\u6237\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f toAddress \uff1a\u4ee3\u7406\u5bf9\u8c61\u7684\u8d26\u6237\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1a\u8d26\u6237\u7684\u8d44\u6e90\u4ee3\u7406\u7684\u5217\u8868\uff0c\u5217\u8868\u7684\u5143\u7d20\u4e3aDelegatedResource","title":"wallet/getdelegatedresource"},{"location":"api/http/#walletgetdelegatedresourceaccountindex","text":"\u4f5c\u7528\uff1a\u67e5\u770b\u4e00\u4e2a\u8d26\u6237\u7ed9\u54ea\u4e9b\u8d26\u6237\u4ee3\u7406\u4e86\u8d44\u6e90 curl -X POST http://127.0.0.1:8090/wallet/getdelegatedresourceaccountindex -d ' { \"value\": \"419844f7600e018fd0d710e2145351d607b3316ce9\", }' \u53c2\u6570\uff1a value \uff1a\u662f\u8981\u67e5\u8be2\u7684\u8d26\u6237\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1a\u8d26\u6237\u7684\u8d44\u6e90\u4ee3\u7406\u6982\u51b5\uff0c\u7ed3\u6784\u4e3aDelegatedResourceAccountIndex","title":"wallet/getdelegatedresourceaccountindex"},{"location":"api/http/#walletfreezebalancev2","text":"\u4f5c\u7528\uff1a\u8d28\u62bcTRX curl -X POST http://127.0.0.1:8090/wallet/freezebalancev2 -d '{ \"owner_address\": \"41e472f387585c2b58bc2c9bb4492bc1f17342cd1\", \"frozen_balance\": 10000, \"resource\": \"BANDWIDTH\" }' \u53c2\u6570\uff1a owner_address : \u8d28\u62bcTRX \u8d26\u53f7\u7684\u5730\u5740, HEX \u683c\u5f0f\u6216 Base58check \u683c\u5f0f frozen_balance : \u8d28\u62bcTRX \u7684\u6570\u91cf, \u5355\u4f4d\u4e3asun resource : \u8d28\u62bcTRX \u83b7\u53d6\u8d44\u6e90\u7684\u7c7b\u578b, \u53ef\u4ee5\u662f BANDWIDTH \u6216\u8005 ENERGY permission_id : \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528 \u8fd4\u56de\u503c\uff1a\u672a\u7b7e\u540d\u7684\u4ea4\u6613\u5bf9\u8c61","title":"wallet/freezebalancev2"},{"location":"api/http/#walletunfreezebalancev2","text":"\u4f5c\u7528\uff1a \u89e3\u9501\u901a\u8fc7Stake2.0\u673a\u5236\u8d28\u62bc\u7684TRX, \u91ca\u653e\u6240\u76f8\u5e94\u6570\u91cf\u7684\u5e26\u5bbd\u548c\u80fd\u91cf\uff0c\u540c\u65f6\u56de\u6536\u76f8\u5e94\u6570\u91cf\u7684\u6295\u7968\u6743(TP) curl -X POST http://127.0.0.1:8090/wallet/unfreezebalancev2 -d '{ \"owner_address\": \"41e472f387585c2b58bc2c9bb4492bc1f17342cd1\", \"unfreeze_balance\": 1000000, \"resource\": \"BANDWIDTH\" }' \u53c2\u6570\uff1a owner_address : \u89e3\u9501TRX \u8d26\u53f7\u7684\u5730\u5740, HEX \u683c\u5f0f\u6216 Base58check \u683c\u5f0f resource : \u8d44\u6e90\u7c7b\u578b, BANDWIDTH \u6216\u8005 ENERGY unfreeze_balance : \u89e3\u8d28\u62bc\u7684TRX\u6570\u91cf\uff0c\u5355\u4f4d\u4e3asun permission_id : \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528 \u8fd4\u56de\u503c\uff1a\u672a\u7b7e\u540d\u7684\u4ea4\u6613\u5bf9\u8c61","title":"wallet/unfreezebalancev2"},{"location":"api/http/#walletcancelallunfreezev2","text":"\u4f5c\u7528\uff1a \u53d6\u6d88\u6240\u6709\u672a\u5b8c\u6210\u7684\u89e3\u8d28\u62bc\uff0c\u5c06\u8fc7\u671f\u7684\u89e3\u8d28\u62bc\u91d1\u989d\u63d0\u53d6\u5230\u8d26\u6237\u4f59\u989d\u4e2d\uff0c\u5c06\u672a\u8fc7\u671f\u7684\u89e3\u8d28\u62bc\u91d1\u989d\u91cd\u65b0\u8d28\u62bc curl -X POST http://127.0.0.1:8090/wallet/cancelallunfreezev2 -d '{ \"owner_address\": \"41e472f387585c2b58bc2c9bb4492bc1f17342cd1\" }' \u53c2\u6570\uff1a owner_address : \u8d26\u6237\u5730\u5740, HEX \u683c\u5f0f\u6216 Base58check \u683c\u5f0f permission_id : \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528 \u8fd4\u56de\u503c\uff1a\u672a\u7b7e\u540d\u7684\u4ea4\u6613\u5bf9\u8c61","title":"wallet/cancelallunfreezev2"},{"location":"api/http/#walletdelegateresource","text":"\u4f5c\u7528\uff1a \u5c06\u5e26\u5bbd\u6216\u8005\u80fd\u91cf\u8d44\u6e90\u4ee3\u7406\u7ed9\u5176\u5b83\u8d26\u6237 curl -X POST http://127.0.0.1:8090/wallet/delegateresource -d '{ \"owner_address\": \"41e472f387585c2b58bc2c9bb4492bc1f17342cd1\", \"receiver_address\": \"41d1e7a6bc354106cb410e65ff8b181c600ff14292\", \"balance\": 1000000, \"resource\": \"BANDWIDTH\", \"lock\": false }' \u53c2\u6570\uff1a owner_address : \u4ea4\u6613\u53d1\u8d77\u8005\u8d26\u53f7\u7684\u5730\u5740, HEX \u683c\u5f0f\u6216 Base58check \u683c\u5f0f receiver_address : \u8d44\u6e90\u7684\u63a5\u6536\u8d26\u6237\u5730\u5740, HEX \u683c\u5f0f\u6216 Base58check \u683c\u5f0f balance : \u4ee3\u7406balance\u6570\u91cf\u7684TRX\u6240\u5bf9\u5e94\u7684\u8d44\u6e90\u7ed9\u76ee\u6807\u5730\u5740, \u5355\u4f4d\u4e3asun resource : \u4ee3\u7406\u7684\u8d44\u6e90\u7c7b\u578b, BANDWIDTH \u6216\u8005 ENERGY lock : true\u8868\u793a\u4e3a\u8be5\u8d44\u6e90\u4ee3\u7406\u64cd\u4f5c\u8bbe\u7f6e\u4e09\u5929\u7684\u9501\u5b9a\u671f\uff0c\u5373\u8d44\u6e90\u4ee3\u7406\u7ed9\u76ee\u6807\u5730\u5740\u540e\u7684\u4e09\u5929\u5185\u4e0d\u53ef\u4ee5\u53d6\u6d88\u5bf9\u5176\u7684\u8d44\u6e90\u4ee3\u7406\uff0c\u5982\u679c\u9501\u5b9a\u671f\u5185\uff0c\u518d\u6b21\u4ee3\u7406\u8d44\u6e90\u7ed9\u540c\u4e00\u76ee\u6807\u5730\u5740\uff0c\u5219\u9501\u5b9a\u671f\u5c06\u91cd\u65b0\u8bbe\u7f6e\u4e3a3\u5929\u3002false\u8868\u793a\u672c\u6b21\u8d44\u6e90\u4ee3\u7406\u6ca1\u6709\u9501\u5b9a\u671f\uff0c\u53ef\u968f\u65f6\u53d6\u6d88\u5bf9\u76ee\u6807\u5730\u5740\u7684\u8d44\u6e90\u4ee3\u7406 lock_period : \u9501\u5b9a\u5468\u671f\uff0c\u4ee5\u533a\u5757\u65f6\u95f4\uff083s\uff09\u4e3a\u5355\u4f4d\uff0c\u8868\u793a\u9501\u5b9a\u591a\u5c11\u4e2a\u533a\u5757\u7684\u65f6\u95f4\uff0c\u5f53lock\u4e3atrue\u65f6\uff0c\u8be5\u5b57\u6bb5\u6709\u6548\u3002\u5982\u679c\u4ee3\u7406\u9501\u5b9a\u671f\u4e3a1\u5929\uff0c\u5219lock_period\u4e3a\uff1a28800 permission_id : \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528 \u8fd4\u56de\u503c\uff1a\u672a\u7b7e\u540d\u7684\u4ea4\u6613\u5bf9\u8c61","title":"wallet/delegateresource"},{"location":"api/http/#walletundelegateresource","text":"\u4f5c\u7528\uff1a \u53d6\u6d88\u4e3a\u76ee\u6807\u5730\u5740\u4ee3\u7406\u7684\u5e26\u5bbd\u6216\u8005\u80fd\u91cf curl -X POST http://127.0.0.1:8090/wallet/undelegateresource -d '{ \"owner_address\": \"41e472f387585c2b58bc2c9bb4492bc1f17342cd1\", \"receiver_address\": \"41d1e7a6bc354106cb410e65ff8b181c600ff14292\", \"balance\": 1000000, \"resource\": \"BANDWIDTH\" }' \u53c2\u6570\uff1a owner_address : \u4ea4\u6613\u53d1\u8d77\u8005\u8d26\u53f7\u7684\u5730\u5740, HEX \u683c\u5f0f\u6216 Base58check \u683c\u5f0f receiver_address : \u8d44\u6e90\u7684\u63a5\u6536\u8d26\u6237\u5730\u5740, \u4e5f\u5c31\u662f\u53d6\u6d88\u4e3a\u8be5\u5730\u5740\u7684\u8d44\u6e90\u4ee3\u7406\u3002 HEX \u683c\u5f0f\u6216 Base58check \u683c\u5f0f balance : \u53d6\u6d88\u4ee3\u7406 balance\u6570\u91cf\u7684TRX\u6240\u5bf9\u5e94\u7684\u8d44\u6e90, \u5355\u4f4d\u4e3asun resource : \u53d6\u6d88\u4ee3\u7406\u7684\u8d44\u6e90\u7c7b\u578b, BANDWIDTH \u6216\u8005 ENERGY permission_id : \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528 \u8fd4\u56de\u503c\uff1a\u672a\u7b7e\u540d\u7684\u4ea4\u6613\u5bf9\u8c61","title":"wallet/undelegateresource"},{"location":"api/http/#walletwithdrawexpireunfreeze","text":"\u4f5c\u7528\uff1a\u63d0\u53d6\u5df2\u8fc7\u9501\u5b9a\u671f\u7684\u89e3\u8d28\u62bc\u7684\u672c\u91d1 curl -X POST http://127.0.0.1:8090/wallet/withdrawexpireunfreeze -d '{ \"owner_address\": \"41e472f387585c2b58bc2c9bb4492bc1f17342cd1\", }' \u53c2\u6570\uff1a owner_address : \u4ea4\u6613\u53d1\u8d77\u8005\u8d26\u53f7\u7684\u5730\u5740, HEX \u683c\u5f0f\u6216 Base58check \u683c\u5f0f permission_id : \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528 \u8fd4\u56de\u503c\uff1a\u672a\u7b7e\u540d\u7684\u4ea4\u6613\u5bf9\u8c61","title":"wallet/withdrawexpireunfreeze"},{"location":"api/http/#walletgetavailableunfreezecount","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u5f53\u524d\u89e3\u8d28\u62bc\u5269\u4f59\u6b21\u6570 curl -X POST http://127.0.0.1:8090/wallet/getavailableunfreezecount -d '{ \"owner_address\": \"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g\", \"visible\": true } ' \u53c2\u6570\uff1a owner_address : \u4ea4\u6613\u53d1\u8d77\u8005\u8d26\u53f7\u7684\u5730\u5740 \u8fd4\u56de\u503c\uff1a\u89e3\u8d28\u62bc\u7684\u5269\u4f59\u6b21\u6570","title":"wallet/getavailableunfreezecount"},{"location":"api/http/#walletgetcanwithdrawunfreezeamount","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u5728\u67d0\u65f6\u95f4\u70b9\u53ef\u4ee5\u63d0\u53d6\u7684\u89e3\u8d28\u62bc\u672c\u91d1\u6570\u91cf curl -X POST http://127.0.0.1:8090/wallet/getcanwithdrawunfreezeamount -d '{ \"owner_address\": \"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g\", \"timestamp\": 1667977444000, \"visible\": true } ' \u53c2\u6570\uff1a owner_address : \u4ea4\u6613\u53d1\u8d77\u8005\u8d26\u53f7\u7684\u5730\u5740 timestamp : \u67e5\u8be2\u5728\u8be5\u65f6\u95f4\u6233\u65f6\uff0c\u53ef\u63d0\u53d6\u7684\u672c\u91d1\u6570\u91cf\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2 \u8fd4\u56de\u503c\uff1a\u89e3\u8d28\u62bc\u672c\u91d1\u53ef\u63d0\u53d6\u6570\u91cf","title":"wallet/getcanwithdrawunfreezeamount"},{"location":"api/http/#walletgetcandelegatedmaxsize","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u76ee\u6807\u5730\u5740\u4e2d\u6307\u5b9a\u7c7b\u578b\u8d44\u6e90\u7684\u53ef\u4ee3\u7406\u6570\u91cf\uff0c\u5355\u4f4d\u4e3asun curl -X POST http://127.0.0.1:8090/wallet/getcandelegatedmaxsize -d '{ \"owner_address\": \"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g\", \"type\": 0, \"visible\": true } ' \u53c2\u6570\uff1a owner_address : \u4ea4\u6613\u53d1\u8d77\u8005\u8d26\u53f7\u7684\u5730\u5740 type : \u8d44\u6e90\u7c7b\u578b\uff0c0\u4e3a\u5e26\u5bbd\uff0c1\u4e3a\u80fd\u91cf \u8fd4\u56de\u503c\uff1a\u53ef\u4ee3\u7406\u5e26\u5bbd\u6216\u8005\u80fd\u91cf\u4efd\u989d\u7684\u6700\u5927\u503c\uff08\u5355\u4f4d\u4e3asun\uff09","title":"wallet/getcandelegatedmaxsize"},{"location":"api/http/#walletgetdelegatedresourcev2","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u5728Stake2.0\u673a\u5236\u4e0b\uff0c\u67d0\u5730\u5740\u4ee3\u7406\u7ed9\u76ee\u6807\u5730\u5740\u7684\u8d44\u6e90\u60c5\u51b5 curl -X POST http://127.0.0.1:8090/wallet/getdelegatedresourcev2 -d '{ \"fromAddress\": \"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g\", \"toAddress\": \"TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1\", \"visible\": true } ' \u53c2\u6570\uff1a fromAddress : \u4ee3\u7406\u8d26\u6237\u5730\u5740 toAddress : \u8d44\u6e90\u7684\u63a5\u6536\u8d26\u6237\u5730\u5740 \u8fd4\u56de\u503c\uff1a\u67d0\u5730\u5740\u4ee3\u7406\u7ed9\u76ee\u6807\u5730\u5740\u7684\u8d44\u6e90\u60c5\u51b5\u7684\u5217\u8868","title":"wallet/getdelegatedresourcev2"},{"location":"api/http/#walletgetdelegatedresourceaccountindexv2","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u5728Stake2.0\u9636\u6bb5\uff0c\u67d0\u5730\u5740\u7684\u8d44\u6e90\u59d4\u6258\u7d22\u5f15\u3002\u8fd4\u56de\u4e24\u4e2a\u5217\u8868\uff0c\u4e00\u4e2a\u662f\u8be5\u5e10\u6237\u5c06\u8d44\u6e90\u59d4\u6258\u7ed9\u7684\u5730\u5740\u5217\u8868(toAddress)\uff0c\u53e6\u4e00\u4e2a\u662f\u5c06\u8d44\u6e90\u59d4\u6258\u7ed9\u8be5\u5e10\u6237\u7684\u5730\u5740\u5217\u8868(fromAddress) curl -X POST http://127.0.0.1:8090/wallet/getdelegatedresourceaccountindexv2 -d '{ \"value\": \"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g\", \"visible\": true } ' \u53c2\u6570\uff1a value : \u8d26\u6237\u5730\u5740 \u8fd4\u56de\u503c\uff1a\u67d0\u5730\u5740\u7684\u8d44\u6e90\u59d4\u6258\u7d22\u5f15\u3002\u8fd4\u56de\u4e24\u4e2a\u5217\u8868\uff0c\u4e00\u4e2a\u662f\u8be5\u5e10\u6237\u5c06\u8d44\u6e90\u59d4\u6258\u7ed9\u7684\u5730\u5740\u5217\u8868(toAddress)\uff0c\u53e6\u4e00\u4e2a\u662f\u5c06\u8d44\u6e90\u59d4\u6258\u7ed9\u8be5\u5e10\u6237\u7684\u5730\u5740\u5217\u8868(fromAddress)","title":"wallet/getdelegatedresourceaccountindexv2"},{"location":"api/http/#_4","text":"\u4e0b\u9762\u662f\u67e5\u8be2\u94fe\u4e0a\u6570\u636e\u76f8\u5173API\uff1a wallet/getnowblock wallet/getblock wallet/getblockbynum wallet/getblockbyid wallet/getblockbylatestnum wallet/getblockbylimitnext wallet/getblockbalance wallet/gettransactionbyid wallet/gettransactioninfobyid wallet/gettransactioncountbyblocknum wallet/gettransactioninfobyblocknum wallet/listnodes wallet/getnodeinfo wallet/getchainparameters wallet/getenergyprices wallet/getbandwidthprices wallet/getburntrx","title":"\u67e5\u8be2\u94fe\u4e0a\u6570\u636e"},{"location":"api/http/#walletgetnowblock","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u6700\u65b0\u5757\u3002 curl -X POST http://127.0.0.1:8090/wallet/getnowblock \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c\uff1a\u5f53\u524d\u5757\u3002","title":"wallet/getnowblock"},{"location":"api/http/#walletgetblock","text":"\u4f5c\u7528\uff1a\u6839\u636e\u533a\u5757\u9ad8\u5ea6\u6216\u8005\u533a\u5757\u54c8\u5e0c\u67e5\u8be2\u533a\u5757\u5934\u4fe1\u606f\u6216\u8005\u6574\u4e2a\u533a\u5757\u4fe1\u606f curl -X POST http://127.0.0.1:8090/wallet/getblock -d '{\"detail\":false}' \u53c2\u6570: id_or_num : \u533a\u5757\u9ad8\u5ea6\u6216\u8005\u533a\u5757\u54c8\u5e0c\uff0c\u4e0d\u8bbe\u7f6e\u8868\u793a\u67e5\u8be2\u6700\u65b0\u533a\u5757 detail : \u9ed8\u8ba4\u4e3afalse\uff0c\u8868\u793a\u53ea\u67e5\u8be2\u533a\u5757\u5934\u4fe1\u606f\uff0ctrue\u8868\u793a\u67e5\u8be2\u6574\u4e2a\u533a\u5757 \u8fd4\u56de\u503c\uff1a\u533a\u5757\u6216\u8005\u533a\u5757\u5934\u3002","title":"wallet/getblock"},{"location":"api/http/#walletgetblockbynum","text":"\u4f5c\u7528\uff1a\u901a\u8fc7\u9ad8\u5ea6\u67e5\u8be2\u5757 curl -X POST http://127.0.0.1:8090/wallet/getblockbynum -d '{\"num\": 1}' \u53c2\u6570\u8bf4\u660e\uff1a\u5757\u9ad8\u5ea6\u3002 \u8fd4\u56de\u503c\uff1a\u5757\u3002","title":"wallet/getblockbynum"},{"location":"api/http/#walletgetblockbyid","text":"\u4f5c\u7528\uff1a\u901a\u8fc7ID\u67e5\u8be2\u5757 curl -X POST http://127.0.0.1:8090/wallet/getblockbyid -d '{\"value\": \"0000000000038809c59ee8409a3b6c051e369ef1096603c7ee723c16e2376c73\"}' \u53c2\u6570\u8bf4\u660e\uff1a\u5757ID\u3002 \u8fd4\u56de\u503c\uff1a\u5757\u3002","title":"wallet/getblockbyid"},{"location":"api/http/#walletgetblockbylatestnum","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u6700\u65b0\u7684\u51e0\u4e2a\u5757 curl -X POST http://127.0.0.1:8090/wallet/getblockbylatestnum -d '{\"num\": 5}' \u53c2\u6570\u8bf4\u660e\uff1a\u5757\u7684\u6570\u91cf\u3002 \u8fd4\u56de\u503c\uff1a\u5757\u7684\u5217\u8868\u3002","title":"wallet/getblockbylatestnum"},{"location":"api/http/#walletgetblockbylimitnext","text":"\u4f5c\u7528\uff1a\u6309\u7167\u8303\u56f4\u67e5\u8be2\u5757 curl -X POST http://127.0.0.1:8090/wallet/getblockbylimitnext -d '{\"startNum\": 1, \"endNum\": 2}' \u53c2\u6570\u8bf4\u660e\uff1a startNum \uff1a\u8d77\u59cb\u5757\u9ad8\u5ea6\uff0c\u5305\u542b\u6b64\u5757 endNum \uff1a\u622a\u6b62\u5757\u9ad8\u5ea6\uff0c\u4e0d\u5305\u542b\u6b64\u6b64\u5757 \u8fd4\u56de\u503c\uff1a\u5757\u7684\u5217\u8868\u3002","title":"wallet/getblockbylimitnext"},{"location":"api/http/#walletgetblockbalance","text":"\u4f5c\u7528\uff1a\u83b7\u53d6\u4e00\u4e2a\u533a\u5757\u4e2d\u6240\u6709\u7684\u4f59\u989d\u53d8\u5316\u64cd\u4f5c curl -X POST http://127.0.0.1:8090/wallet/getblockbalance -d '{ \"hash\": \"000000000000dc2a3731e28a75b49ac1379bcc425afc95f6ab3916689fbb0189\", \"number\": 56362, \"visible\": true }' \u53c2\u6570\u8bf4\u660e\uff1a\u533a\u5757hash\u548cnumber\u5fc5\u987b\u4e00\u81f4\u3002 \u8fd4\u56de\u503c\uff1a { \"block_identifier\": { \"hash\": \"000000000000dc2a3731e28a75b49ac1379bcc425afc95f6ab3916689fbb0189\", \"number\": 56362 }, \"timestamp\": 1530060672000, \"transaction_balance_trace\": [ { \"transaction_identifier\": \"e6cabb1833cd1f795eed39d8dd7689eaa70e5bb217611766c74c7aa9feea80df\", \"operation\": [ { \"operation_identifier\": 0, \"address\": \"TPttBLmFuykRi83y9HxDoEWxTQw6CCcQ4p\", \"amount\": -100000 }, { \"operation_identifier\": 1, \"address\": \"TLsV52sRDL79HXGGm9yzwKibb6BeruhUzy\", \"amount\": 100000 }, { \"operation_identifier\": 2, \"address\": \"TPttBLmFuykRi83y9HxDoEWxTQw6CCcQ4p\", \"amount\": -10000000 }, { \"operation_identifier\": 3, \"address\": \"TMrysg7DbwR1M8xqhpaPdVCHCuWFhw7uk1\", \"amount\": 10000000 } ], \"type\": \"TransferContract\", \"status\": \"SUCCESS\" } ] }","title":"wallet/getblockbalance"},{"location":"api/http/#walletgettransactionbyid","text":"\u4f5c\u7528\uff1a\u901a\u8fc7ID\u67e5\u8be2\u4ea4\u6613 curl -X POST http://127.0.0.1:8090/wallet/gettransactionbyid -d '{\"value\": \"d5ec749ecc2a615399d8a6c864ea4c74ff9f523c2be0e341ac9be5d47d7c2d62\"}' \u53c2\u6570\u8bf4\u660e\uff1a\u4ea4\u6613ID\u3002 \u8fd4\u56de\u503c\uff1a\u4ea4\u6613\u4fe1\u606f\u3002","title":"wallet/gettransactionbyid"},{"location":"api/http/#walletgettransactioninfobyid","text":"\u4f5c\u7528\uff1a\u6839\u636eid\u67e5\u8be2\u4ea4\u6613\u7684fee\uff0c\u6240\u5728\u7684block curl -X POST http://127.0.0.1:8090/wallet/gettransactioninfobyid -d '{\"value\" : \"309b6fa3d01353e46f57dd8a8f27611f98e392b50d035cef213f2c55225a8bd2\"}' \u53c2\u6570\u8bf4\u660e\uff1avalue\u662f\u4ea4\u6613id \u8fd4\u56de\u503c\uff1aTransaction\u7684\u4ea4\u6613fee\uff0c\u6240\u5728block\u7684\u9ad8\u5ea6\uff0c\u521b\u5efa\u65f6\u95f4","title":"wallet/gettransactioninfobyid"},{"location":"api/http/#walletgettransactioncountbyblocknum","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u7279\u5b9ablock\u4e0atransaction\u7684\u4e2a\u6570 curl -X POST http://127.0.0.1:8090/wallet/gettransactioncountbyblocknum -d '{\"num\" : 100}' \u53c2\u6570\u8bf4\u660e\uff1anum\u662f\u5757\u7684\u9ad8\u5ea6. \u8fd4\u56de\u503c\uff1atransaction\u7684\u4e2a\u6570.","title":"wallet/gettransactioncountbyblocknum"},{"location":"api/http/#walletgettransactioninfobyblocknum","text":"\u4f5c\u7528\uff1a\u83b7\u53d6\u7279\u5b9a\u533a\u5757\u7684\u6240\u6709\u4ea4\u6613 Info \u4fe1\u606f curl -X POST http://127.0.0.1:8090/wallet/gettransactioninfobyblocknum -d '{\"num\" : 100}' \u53c2\u6570\u8bf4\u660e\uff1anum\u662f\u5757\u7684\u9ad8\u5ea6. \u8fd4\u56de\u503c\uff1a\u6307\u5b9a\u5757\u4e2d\uff0c\u5305\u542b\u7684transactioninfo\u7684\u5217\u8868.","title":"wallet/gettransactioninfobyblocknum"},{"location":"api/http/#walletlistnodes","text":"\u4f5c\u7528\uff1a\u67e5\u8be2api\u6240\u5728\u673a\u5668\u8fde\u63a5\u7684\u8282\u70b9\u3002 curl -X POST http://127.0.0.1:8090/wallet/listnodes \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c\uff1a\u8282\u70b9\u5217\u8868\u3002","title":"wallet/listnodes"},{"location":"api/http/#walletgetnodeinfo","text":"\u4f5c\u7528\uff1a\u67e5\u770b\u8282\u70b9\u7684\u4fe1\u606f curl http://127.0.0.1:8090/wallet/getnodeinfo \u8fd4\u56de\u503c\uff1a\u8282\u70b9\u5f53\u524d\u72b6\u6001\u7684\u76f8\u5173\u4fe1\u606f","title":"wallet/getnodeinfo"},{"location":"api/http/#walletgetchainparameters","text":"\u4f5c\u7528\uff1a\u67e5\u8be2TRON\u7f51\u7edc\u52a8\u6001\u53c2\u6570 curl -X POST http://127.0.0.1:8090/wallet/getchainparameters \u8fd4\u56de\u503c\uff1a\u533a\u5757\u94fe\u59d4\u5458\u4f1a\u53ef\u4ee5\u8bbe\u7f6e\u7684\u6240\u6709\u53c2\u6570","title":"wallet/getchainparameters"},{"location":"api/http/#walletgetenergyprices","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u80fd\u91cf\u5355\u4ef7\u5386\u53f2 curl -X POST http://127.0.0.1:8090/wallet/getenergyprices \u8fd4\u56de\u503c\uff1a\u6240\u6709\u5386\u53f2\u80fd\u91cf\u5355\u4ef7\u4fe1\u606f\u3002\u6bcf\u6b21\u5355\u4ef7\u53d8\u52a8\u4ee5\u9017\u53f7\u5206\u9694\uff0c\u5192\u53f7\u524d\u4e3a\u6beb\u79d2\u65f6\u95f4\u6233\uff0c\u5192\u53f7\u540e\u4e3a\u4ee5sun\u4e3a\u5355\u4f4d\u7684\u80fd\u91cf\u5355\u4ef7\u3002","title":"wallet/getenergyprices"},{"location":"api/http/#walletgetbandwidthprices","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u5e26\u5bbd\u5355\u4ef7\u5386\u53f2 curl -X POST http://127.0.0.1:8090/wallet/getbandwidthprices \u8fd4\u56de\u503c\uff1a\u6240\u6709\u5386\u53f2\u5e26\u5bbd\u5355\u4ef7\u4fe1\u606f\u3002\u6bcf\u6b21\u5355\u4ef7\u53d8\u52a8\u4ee5\u9017\u53f7\u5206\u9694\uff0c\u5192\u53f7\u524d\u4e3a\u6beb\u79d2\u65f6\u95f4\u6233\uff0c\u5192\u53f7\u540e\u4e3a\u4ee5sun\u4e3a\u5355\u4f4d\u7684\u5e26\u5bbd\u5355\u4ef7\u3002","title":"wallet/getbandwidthprices"},{"location":"api/http/#walletgetburntrx","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u71c3\u70e7\u7684TRX\u6570\u91cf curl -X POST http://127.0.0.1:8090/wallet/getburntrx \u8fd4\u56de\u503c\uff1a\u71c3\u70e7\u7684TRX\u6570\u91cf\uff0c\u4ee5sun\u4e3a\u5355\u4f4d\u3002","title":"wallet/getburntrx"},{"location":"api/http/#_5","text":"\u4e0b\u9762\u662f\u667a\u80fd\u5408\u7ea6\u76f8\u5173API\uff1a wallet/getcontract wallet/getcontractinfo wallet/deploycontract wallet/triggersmartcontract wallet/triggerconstantcontract wallet/updatesetting wallet/updateenergylimit wallet/clearabi wallet/estimateenergy","title":"\u667a\u80fd\u5408\u7ea6"},{"location":"api/http/#walletgetcontract","text":"\u4f5c\u7528\uff1a\u83b7\u53d6\u5408\u7ea6 curl -X POST http://127.0.0.1:8090/wallet/getcontract -d '{\"value\":\"4189139CB1387AF85E3D24E212A008AC974967E561\"}' \u53c2\u6570\u8bf4\u660e\uff1avalue\uff1a\u5408\u7ea6\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1aSmartContract\uff0c\u667a\u80fd\u5408\u7ea6\u7684\u5185\u5bb9","title":"wallet/getcontract"},{"location":"api/http/#walletgetcontractinfo","text":"\u4f5c\u7528\uff1a\u83b7\u53d6\u5408\u7ea6 curl -X POST http://127.0.0.1:8090/wallet/getcontractinfo -d '{\"value\":\"4189139CB1387AF85E3D24E212A008AC974967E561\"}' \u53c2\u6570\u8bf4\u660e\uff1avalue\uff1a\u5408\u7ea6\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1a\u67e5\u8be2\u94fe\u4e0a\u7684\u5408\u7ea6\u4fe1\u606f\u3002\u4e0ewallet/getcontract\u63a5\u53e3\u4e0d\u540c\u7684\u662f\uff0c\u8be5\u63a5\u53e3\u4e0d\u4ec5\u8fd4\u56debytecode\u8fd8\u4f1a\u8fd4\u56de\u5408\u7ea6\u7684runtime bytecode\u3002runtime bytecode\u76f8\u6bd4bytecode\uff0c\u4e0d\u5305\u542b\u6784\u9020\u51fd\u6570\u4ee5\u53ca\u6784\u9020\u51fd\u6570\u7684\u53c2\u6570\u4fe1\u606f\u3002","title":"wallet/getcontractinfo"},{"location":"api/http/#walletdeploycontract","text":"\u4f5c\u7528\uff1a\u90e8\u7f72\u5408\u7ea6 curl -X POST http://127.0.0.1:8090/wallet/deploycontract -d '{\"abi\":\"[{\\\"constant\\\":false,\\\"inputs\\\":[{\\\"name\\\":\\\"key\\\",\\\"type\\\":\\\"uint256\\\"},{\\\"name\\\":\\\"value\\\",\\\"type\\\":\\\"uint256\\\"}],\\\"name\\\":\\\"set\\\",\\\"outputs\\\":[],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":true,\\\"inputs\\\":[{\\\"name\\\":\\\"key\\\",\\\"type\\\":\\\"uint256\\\"}],\\\"name\\\":\\\"get\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"value\\\",\\\"type\\\":\\\"uint256\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"}]\",\"bytecode\":\"608060405234801561001057600080fd5b5060de8061001f6000396000f30060806040526004361060485763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631ab06ee58114604d5780639507d39a146067575b600080fd5b348015605857600080fd5b506065600435602435608e565b005b348015607257600080fd5b50607c60043560a0565b60408051918252519081900360200190f35b60009182526020829052604090912055565b600090815260208190526040902054905600a165627a7a72305820fdfe832221d60dd582b4526afa20518b98c2e1cb0054653053a844cf265b25040029\",\"parameter\":\"\",\"call_value\":100,\"name\":\"SomeContract\",\"consume_user_resource_percent\":30,\"fee_limit\":10,\"origin_energy_limit\": 10,\"owner_address\":\"41D1E7A6BC354106CB410E65FF8B181C600FF14292\"}' \u53c2\u6570\u8bf4\u660e\uff1a abi \uff1aabi bytecode \uff1abytecode\uff0c\u9700\u8981\u662fhexString\u683c\u5f0f parameter \uff1a\u6784\u9020\u51fd\u6570\u7684\u53c2\u6570\u5217\u8868\uff0c\u9700\u8981\u6309\u7167ABI encoder\u7f16\u7801\u540e\u8f6c\u8bdd\u4e3ahexString\u683c\u5f0f\u3002\u5982\u679c\u6784\u9020\u51fd\u6570\u6ca1\u6709\u53c2\u6570\uff0c\u8be5\u53c2\u6570\u53ef\u4ee5\u4e0d\u7528\u8bbe\u7f6e\u3002 consume_user_resource_percent \uff1a\u6307\u5b9a\u7684\u4f7f\u7528\u8be5\u5408\u7ea6\u7528\u6237\u7684\u8d44\u6e90\u5360\u6bd4\uff0c\u662f[0, 100]\u4e4b\u95f4\u7684\u6574\u6570\u3002\u5982\u679c\u662f0\uff0c\u5219\u8868\u793a\u7528\u6237\u4e0d\u4f1a\u6d88\u8017\u8d44\u6e90\u3002\u5982\u679c\u5f00\u53d1\u8005\u8d44\u6e90\u6d88\u8017\u5b8c\u4e86\uff0c\u624d\u4f1a\u5b8c\u5168\u4f7f\u7528\u7528\u6237\u7684\u8d44\u6e90\u3002 fee_limit \uff1a\u6700\u5927\u6d88\u8017\u7684SUN\uff081TRX = 1,000,000SUN\uff09 call_value \uff1a\u672c\u6b21\u8c03\u7528\u5f80\u5408\u7ea6\u8f6c\u8d26\u7684SUN\uff081TRX = 1,000,000SUN\uff09 owner_address \uff1a\u53d1\u8d77deploycontract\u7684\u8d26\u6237\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f name \uff1a\u5408\u7ea6\u540d origin_energy_limit : \u521b\u5efa\u8005\u8bbe\u7f6e\u7684\uff0c\u5728\u4e00\u6b21\u5408\u7ea6\u6267\u884c\u6216\u521b\u5efa\u8fc7\u7a0b\u4e2d\u521b\u5efa\u8005\u81ea\u5df1\u6d88\u8017\u7684\u6700\u5927\u7684energy\uff0c\u662f\u5927\u4e8e0\u7684\u6574\u6570 call_token_value :\u672c\u6b21\u8c03\u7528\u5f80\u5408\u7ea6\u4e2d\u8f6c\u8d2610\u5e01\u7684\u6570\u91cf\uff0c\u5982\u679c\u4e0d\u8bbe\u7f6etoken_id\uff0c\u8fd9\u9879\u8bbe\u7f6e\u4e3a0\u6216\u8005\u4e0d\u8bbe\u7f6e token_id :\u672c\u6b21\u8c03\u7528\u5f80\u5408\u7ea6\u4e2d\u8f6c\u8d2610\u5e01\u7684id\uff0c\u5982\u679c\u6ca1\u6709\uff0c\u4e0d\u9700\u8981\u8bbe\u7f6e Permission_id \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1aTransactionExtention, TransactionExtention\u4e2d\u5305\u542b\u672a\u7b7e\u540d\u7684\u4ea4\u6613Transaction","title":"wallet/deploycontract"},{"location":"api/http/#wallettriggersmartcontract","text":"\u4f5c\u7528\uff1a\u8c03\u7528\u5408\u7ea6 curl -X POST http://127.0.0.1:8090/wallet/triggersmartcontract -d '{\"contract_address\":\"4189139CB1387AF85E3D24E212A008AC974967E561\",\"function_selector\":\"set(uint256,uint256)\",\"parameter\":\"00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002\",\"fee_limit\":10,\"call_value\":100,\"owner_address\":\"41D1E7A6BC354106CB410E65FF8B181C600FF14292\"}' \u53c2\u6570\u8bf4\u660e\uff1a contract_address \uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f function_selector \uff0c\u51fd\u6570\u7b7e\u540d\uff0c\u4e0d\u80fd\u6709\u7a7a\u683c parameter \uff1a\u8c03\u7528\u53c2\u6570[1,2]\u7684\u865a\u62df\u673a\u683c\u5f0f\uff0c\u4f7f\u7528remix\u63d0\u4f9b\u7684js\u5de5\u5177\uff0c\u5c06\u5408\u7ea6\u8c03\u7528\u8005\u8c03\u7528\u7684\u53c2\u6570\u6570\u7ec4[1,2]\u8f6c\u5316\u4e3a\u865a\u62df\u673a\u6240\u9700\u8981\u7684\u53c2\u6570\u683c\u5f0f data \uff1a\u4e0e\u667a\u80fd\u5408\u7ea6\u8fdb\u884c\u4ea4\u4e92\u7684\u6570\u636e\uff0c\u5305\u62ec\u6240\u8c03\u7528\u7684\u5408\u7ea6\u51fd\u6570\u548c\u53c2\u6570\u3002\u53ef\u4ee5\u9009\u62e9\u901a\u8fc7\u8be5\u5b57\u6bb5\uff0c\u4e5f\u53ef\u4ee5\u9009\u62e9\u901a\u8fc7function_selector\u548cparameter\u8fdb\u884c\u5408\u7ea6\u4ea4\u4e92\uff0c\u5f53data\u4e0efunction_selector\u540c\u65f6\u5b58\u5728\u65f6\uff0c\u4f7f\u7528function_selector\u8fdb\u884c\u5408\u7ea6\u4ea4\u4e92 fee_limit \uff1a\u6700\u5927\u6d88\u8017\u7684SUN\uff081TRX = 1,000,000SUN\uff09 call_value \uff1a\u672c\u6b21\u8c03\u7528\u5f80\u5408\u7ea6\u8f6c\u8d26\u7684SUN\uff081TRX = 1,000,000SUN\uff09 owner_address \uff1a\u53d1\u8d77triggercontract\u7684\u8d26\u6237\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f call_token_value :\u672c\u6b21\u8c03\u7528\u5f80\u5408\u7ea6\u4e2d\u8f6c\u8d2610\u5e01\u7684\u6570\u91cf\uff0c\u5982\u679c\u4e0d\u8bbe\u7f6etoken_id\uff0c\u8fd9\u9879\u8bbe\u7f6e\u4e3a0\u6216\u8005\u4e0d\u8bbe\u7f6e token_id :\u672c\u6b21\u8c03\u7528\u5f80\u5408\u7ea6\u4e2d\u8f6c\u8d2610\u5e01\u7684id\uff0c\u5982\u679c\u6ca1\u6709\uff0c\u4e0d\u9700\u8981\u8bbe\u7f6e Permission_id \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1aTransactionExtention, TransactionExtention\u4e2d\u5305\u542b\u672a\u7b7e\u540d\u7684\u4ea4\u6613Transaction","title":"wallet/triggersmartcontract"},{"location":"api/http/#wallettriggerconstantcontract","text":"\u4f5c\u7528\uff1a\u8c03\u7528\u5e38\u91cf\u5408\u7ea6\uff0c\u4ea7\u751f\u7684\u4ea4\u6613\u4e0d\u4e0a\u94fe curl -X POST http://127.0.0.1:8090/wallet/triggerconstantcontract -d '{\"contract_address\":\"4189139CB1387AF85E3D24E212A008AC974967E561\",\"function_selector\":\"set(uint256,uint256)\",\"parameter\":\"00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002\",\"call_value\":100,\"owner_address\":\"41D1E7A6BC354106CB410E65FF8B181C600FF14292\"}' \u53c2\u6570\u8bf4\u660e\uff1a contract_address \uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f function_selector \uff0c\u51fd\u6570\u7b7e\u540d\uff0c\u4e0d\u80fd\u6709\u7a7a\u683c parameter \uff1a\u8c03\u7528\u53c2\u6570[1,2]\u7684\u865a\u62df\u673a\u683c\u5f0f\uff0c\u4f7f\u7528remix\u63d0\u4f9b\u7684js\u5de5\u5177\uff0c\u5c06\u5408\u7ea6\u8c03\u7528\u8005\u8c03\u7528\u7684\u53c2\u6570\u6570\u7ec4[1,2]\u8f6c\u5316\u4e3a\u865a\u62df\u673a\u6240\u9700\u8981\u7684\u53c2\u6570\u683c\u5f0f data \uff1a\u5408\u7ea6\u5b57\u8282\u7801\u6216\u8005\u4e0e\u667a\u80fd\u5408\u7ea6\u8fdb\u884c\u4ea4\u4e92\u7684\u6570\u636e\uff0c\u5305\u62ec\u6240\u8c03\u7528\u7684\u5408\u7ea6\u51fd\u6570\u548c\u53c2\u6570\u3002\u53ef\u4ee5\u9009\u62e9\u901a\u8fc7\u8be5\u5b57\u6bb5\uff0c\u4e5f\u53ef\u4ee5\u9009\u62e9\u901a\u8fc7function_selector\u548cparameter\u8fdb\u884c\u5408\u7ea6\u4ea4\u4e92\uff0c\u5f53data\u4e0efunction_selector\u540c\u65f6\u5b58\u5728\u65f6\uff0c\u4f18\u5148\u4f7f\u7528function_selector owner_address \uff1a\u53d1\u8d77triggercontract\u7684\u8d26\u6237\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f call_value \uff1a\u672c\u6b21\u8c03\u7528\u5f80\u5408\u7ea6\u8f6c\u8d26\u7684SUN\uff081TRX = 1,000,000SUN\uff09 call_token_value :\u672c\u6b21\u8c03\u7528\u5f80\u5408\u7ea6\u4e2d\u8f6c\u8d2610\u5e01\u7684\u6570\u91cf\uff0c\u5982\u679c\u4e0d\u8bbe\u7f6etoken_id\uff0c\u8fd9\u9879\u8bbe\u7f6e\u4e3a0\u6216\u8005\u4e0d\u8bbe\u7f6e token_id :\u672c\u6b21\u8c03\u7528\u5f80\u5408\u7ea6\u4e2d\u8f6c\u8d2610\u5e01\u7684id\uff0c\u5982\u679c\u6ca1\u6709\uff0c\u4e0d\u9700\u8981\u8bbe\u7f6e \u8fd4\u56de\u503c\uff1aTransactionExtention, TransactionExtention\u4e2d\u5305\u542b\u672a\u7b7e\u540d\u7684\u4ea4\u6613Transaction","title":"wallet/triggerconstantcontract"},{"location":"api/http/#walletupdatesetting","text":"\u4f5c\u7528\uff1a\u66f4\u65b0\u5408\u7ea6\u7684consume_user_resource_percent curl -X POST http://127.0.0.1:8090/wallet/updatesetting -d '{\"owner_address\": \"419844f7600e018fd0d710e2145351d607b3316ce9\", \"contract_address\": \"41c6600433381c731f22fc2b9f864b14fe518b322f\", \"consume_user_resource_percent\": 7}' \u53c2\u6570\u8bf4\u660e\uff1a owner_address \uff1a\u662f\u4ea4\u6613\u5bf9\u521b\u5efa\u8005\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f contract_address \uff1a\u8981\u4fee\u6539\u7684\u5408\u7ea6\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f consume_user_resource_percent \uff1a\u6307\u5b9a\u7684\u4f7f\u7528\u8be5\u5408\u7ea6\u7528\u6237\u7684\u8d44\u6e90\u5360\u6bd4 Permission_id \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1aTransactionExtention, TransactionExtention\u4e2d\u5305\u542b\u672a\u7b7e\u540d\u7684\u4ea4\u6613Transaction","title":"wallet/updatesetting"},{"location":"api/http/#walletupdateenergylimit","text":"\u4f5c\u7528\uff1a\u66f4\u65b0\u5408\u7ea6\u7684origin_energy_limit curl -X POST http://127.0.0.1:8090/wallet/updateenergylimit -d '{\"owner_address\": \"419844f7600e018fd0d710e2145351d607b3316ce9\", \"contract_address\": \"41c6600433381c731f22fc2b9f864b14fe518b322f\", \"origin_energy_limit\": 7}' \u53c2\u6570\u8bf4\u660e\uff1a owner_address \uff1a\u662f\u4ea4\u6613\u5bf9\u521b\u5efa\u8005\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f contract_address \uff1a\u8981\u4fee\u6539\u7684\u5408\u7ea6\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f origin_energy_limit \uff1a\u521b\u5efa\u8005\u8bbe\u7f6e\u7684\uff0c\u5728\u4e00\u6b21\u5408\u7ea6\u6267\u884c\u6216\u521b\u5efa\u8fc7\u7a0b\u4e2d\u521b\u5efa\u8005\u81ea\u5df1\u6d88\u8017\u7684\u6700\u5927\u7684energy Permission_id \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1aTransactionExtention, TransactionExtention\u4e2d\u5305\u542b\u672a\u7b7e\u540d\u7684\u4ea4\u6613Transaction","title":"wallet/updateenergylimit"},{"location":"api/http/#walletclearabi","text":"\u4f5c\u7528\uff1a\u521b\u5efa\u6e05\u9664\u667a\u80fd\u5408\u7ea6ABI\u7684\u4ea4\u6613\u5bf9\u8c61 curl -X POST http://127.0.0.1:8090/wallet/clearabi -d '{ \"owner_address\":\"41a7d8a35b260395c14aa456297662092ba3b76fc0\", \"contract_address\":\"417bcb781f4743afaacf9f9528f3ea903b3782339f\"}' \u53c2\u6570\u8bf4\u660e\uff1a owner_address \uff1a\u521b\u5efa\u5408\u7ea6\u7684\u8d26\u6237\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f contract_address \uff1a\u5408\u7ea6\u5730\u5740,\u9ed8\u8ba4\u4e3ahexString \u8fd4\u56de\u503c:\u4ea4\u6613\u5bf9\u8c61","title":"wallet/clearabi"},{"location":"api/http/#walletestimateenergy","text":"\u4f5c\u7528\uff1a\u9884\u4f30\u667a\u80fd\u5408\u7ea6\u4ea4\u6613\u6267\u884c\u6210\u529f\u9700\u8981\u63d0\u4f9b\u7684\u80fd\u91cf curl -X POST http://127.0.0.1:8090/wallet/estimateenergy -d '{ \"owner_address\": \"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g\", \"contract_address\": \"TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs\", \"function_selector\": \"transfer(address,uint256)\", \"parameter\": \"00000000000000000000004115208EF33A926919ED270E2FA61367B2DA3753DA0000000000000000000000000000000000000000000000000000000000000032\", \"visible\": true }' \u53c2\u6570\u8bf4\u660e\uff1a contract_address \uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f function_selector \uff0c\u51fd\u6570\u7b7e\u540d\uff0c\u4e0d\u80fd\u6709\u7a7a\u683c parameter \uff1a\u8c03\u7528\u53c2\u6570[1,2]\u7684\u865a\u62df\u673a\u683c\u5f0f\uff0c\u4f7f\u7528remix\u63d0\u4f9b\u7684js\u5de5\u5177\uff0c\u5c06\u5408\u7ea6\u8c03\u7528\u8005\u8c03\u7528\u7684\u53c2\u6570\u6570\u7ec4[1,2]\u8f6c\u5316\u4e3a\u865a\u62df\u673a\u6240\u9700\u8981\u7684\u53c2\u6570\u683c\u5f0f data \uff1a\u5408\u7ea6\u5b57\u8282\u7801\u6216\u8005\u4e0e\u667a\u80fd\u5408\u7ea6\u8fdb\u884c\u4ea4\u4e92\u7684\u6570\u636e\uff0c\u5305\u62ec\u6240\u8c03\u7528\u7684\u5408\u7ea6\u51fd\u6570\u548c\u53c2\u6570\u3002\u53ef\u4ee5\u9009\u62e9\u901a\u8fc7\u8be5\u5b57\u6bb5\uff0c\u4e5f\u53ef\u4ee5\u9009\u62e9\u901a\u8fc7function_selector\u548cparameter\u8fdb\u884c\u5408\u7ea6\u4ea4\u4e92\uff0c\u5f53data\u4e0efunction_selector\u540c\u65f6\u5b58\u5728\u65f6\uff0c\u4f18\u5148\u4f7f\u7528function_selector fee_limit \uff1a\u6700\u5927\u6d88\u8017\u7684SUN\uff081TRX = 1,000,000SUN\uff09 owner_address \uff1a\u53d1\u8d77triggercontract\u7684\u8d26\u6237\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f call_value \uff1a\u672c\u6b21\u8c03\u7528\u5f80\u5408\u7ea6\u8f6c\u8d26\u7684SUN\uff081TRX = 1,000,000SUN\uff09 call_token_value :\u672c\u6b21\u8c03\u7528\u5f80\u5408\u7ea6\u4e2d\u8f6c\u8d2610\u5e01\u7684\u6570\u91cf\uff0c\u5982\u679c\u4e0d\u8bbe\u7f6etoken_id\uff0c\u8fd9\u9879\u8bbe\u7f6e\u4e3a0\u6216\u8005\u4e0d\u8bbe\u7f6e token_id :\u672c\u6b21\u8c03\u7528\u5f80\u5408\u7ea6\u4e2d\u8f6c\u8d2610\u5e01\u7684id\uff0c\u5982\u679c\u6ca1\u6709\uff0c\u4e0d\u9700\u8981\u8bbe\u7f6e \u8fd4\u56de\u503c\uff1a\u80fd\u91cf\u9884\u4f30\u503c","title":"wallet/estimateenergy"},{"location":"api/http/#trc10","text":"\u4e0b\u9762\u662fTRC10\u4ee3\u5e01\u76f8\u5173API\uff1a wallet/getassetissuebyaccount wallet/getassetissuebyname wallet/getassetissuelistbyname wallet/getassetissuebyid wallet/getassetissuelist wallet/getpaginatedassetissuelist wallet/transferasset wallet/participateassetissue wallet/createassetissue wallet/unfreezeasset wallet/updateasset","title":"TRC10\u901a\u8bc1"},{"location":"api/http/#walletgetassetissuebyaccount","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u8d26\u6237\u53d1\u884c\u7684token\u3002 curl -X POST http://127.0.0.1:8090/wallet/getassetissuebyaccount -d '{\"address\": \"41F9395ED64A6E1D4ED37CD17C75A1D247223CAF2D\"}' \u53c2\u6570\u8bf4\u660e\uff1a\u53d1\u884c\u8005\u8d26\u6237\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1a\u7528\u6237\u53d1\u884c\u7684token\uff08\u4e00\u4e2a\u7528\u6237\u53ea\u80fd\u53d1\u884c\u4e00\u4e2atoken\uff09\u3002","title":"wallet/getassetissuebyaccount"},{"location":"api/http/#walletgetassetissuebyname","text":"\u4f5c\u7528\uff1a\u6839\u636e\u540d\u79f0\u67e5\u8be2token\u3002 curl -X POST http://127.0.0.1:8090/wallet/getassetissuebyname -d '{\"value\": \"44756354616E\"}' \u53c2\u6570\u8bf4\u660e\uff1a\u901a\u8bc1\u540d\u79f0\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1atoken\u3002 \u6ce8\u610f\uff1aOdyssey-v3.2\u5f00\u59cb\uff0c\u63a8\u8350\u4f7f\u7528getassetissuebyid\u6216\u8005getassetissuelistbyname\u66ff\u6362\u6b64\u63a5\u53e3\uff0c\u56e0\u4e3a\u4ece3.2\u5f00\u59cb\u5c06\u5141\u8bb8\u901a\u8bc1\u540d\u79f0\u76f8\u540c\u3002\u5982\u679c\u5b58\u5728\u76f8\u540c\u7684\u901a\u8bc1\u540d\u79f0\uff0c\u6b64\u63a5\u53e3\u5c06\u4f1a\u62a5\u9519\u3002","title":"wallet/getassetissuebyname"},{"location":"api/http/#walletgetassetissuelistbyname","text":"\u4f5c\u7528\uff1a\u6839\u636e\u540d\u79f0\u67e5\u8be2token list\u3002 curl -X POST http://127.0.0.1:8090/wallet/getassetissuelistbyname -d '{\"value\": \"44756354616E\"}' \u53c2\u6570\u8bf4\u660e\uff1a\u901a\u8bc1\u540d\u79f0\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1atoken\u5217\u8868\u3002","title":"wallet/getassetissuelistbyname"},{"location":"api/http/#walletgetassetissuebyid","text":"\u4f5c\u7528\uff1a\u6839\u636eid\u67e5\u8be2token\u3002 curl -X POST http://127.0.0.1:8090/wallet/getassetissuebyid -d '{\"value\": \"1000001\"}' \u53c2\u6570\u8bf4\u660e\uff1a\u901a\u8bc1id \u8fd4\u56de\u503c\uff1atoken\u3002","title":"wallet/getassetissuebyid"},{"location":"api/http/#walletgetassetissuelist","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u6240\u6709token\u5217\u8868 curl -X POST http://127.0.0.1:8090/wallet/getassetissuelist \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c\uff1atoken\u5217\u8868\u3002","title":"wallet/getassetissuelist"},{"location":"api/http/#walletgetpaginatedassetissuelist","text":"\u4f5c\u7528\uff1a\u5206\u9875\u67e5\u8be2token\u5217\u8868 curl -X POST http://127.0.0.1:8090/wallet/getpaginatedassetissuelist -d '{\"offset\": 0, \"limit\": 10}' \u53c2\u6570\u8bf4\u660e\uff1aoffset\u662f\u8d77\u59cbToken\u7684index\uff0climit\u662f\u671f\u671b\u8fd4\u56de\u7684Token\u6570\u91cf \u8fd4\u56de\u503c\uff1atoken\u5217\u8868\u3002","title":"wallet/getpaginatedassetissuelist"},{"location":"api/http/#wallettransferasset","text":"\u4f5c\u7528\uff1a\u8f6c\u8d26Token curl -X POST http://127.0.0.1:8090/wallet/transferasset -d '{\"owner_address\":\"41d1e7a6bc354106cb410e65ff8b181c600ff14292\", \"to_address\": \"41e552f6487585c2b58bc2c9bb4492bc1f17132cd0\", \"asset_name\": \"0x6173736574497373756531353330383934333132313538\", \"amount\": 100}' \u53c2\u6570\u8bf4\u660e\uff1a owner_address \u662ftoken\u8f6c\u51fa\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f to_address \u662ftoken\u8f6c\u5165\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f asset_name \u662ftoken\u540d\u79f0\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f amount \u662ftoken\u8f6c\u8d26\u6570\u91cf Permission_id \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1atoken\u8f6c\u8d26\u7684Transaction \u3010\u6ce8\u610f\u3011 - \u5f53\u524d\u7684asset_name\u4e3atoken\u540d\u79f0\u3002\u5f53\u59d4\u5458\u4f1a\u901a\u8fc7AllowSameTokenName\u63d0\u8bae\u540easset_name\u6539\u4e3atoken ID\u7684String\u7c7b\u578b\u3002","title":"wallet/transferasset"},{"location":"api/http/#walletparticipateassetissue","text":"\u4f5c\u7528\uff1a\u53c2\u4e0etoken\u53d1\u884c curl -X POST http://127.0.0.1:8090/wallet/participateassetissue -d '{ \"to_address\": \"41e552f6487585c2b58bc2c9bb4492bc1f17132cd0\", \"owner_address\":\"41e472f387585c2b58bc2c9bb4492bc1f17342cd1\", \"amount\":100, \"asset_name\":\"3230313271756265696a696e67\" }' \u53c2\u6570\u8bf4\u660e\uff1a to_address \u662fToken\u53d1\u884c\u4eba\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f owner_address \u662f\u53c2\u4e0etoken\u4eba\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f amount \u662f\u53c2\u4e0etoken\u7684\u6570\u91cf asset_name \u662ftoken\u7684\u540d\u79f0\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f Permission_id \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u53c2\u4e0etoken\u53d1\u884c\u7684transaction \u3010\u6ce8\u610f\u3011 - \u5f53\u524d\u7684asset_name\u4e3atoken\u540d\u79f0\u3002\u5f53\u59d4\u5458\u4f1a\u901a\u8fc7AllowSameTokenName\u63d0\u8bae\u540easset_name\u6539\u4e3atoken ID\u7684String\u7c7b\u578b\u3002","title":"wallet/participateassetissue"},{"location":"api/http/#walletcreateassetissue","text":"\u4f5c\u7528\uff1a\u53d1\u884cToken curl -X POST http://127.0.0.1:8090/wallet/createassetissue -d '{ \"owner_address\":\"41e552f6487585c2b58bc2c9bb4492bc1f17132cd0\", \"name\":\"0x6173736574497373756531353330383934333132313538\", \"abbr\": \"0x6162627231353330383934333132313538\", \"total_supply\" :4321, \"trx_num\":1, \"num\":1, \"start_time\" : 1530894315158, \"end_time\":1533894312158, \"description\":\"007570646174654e616d6531353330363038383733343633\", \"url\":\"007570646174654e616d6531353330363038383733343633\", \"free_asset_net_limit\":10000, \"public_free_asset_net_limit\":10000, \"frozen_supply\":{\"frozen_amount\":1, \"frozen_days\":2} }' \u53c2\u6570\u8bf4\u660e\uff1a owner_address \u53d1\u884c\u4eba\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f name \u662ftoken\u540d\u79f0\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f abbr \u662ftoken\u7b80\u79f0\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f total_supply \u662f\u53d1\u884c\u603b\u91cf trx_num \u548c num \u662ftoken\u548ctrx\u7684\u6700\u5c0f\u5355\u4f4d\u5151\u6362\u6bd4 start_time \u548c end_time \u662ftoken\u53d1\u884c\u8d77\u6b62\u65f6\u95f4 description \u662ftoken\u8bf4\u660e\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f url \u662ftoken\u53d1\u884c\u65b9\u7684\u5b98\u7f51\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f free_asset_net_limit \u662fToken\u7684\u603b\u7684\u514d\u8d39\u5e26\u5bbd public_free_asset_net_limit \u662f\u6bcf\u4e2atoken\u62e5\u62a4\u8005\u80fd\u4f7f\u7528\u672ctoken\u7684\u514d\u8d39\u5e26\u5bbd frozen_supply \u662ftoken\u53d1\u884c\u8005\u53ef\u4ee5\u5728\u53d1\u884c\u7684\u65f6\u5019\u6307\u5b9a\u8d28\u62bc\u7684token Permission_id \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u53d1\u884cToken\u7684Transaction","title":"wallet/createassetissue"},{"location":"api/http/#walletunfreezeasset","text":"\u4f5c\u7528\uff1a\u89e3\u9501\u5df2\u7ecf\u7ed3\u675f\u8d28\u62bc\u671f\u7684Token curl -X POST http://127.0.0.1:8090/wallet/unfreezeasset -d '{ \"owner_address\":\"41e472f387585c2b58bc2c9bb4492bc1f17342cd1\", }' \u53c2\u6570\u8bf4\u660e\uff1a owner_address \u662f\u89e3\u9501token\u8d26\u53f7\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f Permission_id \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u89e3\u9501token\u7684transaction","title":"wallet/unfreezeasset"},{"location":"api/http/#walletupdateasset","text":"\u4f5c\u7528\uff1a\u4fee\u6539token\u4fe1\u606f curl -X POST http://127.0.0.1:8090/wallet/updateasset -d '{ \"owner_address\":\"41e472f387585c2b58bc2c9bb4492bc1f17342cd1\", \"description\": \"\"\uff0c \"url\": \"\", \"new_limit\" : 1000000, \"new_public_limit\" : 100 }' \u53c2\u6570\u8bf4\u660e\uff1a owner_address \u662ftoken\u53d1\u884c\u4eba\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f description \u662ftoken\u7684\u63cf\u8ff0\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f url \u662ftoken\u53d1\u884c\u4eba\u7684\u5b98\u7f51\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f new_limit \u662ftoken\u6bcf\u4e2a\u6301\u6709\u4eba\u80fd\u591f\u4f7f\u7528\u7684\u514d\u8d39\u5e26\u5bbd new_public_limit \u662f\u8be5token\u5168\u90e8\u7684\u514d\u8d39\u5e26\u5bbd Permission_id \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u4fee\u6539Token\u4fe1\u606f\u7684transaction","title":"wallet/updateasset"},{"location":"api/http/#sr","text":"\u4e0b\u9762\u662f\u6295\u7968\u548cSR\u76f8\u5173API\uff1a wallet/createwitness wallet/updatewitness wallet/listwitnesses wallet/withdrawbalance wallet/votewitnessaccount wallet/getBrokerage wallet/updateBrokerage wallet/getReward wallet/getnextmaintenancetime","title":"\u6295\u7968\u548cSR"},{"location":"api/http/#walletcreatewitness","text":"\u4f5c\u7528\uff1a\u7533\u8bf7\u6210\u4e3a\u8d85\u7ea7\u4ee3\u8868 curl -X POST http://127.0.0.1:8090/wallet/createwitness -d '{\"owner_address\":\"41d1e7a6bc354106cb410e65ff8b181c600ff14292\", \"url\": \"007570646174654e616d6531353330363038383733343633\"}' \u53c2\u6570\u8bf4\u660e\uff1a owner_address \u662f\u7533\u8bf7\u6210\u4e3a\u8d85\u7ea7\u4ee3\u8868\u7684\u8d26\u53f7\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f url \u662f\u5b98\u7f51\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u53ef\u9009\u53c2\u6570 Permission_id \uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u7533\u8bf7\u8d85\u7ea7\u4ee3\u8868\u7684Transaction","title":"wallet/createwitness"},{"location":"api/http/#walletupdatewitness","text":"\u4f5c\u7528\uff1a\u4fee\u6539witness\u7684url curl -X POST http://127.0.0.1:8090/wallet/updatewitness -d '{ \"owner_address\":\"41d1e7a6bc354106cb410e65ff8b181c600ff14292\", \"update_url\": \"007570646174654e616d6531353330363038383733343633\" }' \u53c2\u6570\u8bf4\u660e\uff1a owner_address \u662f\u521b\u5efa\u4eba\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f update_url \u662f\u66f4\u65b0\u7684\u5b98\u7f51\u7684url\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u53ef\u9009\u53c2\u6570 Permission_id \uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u66f4\u65b0witness\u7684Transaction","title":"wallet/updatewitness"},{"location":"api/http/#walletlistwitnesses","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u6240\u6709witness\u5217\u8868 curl -X POST http://127.0.0.1:8090/wallet/listwitnesses \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c\uff1awitness\u5217\u8868\u3002","title":"wallet/listwitnesses"},{"location":"api/http/#walletwithdrawbalance","text":"\u4f5c\u7528\uff1a\u8d85\u7ea7\u4ee3\u8868\u63d0\u73b0\u5956\u52b1\u5230balance\uff0c\u6bcf24\u4e2a\u5c0f\u65f6\u53ef\u4ee5\u63d0\u73b0\u4e00\u6b21 curl -X POST http://127.0.0.1:8090/wallet/withdrawbalance -d '{ \"owner_address\":\"41e472f387585c2b58bc2c9bb4492bc1f17342cd1\", }' \u53c2\u6570\u8bf4\u660e\uff1a owner_address \u662f\u63d0\u73b0\u8d26\u53f7\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f Permission_id \u53ef\u9009\u53c2\u6570\uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u63d0\u73b0Trx\u7684transaction","title":"wallet/withdrawbalance"},{"location":"api/http/#walletvotewitnessaccount","text":"\u4f5c\u7528\uff1a\u5bf9\u8d85\u7ea7\u4ee3\u8868\u8fdb\u884c\u6295\u7968 curl -X POST http://127.0.0.1:8090/wallet/votewitnessaccount -d '{ \"owner_address\":\"41d1e7a6bc354106cb410e65ff8b181c600ff14292\", \"votes\": [{\"vote_address\": \"41e552f6487585c2b58bc2c9bb4492bc1f17132cd0\", \"vote_count\": 5}] }' \u53c2\u6570\u8bf4\u660e\uff1a owner_address \u662f\u6295\u7968\u4eba\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f votes.vote_address \u662f\u88ab\u6295\u7968\u7684\u8d85\u7ea7\u4ee3\u8868\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f vote_count \u662f\u6295\u7968\u6570\u91cf \u53ef\u9009\u53c2\u6570 Permission_id \uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u6295\u7968\u7684Transaction","title":"wallet/votewitnessaccount"},{"location":"api/http/#walletgetbrokerage","text":"\u4f5c\u7528\uff1a\u67e5\u8be2witness\u5f53\u524dBrokerage\u6bd4\u4f8b curl -X GET http://127.0.0.1:8090/wallet/getBrokerage -d '{ \"address\":\"41E552F6487585C2B58BC2C9BB4492BC1F17132CD0\"}' \u53c2\u6570\u8bf4\u660e\uff1a address \u662f\u88ab\u6295\u7968\u7684\u8d85\u7ea7\u4ee3\u8868\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1awitness\u5f53\u524dBrokerage\u6bd4\u4f8b","title":"wallet/getBrokerage"},{"location":"api/http/#walletupdatebrokerage","text":"\u4f5c\u7528\uff1a\u66f4\u65b0witness\u5f53\u524dBrokerage\u6bd4\u4f8b curl -X POST http://47.252.81.126:8090/wallet/updateBrokerage -d '{ \"owner_address\":\"41E552F6487585C2B58BC2C9BB4492BC1F17132CD0\", \"brokerage\":30}' \u53c2\u6570\u8bf4\u660e\uff1a owner_address \u662f\u88ab\u6295\u7968\u7684\u8d85\u7ea7\u4ee3\u8868\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f brokerage \u662fwitness\u60f3\u8981\u66f4\u65b0\u4e3a\u7684Brokerage\u6bd4\u4f8b \u8fd4\u56de\u503c\uff1a\u66f4\u65b0Brokerage\u7684Transaction","title":"wallet/updateBrokerage"},{"location":"api/http/#walletgetreward","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u6295\u7968\u4eba\u672a\u9886\u53d6\u7684\u5956\u52b1 curl -X GET http://127.0.0.1:8090/wallet/getReward -d '{ \"address\":\"41E552F6487585C2B58BC2C9BB4492BC1F17132CD0\"}' \u53c2\u6570\u8bf4\u660e\uff1aaddress\u662f\u6295\u7968\u4eba\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1a\u6295\u7968\u4eba\u672a\u9886\u53d6\u7684\u5956\u52b1","title":"wallet/getReward"},{"location":"api/http/#walletgetnextmaintenancetime","text":"\u4f5c\u7528\uff1a\u83b7\u53d6\u4e0b\u6b21\u7edf\u8ba1\u6295\u7968\u7684\u65f6\u95f4 curl -X POST http://127.0.0.1:8090/wallet/getnextmaintenancetime \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c\uff1a\u4e0b\u6b21\u7edf\u8ba1\u6295\u7968\u65f6\u95f4\u7684\u6beb\u79d2\u6570\u3002","title":"wallet/getnextmaintenancetime"},{"location":"api/http/#_6","text":"\u4e0b\u9762\u662f\u63d0\u6848\u76f8\u5173API\uff1a wallet/proposalcreate wallet/getproposalbyid wallet/listproposals wallet/proposalapprove wallet/proposaldelete wallet/getpaginatedproposallist","title":"\u63d0\u6848"},{"location":"api/http/#walletproposalcreate","text":"\u4f5c\u7528\uff1a\u521b\u5efa\u63d0\u6848 curl -X POST http://127.0.0.1:8090/wallet/proposalcreate -d {\"owner_address\" : \"419844F7600E018FD0D710E2145351D607B3316CE9\",\"parameters\":[{\"key\": 0,\"value\": 100000},{\"key\": 1,\"value\": 2}] } \u53c2\u6570\u8bf4\u660e\uff1a owner_address \uff1a\u521b\u5efa\u4eba\u5730\u5740 parameters \uff1a\u63d0\u6848\u53c2\u6570 \u53ef\u9009\u53c2\u6570 Permission_id \uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u521b\u5efa\u63d0\u6848\u7684\u4ea4\u6613","title":"wallet/proposalcreate"},{"location":"api/http/#walletgetproposalbyid","text":"\u4f5c\u7528\uff1a\u6839\u636eid\u67e5\u8be2\u63d0\u6848 curl -X POST http://127.0.0.1:8090/wallet/getproposalbyid -d {\"id\":1} \u53c2\u6570\u8bf4\u660e\uff1aid\uff1a\u63d0\u6848id \u8fd4\u56de\u503c\uff1a\u63d0\u6848\u8be6\u7ec6\u4fe1\u606f","title":"wallet/getproposalbyid"},{"location":"api/http/#walletlistproposals","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u6240\u6709\u63d0\u6848 curl -X POST http://127.0.0.1:8090/wallet/listproposals \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c\uff1a\u63d0\u6848\u5217\u8868\u4fe1\u606f","title":"wallet/listproposals"},{"location":"api/http/#walletproposalapprove","text":"\u4f5c\u7528\uff1a\u63d0\u6848\u6279\u51c6 curl -X POST http://127.0.0.1:8090/wallet/proposalapprove -d {\"owner_address\" : \"419844F7600E018FD0D710E2145351D607B3316CE9\", \"proposal_id\":1, \"is_add_approval\":true} \u53c2\u6570\u8bf4\u660e\uff1a owner_address \uff1a\u6279\u51c6\u4eba\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f proposal_id \uff1a\u63d0\u6848id is_add_approval \uff1a\u662f\u5426\u6279\u51c6 \u53ef\u9009\u53c2\u6570 Permission_id \uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u6279\u51c6\u63d0\u6848\u7684\u4ea4\u6613","title":"wallet/proposalapprove"},{"location":"api/http/#walletproposaldelete","text":"\u4f5c\u7528\uff1a\u5220\u9664\u63d0\u6848 curl -X POST http://127.0.0.1:8090/wallet/proposaldelete -d {\"owner_address\" : \"419844F7600E018FD0D710E2145351D607B3316CE9\", \"proposal_id\":1} \u53c2\u6570\u8bf4\u660e\uff1a owner_address \uff1a\u5220\u9664\u4eba\u7684\u5730\u5740\uff0c\u53ea\u6709\u63d0\u6848\u6240\u6709\u4eba\u5141\u8bb8\u5220\u9664\u63d0\u6848\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f proposal_id \uff1a\u63d0\u6848id \u53ef\u9009\u53c2\u6570 Permission_id \uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u5220\u9664\u63d0\u6848\u7684\u4ea4\u6613","title":"wallet/proposaldelete"},{"location":"api/http/#walletgetpaginatedproposallist","text":"\u4f5c\u7528\uff1a\u5206\u9875\u67e5\u8be2proposal\u5217\u8868 curl -X POST http://127.0.0.1:8090/wallet/getpaginatedproposallist -d '{\"offset\": 0, \"limit\": 10}' \u53c2\u6570\u8bf4\u660e\uff1aoffset\u662f\u8d77\u59cbToken\u7684index\uff0climit\u662f\u671f\u671b\u8fd4\u56de\u7684Token\u6570\u91cf \u8fd4\u56de\u503c\uff1atoken\u5217\u8868\u3002","title":"wallet/getpaginatedproposallist"},{"location":"api/http/#_7","text":"\u4e0b\u9762\u662f\u53bb\u4e2d\u5fc3\u5316\u4ea4\u6613\u6240\u76f8\u5173API\uff1a wallet/exchangecreate wallet/exchangeinject wallet/exchangewithdraw wallet/exchangetransaction wallet/getexchangebyid wallet/listexchanges wallet/getpaginatedexchangelist wallet/marketsellasset wallet/marketcancelorder wallet/getmarketorderbyaccount wallet/getmarketpairlist wallet/getmarketorderlistbypair wallet/getmarketpricebypair wallet/getmarketorderbyid","title":"\u53bb\u4e2d\u5fc3\u5316\u4ea4\u6613\u6240"},{"location":"api/http/#walletexchangecreate","text":"\u4f5c\u7528\uff1a\u521b\u5efa\u4ea4\u6613\u5bf9 curl -X POST http://127.0.0.1:8090/wallet/exchangecreate -d {\"owner_address\":\"419844f7600e018fd0d710e2145351d607b3316ce9\", \u3001 \"first_token_id\":token_a, \"first_token_balance\":100, \"second_token_id\":token_b,\"second_token_balance\":200} \u53c2\u6570\u8bf4\u660e\uff1a first_token_id \uff1a\u7b2c1\u79cdtoken\u7684id\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f first_token_balance \uff1a\u7b2c1\u79cdtoken\u7684balance second_token_id \uff1a \u7b2c2\u79cdtoken\u7684id\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f second_token_balance \uff1a\u7b2c2\u79cdtoken\u7684balance \u53ef\u9009\u53c2\u6570 Permission_id \uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u521b\u5efa\u4ea4\u6613\u5bf9\u7684transaction\u3002","title":"wallet/exchangecreate"},{"location":"api/http/#walletexchangeinject","text":"\u4f5c\u7528\uff1a\u7ed9\u4ea4\u6613\u5bf9\u6ce8\u8d44\uff0c\u6ce8\u8d44\u540e\u53ef\u4ee5\u9632\u6b62\u4ea4\u6613\u5bf9\u4ef7\u683c\u6ce2\u52a8\u592a\u5927 curl -X POST http://127.0.0.1:8090/wallet/exchangeinject -d {\"owner_address\":\"419844f7600e018fd0d710e2145351d607b3316ce9\", \"exchange_id\":1, \"token_id\":\"74726f6e6e616d65\", \"quant\":100} \u53c2\u6570\u8bf4\u660e\uff1a owner_address \uff1a\u4ea4\u6613\u5bf9\u521b\u5efa\u8005\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f exchange_id \uff1a\u4ea4\u6613\u5bf9id token_id \uff1a token\u7684id\uff0c\u4e00\u822c\u60c5\u51b5\u662ftoken\u7684name\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f quant \uff1a\u6ce8\u8d44token\u7684\u6570\u91cf \u53ef\u9009\u53c2\u6570 Permission_id \uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u6ce8\u8d44\u7684transaction\u3002","title":"wallet/exchangeinject"},{"location":"api/http/#walletexchangewithdraw","text":"\u4f5c\u7528\uff1a\u5bf9\u4ea4\u6613\u5bf9\u64a4\u8d44\uff0c\u64a4\u8d44\u540e\u5bb9\u6613\u5f15\u8d77\u4ea4\u6613\u5bf9\u4ef7\u683c\u6ce2\u52a8\u592a\u5927\u3002 curl -X POST http://127.0.0.1:8090/wallet/exchangewithdraw -d {\"owner_address\":\"419844f7600e018fd0d710e2145351d607b3316ce9\", \"exchange_id\":1, \"token_id\":\"74726f6e6e616d65\", \"quant\":100} \u53c2\u6570\u8bf4\u660e\uff1a owner_address \uff1a\u662f\u4ea4\u6613\u5bf9\u521b\u5efa\u8005\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f exchange_id \uff1a\u4ea4\u6613\u5bf9id token_id \uff1a token\u7684id\uff0c\u4e00\u822c\u60c5\u51b5\u662ftoken\u7684name\uff0c\u9700\u8981\u662fhexString\u683c\u5f0f quant \uff1a\u64a4\u8d44token\u7684\u6570\u91cf \u53ef\u9009\u53c2\u6570 Permission_id \uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1a\u64a4\u8d44\u7684transaction","title":"wallet/exchangewithdraw"},{"location":"api/http/#walletexchangetransaction","text":"\u4f5c\u7528\uff1a\u53c2\u4e0e\u4ea4\u6613\u5bf9\u4ea4\u6613\u3002 curl -X POST http://127.0.0.1:8090/wallet/exchangetransaction -d {\"owner_address\":\"419844f7600e018fd0d710e2145351d607b3316ce9\", \"exchange_id\":1, \"token_id\":\"74726f6e6e616d65\", \"quant\":100,\"expected\":10} \u53c2\u6570\u8bf4\u660e\uff1a owner_address \uff1a\u662f\u4ea4\u6613\u5bf9\u521b\u5efa\u8005\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f exchange_id \uff1a\u4ea4\u6613\u5bf9id token_id \uff1a \u5356\u51fa\u7684token\u7684id\uff0c\u4e00\u822c\u60c5\u51b5\u662ftoken\u7684name\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f quant \uff1a\u5356\u51fatoken\u7684\u6570\u91cf expected \uff1a\u671f\u671b\u4e70\u5165token\u7684\u6570\u91cf \u53ef\u9009\u53c2\u6570 Permission_id \uff0c\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\uff0c\u8bbe\u7f6e\u4ea4\u6613\u591a\u91cd\u7b7e\u540d\u65f6\u4f7f\u7528\u7684permissionId \u8fd4\u56de\u503c\uff1atoken\u4ea4\u6613\u7684transaction","title":"wallet/exchangetransaction"},{"location":"api/http/#walletgetexchangebyid","text":"\u4f5c\u7528\uff1a\u6839\u636eid\u67e5\u8be2\u4ea4\u6613\u5bf9 curl -X POST http://127.0.0.1:8090/wallet/getexchangebyid -d {\"id\":1} \u53c2\u6570\u8bf4\u660e\uff1aid\uff1a\u4ea4\u6613\u5bf9id \u8fd4\u56de\u503c\uff1a\u4ea4\u6613\u5bf9","title":"wallet/getexchangebyid"},{"location":"api/http/#walletlistexchanges","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u6240\u6709\u4ea4\u6613\u5bf9 curl -X POST http://127.0.0.1:8090/wallet/listexchanges \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c\uff1a\u6240\u6709\u4ea4\u6613\u5bf9","title":"wallet/listexchanges"},{"location":"api/http/#walletgetpaginatedexchangelist","text":"\u4f5c\u7528\uff1a\u5206\u9875\u67e5\u8be2\u4ea4\u6613\u5bf9\u5217\u8868 curl -X POST http://127.0.0.1:8090/wallet/getpaginatedexchangelist -d '{\"offset\": 0, \"limit\":10}' \u53c2\u6570\u8bf4\u660e\uff1aoffset\u662f\u8d77\u59cb\u4ea4\u6613\u5bf9\u7684index\uff0climit\u662f\u671f\u671b\u8fd4\u56de\u7684\u4ea4\u6613\u5bf9\u6570\u91cf \u8fd4\u56de\u503c\uff1aexchange\u5217\u8868","title":"wallet/getpaginatedexchangelist"},{"location":"api/http/#walletmarketsellasset","text":"\u4f5c\u7528\uff1a\u521b\u5efa\u8ba2\u5355 curl -X POST http://127.0.0.1:8090/wallet/marketsellasset -d '{ \"owner_address\": \"4184894b42f66dce8cb84aec2ed11604c991351ac8\", \"sell_token_id\": \"5f\", \"sell_token_quantity\": 100, \"buy_token_id\": \"31303030303031\", \"buy_token_quantity\": 200 }' \u53c2\u6570\u8bf4\u660e\uff1a owner_address \uff1a\u8ba2\u5355\u53d1\u8d77\u8005\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f sell_token_id \uff1a\u5356\u51faasset\u7684id\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f sell_token_quantity \uff1a\u5356\u51faasset\u7684\u6570\u91cf buy_token_id \uff1a\u4e70\u5165asset\u7684id\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f buy_token_quantity \uff1a\u6700\u5c11\u4e70\u5165\u7684asset\u7684\u6570\u91cf \u8fd4\u56de\u503c\uff1a\u4ea4\u6613\u5bf9\u8c61","title":"wallet/marketsellasset"},{"location":"api/http/#walletmarketcancelorder","text":"\u4f5c\u7528\uff1a\u53d6\u6d88\u8ba2\u5355 curl -X POST http://127.0.0.1:8090/wallet/marketcancelorder -d '{ \"owner_address\": \"4184894b42f66dce8cb84aec2ed11604c991351ac8\", \"order_id\": \"0a7af584a53b612bcff1d0fc86feab05f69bc4528f26a4433bb344d453bd6eeb\" }' \u53c2\u6570\u8bf4\u660e\uff1a owner_address \uff1a\u8ba2\u5355\u53d1\u8d77\u8005\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f order_id \uff1a\u53d6\u6d88\u8ba2\u5355\u7684id \u8fd4\u56de\u503c\uff1a\u4ea4\u6613\u5bf9\u8c61","title":"wallet/marketcancelorder"},{"location":"api/http/#walletgetmarketorderbyaccount","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u8d26\u6237\u62e5\u6709\u7684\u8ba2\u5355 curl -X POST http://127.0.0.1:8090/wallet/getmarketorderbyaccount -d '{ \"value\": \"4184894b42f66dce8cb84aec2ed11604c991351ac8\" }' \u53c2\u6570\u8bf4\u660e\uff1a value \uff1a\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1a\u8ba2\u5355\u5217\u8868","title":"wallet/getmarketorderbyaccount"},{"location":"api/http/#walletgetmarketpairlist","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u5b58\u5728\u7684\u6240\u6709\u4ea4\u6613\u5bf9 curl -X get http://127.0.0.1:8090/wallet/getmarketpairlist \u53c2\u6570\u8bf4\u660e\uff1a \u65e0 \u8fd4\u56de\u503c\uff1a\u4ea4\u6613\u5bf9\u5217\u8868","title":"wallet/getmarketpairlist"},{"location":"api/http/#walletgetmarketorderlistbypair","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u67d0\u4ea4\u6613\u5bf9\u7684\u6240\u6709\u8ba2\u5355 curl -X POST http://127.0.0.1:8090/wallet/getmarketorderlistbypair -d '{ \"sell_token_id\": \"5f\" , \"buy_token_id\": \"31303030303031\" }' \u53c2\u6570\u8bf4\u660e\uff1a sell_token_id \uff1a\u5356\u51faasset\u7684id\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f buy_token_id \uff1a\u4e70\u5165asset\u7684id\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1a\u8ba2\u5355\u5217\u8868","title":"wallet/getmarketorderlistbypair"},{"location":"api/http/#walletgetmarketpricebypair","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u67d0\u4ea4\u6613\u5bf9\u7684\u6240\u6709\u4ef7\u683c curl -X POST http://127.0.0.1:8090/wallet/getmarketpricebypair -d '{ \"sell_token_id\": \"5f\" \"buy_token_id\": \"31303030303031\" }' \u53c2\u6570\u8bf4\u660e\uff1a sell_token_id \uff1a\u5356\u51faasset\u7684id\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f buy_token_id \uff1a\u4e70\u5165asset\u7684id\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1a\u4ef7\u683c\u5217\u8868","title":"wallet/getmarketpricebypair"},{"location":"api/http/#walletgetmarketorderbyid","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u8ba2\u5355 curl -X POST http://127.0.0.1:8090/wallet/getmarketorderbyid -d '{ \"value\": \"orderid\" }' \u53c2\u6570\u8bf4\u660e\uff1a - value \uff1aorder id\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1a\u8ba2\u5355","title":"wallet/getmarketorderbyid"},{"location":"api/http/#tronz","text":"\u4e0b\u9762\u662f TRONZ \u533f\u540d\u667a\u80fd\u5408\u7ea6\u76f8\u5173API\uff1a wallet/getexpandedspendingkey wallet/getakfromask wallet/getnkfromnsk wallet/getspendingkey wallet/getdiversifier wallet/getincomingviewingkey wallet/getzenpaymentaddress wallet/createshieldedtransactionwithoutspendauthsig wallet/scannotebyivk wallet/scanandmarknotebyivk wallet/scannotebyovk wallet/createshieldnullifier wallet/getshieldtransactionhash wallet/createshieldedtransaction wallet/getnewshieldedaddress wallet/createshieldedcontractparameters wallet/createshieldedcontractparameterswithoutask wallet/scanshieldedtrc20notesbyivk wallet/scanshieldedtrc20notesbyovk wallet/isshieldedtrc20contractnotespent wallet/gettriggerinputforshieldedtrc20contract wallet/getrcm wallet/getmerkletreevoucherinfo wallet/isspend wallet/createspendauthsig","title":"TRONZ \u533f\u540d\u667a\u80fd\u5408\u7ea6"},{"location":"api/http/#walletgetexpandedspendingkey","text":"\u4f5c\u7528\uff1a\u83b7\u53d6expanded spending keys curl -X POST http://127.0.0.1:8090/wallet/getexpandedspendingkey -d '{ \"value\": \"06b02aaa00f230b0887ff57a6609d76691369972ac3ba568fe7a8a0897fce7c4\" }' \u53c2\u6570\u8bf4\u660e\uff1avalue\uff1aSpending key \u8fd4\u56de\u503c\uff1a Expanded spending keys. \u7531\u4e09\u4e2akey\u7ec4\u6210\uff0c\u5206\u522b\u662f ask\u3001 nsk\u548covk.","title":"wallet/getexpandedspendingkey"},{"location":"api/http/#walletgetakfromask","text":"\u4f5c\u7528\uff1a\u4eceask\u83b7\u5f97ak curl -X POST http://127.0.0.1:8090/wallet/getakfromask -d '{ \"value\": \"653b3a3fdd40b60d2f53ba121df8840f6590384993f8fa9a0ecb0dfb23496604\" }' \u53c2\u6570\u8bf4\u660e\uff1avalue\uff1aAsk \u8fd4\u56de\u503c\uff1aAk","title":"wallet/getakfromask"},{"location":"api/http/#walletgetnkfromnsk","text":"\u4f5c\u7528\uff1a\u4ecensk\u83b7\u5f97nk curl -X POST http://127.0.0.1:8090/wallet/getnkfromnsk -d '{ \"value\": \"428ff3c9e101dc1fca08f7b0e3387b23b68016746ae565aefc19d112b696db01\" }' \u53c2\u6570\u8bf4\u660e\uff1avalue\uff1aNsk \u8fd4\u56de\u503c\uff1aNk","title":"wallet/getnkfromnsk"},{"location":"api/http/#walletgetspendingkey","text":"\u4f5c\u7528\uff1a\u83b7\u5f97spending key curl -X GET http://127.0.0.1:8090/wallet/getspendingkey \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c\uff1aSpending key","title":"wallet/getspendingkey"},{"location":"api/http/#walletgetdiversifier","text":"\u4f5c\u7528\uff1aTo get diversifier curl -X GET http://127.0.0.1:8090/wallet/getdiversifier \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c: Diversifier","title":"wallet/getdiversifier"},{"location":"api/http/#walletgetincomingviewingkey","text":"\u4f5c\u7528\uff1a\u83b7\u5f97incoming viewing key curl -X POST http://127.0.0.1:8090/wallet/getincomingviewingkey -d '{ \"ak\":\"b443f1a303ef5837ba95750b48b6fef15f9c77f63a8c28c161bcd6613f423b5c\", \"nk\":\"632137e69179df3d10e252fcce85d13464c3163fe7a619edf8d43ebefa8162d9\" }' \u53c2\u6570\u8bf4\u660e\uff1a ak\uff1aAk nk\uff1aNk \u8fd4\u56de\u503c\uff1aIncoming viewing key","title":"wallet/getincomingviewingkey"},{"location":"api/http/#walletgetzenpaymentaddress","text":"\u4f5c\u7528\uff1a\u83b7\u5f97\u652f\u4ed8\u5730\u5740 curl -X POST http://127.0.0.1:8090/wallet/getzenpaymentaddress -d '{ \"ivk\":\"8c7852e10862d8eec058635974f70f24c1f8d73819131bb5b54028d0a9408a03\", \"d\":\"736ba8692ed88a5473e009\" }' \u53c2\u6570\u8bf4\u660e\uff1a ivk \uff1aIvk d \uff1aD \u8fd4\u56de\u503c\uff1a\u652f\u4ed8\u5730\u5740","title":"wallet/getzenpaymentaddress"},{"location":"api/http/#walletcreateshieldedtransactionwithoutspendauthsig","text":"\u4f5c\u7528\uff1aTo create shielded transaction without using ask curl -X POST http://127.0.0.1:8090/wallet/createshieldedtransactionwithoutspendauthsig -d '{ \"ivk\":\"8c7852e10862d8eec058635974f70f24c1f8d73819131bb5b54028d0a9408a03\", \"d\":\"736ba8692ed88a5473e009\" }' \u53c2\u6570\u8bf4\u660e\uff1a transparent_from_address \uff1a\u900f\u660e\u53d1\u9001\u8005\u7684\u5730\u5740 from_amount \uff1a\u4ece\u900f\u660e\u5730\u5740\u8f6c\u51fa\u7684\u6570\u989d ask \uff1aAsk nsk \uff1aNsk ovk \uff1aOvk shielded_receives \uff1a\u533f\u540d\u63a5\u6536\u8005\u4fe1\u606f shieldedSpends \uff1a\u533f\u540d\u53d1\u9001\u8005\u4fe1\u606f transparent_to_address \uff1a\u900f\u660e\u63a5\u6536\u8005\u5730\u5740 to_amount \uff1a\u8f6c\u5165\u900f\u660e\u5730\u5740\u7684\u6570\u989d \u8fd4\u56de\u503c\uff1a\u4ea4\u6613\u5bf9\u8c61","title":"wallet/createshieldedtransactionwithoutspendauthsig"},{"location":"api/http/#walletcreateshieldedtransactionwithoutspendauthsig_1","text":"\u4f5c\u7528\uff1a\u521b\u5efa\u533f\u540d\u4ea4\u6613\uff08\u4e0d\u9700\u8981\u63d0\u4f9bask\uff09 curl -X POST http://127.0.0.1:8090/wallet/createshieldedtransactionwithoutspendauthsig -d '{ \"ak\": \"bf051629fd8122cd9dd8591d72947b026c214cf7cdac1f68eff97179727d38e9\", \"nsk\": \"42963d26af8122204273fa3489d9efd6babf1f7179ff193c955a1f3d9c2df10c\", \"ovk\": \"bc9848a83966709655b12efadc9e978785858316045e0115a0e72567a9a2a823\", \"shielded_spends\": [ { \"note\": { \"value\": 500000000, \"payment_address\": \"ztron1jld8fmvujrz2vgkc867zuwklmewy4ypw0wtwgweqs2paee0uhc8f3azy90el770arksa2kunl02\", \"rcm\": \"723053bcbfecdf5da66c18ab0376476ef308c61b7abe891b2c01e903bcb87c0e\" }, \"alpha\": \"2608999c3a97d005a879ecdaa16fd29ae434fb67b177c5e875b0c829e6a1db04\", \"voucher\": { \"tree\": { \"left\": { \"content\": \"a3d5c9b2db9699f32afec5febbd5586ce9ff33a0bef6fee5691028313b8e1f6a\" }, \"parents\": [ { \"content\": \"d9c38484296b3aa8f5e8b59d418a3775e2bb414e75498ad352e4614f05aae548\" }, { \"content\": \"d0420777afdc4151c3f14fbe4c714d82dc15873edb1ca65ebb3887334a4bae15\" } ] }, \"rt\": \"fb1115d5ddd16c5427c3a608d6b5add5967e70f51c890307c6142083a2c28565\" }, \"path\": \"2020b2eed031d4d6a4f02a097f80b54cc1541d4163c6b6f5971f88b6e41d35c538142012935f14b676509b81eb49ef25f39269ed72309238b4c145803544b646dca62d20e1f34b034d4a3cd28557e2907ebf990c918f64ecb50a94f01d6fda5ca5c7ef722028e7b841dcbc47cceb69d7cb8d94245fb7cb2ba3a7a6bc18f13f945f7dbd6e2a20a5122c08ff9c161d9ca6fc462073396c7d7d38e8ee48cdb3bea7e2230134ed6a20d2e1642c9a462229289e5b0e3b7f9008e0301cbb93385ee0e21da2545073cb582016d6252968971a83da8521d65382e61f0176646d771c91528e3276ee45383e4a20fee0e52802cb0c46b1eb4d376c62697f4759f6c8917fa352571202fd778fd712204c6937d78f42685f84b43ad3b7b00f81285662f85c6a68ef11d62ad1a3ee0850200769557bc682b1bf308646fd0b22e648e8b9e98f57e29f5af40f6edb833e2c492008eeab0c13abd6069e6310197bf80f9c1ea6de78fd19cbae24d4a520e6cf3023208d5fa43e5a10d11605ac7430ba1f5d81fb1b68d29a640405767749e841527673206aca8448d8263e547d5ff2950e2ed3839e998d31cbc6ac9fd57bc6002b15921620cd1c8dbf6e3acc7a80439bc4962cf25b9dce7c896f3a5bd70803fc5a0e33cf00206edb16d01907b759977d7650dad7e3ec049af1a3d875380b697c862c9ec5d51c201ea6675f9551eeb9dfaaa9247bc9858270d3d3a4c5afa7177a984d5ed1be245120d6acdedf95f608e09fa53fb43dcd0990475726c5131210c9e5caeab97f0e642f20bd74b25aacb92378a871bf27d225cfc26baca344a1ea35fdd94510f3d157082c201b77dac4d24fb7258c3c528704c59430b630718bec486421837021cf75dab65120ec677114c27206f5debc1c1ed66f95e2b1885da5b7be3d736b1de98579473048204777c8776a3b1e69b73a62fa701fa4f7a6282d9aee2c7a6b82e7937d7081c23c20ba49b659fbd0b7334211ea6a9d9df185c757e70aa81da562fb912b84f49bce722043ff5457f13b926b61df552d4e402ee6dc1463f99a535f9a713439264d5b616b207b99abdc3730991cc9274727d7d82d28cb794edbc7034b4f0053ff7c4b68044420d6c639ac24b46bd19341c91b13fdcab31581ddaf7f1411336a271f3d0aa52813208ac9cf9c391e3fd42891d27238a81a8a5c1d3a72b1bcbea8cf44a58ce738961320912d82b2c2bca231f71efcf61737fbf0a08befa0416215aeef53e8bb6d23390a20e110de65c907b9dea4ae0bd83a4b0a51bea175646a64c12b4c9f931b2cb31b4920d8283386ef2ef07ebdbb4383c12a739a953a4d6e0d6fb1139a4036d693bfbb6c20d0420777afdc4151c3f14fbe4c714d82dc15873edb1ca65ebb3887334a4bae1520d9c38484296b3aa8f5e8b59d418a3775e2bb414e75498ad352e4614f05aae5482001000000000000000000000000000000000000000000000000000000000000000600000000000000\" } ], \"shielded_receives\": [ { \"note\": { \"value\": 40000000, \"payment_address\": \"ztron1wd46s6fwmz99gulqpxul6zffqtevzfpl93ng3s5834fhwf6e7w5l6zmjhmpvtwsc4wxa7dusmvr\", \"rcm\": \"ccced07d36641fc93cba33cddda7064cb82f6962a0bdf15a4240a4a742770e03\" } } ] }' \u53c2\u6570\u8bf4\u660e\uff1a transparent_from_address \uff1a\u900f\u660e\u53d1\u9001\u8005\u7684\u5730\u5740 from_amount \uff1a\u4ece\u900f\u660e\u5730\u5740\u8f6c\u51fa\u7684\u6570\u989d ak \uff1aAk nsk \uff1aNsk ovk \uff1aOvk shielded_receives \uff1a\u533f\u540d\u63a5\u6536\u8005\u4fe1\u606f shieldedSpends \uff1a\u533f\u540d\u53d1\u9001\u8005\u4fe1\u606f transparent_to_address \uff1a\u900f\u660e\u63a5\u6536\u8005\u5730\u5740 to_amount \uff1a\u8f6c\u5165\u900f\u660e\u5730\u5740\u7684\u6570\u989d \u8fd4\u56de\u503c\uff1a\u4ea4\u6613\u5bf9\u8c61","title":"wallet/createshieldedtransactionwithoutspendauthsig"},{"location":"api/http/#walletscannotebyivk","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u4e0eivk\u76f8\u5173\u7684\u6240\u6709\u7684notes curl -X POST http://127.0.0.1:8090/wallet/scannotebyivk -d '{ \"start_block_index\": 0, \"end_block_index\": 100, \"ivk\": \"80a481c3c739e54b4e0608090b3a1a6e9f8dce42346e95bf5a2d8a487bf45c05\" }' \u53c2\u6570\u8bf4\u660e\uff1a start_block_index \uff1a\u5f00\u59cb\u533a\u5757\u9ad8\u5ea6\uff0c\u5305\u542b\u81ea\u8eab end_block_index \uff1a\u7ed3\u675f\u533a\u5757\u9ad8\u5ea6\uff0c\u4e0d\u5305\u542b\u81ea\u8eab ivk \uff1aIncoming viewing key \u8fd4\u56de\u503c\uff1aNotes\u5217\u8868 \u6ce8\u610f\uff1a\u533a\u95f4\u9650\u5236\uff08end_block_index - start_block_index <= 1000\uff09","title":"wallet/scannotebyivk"},{"location":"api/http/#walletscanandmarknotebyivk","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u4e0eivk\u76f8\u5173\u7684\u6240\u6709\u7684notes, \u5305\u542b\u662f\u5426\u82b1\u8d39\u72b6\u6001 curl -X POST http://127.0.0.1:8090/wallet/scanandmarknotebyivk -d '{ \"start_block_index\": 0, \"end_block_index\": 100, \"ivk\": \"80a481c3c739e54b4e0608090b3a1a6e9f8dce42346e95bf5a2d8a487bf45c05\", \"ak\": \"1d4f9b5551f4aa9443ceb263f0e208eb7e26080264571c5ef06de97a646fe418\", \"nk\": \"748522c7571a9da787e43940c9a474aa0c5c39b46c338905deb6726fa3678bdb\" }' \u53c2\u6570\u8bf4\u660e\uff1a start_block_index \uff1a\u5f00\u59cb\u533a\u5757\u9ad8\u5ea6\uff0c\u5305\u542b\u81ea\u8eab end_block_index \uff1a\u7ed3\u675f\u533a\u5757\u9ad8\u5ea6\uff0c\u4e0d\u5305\u542b\u81ea\u8eab ivk \uff1aIncoming viewing key ak \uff1aAk key nk \uff1aNk key \u8fd4\u56de\u503c\uff1aNotes\u5217\u8868 \u6ce8\u610f\uff1a\u533a\u95f4\u9650\u5236\uff08end_block_index - start_block_index <= 1000\uff09","title":"wallet/scanandmarknotebyivk"},{"location":"api/http/#walletscannotebyovk","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u4e0eovk\u76f8\u5173\u7684\u6240\u6709\u7684notes curl -X POST http://127.0.0.1:8090/wallet/scannotebyovk -d '{ \"start_block_index\": 0, \"end_block_index\": 100, \"ovk\": \"705145aa18cbe6c11d5d0011419a98f3d5b1d341eb4727f1315597f4bdaf8539\" }' \u53c2\u6570\u8bf4\u660e\uff1a start_block_index \uff1a\u5f00\u59cb\u533a\u5757\u9ad8\u5ea6\uff0c\u5305\u542b\u81ea\u8eab end_block_index \uff1a\u7ed3\u675f\u533a\u5757\u9ad8\u5ea6\uff0c\u4e0d\u5305\u542b\u81ea\u8eab ovk \uff1aOutgoing viewing key \u8fd4\u56de\u503c\uff1aNotes\u5217\u8868 \u6ce8\u610f\uff1a\u533a\u95f4\u9650\u5236\uff08end_block_index - start_block_index <= 1000\uff09","title":"wallet/scannotebyovk"},{"location":"api/http/#walletcreateshieldnullifier","text":"\u4f5c\u7528\uff1aTo create a shielded nullifier curl -X POST http://127.0.0.1:8090/wallet/createshieldnullifier -d '{ \"note\": { \"payment_address\": \"ztron1aqgauawtkelxfu2w6s48cwh0mchjt6kwpj44l4wym3pullx0294j4r4v7kpm75wnclzycsw73mq\", \"rcm\": \"74a16c1b27ec7fbf06881d9d35ddaab1554838b1bddcd54f6bd8a9fb4ba0b80a\", \"value\": 500000000 }, \"voucher\": { \"tree\": { \"left\": { \"content\": \"a4d763fae3fee78964ccdf7567ec3062c95a5b97825d731202d3dfa6cb01c143\" } }, \"rt\": \"7dc3652c2a16e8518a8be0e3e038f9d28c3eb96f13e8da8acc2a9b650702f33e\" }, \"ak\": \"a3e65d509b675aaa2aeda977ceff11eebd76218079b6f543d78a615e396ca129\", \"nk\": \"62cfda9bea09a53cf2a21022057913734a8458969e11e0bb9c59ead48fbce83e\" }' \u53c2\u6570\u8bf4\u660e\uff1a - note \uff1aNote\u4fe1\u606f - voucher \uff1aVoucher\u4fe1\u606f - ak \uff1aAk - nk \uff1aNk \u8fd4\u56de\u503c\uff1a\u533f\u540d\u7684nullifier","title":"wallet/createshieldnullifier"},{"location":"api/http/#walletgetshieldtransactionhash","text":"\u4f5c\u7528\uff1a\u83b7\u5f97\u4e00\u7b14\u533f\u540d\u4ea4\u6613\u7684hash curl -X POST http://127.0.0.1:8090/wallet/getshieldtransactionhash -d '{ \"txID\": \"de639a64497d86bb27e34a2953093a0cc488ec4c7bc9624ac5857d3799748595\", \"raw_data\": { \"contract\": [ { \"parameter\": { \"value\": { \"binding_signature\": \"2b8ae5e11ecad3e6946f54b7ad513bd8692a3edae72d29e266b28e47c9b37ccdb38e3b6433575694b6681136b1734f85afcfe672061d2ee7368755ad0b96a80b\", \"spend_description\": [ { \"value_commitment\": \"cbe1063adbe7e10919421fa6133f03150253913f5aff02d165e2c019cea4a869\", \"anchor\": \"fb1115d5ddd16c5427c3a608d6b5add5967e70f51c890307c6142083a2c28565\", \"nullifier\": \"93e329d464e1dbddc8bb4d2dcc939a796dfe11e985d4e9033a15edf0e3df4f35\", \"rk\": \"10c702d6dff1509502ee5acc0b01d4b4531b2ff53b0dd54488aea6031b5e6d16\", \"zkproof\": \"abf64b3beacfd873b1db764c3da9f739993518f3f740e761cb8af60682b7171892895c3ccfb550c3cf757e906dbf5313a3676b8226b0b84960f76a185c8d3fdfc3fa9c08479a704852d7b3dfeb913cf13e01c25657561e00a06c61e7c65b50b812902ddc4f17bfe2bcb2f247c2dc6132d0f0e0abcecc0332fdd99077af10d07bbdb88c4fd257948428e233c57f84eee8b2eeab2162c1aeccf2e1dfaa306d5803a8b2d281a549440fbd5a3657a830c1ca07a384cea446aa077b195b29b23023b1\" } ], \"receive_description\": [ { \"value_commitment\": \"f6d45db8ec5a1c8dbbde040b4ea138efbe8db2d0597ed2306ff3fdd0620b3c5a\", \"note_commitment\": \"ec3f5472ac8114a9a07987d1c2a0e1254504e352d9574971e77084293900312e\", \"epk\": \"719eeb5ebaeeccc55c9f0d73767aadf0c0513603400ccb50bd789637d984b8e6\", \"c_enc\": \"3a6c4fe0e79f5b23fed34a419c4728d0b26bca23180a22871743b0a9444c27663cf07c55a0ea6db504d70421768bf17384e180b2ad8b8be88ff5cf662c53a4ba086effc3a4b1df39265f71dfac884bff5a69e1dcdcae8aecf6ae443168ffab692a5c1e4908b415dd830dcf6432fae1c32461132080da74d6b83d3d00887eb2ce9965a749f8d8410ea4182969371ac2fd5e0e74d27d883492a08e6209cd9959d74bb67c2a9fe7faac5a4777f1bff19cf0b6398a2faa9b194bbb93d60f132f382f7d693a722e8cbca1da084ee7e0c371397419a7259d1fa0943078cfe5ea352e4b53907bb6c04ca8ad409fb0ae0b110a6b312200e21ab79d543ae7aeb16802cf87afdac1e8954038caa42818f4ca2847fd642360c098accfeeade4abd1cc9ca3315a4336be224ba3516973c7dae3f41875457236675993df38d3a544470c4f9335d77b005e6a9aec40fd881b34852ec9bbbcc3d24ee92930eae770a5462ce04c4e37b0524ef07e00e8d58c810d6aefb19fa7bc2c3a2fdfab6dd4fe73dbecc0795a280f9b7ca35cc8bc1062aed8e26bd81ba33c6f4c318974636f6d796723e77772ced3dbc1f42afec6fc9bb61f8beac704affea9baf2e2de226250c1d427c7d78b1eb1d239e1f3eb6af0f017b80541333f4fce17340048d826b9b0be8477c996ad8bfc3440dc686fdff6d0d63986db4d95962d7977289cbfd14c745de7c79d4dc0bcd220e5b4ced5b409e79142e0f336e44ca29a9a87f6f43707d8c4936e895236dd2b393a478a8bc27b1f682496ba84a0ddc549da06cb7855c4d8680dc66ac40240733b7f\", \"c_out\": \"50be6e77854d4c427b2af4f16e5275f0b0c206b3ea2d2a24ffb287ea356f323523354cd83d15e7c48e6f1fa103dfca3d49ca2263dbb0cd8bfb35d72cdcad1351de6fba7a30aea27184a68bcda19cc6da\", \"zkproof\": \"a4e6c50d5753092d005689922c2bdeafc98775bce59db840974163ace23c13fec18112e32aae1c39842c645ed172ad8fa277e63c1e3d6d7fb12eb15d56b573237b776f562a81d0e6be362d147d8604fdfec421482270ca82950de1883fda06e719f5d256d7a039769bffc570a1778d70c17295d1c0336a6ae0903d2460dc139a9563c2d40f37bffefa73003a55af1ff0861b6f79ef40099b6a0cb25ab3f40727210e4629647d0711abff125712a5f0d64fcb6e6a6b0b34478d7da0552b493a80\" } ] }, \"type_url\": \"type.googleapis.com/protocol.ShieldedTransferContract\" }, \"type\": \"ShieldedTransferContract\" } ], \"ref_block_bytes\": \"0d59\", \"ref_block_hash\": \"7356ce5c35d8265e\", \"expiration\": 1559237283000, \"timestamp\": 1559201285590 }, \"raw_data_hex\": \"0a020d5922087356ce5c35d8265e40b899a3ceb02d5a940b0833128f0b0a35747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e536869656c6465645472616e73666572436f6e747261637412d50a1acb020a20cbe1063adbe7e10919421fa6133f03150253913f5aff02d165e2c019cea4a8691220fb1115d5ddd16c5427c3a608d6b5add5967e70f51c890307c6142083a2c285651a2093e329d464e1dbddc8bb4d2dcc939a796dfe11e985d4e9033a15edf0e3df4f35222010c702d6dff1509502ee5acc0b01d4b4531b2ff53b0dd54488aea6031b5e6d162ac001abf64b3beacfd873b1db764c3da9f739993518f3f740e761cb8af60682b7171892895c3ccfb550c3cf757e906dbf5313a3676b8226b0b84960f76a185c8d3fdfc3fa9c08479a704852d7b3dfeb913cf13e01c25657561e00a06c61e7c65b50b812902ddc4f17bfe2bcb2f247c2dc6132d0f0e0abcecc0332fdd99077af10d07bbdb88c4fd257948428e233c57f84eee8b2eeab2162c1aeccf2e1dfaa306d5803a8b2d281a549440fbd5a3657a830c1ca07a384cea446aa077b195b29b23023b122c2070a20f6d45db8ec5a1c8dbbde040b4ea138efbe8db2d0597ed2306ff3fdd0620b3c5a1220ec3f5472ac8114a9a07987d1c2a0e1254504e352d9574971e77084293900312e1a20719eeb5ebaeeccc55c9f0d73767aadf0c0513603400ccb50bd789637d984b8e622c4043a6c4fe0e79f5b23fed34a419c4728d0b26bca23180a22871743b0a9444c27663cf07c55a0ea6db504d70421768bf17384e180b2ad8b8be88ff5cf662c53a4ba086effc3a4b1df39265f71dfac884bff5a69e1dcdcae8aecf6ae443168ffab692a5c1e4908b415dd830dcf6432fae1c32461132080da74d6b83d3d00887eb2ce9965a749f8d8410ea4182969371ac2fd5e0e74d27d883492a08e6209cd9959d74bb67c2a9fe7faac5a4777f1bff19cf0b6398a2faa9b194bbb93d60f132f382f7d693a722e8cbca1da084ee7e0c371397419a7259d1fa0943078cfe5ea352e4b53907bb6c04ca8ad409fb0ae0b110a6b312200e21ab79d543ae7aeb16802cf87afdac1e8954038caa42818f4ca2847fd642360c098accfeeade4abd1cc9ca3315a4336be224ba3516973c7dae3f41875457236675993df38d3a544470c4f9335d77b005e6a9aec40fd881b34852ec9bbbcc3d24ee92930eae770a5462ce04c4e37b0524ef07e00e8d58c810d6aefb19fa7bc2c3a2fdfab6dd4fe73dbecc0795a280f9b7ca35cc8bc1062aed8e26bd81ba33c6f4c318974636f6d796723e77772ced3dbc1f42afec6fc9bb61f8beac704affea9baf2e2de226250c1d427c7d78b1eb1d239e1f3eb6af0f017b80541333f4fce17340048d826b9b0be8477c996ad8bfc3440dc686fdff6d0d63986db4d95962d7977289cbfd14c745de7c79d4dc0bcd220e5b4ced5b409e79142e0f336e44ca29a9a87f6f43707d8c4936e895236dd2b393a478a8bc27b1f682496ba84a0ddc549da06cb7855c4d8680dc66ac40240733b7f2a5050be6e77854d4c427b2af4f16e5275f0b0c206b3ea2d2a24ffb287ea356f323523354cd83d15e7c48e6f1fa103dfca3d49ca2263dbb0cd8bfb35d72cdcad1351de6fba7a30aea27184a68bcda19cc6da32c001a4e6c50d5753092d005689922c2bdeafc98775bce59db840974163ace23c13fec18112e32aae1c39842c645ed172ad8fa277e63c1e3d6d7fb12eb15d56b573237b776f562a81d0e6be362d147d8604fdfec421482270ca82950de1883fda06e719f5d256d7a039769bffc570a1778d70c17295d1c0336a6ae0903d2460dc139a9563c2d40f37bffefa73003a55af1ff0861b6f79ef40099b6a0cb25ab3f40727210e4629647d0711abff125712a5f0d64fcb6e6a6b0b34478d7da0552b493a802a402b8ae5e11ecad3e6946f54b7ad513bd8692a3edae72d29e266b28e47c9b37ccdb38e3b6433575694b6681136b1734f85afcfe672061d2ee7368755ad0b96a80b70d68b8ebdb02d\" }' \u53c2\u6570\u8bf4\u660e\uff1atransaction\uff1a\u4ea4\u6613\u5bf9\u8c61 \u8fd4\u56de\u503c\uff1a\u4e00\u7b14\u533f\u540d\u4ea4\u6613\u7684hash","title":"wallet/getshieldtransactionhash"},{"location":"api/http/#walletcreateshieldedtransaction","text":"\u4f5c\u7528\uff1a\u521b\u5efa\u533f\u540d\u4ea4\u6613\uff0c\u8bf7\u53c2\u7167\uff1a \u793a\u4f8b \u53c2\u6570\u8bf4\u660e\uff1a transparent_from_address \uff1a\u900f\u660e\u53d1\u9001\u8005\u7684\u5730\u5740 from_amount \uff1a\u4ece\u900f\u660e\u5730\u5740\u8f6c\u51fa\u7684\u6570\u989d ask \uff1aAsk nsk \uff1aNsk ovk \uff1aOvk shielded_receives \uff1a\u533f\u540d\u63a5\u6536\u8005\u4fe1\u606f shieldedSpends \uff1a\u533f\u540d\u53d1\u9001\u8005\u4fe1\u606f transparent_to_address \uff1a\u900f\u660e\u63a5\u6536\u8005\u5730\u5740 to_amount \uff1a\u8f6c\u5165\u900f\u660e\u5730\u5740\u7684\u6570\u989d \u8fd4\u56de\u503c\uff1a\u4ea4\u6613\u5bf9\u8c61","title":"wallet/createshieldedtransaction"},{"location":"api/http/#walletgetnewshieldedaddress","text":"\u4f5c\u7528: \u83b7\u5f97shieldedAddress curl -X GET http://127.0.0.1:8090/wallet/getnewshieldedaddress \u53c2\u6570\u8bf4\u660e: \u65e0 \u8fd4\u56de\u503c: Spending key Ask key Nsk key Outgoing viewing key Ak Key Nk key incoming viewing key Diversifier pkD payment address","title":"wallet/getnewshieldedaddress"},{"location":"api/http/#walletcreateshieldedcontractparameters","text":"\u4f5c\u7528\uff1a\u521b\u5efa\u533f\u540dTRC20\u5408\u7ea6\u4ea4\u6613\u7684\u76f8\u5173\u53c2\u6570\uff0c\u5305\u62ecmint, transfer\u548cburn\u4e09\u79cd\u7c7b\u578b curl -X POST http://127.0.0.1:8090/wallet/createshieldedcontractparameters -d '{ \"ask\": \"0f63eabdfe2bbfe08012f6bb2db024e6809c16e8ed055aa41a6095424f192005\", \"nsk\": \"cd43d722fd4b6b01f19449ea826c3e935609648520fcc2a95c0026f0fa9ee404\", \"ovk\": \"1797de3b7f33cafffe3fe18c6b43ec6760add2ad81b10978d1fca5290497ede9\", \"from_amount\": \"5000\", \"shielded_receives\": { \"note\": { \"value\": 50, \"payment_address\": \"ztron15js0jkuxczt8caq5hp59rnh6rgf34sek7vqn9u6ljelxv4nuzz2x9qe3ffm2wzz6ck53yxyhxs6\", \"rcm\": \"74baec30dfac8ed59968955ff245ae002009005194e5b824c35ab88c52e5170e\" } }, \"shielded_TRC20_contract_address\": \"41f3392eaa7d38749176e0671dbc6912f8ef956943\" }' \u53c2\u6570\u8bf4\u660e\uff1a ask \uff1aAsk nsk \uff1aNsk ovk \uff1aOutgoing view key from_amount \uff1amint\u7684\u91d1\u989d\uff0c\u6839\u636e\u7f29\u653e\u56e0\u5b50scalingFactor\uff0c\u548cnote\u503c\u4e2d\u7684 value \u6210\u6bd4\u4f8b\u5173\u7cfb\uff0c\u5373 from_amount = value * scalingFactor. \u5728\u4e0a\u9762\u7684\u793a\u4f8b\u4e2d\uff0cscalingFactor\u503c\u4e3a100 shielded_receives : \u5f85\u521b\u5efa\u7684\u533f\u540d\u5408\u7ea6notes shielded_TRC20_contract_address : \u533f\u540dTRC20\u5408\u7ea6\u5730\u5740 \u8fd4\u56de\u503c\uff1a\u533f\u540dTRC20\u5408\u7ea6\u4ea4\u6613\u7684\u53c2\u6570 \u6ce8\u610f\uff1a\u6839\u636e\u5f85\u521b\u5efa\u7684\u533f\u540d\u5408\u7ea6\u4ea4\u6613\u7c7b\u578b\u7684\u4e0d\u540c\uff0c\u8f93\u5165\u7684\u53c2\u6570\u4e0d\u540c","title":"wallet/createshieldedcontractparameters"},{"location":"api/http/#walletcreateshieldedcontractparameterswithoutask","text":"\u4f5c\u7528\uff1a\u5728\u6ca1\u6709Ask\u7684\u60c5\u51b5\u4e0b\uff0c\u521b\u5efa\u533f\u540dTRC20\u5408\u7ea6\u4ea4\u6613\u7684\u76f8\u5173\u53c2\u6570\uff0c\u5305\u62ecmint, transfer\u548cburn\u4e09\u79cd\u7c7b\u578b curl -X POST http://127.0.0.1:8090/wallet/createshieldedcontractparameterswithoutask -d '{ \"ovk\": \"cd361834b3adc06f130de24f7d0c18f92a093cc885d9ce492cc6c02071f7a4f0\", \"from_amount\": \"5000\", \"shielded_receives\": { \"note\": { \"value\": 50, \"payment_address\": \"ztron13lvfnt4rau4ad9mmgztd3aftw49e3amz8gm2kvyzrsaw0ugz2grxwkvcfys5e2gkchj7cnnetjz\", \"rcm\": \"499e73f2f8aaf05fac41a35b8343bde27f6629cbe66d35da5364a99b94a55a06\" } }, \"shielded_TRC20_contract_address\": \"41f3392eaa7d38749176e0671dbc6912f8ef956943\" }' \u53c2\u6570\u8bf4\u660e\uff1a ovk \uff1aOutgoing view key from_amount \uff1amint\u7684\u91d1\u989d\uff0c\u6839\u636e\u7f29\u653e\u56e0\u5b50 scalingFactor\uff0c\u548cnote\u503c\u4e2d\u7684value\u6210\u6bd4\u4f8b\u5173\u7cfb\uff0c\u5373 from_amount = value * scalingFactor. \u5728\u4e0a\u9762\u7684\u793a\u4f8b\u4e2d\uff0cscalingFactor\u503c\u4e3a100 shielded_receives : \u5f85\u521b\u5efa\u7684\u533f\u540d\u5408\u7ea6notes shielded_TRC20_contract_address : \u533f\u540dTRC20\u5408\u7ea6\u5730\u5740 \u8fd4\u56de\u503c\uff1a\u533f\u540dTRC20\u5408\u7ea6\u4ea4\u6613\u7684\u53c2\u6570 \u6ce8\u610f\uff1a\u6839\u636e\u5f85\u521b\u5efa\u7684\u533f\u540d\u5408\u7ea6\u4ea4\u6613\u7c7b\u578b\u7684\u4e0d\u540c\uff0c\u8f93\u5165\u7684\u53c2\u6570\u4e0d\u540c","title":"wallet/createshieldedcontractparameterswithoutask"},{"location":"api/http/#walletscanshieldedtrc20notesbyivk","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u533f\u540dTRC20\u5408\u7ea6\u4e2d\u4e0eivk\u76f8\u5173\u7684\u6240\u6709notes, \u5e76\u6807\u8bb0\u5176\u662f\u5426\u5df2\u82b1\u8d39 curl -X POST http://127.0.0.1:8090/wallet/scanshieldedtrc20notesbyivk -d '{ \"start_block_index\": 9200, \"end_block_index\": 9240, \"shielded_TRC20_contract_address\": \"41274fc7464fadac5c00c893c58bce6c39bf59e4c7\", \"ivk\": \"9f8e74bb3d7188a2781dc1db38810c6914eef4570a79e8ec8404480948e4e305\", \"ak\":\"8072d9110c9de9d9ade33d5d0f5890a7aa65b0cde42af7816d187297caf2fd64\", \"nk\":\"590bf33f93f792be659fd404df91e75c3b08d38d4e08ee226c3f5219cf598f14\" }' \u53c2\u6570\u8bf4\u660e\uff1a start_block_index \uff1a\u5f00\u59cb\u533a\u5757\u9ad8\u5ea6\uff0c\u5305\u542b\u81ea\u8eab end_block_index \uff1a\u7ed3\u675f\u533a\u5757\u9ad8\u5ea6\uff0c\u4e0d\u5305\u542b\u81ea\u8eab shielded_TRC20_contract_address : \u533f\u540dTRC20\u5408\u7ea6\u5730\u5740 ivk \uff1aIncoming viewing key ak \uff1aAk key nk \uff1aNk key \u8fd4\u56de\u503c\uff1aNotes\u5217\u8868 \u6ce8\u610f\uff1a\u533a\u95f4\u9650\u5236\uff08end_block_index - start_block_index <= 1000\uff09","title":"wallet/scanshieldedtrc20notesbyivk"},{"location":"api/http/#walletscanshieldedtrc20notesbyovk","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u533f\u540dTRC20\u5408\u7ea6\u4e2d\u4e0eovk\u76f8\u5173\u7684\u6240\u6709notes curl -X POST http://127.0.0.1:8090/wallet/scanshieldedtrc20notesbyovk -d '{ \"start_block_index\": 9200, \"end_block_index\": 9240, \"shielded_TRC20_contract_address\": \"41274fc7464fadac5c00c893c58bce6c39bf59e4c7\", \"ovk\": \"0ff58efd75e083fe4fd759c8701e1c8cb6961c4297a12b2c800bdb7b2bcab889\" }' \u53c2\u6570\u8bf4\u660e\uff1a start_block_index \uff1a\u5f00\u59cb\u533a\u5757\u9ad8\u5ea6\uff0c\u5305\u542b\u81ea\u8eab end_block_index \uff1a\u7ed3\u675f\u533a\u5757\u9ad8\u5ea6\uff0c\u4e0d\u5305\u542b\u81ea\u8eab shielded_TRC20_contract_address : \u533f\u540dTRC20\u5408\u7ea6\u5730\u5740 ovk \uff1aOutgoing viewing key \u8fd4\u56de\u503c\uff1aNotes\u5217\u8868 \u6ce8\u610f\uff1a\u533a\u95f4\u9650\u5236\uff08end_block_index - start_block_index <= 1000\uff09","title":"wallet/scanshieldedtrc20notesbyovk"},{"location":"api/http/#walletisshieldedtrc20contractnotespent","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u533f\u540dTRC20\u5408\u7ea6\u7684note\u662f\u5426\u5df2\u88ab\u82b1\u8d39 \u53c2\u6570\u8bf4\u660e\uff1a note \uff1aNote\u4fe1\u606f ak \uff1aAk nk \uff1aNk position \uff1anote\u627f\u8bfa\u5728\u533f\u540d\u5408\u7ea6Merkle\u6811\u53f6\u5b50\u8282\u70b9\u7684\u4f4d\u7f6e\u7d22\u5f15 shielded_TRC20_contract_address : \u533f\u540dTRC20\u5408\u7ea6\u5730\u5740 \u8fd4\u56de\u503c\uff1a\u4e00\u4e2anote\u662f\u5426\u5df2\u7ecf\u88ab\u82b1\u8d39\u72b6\u6001 \u6ce8\u610f: Note \u4e2dvalue\u662f\u7531 scalingFactor\u7f29\u653e\u540e\u7684\u503c\uff0cscalingFactor\u5728\u533f\u540dTRC-20\u5408\u7ea6\u4e2d\u8bbe\u7f6e\uff0c\u5b9e\u9645\u91d1\u989d real_amount = value * scalingFactor \u3002","title":"wallet/isshieldedtrc20contractnotespent"},{"location":"api/http/#walletgettriggerinputforshieldedtrc20contract","text":"\u4f5c\u7528: \u5bf9\u4e8e\u6ca1\u6709\u6388\u6743\u7b7e\u540d\u7684\u533f\u540dTRC-20\u5408\u7ea6\u53c2\u6570\uff0c\u751f\u6210\u89e6\u53d1\u5408\u7ea6\u7684\u8f93\u5165\u6570\u636e curl -X POST http://127.0.0.1:8090/wallet/gettriggerinputforshieldedtrc20contract -d '{ \"shielded_TRC20_Parameters\": {\"spend_description\": [{\"value_commitment\": \"e3fcc8609ff6a4b00b77a00ef624f305cec5f55cc7312ff5526d0b3057f2ef9e\",\"anchor\": \"4c9cbebece033dc1d253b93e4a3682187daae4f905515761d10287b801e69816\",\"nullifier\": \"74edce8798a3976ee41e045bb666f3a121c27235b0f1b44b3456d2c84bc725dc\",\"rk\": \"9dcf4254aa7c4fb7c8bc6956d4b0c7c6c87c37a2552e7bf4e60c12cb5bc6c8cd\",\"zkproof\": \"9926045cd1442a7d20153e6abda9f77a6526895f0a29a57cb1bc76ef6b7cacef2d0f4c94aa97c3acacdb95cabb065057b7edb4cbea098149a8aa7114a6a6b340c58007ac64b64e592eb18fdd299de5962a2a32ab0caebb2ab198704c751a9d0e143d68a50257d7c9e2230a7420fa46450299fd167141367e201726532d8e815413d8571d6c8c12937674dec92caf1f4583ebe560ac4c7eba290deee0a1c0da5f72c0b9df89fb3b338c683b654b3dc2373a4c2a4fef7f4fa489b44405fb7d2bfb\"}],\"binding_signature\": \"11e949887d9ec92eb32c78f0bc48afdc9a16a2ecbd5a0eca1be070fb900eeda347918bd6e9521d4baf1f74963bee0c1956559623a9e7cbc886941b227341ea06\",\"message_hash\": \"7e6a00736c4f9e0036cb74c7fa3b1e3cd8f6bf0f038edeb03b668c4c5536a357\",\"parameter_type\": \"burn\"}, \"spend_authority_signature\": [ { \"value\": \"eeaaecd725ac80ec398b95cf188b769c1be66cc8e76e6c90843b7f23818704595719ce8bf694ffb8cd7aaa8739d50fe8eea7ba39d5026c4b019c973185ca7201\" } ], \"amount\": \"6000\", \"transparent_to_address\": \"4140cd765f8e637a2bbe00f9bc458f6b21eb0e648f\" }' \u53c2\u6570\u8bf4\u660e: shielded_TRC20_Parameters : \u751f\u6210\u7684\u533f\u540dTRC-20\u5408\u7ea6\u53c2\u6570 spend_authority_signature : \u6388\u6743\u7b7e\u540d amount : \u4ea4\u6613\u91d1\u989d transparent_to_address : \u63a5\u6536\u8005\u5730\u5740. \u8fd4\u56de\u503c: \u89e6\u53d1TRC-20\u5408\u7ea6\u7684\u8f93\u5165\u6570\u636e","title":"wallet/gettriggerinputforshieldedtrc20contract"},{"location":"api/http/#walletgetrcm","text":"\u4f5c\u7528\uff1a\u83b7\u5f97\u4e00\u4e2arcm curl -X GET http://127.0.0.1:8090/wallet/getrcm \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c\uff1arcm","title":"wallet/getrcm"},{"location":"api/http/#walletgetmerkletreevoucherinfo","text":"\u4f5c\u7528\uff1a\u83b7\u5f97\u4e00\u4e2anote\u7684\u9ed8\u514b\u5c14\u6811\u4fe1\u606f curl -X POST http://127.0.0.1:8090/wallet/getmerkletreevoucherinfo -d '{ \"out_points\":[{ \"hash\":\"185b3e085723f5862b3a3c3cf54d52f5c1eaf2541e3a1e0ecd08bc12cd958d74\", \"index\":0 }] }' \u53c2\u6570\u8bf4\u660e\uff1aout_points\uff1aNote\u4fe1\u606f \u8fd4\u56de\u503c\uff1a\u4e00\u4e2anote\u7684\u9ed8\u514b\u5c14\u6811\u4fe1\u606f","title":"wallet/getmerkletreevoucherinfo"},{"location":"api/http/#walletisspend","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u4e00\u4e2anote\u662f\u5426\u5df2\u7ecf\u88ab\u82b1\u8d39 curl -X POST http://127.0.0.1:8090/wallet/isspend -d '{ \"ak\": \"a3e65d509b675aaa2aeda977ceff11eebd76218079b6f543d78a615e396ca129\", \"nk\": \"62cfda9bea09a53cf2a21022057913734a8458969e11e0bb9c59ead48fbce83e\", \"note\": { \"payment_address\": \"ztron1aqgauawtkelxfu2w6s48cwh0mchjt6kwpj44l4wym3pullx0294j4r4v7kpm75wnclzycsw73mq\", \"rcm\": \"74a16c1b27ec7fbf06881d9d35ddaab1554838b1bddcd54f6bd8a9fb4ba0b80a\", \"value\": 500000000 }, \"txid\": \"7d09e471bb047d3ac044d5d6691b3721a2dddbb683ac02c207fbe78af6302463\", \"index\": 1 }' \u53c2\u6570\u8bf4\u660e\uff1a ak \uff1aAk nk \uff1aNk note \uff1aNote\u4fe1\u606f txid \uff1a\u4ea4\u6613id index \uff1aNote\u7d22\u5f15 \u8fd4\u56de\u503c\uff1a\u4e00\u4e2anote\u662f\u5426\u5df2\u7ecf\u88ab\u82b1\u8d39\u72b6\u6001","title":"wallet/isspend"},{"location":"api/http/#walletcreatespendauthsig","text":"\u4f5c\u7528\uff1a\u4e3a\u4e00\u4e2a\u4ea4\u6613\u521b\u5efa\u4e00\u4e2a\u7b7e\u540d curl -X POST http://127.0.0.1:8090/wallet/createspendauthsig -d '{ \"ask\": \"e3ebcba1531f6d9158d9c162660c5d7c04dadf77d85d7436a9c98b291ff69a09\", \"tx_hash\": \"3b78fee6e956f915ffe082284c5f18640edca9c57a5f227e5f7d7eb65ad61502\", \"alpha\": \"2608999c3a97d005a879ecdaa16fd29ae434fb67b177c5e875b0c829e6a1db04\" }' \u53c2\u6570\u8bf4\u660e\uff1a ask\uff1aAsk tx_hash\uff1a\u4ea4\u6613\u54c8\u5e0c alpha\uff1aAlpha \u8fd4\u56de\u503c\uff1a\u7b7e\u540d","title":"wallet/createspendauthsig"},{"location":"api/http/#pending-pool","text":"\u4e0b\u9762\u662fPending Pool\u76f8\u5173API\uff1a wallet/gettransactionfrompending wallet/gettransactionlistfrompending wallet/getpendingsize","title":"Pending Pool"},{"location":"api/http/#walletgettransactionfrompending","text":"\u4f5c\u7528\uff1a\u67e5\u8be2pending pool\u4e2d\u7684\u4ea4\u6613\u4fe1\u606f curl -X POST http://127.0.0.1:8090/wallet/gettransactionfrompending -d '{ \"value\": \"txId\" }' \u53c2\u6570\u8bf4\u660e\uff1avalue: \u4ea4\u6613id\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1a\u4ea4\u6613\u7684\u8be6\u7ec6\u4fe1\u606f","title":"wallet/gettransactionfrompending"},{"location":"api/http/#walletgettransactionlistfrompending","text":"\u4f5c\u7528\uff1a\u67e5\u8be2pending pool\u4ea4\u6613\u5217\u8868id curl -X get http://127.0.0.1:8090/wallet/gettransactionlistfrompending \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c\uff1apending pool\u4ea4\u6613\u5217\u8868id","title":"wallet/gettransactionlistfrompending"},{"location":"api/http/#walletgetpendingsize","text":"\u4f5c\u7528\uff1a\u67e5\u8be2pending pool\u5927\u5c0f curl -X get http://127.0.0.1:8090/wallet/getpendingsize \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c\uff1apending pool \u5927\u5c0f","title":"wallet/getpendingsize"},{"location":"api/http/#fullnode-solidity-http-api","text":"","title":"FullNode Solidity HTTP API"},{"location":"api/http/#_8","text":"","title":"\u8d26\u6237\u8d44\u6e90"},{"location":"api/http/#walletsoliditygetaccount","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u4e00\u4e2a\u8d26\u53f7\u7684\u4fe1\u606f curl -X POST http://127.0.0.1:8091/walletsolidity/getaccount -d '{\"address\": \"41E552F6487585C2B58BC2C9BB4492BC1F17132CD0\"}' \u53c2\u6570\u8bf4\u660e\uff1aaddress \u9ed8\u8ba4\u4e3ahexString \u8fd4\u56de\u503c\uff1aAccount\u5bf9\u8c61","title":"walletsolidity/getaccount"},{"location":"api/http/#walletsoliditygetdelegatedresource","text":"\u4f5c\u7528\uff1a\u67e5\u770b\u4e00\u4e2a\u8d26\u6237\u4ee3\u7406\u7ed9\u53e6\u5916\u4e00\u4e2a\u8d26\u6237\u7684\u8d44\u6e90\u60c5\u51b5 curl -X POST http://127.0.0.1:8091/walletsolidity/getdelegatedresource -d ' { \"fromAddress\": \"419844f7600e018fd0d710e2145351d607b3316ce9\", \"toAddress\": \"41c6600433381c731f22fc2b9f864b14fe518b322f\" }' \u53c2\u6570\u8bf4\u660e\uff1a fromAddress \uff1a\u662f\u8981\u67e5\u8be2\u7684\u8d26\u6237\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f toAddress \uff1a\u4ee3\u7406\u5bf9\u8c61\u7684\u8d26\u6237\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1a\u8d26\u6237\u7684\u8d44\u6e90\u4ee3\u7406\u7684\u5217\u8868\uff0c\u5217\u8868\u7684\u5143\u7d20\u4e3aDelegatedResource","title":"walletsolidity/getdelegatedresource"},{"location":"api/http/#walletsoliditygetdelegatedresourceaccountindex","text":"\u4f5c\u7528\uff1a\u67e5\u770b\u4e00\u4e2a\u8d26\u6237\u7684\u8d44\u6e90\u4ee3\u7406\u60c5\u51b5 curl -X POST http://127.0.0.1:8091/walletsolidity/getdelegatedresourceaccountindex -d ' { \"value\": \"419844f7600e018fd0d710e2145351d607b3316ce9\", }' \u53c2\u6570\u8bf4\u660e\uff1a value \uff1a\u662f\u8981\u67e5\u8be2\u7684\u8d26\u6237\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1a\u8d26\u6237\u7684DelegatedResourceAccountIndex","title":"walletsolidity/getdelegatedresourceaccountindex"},{"location":"api/http/#walletsoliditygetaccountbyid","text":"\u4f5c\u7528\uff1a\u901a\u8fc7accountId\u67e5\u8be2\u4e00\u4e2a\u8d26\u53f7\u7684\u4fe1\u606f curl -X POST http://127.0.0.1:8091/walletsolidity/getaccountbyid -d '{\"account_id\":\"6161616162626262\"}' \u53c2\u6570\u8bf4\u660e\uff1aaccount_id \u9ed8\u8ba4\u4e3ahexString\u683c\u5f0f \u8fd4\u56de\u503c\uff1aAccount\u5bf9\u8c61","title":"walletsolidity/getaccountbyid"},{"location":"api/http/#walletsoliditygetavailableunfreezecount","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u5f53\u524d\u89e3\u8d28\u62bc\u5269\u4f59\u6b21\u6570 curl -X POST http://127.0.0.1:8090/walletsolidity/getavailableunfreezecount -d '{ \"owner_address\": \"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g\", \"visible\": true } ' \u53c2\u6570\uff1a owner_address : \u4ea4\u6613\u53d1\u8d77\u8005\u8d26\u53f7\u7684\u5730\u5740 \u8fd4\u56de\u503c\uff1a\u89e3\u8d28\u62bc\u7684\u5269\u4f59\u6b21\u6570","title":"walletsolidity/getavailableunfreezecount"},{"location":"api/http/#walletsoliditygetcanwithdrawunfreezeamount","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u5728\u67d0\u65f6\u95f4\u70b9\u53ef\u4ee5\u63d0\u53d6\u7684\u89e3\u8d28\u62bc\u672c\u91d1\u6570\u91cf curl -X POST http://127.0.0.1:8090/walletsolidity/getcanwithdrawunfreezeamount -d '{ \"owner_address\": \"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g\", \"timestamp\": 1667977444000, \"visible\": true } ' \u53c2\u6570\uff1a owner_address : \u4ea4\u6613\u53d1\u8d77\u8005\u8d26\u53f7\u7684\u5730\u5740 timestamp : \u67e5\u8be2\u5728\u8be5\u65f6\u95f4\u6233\u65f6\uff0c\u53ef\u63d0\u53d6\u7684\u672c\u91d1\u6570\u91cf\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2 \u8fd4\u56de\u503c\uff1a\u89e3\u8d28\u62bc\u672c\u91d1\u53ef\u63d0\u53d6\u6570\u91cf","title":"walletsolidity/getcanwithdrawunfreezeamount"},{"location":"api/http/#walletsoliditygetcandelegatedmaxsize","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u76ee\u6807\u5730\u5740\u4e2d\u6307\u5b9a\u7c7b\u578b\u8d44\u6e90\u7684\u53ef\u4ee3\u7406\u6570\u91cf\uff0c\u5355\u4f4d\u4e3asun curl -X POST http://127.0.0.1:8090/walletsolidity/getcandelegatedmaxsize -d '{ \"owner_address\": \"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g\", \"type\": 0, \"visible\": true } ' \u53c2\u6570\uff1a owner_address : \u4ea4\u6613\u53d1\u8d77\u8005\u8d26\u53f7\u7684\u5730\u5740 type : \u8d44\u6e90\u7c7b\u578b\uff0c0\u4e3a\u5e26\u5bbd\uff0c1\u4e3a\u80fd\u91cf \u8fd4\u56de\u503c\uff1a\u53ef\u4ee3\u7406\u5e26\u5bbd\u6216\u8005\u80fd\u91cf\u4efd\u989d\u7684\u6700\u5927\u503c\uff08\u5355\u4f4d\u4e3asun\uff09","title":"walletsolidity/getcandelegatedmaxsize"},{"location":"api/http/#walletsoliditygetdelegatedresourcev2","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u5728Stake2.0\u673a\u5236\u4e0b\uff0c\u67d0\u5730\u5740\u4ee3\u7406\u7ed9\u76ee\u6807\u5730\u5740\u7684\u8d44\u6e90\u60c5\u51b5 curl -X POST http://127.0.0.1:8090/walletsolidity/getdelegatedresourcev2 -d '{ \"fromAddress\": \"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g\", \"toAddress\": \"TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1\", \"visible\": true } ' \u53c2\u6570\uff1a fromAddress : \u4ee3\u7406\u8d26\u6237\u5730\u5740 toAddress : \u8d44\u6e90\u7684\u63a5\u6536\u8d26\u6237\u5730\u5740 \u8fd4\u56de\u503c\uff1a\u67d0\u5730\u5740\u4ee3\u7406\u7ed9\u76ee\u6807\u5730\u5740\u7684\u8d44\u6e90\u60c5\u51b5\u7684\u5217\u8868","title":"walletsolidity/getdelegatedresourcev2"},{"location":"api/http/#walletsoliditygetdelegatedresourceaccountindexv2","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u5728Stake2.0\u9636\u6bb5\uff0c\u67d0\u5730\u5740\u7684\u8d44\u6e90\u59d4\u6258\u7d22\u5f15\u3002\u8fd4\u56de\u4e24\u4e2a\u5217\u8868\uff0c\u4e00\u4e2a\u662f\u8be5\u5e10\u6237\u5c06\u8d44\u6e90\u59d4\u6258\u7ed9\u7684\u5730\u5740\u5217\u8868(toAddress)\uff0c\u53e6\u4e00\u4e2a\u662f\u5c06\u8d44\u6e90\u59d4\u6258\u7ed9\u8be5\u5e10\u6237\u7684\u5730\u5740\u5217\u8868(fromAddress) curl -X POST http://127.0.0.1:8090/walletsolidity/getdelegatedresourceaccountindexv2 -d '{ \"value\": \"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g\", \"visible\": true } ' \u53c2\u6570\uff1a value : \u8d26\u6237\u5730\u5740 \u8fd4\u56de\u503c\uff1a\u67d0\u5730\u5740\u7684\u8d44\u6e90\u59d4\u6258\u7d22\u5f15\u3002\u8fd4\u56de\u4e24\u4e2a\u5217\u8868\uff0c\u4e00\u4e2a\u662f\u8be5\u5e10\u6237\u5c06\u8d44\u6e90\u59d4\u6258\u7ed9\u7684\u5730\u5740\u5217\u8868(toAddress)\uff0c\u53e6\u4e00\u4e2a\u662f\u5c06\u8d44\u6e90\u59d4\u6258\u7ed9\u8be5\u5e10\u6237\u7684\u5730\u5740\u5217\u8868(fromAddress)","title":"walletsolidity/getdelegatedresourceaccountindexv2"},{"location":"api/http/#sr_1","text":"","title":"\u6295\u7968\u548cSR"},{"location":"api/http/#walletsoliditylistwitnesses","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u8d85\u7ea7\u4ee3\u8868\u5217\u8868 curl -X POST http://127.0.0.1:8091/walletsolidity/listwitnesses \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c\uff1a\u6240\u6709\u8d85\u7ea7\u4ee3\u8868\u5217\u8868","title":"walletsolidity/listwitnesses"},{"location":"api/http/#trc10_1","text":"","title":"TRC10 \u901a\u8bc1"},{"location":"api/http/#walletsoliditygetassetissuelist","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u6240\u6709Token\u5217\u8868 curl -X POST http://127.0.0.1:8091/walletsolidity/getassetissuelist \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c\uff1a\u6240\u6709Token\u5217\u8868","title":"walletsolidity/getassetissuelist"},{"location":"api/http/#walletsoliditygetpaginatedassetissuelist","text":"\u4f5c\u7528\uff1a\u5206\u9875\u67e5\u8be2Token\u5217\u8868 curl -X POST http://127.0.0.1:8091/walletsolidity/getpaginatedassetissuelist -d '{\"offset\": 0, \"limit\":10}' \u53c2\u6570\u8bf4\u660e\uff1aoffset\u662f\u8d77\u59cbToken\u7684index\uff0climit\u662f\u671f\u671b\u8fd4\u56de\u7684Token\u6570\u91cf \u8fd4\u56de\u503c\uff1aToken\u5217\u8868","title":"walletsolidity/getpaginatedassetissuelist"},{"location":"api/http/#walletsoliditygetassetissuebyname","text":"\u4f5c\u7528\uff1a\u6839\u636e\u540d\u79f0\u67e5\u8be2token\u3002 curl -X POST http://127.0.0.1:8091/walletsolidity/getassetissuebyname -d '{\"value\": \"44756354616E\"}' \u53c2\u6570\u8bf4\u660e\uff1a\u901a\u8bc1\u540d\u79f0\uff0c\u9ed8\u8ba4\u4e3ahexString\u3002 \u8fd4\u56de\u503c\uff1atoken\u3002 \u6ce8\u610f\uff1aOdyssey-v3.2\u5f00\u59cb\uff0c\u63a8\u8350\u4f7f\u7528getassetissuebyid\u6216\u8005getassetissuelistbyname\u66ff\u6362\u6b64\u63a5\u53e3\uff0c\u56e0\u4e3a\u4ece3.2\u5f00\u59cb\u5c06\u5141\u8bb8\u901a\u8bc1\u540d\u79f0\u76f8\u540c\u3002\u5982\u679c\u5b58\u5728\u76f8\u540c\u7684\u901a\u8bc1\u540d\u79f0\uff0c\u6b64\u63a5\u53e3\u5c06\u4f1a\u62a5\u9519\u3002","title":"walletsolidity/getassetissuebyname"},{"location":"api/http/#walletsoliditygetassetissuelistbyname","text":"\u4f5c\u7528\uff1a\u6839\u636e\u540d\u79f0\u67e5\u8be2token list\u3002 curl -X POST http://127.0.0.1:8091/walletsolidity/getassetissuelistbyname -d '{\"value\": \"44756354616E\"}' \u53c2\u6570\u8bf4\u660e\uff1a\u901a\u8bc1\u540d\u79f0\uff0c\u9ed8\u8ba4\u4e3ahexString\u3002 \u8fd4\u56de\u503c\uff1atoken\u5217\u8868\u3002","title":"walletsolidity/getassetissuelistbyname"},{"location":"api/http/#walletsoliditygetassetissuebyid","text":"\u4f5c\u7528\uff1a\u6839\u636eid\u67e5\u8be2token\u3002 curl -X POST http://127.0.0.1:8091/walletsolidity/getassetissuebyid -d '{\"value\": \"1000001\"}' \u53c2\u6570\u8bf4\u660e\uff1a\u901a\u8bc1id \u8fd4\u56de\u503c\uff1atoken\u3002","title":"walletsolidity/getassetissuebyid"},{"location":"api/http/#_9","text":"","title":"\u533a\u5757"},{"location":"api/http/#walletsoliditygetnowblock","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u6700\u65b0block curl -X POST http://127.0.0.1:8091/walletsolidity/getnowblock \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c\uff1asolidityNode\u4e0a\u7684\u6700\u65b0block","title":"walletsolidity/getnowblock"},{"location":"api/http/#walletsoliditygetblockbynum","text":"\u4f5c\u7528\uff1a\u6309\u7167\u9ad8\u5ea6\u67e5\u8be2block curl -X POST http://127.0.0.1:8091/walletsolidity/getblockbynum -d '{\"num\" : 100}' \u53c2\u6570\u8bf4\u660e\uff1anum\u662f\u5757\u7684\u9ad8\u5ea6 \u8fd4\u56de\u503c\uff1a\u6307\u5b9a\u9ad8\u5ea6\u7684block","title":"walletsolidity/getblockbynum"},{"location":"api/http/#walletsoliditygetblockbyid","text":"\u4f5c\u7528\uff1a\u901a\u8fc7ID\u67e5\u8be2\u5757 curl -X POST http://127.0.0.1:8091/walletsolidity/getblockbyid-d '{\"value\": \"0000000000038809c59ee8409a3b6c051e369ef1096603c7ee723c16e2376c73\"}' \u53c2\u6570\u8bf4\u660e\uff1a\u5757ID\u3002 \u8fd4\u56de\u503c\uff1a\u5757\u3002","title":"walletsolidity/getblockbyid"},{"location":"api/http/#walletsoliditygetblockbylimitnext","text":"\u4f5c\u7528\uff1a\u6309\u7167\u8303\u56f4\u67e5\u8be2\u5757 curl -X POST http://127.0.0.1:8091/walletsolidity/getblockbylimitnext -d '{\"startNum\": 1, \"endNum\": 2}' \u53c2\u6570\u8bf4\u660e\uff1a startNum \uff1a\u8d77\u59cb\u5757\u9ad8\u5ea6\uff0c\u5305\u542b\u6b64\u5757 endNum \uff1a\u622a\u6b62\u5757\u9ad8\u5ea6\uff0c\u4e0d\u5305\u542b\u6b64\u6b64\u5757 \u8fd4\u56de\u503c\uff1a\u5757\u7684\u5217\u8868\u3002","title":"walletsolidity/getblockbylimitnext"},{"location":"api/http/#walletsoliditygetblockbylatestnum","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u6700\u65b0\u7684\u51e0\u4e2a\u5757 curl -X POST http://127.0.0.1:8091/walletsolidity/getblockbylatestnum -d '{\"num\": 5}' \u53c2\u6570\u8bf4\u660e\uff1a\u5757\u7684\u6570\u91cf\u3002 \u8fd4\u56de\u503c\uff1a\u5757\u7684\u5217\u8868\u3002","title":"walletsolidity/getblockbylatestnum"},{"location":"api/http/#walletgetnodeinfo_1","text":"\u4f5c\u7528\uff1a\u83b7\u53d6\u5f53\u524dnode\u7684\u4fe1\u606f curl -X GET http://127.0.0.1:8091/wallet/getnodeinfo \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c\uff1a\u5f53\u524d\u8282\u70b9\u7684\u4fe1\u606fNodeInfo","title":"wallet/getnodeinfo"},{"location":"api/http/#_10","text":"","title":"\u4ea4\u6613"},{"location":"api/http/#walletsoliditygettransactionbyid","text":"\u4f5c\u7528\uff1a\u6839\u636eid\u67e5\u8be2\u4ea4\u6613 curl -X POST http://127.0.0.1:8091/walletsolidity/gettransactionbyid -d '{\"value\" : \"309b6fa3d01353e46f57dd8a8f27611f98e392b50d035cef213f2c55225a8bd2\"}' \u53c2\u6570\u8bf4\u660e\uff1avalue\u662f\u4ea4\u6613id \u8fd4\u56de\u503c\uff1a\u6307\u5b9aID\u7684Transaction","title":"walletsolidity/gettransactionbyid"},{"location":"api/http/#walletsoliditygettransactioncountbyblocknum","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u7279\u5b9ablock\u4e0atransaction\u7684\u4e2a\u6570 curl -X POST http://127.0.0.1:8091/walletsolidity/gettransactioncountbyblocknum -d '{\"num\" : 100}' \u53c2\u6570\u8bf4\u660e\uff1anum\u662f\u5757\u7684\u9ad8\u5ea6 \u8fd4\u56de\u503c\uff1atransaction\u7684\u4e2a\u6570","title":"walletsolidity/gettransactioncountbyblocknum"},{"location":"api/http/#walletsoliditygettransactioninfobyid","text":"\u4f5c\u7528\uff1a\u6839\u636eid\u67e5\u8be2\u4ea4\u6613\u7684fee\uff0c\u6240\u5728\u7684block curl -X POST http://127.0.0.1:8091/walletsolidity/gettransactioninfobyid -d '{\"value\" : \"309b6fa3d01353e46f57dd8a8f27611f98e392b50d035cef213f2c55225a8bd2\"}' \u53c2\u6570\u8bf4\u660e\uff1avalue\u662f\u4ea4\u6613id \u8fd4\u56de\u503c\uff1aTransaction\u7684\u4ea4\u6613fee\uff0c\u6240\u5728block\u7684\u9ad8\u5ea6\uff0c\u521b\u5efa\u65f6\u95f4","title":"walletsolidity/gettransactioninfobyid"},{"location":"api/http/#walletsoliditygettransactioninfobyblocknum","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u7279\u5b9ablock\u4e0atransaction\u7684\u4e2a\u6570 curl -X POST http://127.0.0.1:8091/walletsolidity/gettransactioninfobyblocknum -d '{\"num\" : 100}' \u53c2\u6570\u8bf4\u660e\uff1anum\u662f\u5757\u7684\u9ad8\u5ea6 \u8fd4\u56de\u503c\uff1a\u6307\u5b9a\u5757\u4e2d\uff0c\u5305\u542b\u7684transactioninfo\u7684\u5217\u8868","title":"walletsolidity/gettransactioninfobyblocknum"},{"location":"api/http/#_11","text":"","title":"\u53bb\u4e2d\u5fc3\u5316\u4ea4\u6613\u6240"},{"location":"api/http/#walletsoliditygetexchangebyid","text":"\u4f5c\u7528\uff1a\u6839\u636eid\u67e5\u8be2\u4ea4\u6613\u5bf9 curl -X POST http://127.0.0.1:8091/walletsolidity/getexchangebyid -d {\"id\":1} \u53c2\u6570\u8bf4\u660e\uff1a id\uff1a\u4ea4\u6613\u5bf9id \u8fd4\u56de\u503c\uff1a\u4ea4\u6613\u5bf9","title":"walletsolidity/getexchangebyid"},{"location":"api/http/#walletsoliditylistexchanges","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u6240\u6709\u4ea4\u6613\u5bf9 curl -X POST http://127.0.0.1:8091/walletsolidity/listexchanges \u53c2\u6570\u8bf4\u660e\uff1a\u65e0 \u8fd4\u56de\u503c\uff1a\u6240\u6709\u4ea4\u6613\u5bf9","title":"walletsolidity/listexchanges"},{"location":"api/http/#tronz_1","text":"","title":"TRONZ\u533f\u540d\u667a\u80fd\u5408\u7ea6"},{"location":"api/http/#walletsoliditygetmerkletreevoucherinfo","text":"\u4f5c\u7528\uff1a\u83b7\u5f97\u4e00\u4e2anote\u7684\u9ed8\u514b\u5c14\u6811\u4fe1\u606f curl -X POST http://127.0.0.1:8090/walletsolidity/getmerkletreevoucherinfo -d '{ \"out_points\":[{ \"hash\":\"185b3e085723f5862b3a3c3cf54d52f5c1eaf2541e3a1e0ecd08bc12cd958d74\", \"index\":0 }] }' \u53c2\u6570\u8bf4\u660e\uff1a out_points \uff1aNote\u4fe1\u606f \u8fd4\u56de\u503c\uff1a\u4e00\u4e2anote\u7684\u9ed8\u514b\u5c14\u6811\u4fe1\u606f","title":"walletsolidity/getmerkletreevoucherinfo"},{"location":"api/http/#walletsolidityscannotebyivk","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u4e0eivk\u76f8\u5173\u7684\u6240\u6709\u7684notes curl -X POST http://127.0.0.1:8090/walletsolidity/scannotebyivk -d '{ \"start_block_index\": 0, \"end_block_index\": 100, \"ivk\": \"80a481c3c739e54b4e0608090b3a1a6e9f8dce42346e95bf5a2d8a487bf45c05\" }' \u53c2\u6570\u8bf4\u660e\uff1a start_block_index \uff1a\u5f00\u59cb\u533a\u5757\u9ad8\u5ea6\uff0c\u5305\u542b\u81ea\u8eab end_block_index \uff1a\u7ed3\u675f\u533a\u5757\u9ad8\u5ea6\uff0c\u4e0d\u5305\u542b\u81ea\u8eab ivk \uff1aIncoming viewing key \u8fd4\u56de\u503c\uff1aNotes\u5217\u8868 \u6ce8\u610f\uff1a\u533a\u95f4\u9650\u5236\uff08end_block_index - start_block_index <= 1000\uff09","title":"walletsolidity/scannotebyivk"},{"location":"api/http/#walletsolidityscanandmarknotebyivk","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u4e0eivk\u76f8\u5173\u7684\u6240\u6709\u7684notes, \u5305\u542b\u662f\u5426\u82b1\u8d39\u72b6\u6001 curl -X POST http://127.0.0.1:8090/walletsolidity/scanandmarknotebyivk -d '{ \"start_block_index\": 0, \"end_block_index\": 100, \"ivk\": \"80a481c3c739e54b4e0608090b3a1a6e9f8dce42346e95bf5a2d8a487bf45c05\", \"ak\": \"1d4f9b5551f4aa9443ceb263f0e208eb7e26080264571c5ef06de97a646fe418\", \"nk\": \"748522c7571a9da787e43940c9a474aa0c5c39b46c338905deb6726fa3678bdb\" }' \u53c2\u6570\u8bf4\u660e\uff1a start_block_index \uff1a\u5f00\u59cb\u533a\u5757\u9ad8\u5ea6\uff0c\u5305\u542b\u81ea\u8eab end_block_index \uff1a\u7ed3\u675f\u533a\u5757\u9ad8\u5ea6\uff0c\u4e0d\u5305\u542b\u81ea\u8eab ivk \uff1aIncoming viewing key ak \uff1aAk key nk \uff1aNk key \u8fd4\u56de\u503c\uff1aNotes\u5217\u8868 \u6ce8\u610f\uff1a\u533a\u95f4\u9650\u5236\uff08end_block_index - start_block_index <= 1000\uff09","title":"walletsolidity/scanandmarknotebyivk"},{"location":"api/http/#walletsolidityscannotebyovk","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u4e0eovk\u76f8\u5173\u7684\u6240\u6709\u7684notes curl -X POST http://127.0.0.1:8090/walletsolidity/scannotebyovk -d '{ \"start_block_index\": 0, \"end_block_index\": 100, \"ovk\": \"705145aa18cbe6c11d5d0011419a98f3d5b1d341eb4727f1315597f4bdaf8539\" }' \u53c2\u6570\u8bf4\u660e\uff1a start_block_index \uff1a\u5f00\u59cb\u533a\u5757\u9ad8\u5ea6\uff0c\u5305\u542b\u81ea\u8eab end_block_index \uff1a\u7ed3\u675f\u533a\u5757\u9ad8\u5ea6\uff0c\u4e0d\u5305\u542b\u81ea\u8eab ovk \uff1aOutgoing viewing key \u8fd4\u56de\u503c\uff1aNotes\u5217\u8868 \u6ce8\u610f\uff1a\u533a\u95f4\u9650\u5236\uff08end_block_index - start_block_index <= 1000\uff09","title":"walletsolidity/scannotebyovk"},{"location":"api/http/#walletsolidityisspend","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u4e00\u4e2anote\u662f\u5426\u5df2\u7ecf\u88ab\u82b1\u8d39 curl -X POST http://127.0.0.1:8090/walletsolidity/isspend -d '{ \"ak\": \"a3e65d509b675aaa2aeda977ceff11eebd76218079b6f543d78a615e396ca129\", \"nk\": \"62cfda9bea09a53cf2a21022057913734a8458969e11e0bb9c59ead48fbce83e\", \"note\": { \"payment_address\": \"ztron1aqgauawtkelxfu2w6s48cwh0mchjt6kwpj44l4wym3pullx0294j4r4v7kpm75wnclzycsw73mq\", \"rcm\": \"74a16c1b27ec7fbf06881d9d35ddaab1554838b1bddcd54f6bd8a9fb4ba0b80a\", \"value\": 500000000 }, \"txid\": \"7d09e471bb047d3ac044d5d6691b3721a2dddbb683ac02c207fbe78af6302463\", \"index\": 1 }' \u53c2\u6570\u8bf4\u660e\uff1a ak \uff1aAk nk \uff1aNk note \uff1aNote\u4fe1\u606f txid \uff1a\u4ea4\u6613id index \uff1aNote\u7d22\u5f15 \u8fd4\u56de\u503c\uff1a\u4e00\u4e2anote\u662f\u5426\u5df2\u7ecf\u88ab\u82b1\u8d39\u72b6\u6001","title":"walletsolidity/isspend"},{"location":"api/http/#walletsolidityscanshieldedtrc20notesbyivk","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u533f\u540dTRC20\u5408\u7ea6\u4e2d\u4e0eivk\u76f8\u5173\u7684\u6240\u6709notes, \u5e76\u6807\u8bb0\u5176\u662f\u5426\u5df2\u82b1\u8d39 curl -X POST http://127.0.0.1:8091/walletsolidity/scanshieldedtrc20notesbyivk -d '{ \"start_block_index\": 9200, \"end_block_index\": 9240, \"shielded_TRC20_contract_address\": \"41274fc7464fadac5c00c893c58bce6c39bf59e4c7\", \"ivk\": \"9f8e74bb3d7188a2781dc1db38810c6914eef4570a79e8ec8404480948e4e305\", \"ak\":\"8072d9110c9de9d9ade33d5d0f5890a7aa65b0cde42af7816d187297caf2fd64\", \"nk\":\"590bf33f93f792be659fd404df91e75c3b08d38d4e08ee226c3f5219cf598f14\" }' \u53c2\u6570\u8bf4\u660e\uff1a start_block_index \uff1a\u5f00\u59cb\u533a\u5757\u9ad8\u5ea6\uff0c\u5305\u542b\u81ea\u8eab end_block_index \uff1a\u7ed3\u675f\u533a\u5757\u9ad8\u5ea6\uff0c\u4e0d\u5305\u542b\u81ea\u8eab shielded_TRC20_contract_address : \u533f\u540dTRC20\u5408\u7ea6\u5730\u5740 ivk \uff1aIncoming viewing key ak \uff1aAk key nk \uff1aNk key \u8fd4\u56de\u503c\uff1aNotes\u5217\u8868 \u6ce8\u610f\uff1a\u533a\u95f4\u9650\u5236\uff08end_block_index - start_block_index <= 1000\uff09","title":"walletsolidity/scanshieldedtrc20notesbyivk"},{"location":"api/http/#walletsolidityscanshieldedtrc20notesbyovk","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u533f\u540dTRC20\u5408\u7ea6\u4e2d\u4e0eovk\u76f8\u5173\u7684\u6240\u6709notes curl -X POST http://127.0.0.1:8091/walletsolidity/scanshieldedtrc20notesbyovk -d '{ \"start_block_index\": 9200, \"end_block_index\": 9240, \"shielded_TRC20_contract_address\": \"41274fc7464fadac5c00c893c58bce6c39bf59e4c7\", \"ovk\": \"0ff58efd75e083fe4fd759c8701e1c8cb6961c4297a12b2c800bdb7b2bcab889\" }' \u53c2\u6570\u8bf4\u660e\uff1a start_block_index \uff1a\u5f00\u59cb\u533a\u5757\u9ad8\u5ea6\uff0c\u5305\u542b\u81ea\u8eab end_block_index \uff1a\u7ed3\u675f\u533a\u5757\u9ad8\u5ea6\uff0c\u4e0d\u5305\u542b\u81ea\u8eab shielded_TRC20_contract_address : \u533f\u540dTRC20\u5408\u7ea6\u5730\u5740 ovk \uff1aOutgoing viewing key \u8fd4\u56de\u503c\uff1aNotes\u5217\u8868 \u6ce8\u610f\uff1a\u533a\u95f4\u9650\u5236\uff08end_block_index - start_block_index <= 1000\uff09","title":"walletsolidity/scanshieldedtrc20notesbyovk"},{"location":"api/http/#walletsolidityisshieldedtrc20contractnotespent","text":"\u4f5c\u7528\uff1a\u67e5\u8be2\u533f\u540dTRC20\u5408\u7ea6\u7684note\u662f\u5426\u5df2\u88ab\u82b1\u8d39 curl -X POST http://127.0.0.1:8091/walletsolidity/scanshieldedtrc20notesbyovk -d '{ \"note\": { \"value\": 40, \"payment_address\":\"ztron1768kf7dy4qquefp46szk978d65eeua66yhr4zv260c0uzj68t3tfjl3en9lhyyfxalv4jus30xs\", \"rcm\": \"296070782a94c6936b0b4f6daf8d7c7605a4374fe595b96148dc0f4b59015d0d\" }, \"ak\": \"8072d9110c9de9d9ade33d5d0f5890a7aa65b0cde42af7816d187297caf2fd64\", \"nk\": \"590bf33f93f792be659fd404df91e75c3b08d38d4e08ee226c3f5219cf598f14\", \"position\": 272, \"shielded_TRC20_contract_address\": \"41274fc7464fadac5c00c893c58bce6c39bf59e4c7\" }' \u53c2\u6570\u8bf4\u660e\uff1a note \uff1aNote\u4fe1\u606f ak \uff1aAk nk \uff1aNk position \uff1anote\u627f\u8bfa\u5728\u533f\u540d\u5408\u7ea6Merkle\u6811\u53f6\u5b50\u8282\u70b9\u7684\u4f4d\u7f6e\u7d22\u5f15 shielded_TRC20_contract_address : \u533f\u540dTRC20\u5408\u7ea6\u5730\u5740 \u8fd4\u56de\u503c\uff1a\u4e00\u4e2anote\u662f\u5426\u5df2\u7ecf\u88ab\u82b1\u8d39\u72b6\u6001 \u6ce8\u610f: Note \u4e2d value \u662f\u7531 scalingFactor \u7f29\u653e\u540e\u7684\u503c\uff0c scalingFactor \u5728\u533f\u540dTRC-20\u5408\u7ea6\u4e2d\u8bbe\u7f6e\uff0c\u5b9e\u9645\u91d1\u989d real_amount = value * scalingFactor \u3002","title":"walletsolidity/isshieldedtrc20contractnotespent"},{"location":"api/rpc/","text":"RPC List \u00b6 For the specific definition of API, please refer to the following link: api/api.proto core/Contract.proto . Note SolidityNode is deprecated. Now a FullNode supports all RPCs of a SolidityNode. New developers should deploy FullNode only. 1. Get account information rpc GetAccount ( Account ) returns ( Account ) {} Nodes: Fullnode and SolidityNode 2. TRX transfer rpc CreateTransaction ( TransferContract ) returns ( Transaction ) {} Nodes: Fullnode 3. Broadcast transaction rpc BroadcastTransaction ( Transaction ) returns ( Return ) {} Nodes: Fullnode Description: Transfer, vote, issuance of token, or participation in token offering. Sending signed transaction information to node, and broadcasting it to the entire network after witness verification. 4. Create an account rpc CreateAccount ( AccountCreateContract ) returns ( Transaction ) {} Nodes: FullNode 5. Account name update rpc UpdateAccount ( AccountUpdateContract ) returns ( Transaction ) {} Nodes: Fullnode 6. Vote for super representative candidates rpc VoteWitnessAccount ( VoteWitnessContract ) returns ( Transaction ) {} Nodes: FullNode 7. Query the ratio of brokerage of the witness rpc GetBrokerageInfo ( BytesMessage ) returns ( NumberMessage ) {} Nodes: FullNode 8. Query unclaimed reward rpc GetRewardInfo ( BytesMessage ) returns ( NumberMessage ) {} Nodes: FullNode 9. Update the ratio of brokerage rpc UpdateBrokerage ( UpdateBrokerageContract ) returns ( TransactionExtention ) {} Nodes: FullNode 10. Issue a token rpc CreateAssetIssue ( AssetIssueContract ) returns ( Transaction ) {} Nodes: FullNode 11. Query of list of super representative candidates rpc ListWitnesses ( EmptyMessage ) returns ( WitnessList ) {} Nodes: FullNode and SolidityNode 12. Application for super representative rpc CreateWitness ( WitnessCreateContract ) returns ( Transaction ) {} Nodes: FullNode Description: To apply to become TRON\u2019s Super Representative candidate. 13. Information update of Super Representative candidates rpc UpdateWitness ( WitnessUpdateContract ) returns ( Transaction ) {} Nodes: FullNode Description: Update the website url of the SR. 14. Token transfer rpc TransferAsset ( TransferAssetContract ) returns ( Transaction ){} Node: FullNode 15. Participate a token rpc ParticipateAssetIssue ( ParticipateAssetIssueContract ) returns ( Transaction ) {} Nodes: FullNode 16. Query the list of nodes connected to the ip of the api rpc ListNodes ( EmptyMessage ) returns ( NodeList ) {} Nodes: FullNode and SolidityNode 17. Query the list of all issued tokens rpc GetAssetIssueList ( EmptyMessage ) returns ( AssetIssueList ) {} Nodes: FullNode and SolidityNode 18. Query the token issued by a given account rpc GetAssetIssueByAccount ( Account ) returns ( AssetIssueList ) {} Nodes: FullNode and SolidityNode 19. Query the token information by token name rpc GetAssetIssueByName ( BytesMessage ) returns ( AssetIssueContract ) {} Nodes: FullNode and Soliditynode 20. Query the list of tokens by timestamp rpc GetAssetIssueListByTimestamp ( NumberMessage ) returns ( AssetIssueList ){} Nodes: SolidityNode 21. Get current block information rpc GetNowBlock ( EmptyMessage ) returns ( Block ) {} Nodes: FullNode and SolidityNode 22. Get a block by block height rpc GetBlockByNum ( NumberMessage ) returns ( Block ) {} Nodes: FullNode and SolidityNode 23. Get the total number of transactions rpc TotalTransaction ( EmptyMessage ) returns ( NumberMessage ) {} Nodes: FullNode and SolidityNode 24. Query the transaction by transaction id rpc getTransactionById ( BytesMessage ) returns ( Transaction ) {} Nodes: SolidityNode 25. Query the transaction by timestamp rpc getTransactionsByTimestamp ( TimeMessage ) returns ( TransactionList ) {} Nodes: SolidityNode 26. Query the transactions initiated by an account rpc getTransactionsFromThis ( Account ) returns ( TransactionList ) {} Nodes: SolidityNode 27. Query the transactions received by an account rpc getTransactionsToThis ( Account ) returns ( NumberMessage ) {} Nodes: SolidityNode 28. Freeze TRX \u8be5\u63a5\u53e3\u5df2\u5e9f\u5f03\u3002 rpc FreezeBalance ( FreezeBalanceContract ) returns ( Transaction ) {} Nodes: FullNode 29. Unfreeze TRX rpc UnfreezeBalance ( UnfreezeBalanceContract ) returns ( Transaction ) {} Nodes: FullNode 30. Block producing reward redemption rpc WithdrawBalance ( WithdrawBalanceContract ) returns ( Transaction ) {} Nodes: FullNode 31. Unfreeze token balance rpc UnfreezeAsset ( UnfreezeAssetContract ) returns ( Transaction ) {} Nodes: FullNode 32. Query the next maintenance time rpc GetNextMaintenanceTime ( EmptyMessage ) returns ( NumberMessage ) {} Nodes: FullNode 33. Query the transaction fee & block information rpc GetTransactionInfoById ( BytesMessage ) returns ( TransactionInfo ) {} Nodes: SolidityNode 34. Query block information by block id rpc GetBlockById ( BytesMessage ) returns ( Block ) {} Nodes: FullNode 35. Update token information rpc UpdateAsset ( UpdateAssetContract ) returns ( Transaction ) {} Nodes: Fullnode Description: Token update can only be initiated by the token issuer to update token description, url, maximum bandwidth consumption by each account and total bandwidth consumption. 36. Query the list of all the tokens by pagination rpc GetPaginatedAssetIssueList ( PaginatedMessage ) returns ( AssetIssueList ) {} Nodes: FullNode and SolidityNode 37. Deploy a smart contract rpc DeployContract ( CreateSmartContract ) returns ( TransactionExtention ) {} Nodes: FullNode and SolidityNode 38. Trigger a smart contract rpc TriggerContract ( TriggerSmartContract ) returns ( TransactionExtention ) {} Nodes: FullNode 39. Create a shielded transaction rpc CreateShieldedTransaction ( PrivateParameters ) returns ( TransactionExtention ) {} Nodes: FullNode 40. Get a Merkle tree information of a note rpc GetMerkleTreeVoucherInfo ( OutputPointInfo ) returns ( IncrementalMerkleVoucherInfo ) {} Nodes: FullNode 41. Scan note by ivk rpc ScanNoteByIvk ( IvkDecryptParameters ) returns ( DecryptNotes ) {} Nodes: FullNode 42. Scan note by ovk rpc ScanNoteByOvk ( OvkDecryptParameters ) returns ( DecryptNotes ) {} Nodes: FullNode 43. Get spending key rpc GetSpendingKey ( EmptyMessage ) returns ( BytesMessage ) {} Nodes: FullNode 44. Get expanded spending key rpc GetExpandedSpendingKey ( BytesMessage ) returns ( ExpandedSpendingKeyMessage ) {} Nodes: FullNode 45. Get ak from ask rpc GetAkFromAsk ( BytesMessage ) returns ( BytesMessage ) {} Nodes: FullNode 46. Get nk from nsk rpc GetNkFromNsk ( BytesMessage ) returns ( BytesMessage ) {} Nodes: FullNode 47. Get incoming viewing key rpc GetIncomingViewingKey ( ViewingKeyMessage ) returns ( IncomingViewingKeyMessage ) {} Nodes: FullNode 48. Get diversifier rpc GetDiversifier ( EmptyMessage ) returns ( DiversifierMessage ) {} Nodes: FullNode 49. Get zen payment address rpc GetZenPaymentAddress ( IncomingViewingKeyDiversifierMessage ) returns ( PaymentAddressMessage ) {} Nodes: FullNode 50. Get rcm rpc GetRcm ( EmptyMessage ) returns ( BytesMessage ) {} Nodes: FullNode 51. Get a note status of is spent or not rpc IsSpend ( NoteParameters ) returns ( SpendResult ) {} Nodes: FullNode 52. Create a shielded transaction without using ask rpc CreateShieldedTransactionWithoutSpendAuthSig ( PrivateParametersWithoutAsk ) returns ( TransactionExtention ) {} Nodes: FullNode 53. Create a shielded transaction hash rpc GetShieldTransactionHash ( Transaction ) returns ( BytesMessage ) {} Nodes: FullNode 54. Create a signature for a shielded transaction rpc CreateSpendAuthSig ( SpendAuthSigParameters ) returns ( BytesMessage ) {} Nodes: FullNode 55. Create a shield nullifier rpc CreateShieldNullifier ( NfParameters ) returns ( BytesMessage ) {} Nodes: FullNode 56. Get new shielded address rpc GetNewShieldedAddress ( EmptyMessage ) returns ( ShieldedAddressInfo ){} Nodes: FullNode 57. Create shielded contract parameters rpc CreateShieldedContractParameters ( PrivateShieldedTRC20Parameters ) returns ( ShieldedTRC20Parameters ) {} Nodes: FullNode 58. Create shielded contract parameters without ask rpc CreateShieldedContractParametersWithoutAsk ( PrivateShieldedTRC20ParametersWithoutAsk ) returns ( ShieldedTRC20Parameters ) {} Nodes: FullNode 59. Scan shielded TRC20 notes by ivk rpc ScanShieldedTRC20NotesbyIvk ( IvkDecryptTRC20Parameters ) returns ( DecryptNotesTRC20 ) {} Nodes: FullNode, SolidityNode 60. Scan shielded TRC20 notes by ovk rpc ScanShieldedTRC20NotesbyOvk ( OvkDecryptTRC20Parameters ) returns ( DecryptNotesTRC20 ) {} Nodes: FullNode, SolidityNode 61. Get the status of shielded TRC20 note of spent or not rpc IsShieldedTRC20ContractNoteSpent ( NfTRC20Parameters ) returns ( NullifierResult ) {} Nodes: FullNode, SolidityNode 62. Get the trigger input for the shielded TRC20 rpc GetTriggerInputForShieldedTRC20Contract ( ShieldedTRC20TriggerContractParameters ) returns ( BytesMessage ) {} Nodes: FullNode 63. Create an market order rpc MarketSellAsset (MarketSellAssetContract) returns (TransactionExtention) {}; Nodes: FullNode 64. Cancel the order rpc MarketCancelOrder (MarketCancelOrderContract) returns (TransactionExtention) {}; Nodes: FullNode 65. Get all orders for the account rpc GetMarketOrderByAccount (BytesMessage) returns (MarketOrderList) {}; Nodes: FullNode 66. Get all trading pairs rpc GetMarketPairList (EmptyMessage) returns (MarketOrderPairList) {}; Nodes: FullNode 67. Get all orders for the trading pair rpc GetMarketOrderListByPair (MarketOrderPair) returns (MarketOrderList) {}; Nodes: FullNode 68. Get all prices for the trading pair rpc GetMarketPriceByPair (MarketOrderPair) returns (MarketPriceList) {}; Nodes: FullNode 69. Get order by id rpc GetMarketOrderById (BytesMessage) returns (MarketOrder) {}; Nodes: FullNode 70. perform a historical balance lookup rpc GetAccountBalance (AccountBalanceRequest) returns (AccountBalanceResponse){}; Nodes: FullNode 71. fetch all balance-changing transactions in a block rpc GetBlockBalanceTrace (BlockBalanceTrace.BlockIdentifier) returns (BlockBalanceTrace) {}; Nodes: FullNode 72. get the burn trx amount rpc GetBurnTrx (EmptyMessage) returns (NumberMessage) {}; Nodes: FullNode and SolidityNode 73. Freeze TRX rpc FreezeBalanceV2 ( FreezeBalanceV2Contract ) returns ( TransactionExtention ) {} Nodes: FullNode 74. UnFreeze TRX rpc UnfreezeBalanceV2 ( UnfreezeBalanceV2Contract ) returns ( TransactionExtention ) {} Nodes: FullNode 75. Withdraw Staked TRX rpc WithdrawExpireUnfreeze ( WithdrawExpireUnfreezeContract ) returns ( TransactionExtention ) {} Nodes: FullNode 76. Delegate Resource rpc DelegateResource ( DelegateResourceContract ) returns ( TransactionExtention ) {} Nodes: FullNode 77. UnDelegate Resource rpc UnDelegateResource ( UnDelegateResourceContract ) returns ( TransactionExtention ) {} Nodes: FullNode 78. Query transaction information in the pending pool rpc GetTransactionFromPending (BytesMessage) returns (Transaction) {}; Nodes: FullNode 79. Query the pending pool transaction id list rpc GetTransactionListFromPending (EmptyMessage) returns (TransactionIdList) {}; Nodes: FullNode 80. Query the size of the pending pool rpc GetPendingSize (EmptyMessage) returns (NumberMessage) {}; Nodes: FullNode 81. Cancel UnFreeze rpc CancelAllUnfreezeV2 ( CancelAllUnfreezeV2Contract ) returns ( TransactionExtention ) {} Nodes: FullNode 82. Get bandwidth unit price rpc GetBandwidthPrices ( EmptyMessage ) returns ( PricesResponseMessage ) {} Nodes: FullNode 83. Get energy unit price rpc GetEnergyPrices ( EmptyMessage ) returns ( PricesResponseMessage ) {} Nodes: FullNode 84. Get transaction memo fee rpc GetMemoFee ( EmptyMessage ) returns ( PricesResponseMessage ) {} Nodes: FullNodes","title":"gRPC \u63a5\u53e3"},{"location":"api/rpc/#rpc-list","text":"For the specific definition of API, please refer to the following link: api/api.proto core/Contract.proto . Note SolidityNode is deprecated. Now a FullNode supports all RPCs of a SolidityNode. New developers should deploy FullNode only. 1. Get account information rpc GetAccount ( Account ) returns ( Account ) {} Nodes: Fullnode and SolidityNode 2. TRX transfer rpc CreateTransaction ( TransferContract ) returns ( Transaction ) {} Nodes: Fullnode 3. Broadcast transaction rpc BroadcastTransaction ( Transaction ) returns ( Return ) {} Nodes: Fullnode Description: Transfer, vote, issuance of token, or participation in token offering. Sending signed transaction information to node, and broadcasting it to the entire network after witness verification. 4. Create an account rpc CreateAccount ( AccountCreateContract ) returns ( Transaction ) {} Nodes: FullNode 5. Account name update rpc UpdateAccount ( AccountUpdateContract ) returns ( Transaction ) {} Nodes: Fullnode 6. Vote for super representative candidates rpc VoteWitnessAccount ( VoteWitnessContract ) returns ( Transaction ) {} Nodes: FullNode 7. Query the ratio of brokerage of the witness rpc GetBrokerageInfo ( BytesMessage ) returns ( NumberMessage ) {} Nodes: FullNode 8. Query unclaimed reward rpc GetRewardInfo ( BytesMessage ) returns ( NumberMessage ) {} Nodes: FullNode 9. Update the ratio of brokerage rpc UpdateBrokerage ( UpdateBrokerageContract ) returns ( TransactionExtention ) {} Nodes: FullNode 10. Issue a token rpc CreateAssetIssue ( AssetIssueContract ) returns ( Transaction ) {} Nodes: FullNode 11. Query of list of super representative candidates rpc ListWitnesses ( EmptyMessage ) returns ( WitnessList ) {} Nodes: FullNode and SolidityNode 12. Application for super representative rpc CreateWitness ( WitnessCreateContract ) returns ( Transaction ) {} Nodes: FullNode Description: To apply to become TRON\u2019s Super Representative candidate. 13. Information update of Super Representative candidates rpc UpdateWitness ( WitnessUpdateContract ) returns ( Transaction ) {} Nodes: FullNode Description: Update the website url of the SR. 14. Token transfer rpc TransferAsset ( TransferAssetContract ) returns ( Transaction ){} Node: FullNode 15. Participate a token rpc ParticipateAssetIssue ( ParticipateAssetIssueContract ) returns ( Transaction ) {} Nodes: FullNode 16. Query the list of nodes connected to the ip of the api rpc ListNodes ( EmptyMessage ) returns ( NodeList ) {} Nodes: FullNode and SolidityNode 17. Query the list of all issued tokens rpc GetAssetIssueList ( EmptyMessage ) returns ( AssetIssueList ) {} Nodes: FullNode and SolidityNode 18. Query the token issued by a given account rpc GetAssetIssueByAccount ( Account ) returns ( AssetIssueList ) {} Nodes: FullNode and SolidityNode 19. Query the token information by token name rpc GetAssetIssueByName ( BytesMessage ) returns ( AssetIssueContract ) {} Nodes: FullNode and Soliditynode 20. Query the list of tokens by timestamp rpc GetAssetIssueListByTimestamp ( NumberMessage ) returns ( AssetIssueList ){} Nodes: SolidityNode 21. Get current block information rpc GetNowBlock ( EmptyMessage ) returns ( Block ) {} Nodes: FullNode and SolidityNode 22. Get a block by block height rpc GetBlockByNum ( NumberMessage ) returns ( Block ) {} Nodes: FullNode and SolidityNode 23. Get the total number of transactions rpc TotalTransaction ( EmptyMessage ) returns ( NumberMessage ) {} Nodes: FullNode and SolidityNode 24. Query the transaction by transaction id rpc getTransactionById ( BytesMessage ) returns ( Transaction ) {} Nodes: SolidityNode 25. Query the transaction by timestamp rpc getTransactionsByTimestamp ( TimeMessage ) returns ( TransactionList ) {} Nodes: SolidityNode 26. Query the transactions initiated by an account rpc getTransactionsFromThis ( Account ) returns ( TransactionList ) {} Nodes: SolidityNode 27. Query the transactions received by an account rpc getTransactionsToThis ( Account ) returns ( NumberMessage ) {} Nodes: SolidityNode 28. Freeze TRX \u8be5\u63a5\u53e3\u5df2\u5e9f\u5f03\u3002 rpc FreezeBalance ( FreezeBalanceContract ) returns ( Transaction ) {} Nodes: FullNode 29. Unfreeze TRX rpc UnfreezeBalance ( UnfreezeBalanceContract ) returns ( Transaction ) {} Nodes: FullNode 30. Block producing reward redemption rpc WithdrawBalance ( WithdrawBalanceContract ) returns ( Transaction ) {} Nodes: FullNode 31. Unfreeze token balance rpc UnfreezeAsset ( UnfreezeAssetContract ) returns ( Transaction ) {} Nodes: FullNode 32. Query the next maintenance time rpc GetNextMaintenanceTime ( EmptyMessage ) returns ( NumberMessage ) {} Nodes: FullNode 33. Query the transaction fee & block information rpc GetTransactionInfoById ( BytesMessage ) returns ( TransactionInfo ) {} Nodes: SolidityNode 34. Query block information by block id rpc GetBlockById ( BytesMessage ) returns ( Block ) {} Nodes: FullNode 35. Update token information rpc UpdateAsset ( UpdateAssetContract ) returns ( Transaction ) {} Nodes: Fullnode Description: Token update can only be initiated by the token issuer to update token description, url, maximum bandwidth consumption by each account and total bandwidth consumption. 36. Query the list of all the tokens by pagination rpc GetPaginatedAssetIssueList ( PaginatedMessage ) returns ( AssetIssueList ) {} Nodes: FullNode and SolidityNode 37. Deploy a smart contract rpc DeployContract ( CreateSmartContract ) returns ( TransactionExtention ) {} Nodes: FullNode and SolidityNode 38. Trigger a smart contract rpc TriggerContract ( TriggerSmartContract ) returns ( TransactionExtention ) {} Nodes: FullNode 39. Create a shielded transaction rpc CreateShieldedTransaction ( PrivateParameters ) returns ( TransactionExtention ) {} Nodes: FullNode 40. Get a Merkle tree information of a note rpc GetMerkleTreeVoucherInfo ( OutputPointInfo ) returns ( IncrementalMerkleVoucherInfo ) {} Nodes: FullNode 41. Scan note by ivk rpc ScanNoteByIvk ( IvkDecryptParameters ) returns ( DecryptNotes ) {} Nodes: FullNode 42. Scan note by ovk rpc ScanNoteByOvk ( OvkDecryptParameters ) returns ( DecryptNotes ) {} Nodes: FullNode 43. Get spending key rpc GetSpendingKey ( EmptyMessage ) returns ( BytesMessage ) {} Nodes: FullNode 44. Get expanded spending key rpc GetExpandedSpendingKey ( BytesMessage ) returns ( ExpandedSpendingKeyMessage ) {} Nodes: FullNode 45. Get ak from ask rpc GetAkFromAsk ( BytesMessage ) returns ( BytesMessage ) {} Nodes: FullNode 46. Get nk from nsk rpc GetNkFromNsk ( BytesMessage ) returns ( BytesMessage ) {} Nodes: FullNode 47. Get incoming viewing key rpc GetIncomingViewingKey ( ViewingKeyMessage ) returns ( IncomingViewingKeyMessage ) {} Nodes: FullNode 48. Get diversifier rpc GetDiversifier ( EmptyMessage ) returns ( DiversifierMessage ) {} Nodes: FullNode 49. Get zen payment address rpc GetZenPaymentAddress ( IncomingViewingKeyDiversifierMessage ) returns ( PaymentAddressMessage ) {} Nodes: FullNode 50. Get rcm rpc GetRcm ( EmptyMessage ) returns ( BytesMessage ) {} Nodes: FullNode 51. Get a note status of is spent or not rpc IsSpend ( NoteParameters ) returns ( SpendResult ) {} Nodes: FullNode 52. Create a shielded transaction without using ask rpc CreateShieldedTransactionWithoutSpendAuthSig ( PrivateParametersWithoutAsk ) returns ( TransactionExtention ) {} Nodes: FullNode 53. Create a shielded transaction hash rpc GetShieldTransactionHash ( Transaction ) returns ( BytesMessage ) {} Nodes: FullNode 54. Create a signature for a shielded transaction rpc CreateSpendAuthSig ( SpendAuthSigParameters ) returns ( BytesMessage ) {} Nodes: FullNode 55. Create a shield nullifier rpc CreateShieldNullifier ( NfParameters ) returns ( BytesMessage ) {} Nodes: FullNode 56. Get new shielded address rpc GetNewShieldedAddress ( EmptyMessage ) returns ( ShieldedAddressInfo ){} Nodes: FullNode 57. Create shielded contract parameters rpc CreateShieldedContractParameters ( PrivateShieldedTRC20Parameters ) returns ( ShieldedTRC20Parameters ) {} Nodes: FullNode 58. Create shielded contract parameters without ask rpc CreateShieldedContractParametersWithoutAsk ( PrivateShieldedTRC20ParametersWithoutAsk ) returns ( ShieldedTRC20Parameters ) {} Nodes: FullNode 59. Scan shielded TRC20 notes by ivk rpc ScanShieldedTRC20NotesbyIvk ( IvkDecryptTRC20Parameters ) returns ( DecryptNotesTRC20 ) {} Nodes: FullNode, SolidityNode 60. Scan shielded TRC20 notes by ovk rpc ScanShieldedTRC20NotesbyOvk ( OvkDecryptTRC20Parameters ) returns ( DecryptNotesTRC20 ) {} Nodes: FullNode, SolidityNode 61. Get the status of shielded TRC20 note of spent or not rpc IsShieldedTRC20ContractNoteSpent ( NfTRC20Parameters ) returns ( NullifierResult ) {} Nodes: FullNode, SolidityNode 62. Get the trigger input for the shielded TRC20 rpc GetTriggerInputForShieldedTRC20Contract ( ShieldedTRC20TriggerContractParameters ) returns ( BytesMessage ) {} Nodes: FullNode 63. Create an market order rpc MarketSellAsset (MarketSellAssetContract) returns (TransactionExtention) {}; Nodes: FullNode 64. Cancel the order rpc MarketCancelOrder (MarketCancelOrderContract) returns (TransactionExtention) {}; Nodes: FullNode 65. Get all orders for the account rpc GetMarketOrderByAccount (BytesMessage) returns (MarketOrderList) {}; Nodes: FullNode 66. Get all trading pairs rpc GetMarketPairList (EmptyMessage) returns (MarketOrderPairList) {}; Nodes: FullNode 67. Get all orders for the trading pair rpc GetMarketOrderListByPair (MarketOrderPair) returns (MarketOrderList) {}; Nodes: FullNode 68. Get all prices for the trading pair rpc GetMarketPriceByPair (MarketOrderPair) returns (MarketPriceList) {}; Nodes: FullNode 69. Get order by id rpc GetMarketOrderById (BytesMessage) returns (MarketOrder) {}; Nodes: FullNode 70. perform a historical balance lookup rpc GetAccountBalance (AccountBalanceRequest) returns (AccountBalanceResponse){}; Nodes: FullNode 71. fetch all balance-changing transactions in a block rpc GetBlockBalanceTrace (BlockBalanceTrace.BlockIdentifier) returns (BlockBalanceTrace) {}; Nodes: FullNode 72. get the burn trx amount rpc GetBurnTrx (EmptyMessage) returns (NumberMessage) {}; Nodes: FullNode and SolidityNode 73. Freeze TRX rpc FreezeBalanceV2 ( FreezeBalanceV2Contract ) returns ( TransactionExtention ) {} Nodes: FullNode 74. UnFreeze TRX rpc UnfreezeBalanceV2 ( UnfreezeBalanceV2Contract ) returns ( TransactionExtention ) {} Nodes: FullNode 75. Withdraw Staked TRX rpc WithdrawExpireUnfreeze ( WithdrawExpireUnfreezeContract ) returns ( TransactionExtention ) {} Nodes: FullNode 76. Delegate Resource rpc DelegateResource ( DelegateResourceContract ) returns ( TransactionExtention ) {} Nodes: FullNode 77. UnDelegate Resource rpc UnDelegateResource ( UnDelegateResourceContract ) returns ( TransactionExtention ) {} Nodes: FullNode 78. Query transaction information in the pending pool rpc GetTransactionFromPending (BytesMessage) returns (Transaction) {}; Nodes: FullNode 79. Query the pending pool transaction id list rpc GetTransactionListFromPending (EmptyMessage) returns (TransactionIdList) {}; Nodes: FullNode 80. Query the size of the pending pool rpc GetPendingSize (EmptyMessage) returns (NumberMessage) {}; Nodes: FullNode 81. Cancel UnFreeze rpc CancelAllUnfreezeV2 ( CancelAllUnfreezeV2Contract ) returns ( TransactionExtention ) {} Nodes: FullNode 82. Get bandwidth unit price rpc GetBandwidthPrices ( EmptyMessage ) returns ( PricesResponseMessage ) {} Nodes: FullNode 83. Get energy unit price rpc GetEnergyPrices ( EmptyMessage ) returns ( PricesResponseMessage ) {} Nodes: FullNode 84. Get transaction memo fee rpc GetMemoFee ( EmptyMessage ) returns ( PricesResponseMessage ) {} Nodes: FullNodes","title":"RPC List"},{"location":"architecture/database/","text":"\u6570\u636e\u5e93\u914d\u7f6e \u00b6 Java-tron\u6570\u636e\u5b58\u50a8\u652f\u6301\u4f7f\u7528 LevelDB \u6216\u8005 RocksDB\uff0c\u9ed8\u8ba4\u4f7f\u7528LevelDB\u3002\u60a8\u4e5f\u53ef\u4ee5\u9009\u62e9RocksDB\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u914d\u7f6e\u53c2\u6570\uff0c\u5141\u8bb8\u8282\u70b9\u6839\u636e\u81ea\u8eab\u673a\u5668\u914d\u7f6e\u60c5\u51b5\u8fdb\u884c\u8c03\u4f18\uff0c\u8282\u70b9\u6570\u636e\u5e93\u5360\u7528\u7684\u78c1\u76d8\u7a7a\u95f4\u76f8\u6bd4\u4e8eLevelDB\u66f4\u5c11\uff0c\u540c\u65f6RocksDB\u652f\u6301\u5728\u8fd0\u884c\u65f6\u8fdb\u884c\u6570\u636e\u5907\u4efd\uff0c\u5907\u4efd\u65f6\u95f4\u4ec5\u9700\u8981\u51e0\u79d2\u949f\u3002 \u4e0b\u9762\u4ecb\u7ecd\u5982\u4f55\u5c06Java-tron\u8282\u70b9\u7684\u5b58\u50a8\u5f15\u64ce\u8bbe\u7f6e\u6210RocksDB\uff0c\u4ee5\u53ca\u5982\u4f55\u8fdb\u884cleveldb\u548crocksdb\u7684\u6570\u636e\u8f6c\u6362\u3002 rocksdb \u00b6 1. config\u914d\u7f6e\u8bf4\u660e \u00b6 \u4f7f\u7528rocksdb\u4f5c\u4e3a\u6570\u636e\u5b58\u50a8\u5f15\u64ce\uff0c\u9700\u8981\u5c06db.engine\u914d\u7f6e\u9879\u8bbe\u7f6e\u4e3a\"ROCKSDB\" \u6ce8\u610f: rocksdb\u53ea\u652f\u6301db.version=2, \u4e0d\u652f\u6301db.version=1\u3002 rocksdb\u652f\u6301\u7684\u4f18\u5316\u53c2\u6570\u5982\u4e0b\uff1a 2. \u4f7f\u7528rocksdb\u6570\u636e\u5907\u4efd\u529f\u80fd \u00b6 \u9009\u62e9rocksdb\u4f5c\u4e3a\u6570\u636e\u5b58\u50a8\u5f15\u64ce\uff0c\u53ef\u4ee5\u4f7f\u7528\u5176\u63d0\u4f9b\u7684\u8fd0\u884c\u65f6\u6570\u636e\u5907\u4efd\u529f\u80fd\u3002 \u6ce8\u610f: FullNode\u53ef\u4ee5\u4f7f\u7528\u6570\u636e\u5907\u4efd\u529f\u80fd\uff1b\u4e3a\u4e86\u4e0d\u5f71\u54cdSuperNode\u7684\u4ea7\u5757\u6027\u80fd\uff0c\u6570\u636e\u5907\u4efd\u529f\u80fd\u4e0d\u652f\u6301SuperNode\uff0c\u4f46\u662fSuperNode\u7684\u5907\u4efd\u670d\u52a1\u8282\u70b9\u53ef\u4ee5\u4f7f\u7528\u6b64\u529f\u80fd\u3002 3. leveldb\u6570\u636e\u8f6c\u6362\u4e3arocksdb\u6570\u636e \u00b6 leveldb\u548crocksdb\u7684\u6570\u636e\u5b58\u50a8\u67b6\u6784\u5e76\u4e0d\u517c\u5bb9\uff0c\u8bf7\u786e\u4fdd\u8282\u70b9\u59cb\u7ec8\u4f7f\u7528\u540c\u4e00\u79cd\u6570\u636e\u5f15\u64ce\u3002\u6211\u4eec\u63d0\u4f9b\u4e86\u6570\u636e\u8f6c\u6362\u811a\u672c\uff0c\u7528\u4e8e\u5c06leveldb\u6570\u636e\u8f6c\u6362\u5230rocksdb\u6570\u636e\u3002 \u4f7f\u7528\u65b9\u6cd5\uff1a cd \u6e90\u4ee3\u7801\u6839\u76ee\u5f55 ./gradlew build #\u7f16\u8bd1\u6e90\u4ee3\u7801 java -jar build/libs/DBConvert.jar #\u6267\u884c\u6570\u636e\u8f6c\u6362\u6307\u4ee4 \u6ce8\u610f\uff1a\u5982\u679c\u8282\u70b9\u7684\u6570\u636e\u5b58\u50a8\u76ee\u5f55\u662f\u81ea\u5b9a\u4e49\u7684\uff0c\u8fd0\u884cDBConvert.jar\u65f6\u6dfb\u52a0\u4e0b\u97622\u4e2a\u53ef\u9009\u53c2\u6570\u3002 src_db_path :\u6307\u5b9aLevelDB\u6570\u636e\u5e93\u8def\u5f84\u6e90\uff0c\u9ed8\u8ba4\u662f output-directory/database dst_db_path :\u6307\u5b9aRocksDB\u6570\u636e\u5e93\u8def\u5f84\uff0c\u9ed8\u8ba4\u662f output-directory-dst/database \u4f8b\u5982\uff0c\u5982\u679c\u8282\u70b9\u662f\u50cf\u8fd9\u6837\u7684\u811a\u672c\u8fd0\u884c\u7684: nohup java -jar FullNode.jar -d your_database_dir & \u90a3\u4e48\uff0c\u4f60\u5e94\u8be5\u8fd9\u6837\u8fd0\u884c\u6570\u636e\u8f6c\u6362\u5de5\u5177DBConvert.jar: java -jar build/libs/DBConvert.jar your_database_dir/database output-directory-dst/database \u6ce8\u610f\uff1a\u5fc5\u987b\u505c\u6b62\u8282\u70b9\u7684\u8fd0\u884c\uff0c\u7136\u540e\u518d\u8fd0\u884c\u6570\u636e\u8f6c\u6362\u811a\u672c\u3002 \u5982\u679c\u4e0d\u5e0c\u671b\u8282\u70b9\u505c\u6b62\u65f6\u95f4\u592a\u957f\uff0c\u53ef\u4ee5\u5728\u8282\u70b9\u505c\u6b62\u540e\u5148\u5c06leveldb\u6570\u636e\u76ee\u5f55output-directory\u62f7\u8d1d\u4e00\u4efd\u5230\u65b0\u7684\u76ee\u5f55\u4e0b\uff0c\u7136\u540e\u6062\u590d\u8282\u70b9\u7684\u8fd0\u884c\u3002 \u5728\u65b0\u76ee\u5f55\u7684\u4e0a\u7ea7\u76ee\u5f55\u4e2d\u6267\u884cDBConvert.jar\u5e76\u6307\u5b9a\u53c2\u6570 src_db_path \u548c dst_db_path \u3002 \u4f8b\u5982: cp -rf output-directory /tmp/output-directory cd /tmp java -jar DBConvert.jar output-directory/database output-directory-dst/database \u6574\u4e2a\u7684\u6570\u636e\u8f6c\u6362\u8fc7\u7a0b\u53ef\u80fd\u9700\u898110\u4e2a\u5c0f\u65f6\u5de6\u53f3\u3002 4. rocksdb\u4e0eleveldb\u7684\u5bf9\u6bd4 \u00b6 \u4f60\u53ef\u4ee5\u67e5\u770b\u4ee5\u4e0b\u6587\u6863\u83b7\u53d6\u8be6\u7ec6\u7684\u4fe1\u606f\uff1a rocksdb\u4e0eleveldb\u5bf9\u6bd4","title":"\u6570\u636e\u5e93\u914d\u7f6e"},{"location":"architecture/database/#_1","text":"Java-tron\u6570\u636e\u5b58\u50a8\u652f\u6301\u4f7f\u7528 LevelDB \u6216\u8005 RocksDB\uff0c\u9ed8\u8ba4\u4f7f\u7528LevelDB\u3002\u60a8\u4e5f\u53ef\u4ee5\u9009\u62e9RocksDB\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u914d\u7f6e\u53c2\u6570\uff0c\u5141\u8bb8\u8282\u70b9\u6839\u636e\u81ea\u8eab\u673a\u5668\u914d\u7f6e\u60c5\u51b5\u8fdb\u884c\u8c03\u4f18\uff0c\u8282\u70b9\u6570\u636e\u5e93\u5360\u7528\u7684\u78c1\u76d8\u7a7a\u95f4\u76f8\u6bd4\u4e8eLevelDB\u66f4\u5c11\uff0c\u540c\u65f6RocksDB\u652f\u6301\u5728\u8fd0\u884c\u65f6\u8fdb\u884c\u6570\u636e\u5907\u4efd\uff0c\u5907\u4efd\u65f6\u95f4\u4ec5\u9700\u8981\u51e0\u79d2\u949f\u3002 \u4e0b\u9762\u4ecb\u7ecd\u5982\u4f55\u5c06Java-tron\u8282\u70b9\u7684\u5b58\u50a8\u5f15\u64ce\u8bbe\u7f6e\u6210RocksDB\uff0c\u4ee5\u53ca\u5982\u4f55\u8fdb\u884cleveldb\u548crocksdb\u7684\u6570\u636e\u8f6c\u6362\u3002","title":"\u6570\u636e\u5e93\u914d\u7f6e"},{"location":"architecture/database/#rocksdb","text":"","title":"rocksdb"},{"location":"architecture/database/#1-config","text":"\u4f7f\u7528rocksdb\u4f5c\u4e3a\u6570\u636e\u5b58\u50a8\u5f15\u64ce\uff0c\u9700\u8981\u5c06db.engine\u914d\u7f6e\u9879\u8bbe\u7f6e\u4e3a\"ROCKSDB\" \u6ce8\u610f: rocksdb\u53ea\u652f\u6301db.version=2, \u4e0d\u652f\u6301db.version=1\u3002 rocksdb\u652f\u6301\u7684\u4f18\u5316\u53c2\u6570\u5982\u4e0b\uff1a","title":"1. config\u914d\u7f6e\u8bf4\u660e"},{"location":"architecture/database/#2-rocksdb","text":"\u9009\u62e9rocksdb\u4f5c\u4e3a\u6570\u636e\u5b58\u50a8\u5f15\u64ce\uff0c\u53ef\u4ee5\u4f7f\u7528\u5176\u63d0\u4f9b\u7684\u8fd0\u884c\u65f6\u6570\u636e\u5907\u4efd\u529f\u80fd\u3002 \u6ce8\u610f: FullNode\u53ef\u4ee5\u4f7f\u7528\u6570\u636e\u5907\u4efd\u529f\u80fd\uff1b\u4e3a\u4e86\u4e0d\u5f71\u54cdSuperNode\u7684\u4ea7\u5757\u6027\u80fd\uff0c\u6570\u636e\u5907\u4efd\u529f\u80fd\u4e0d\u652f\u6301SuperNode\uff0c\u4f46\u662fSuperNode\u7684\u5907\u4efd\u670d\u52a1\u8282\u70b9\u53ef\u4ee5\u4f7f\u7528\u6b64\u529f\u80fd\u3002","title":"2. \u4f7f\u7528rocksdb\u6570\u636e\u5907\u4efd\u529f\u80fd"},{"location":"architecture/database/#3-leveldbrocksdb","text":"leveldb\u548crocksdb\u7684\u6570\u636e\u5b58\u50a8\u67b6\u6784\u5e76\u4e0d\u517c\u5bb9\uff0c\u8bf7\u786e\u4fdd\u8282\u70b9\u59cb\u7ec8\u4f7f\u7528\u540c\u4e00\u79cd\u6570\u636e\u5f15\u64ce\u3002\u6211\u4eec\u63d0\u4f9b\u4e86\u6570\u636e\u8f6c\u6362\u811a\u672c\uff0c\u7528\u4e8e\u5c06leveldb\u6570\u636e\u8f6c\u6362\u5230rocksdb\u6570\u636e\u3002 \u4f7f\u7528\u65b9\u6cd5\uff1a cd \u6e90\u4ee3\u7801\u6839\u76ee\u5f55 ./gradlew build #\u7f16\u8bd1\u6e90\u4ee3\u7801 java -jar build/libs/DBConvert.jar #\u6267\u884c\u6570\u636e\u8f6c\u6362\u6307\u4ee4 \u6ce8\u610f\uff1a\u5982\u679c\u8282\u70b9\u7684\u6570\u636e\u5b58\u50a8\u76ee\u5f55\u662f\u81ea\u5b9a\u4e49\u7684\uff0c\u8fd0\u884cDBConvert.jar\u65f6\u6dfb\u52a0\u4e0b\u97622\u4e2a\u53ef\u9009\u53c2\u6570\u3002 src_db_path :\u6307\u5b9aLevelDB\u6570\u636e\u5e93\u8def\u5f84\u6e90\uff0c\u9ed8\u8ba4\u662f output-directory/database dst_db_path :\u6307\u5b9aRocksDB\u6570\u636e\u5e93\u8def\u5f84\uff0c\u9ed8\u8ba4\u662f output-directory-dst/database \u4f8b\u5982\uff0c\u5982\u679c\u8282\u70b9\u662f\u50cf\u8fd9\u6837\u7684\u811a\u672c\u8fd0\u884c\u7684: nohup java -jar FullNode.jar -d your_database_dir & \u90a3\u4e48\uff0c\u4f60\u5e94\u8be5\u8fd9\u6837\u8fd0\u884c\u6570\u636e\u8f6c\u6362\u5de5\u5177DBConvert.jar: java -jar build/libs/DBConvert.jar your_database_dir/database output-directory-dst/database \u6ce8\u610f\uff1a\u5fc5\u987b\u505c\u6b62\u8282\u70b9\u7684\u8fd0\u884c\uff0c\u7136\u540e\u518d\u8fd0\u884c\u6570\u636e\u8f6c\u6362\u811a\u672c\u3002 \u5982\u679c\u4e0d\u5e0c\u671b\u8282\u70b9\u505c\u6b62\u65f6\u95f4\u592a\u957f\uff0c\u53ef\u4ee5\u5728\u8282\u70b9\u505c\u6b62\u540e\u5148\u5c06leveldb\u6570\u636e\u76ee\u5f55output-directory\u62f7\u8d1d\u4e00\u4efd\u5230\u65b0\u7684\u76ee\u5f55\u4e0b\uff0c\u7136\u540e\u6062\u590d\u8282\u70b9\u7684\u8fd0\u884c\u3002 \u5728\u65b0\u76ee\u5f55\u7684\u4e0a\u7ea7\u76ee\u5f55\u4e2d\u6267\u884cDBConvert.jar\u5e76\u6307\u5b9a\u53c2\u6570 src_db_path \u548c dst_db_path \u3002 \u4f8b\u5982: cp -rf output-directory /tmp/output-directory cd /tmp java -jar DBConvert.jar output-directory/database output-directory-dst/database \u6574\u4e2a\u7684\u6570\u636e\u8f6c\u6362\u8fc7\u7a0b\u53ef\u80fd\u9700\u898110\u4e2a\u5c0f\u65f6\u5de6\u53f3\u3002","title":"3. leveldb\u6570\u636e\u8f6c\u6362\u4e3arocksdb\u6570\u636e"},{"location":"architecture/database/#4-rocksdbleveldb","text":"\u4f60\u53ef\u4ee5\u67e5\u770b\u4ee5\u4e0b\u6587\u6863\u83b7\u53d6\u8be6\u7ec6\u7684\u4fe1\u606f\uff1a rocksdb\u4e0eleveldb\u5bf9\u6bd4","title":"4. rocksdb\u4e0eleveldb\u7684\u5bf9\u6bd4"},{"location":"architecture/event/","text":"\u4e8b\u4ef6\u8ba2\u9605 \u00b6 \u4f7f\u7528\u4e8b\u4ef6\u63d2\u4ef6\u8fdb\u884c\u4e8b\u4ef6\u8ba2\u9605 \u00b6 TIP \u00b6 TIP: https://github.com/tronprotocol/TIPs/issues/12 \u4e8b\u4ef6\u7c7b\u578b \u00b6 \u6ce2\u573a\u4e8b\u4ef6\u8ba2\u9605\u652f\u6301\u56db\u79cd\u7c7b\u578b\u7684\u4e8b\u4ef6\uff1a \u4ea4\u6613\u76f8\u5173\u4e8b\u4ef6 \u8ba2\u9605\u7684\u5185\u5bb9\uff1a transactionId: \u4ea4\u6613\u54c8\u5e0c blockHash: \u533a\u5757\u54c8\u5e0c blockNumber: \u533a\u5757\u9ad8\u5ea6 energyUsage: \u6b64\u6b21\u8c03\u7528\u4e2d\uff0c\u5408\u7ea6\u8c03\u7528\u8005\u6d88\u8017\u7684Energy\u7684\u603b\u91cf energyFee: \u6b64\u6b21\u8c03\u7528\u4e2d\uff0c\u5408\u7ea6\u8c03\u7528\u8005\u6d88\u8017\u7684Energy\u4e2d\uff0c\u9700\u8981TRX\u652f\u4ed8\u7684\u6570\u76ee(SUN\u4e3a\u5355\u4f4d) originEnergyUsage: \u6b64\u6b21\u8c03\u7528\u4e2d\uff0c\u5408\u7ea6\u5f00\u53d1\u8005\u6d88\u8017\u7684Energy\u7684\u603b\u91cf energyUsageTotal: \u6b64\u6b21\u8c03\u7528\u4e2d\uff0c\u5408\u7ea6\u8c03\u7528\u8005\u548c\u5408\u7ea6\u5f00\u53d1\u8005\u6d88\u8017\u7684Energy\u7684\u603b\u91cf \u533a\u5757\u76f8\u5173\u4e8b\u4ef6 \u8ba2\u9605\u7684\u5185\u5bb9\uff1a blockHash: \u533a\u5757\u54c8\u5e0c blockNumber: \u533a\u5757\u9ad8\u5ea6 transactionSize: \u533a\u5757\u4e2d\u5305\u542b\u7684\u4ea4\u6613\u7684\u6570\u76ee latestSolidifiedBlockNumber: \u6700\u65b0\u7684\u56fa\u5316\u5757\u7684\u9ad8\u5ea6 transactionList: \u4ea4\u6613\u54c8\u5e0c\u5217\u8868 \u5408\u7ea6\u4e8b\u4ef6\u76f8\u5173 \u8ba2\u9605\u7684\u5185\u5bb9\uff1a transactionId: \u4ea4\u6613\u54c8\u5e0c contractAddress: \u5408\u7ea6\u5730\u5740 callerAddress: \u5408\u7ea6\u8c03\u7528\u8005\u5730\u5740 blockNumber: \u5408\u7ea6\u4e8b\u4ef6\u6240\u5728\u7684\u533a\u5757\u9ad8\u5ea6 blockTimestamp: \u533a\u5757\u65f6\u95f4\u6233 eventSignature: \u4e8b\u4ef6\u7b7e\u540d topicMap: the map of topic in solidity language data: the data information in solidity language \u5408\u7ea6\u65e5\u5fd7\u4e8b\u4ef6\u76f8\u5173 \u8ba2\u9605\u7684\u5185\u5bb9\uff1a transactionId: \u4ea4\u6613\u54c8\u5e0c contractAddress: \u5408\u7ea6\u5730\u5740 callerAddress: \u5408\u7ea6\u8c03\u7528\u8005\u5730\u5740 blockNumber: \u5408\u7ea6\u4e8b\u4ef6\u6240\u5728\u7684\u533a\u5757\u9ad8\u5ea6 blockTimestamp: \u533a\u5757\u65f6\u95f4\u6233 contractTopics: the list of topic in solidity language data: the data information in solidity language removed: 'true'\u4ee3\u8868\u65e5\u5fd7\u5df2\u7ecf\u88ab\u79fb\u9664 \u5408\u7ea6\u4e8b\u4ef6\u4e0e\u5408\u7ea6\u65e5\u5fd7\u4e8b\u4ef6\u8ba2\u9605\u652f\u6301\u8fc7\u6ee4\u529f\u80fd\uff1a fromBlock: \u8d77\u59cb\u533a\u5757\u7d22\u5f15 toBlock: \u7ed3\u675f\u533a\u5757\u7d22\u5f15 contractAddress: \u5408\u7ea6\u5730\u5740 contractTopics: \u5408\u7ea6\u4e3b\u9898 \u6ce8\u610f \u4e0d\u652f\u6301\u5386\u53f2\u6570\u636e\u67e5\u8be2 \u5728\u5bf9\u975e\u56fa\u5316\u7684\u4e8b\u4ef6\u8fdb\u884c\u8ba2\u9605\u65f6\uff0c\u8bf7\u52a1\u5fc5\u4ee5 blockNumber \u548c blockHash \u4e24\u4e2a\u53c2\u6570\u4e3a\u51c6\uff0c\u4ee5\u9a8c\u8bc1\u6536\u5230\u7684\u4e8b\u4ef6\u662f\u6709\u6548\u7684\u3002\u5728\u53d1\u751f\u7f51\u7edc\u8fde\u63a5\u4e0d\u7a33\u5b9a\u7b49\u7279\u6b8a\u60c5\u51b5\u4e0b\u9020\u6210\u7684\u5207\u94fe\uff0c\u4f1a\u51fa\u73b0\u4e8b\u4ef6\u91cd\u7ec4\u7684\u60c5\u51b5\uff0c\u5bfc\u81f4\u90e8\u5206\u4e8b\u4ef6\u5931\u6548\u3002 \u65b0\u529f\u80fd \u00b6 \u652f\u6301\u4e8b\u4ef6\u63d2\u4ef6\uff0ckafka & mongodb \u63d2\u4ef6\u5df2\u7ecf\u53d1\u5e03\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u6309\u7167\u9700\u6c42\u81ea\u5b9a\u4e49\u63d2\u4ef6\u3002 \u652f\u6301\u8ba2\u9605\u94fe\u4e0a\u6570\u636e\uff0c\u4f8b\u5982\u533a\u5757\uff0c\u4ea4\u6613\uff0c\u5408\u7ea6\u4ee5\u53ca\u5408\u7ea6\u65e5\u5fd7\u3002\u5f00\u53d1\u8005\u8fd8\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u8fc7\u6ee4\u6761\u4ef6\u6765\u8ba2\u9605\u6307\u5b9a\u7684\u6570\u636e\u3002 \u63d0\u4f9b\u4e8b\u4ef6\u8ba2\u9605\u7684\u6570\u636e\u67e5\u8be2\u670d\u52a1\uff0c\u7ebf\u4e0a\u5730\u5740\u4e3a https://api.tronex.io \u3002 Github \u9879\u76ee \u00b6 \u4e8b\u4ef6\u8ba2\u9605 \u4e8b\u4ef6\u8ba2\u9605\u6570\u636e\u67e5\u8be2 \u4e8b\u4ef6\u8ba2\u9605\u76f8\u5173\u63d2\u4ef6\u90e8\u7f72 \u00b6 kafka\u90e8\u7f72 mongo\u90e8\u7f72 \u4e8b\u4ef6\u8ba2\u9605\u6570\u636e\u67e5\u8be2 \u00b6 \u4e8b\u4ef6\u8ba2\u9605\u6570\u636e\u67e5\u8be2\u670d\u52a1\u5b9e\u73b0\u4e86\u4e8b\u4ef6\u8ba2\u9605\u6a21\u578b\u3002 \u67e5\u770b\u66f4\u591a\u4fe1\u606f\uff0c\u8bf7\u67e5\u9605 https://github.com/tronprotocol/TIPs/issues/12 \u4e8b\u4ef6\u8ba2\u9605\u6570\u636e\u67e5\u8be2\u670d\u52a1\u90e8\u7f72 \u4e8b\u4ef6\u8ba2\u9605\u6570\u636e\u67e5\u8be2\u670d\u52a1http api \u4f7f\u7528Java-tron\u5185\u7f6e\u7684\u6d88\u606f\u961f\u5217\u8fdb\u884c\u4e8b\u4ef6\u8ba2\u9605 \u00b6 TRON\u63d0\u4f9b\u4e86\u4e8b\u4ef6\u8ba2\u9605\u670d\u52a1\uff0c\u5f00\u53d1\u8005\u4e0d\u4f46\u53ef\u4ee5\u901a\u8fc7\u4e8b\u4ef6\u63d2\u4ef6\u6765\u83b7\u53d6\u94fe\u4e0a\u4e8b\u4ef6\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7 Java-tron \u5185\u7f6e\u7684ZeroMQ\u6d88\u606f\u961f\u5217 \u6765\u8ba2\u9605\u4e8b\u4ef6\u3002\u6240\u4e0d\u540c\u7684\u662f\uff0c\u4e8b\u4ef6\u63d2\u4ef6\u9700\u8981\u989d\u5916\u90e8\u7f72\uff0c\u7528\u6765\u5b9e\u73b0\u4e8b\u4ef6\u8f6c\u50a8\uff1a\u5f00\u53d1\u8005\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u5b58\u50a8\u5de5\u5177\uff0c\u5982MongoDB\uff0cKafka\u7b49\uff0c\u63d2\u4ef6\u5e2e\u52a9\u5b8c\u6210\u5bf9\u8ba2\u9605\u7684\u4e8b\u4ef6\u7684\u5b58\u50a8\u5de5\u4f5c\u3002\u800cJava-tron\u5185\u7f6e\u7684ZeroMQ\uff0c\u4e0d\u9700\u8981\u989d\u5916\u7684\u90e8\u7f72\u64cd\u4f5c\uff0c\u4e8b\u4ef6\u8ba2\u9605\u8005\u76f4\u63a5\u8fde\u63a5\u53d1\u5e03\u8005ip\u53ca\u7aef\u53e3\u3001\u8bbe\u7f6e\u8ba2\u9605\u4e3b\u9898\uff0c\u63a5\u6536\u8ba2\u9605\u7684\u4e8b\u4ef6\u5373\u53ef\uff0c\u4f46\u8be5\u65b9\u5f0f\u4e0d\u63d0\u4f9b\u4e8b\u4ef6\u5b58\u50a8\u529f\u80fd\u3002\u56e0\u6b64\uff0c\u5f53\u5f00\u53d1\u8005\u5e0c\u671b\u77ed\u671f\u5e76\u76f4\u63a5\u4ece\u8282\u70b9\u8ba2\u9605\u4e8b\u4ef6\uff0c\u90a3\u4e48\u4f7f\u7528\u5185\u7f6e\u7684\u6d88\u606f\u961f\u5217\u5c06\u662f\u4e00\u4e2a\u66f4\u5408\u9002\u7684\u9009\u62e9\u3002 \u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u901a\u8fc7Java-tron\u5185\u7f6e\u7684\u6d88\u606f\u961f\u5217\u6765\u8ba2\u9605\u4e8b\u4ef6\u3002 \u914d\u7f6e\u8282\u70b9 \u00b6 \u8981\u4f7f\u7528\u8282\u70b9\u5185\u7f6e\u7684ZeroMQ\u8fdb\u884c\u4e8b\u4ef6\u8ba2\u9605\uff0c\u9700\u8981\u5728\u8282\u70b9\u914d\u7f6e\u6587\u4ef6\u4e2d\u5c06 useNativeQueue \u914d\u7f6e\u9879\u8bbe\u7f6e\u4e3a true \u3002 event.subscribe = { native = { useNativeQueue = true // if true, use native message queue, else use event plugin. bindport = 5555 // bind port sendqueuelength = 1000 //max length of send queue } ...... topics = [ { triggerName = \"block\" // block trigger, the value can't be modified enable = true topic = \"block\" // plugin topic, the value could be modified }, ...... ] } native.useNativeQueue : true\u4e3a\u4f7f\u7528\u5185\u7f6e\u6d88\u606f\u961f\u5217\uff0cfalse\u4e3a\u4f7f\u7528\u4e8b\u4ef6\u63d2\u4ef6 native.bindport : ZeroMQ\u53d1\u5e03\u8005\u7ed1\u5b9a\u7aef\u53e3\u3002\u672c\u4f8b\u4e2d\u4e3a 5555 \uff0c\u6240\u4ee5\u8ba2\u9605\u8005\u5e94\u8fde\u63a5\u7684\u53d1\u5e03\u8005\u5730\u5740\u4e3a \"tcp://127.0.0.1:5555\" native.sendqueuelength : \u53d1\u9001\u961f\u5217\u7684\u957f\u5ea6\uff0c\u5373\u5f53\u8ba2\u9605\u8005\u63a5\u6536\u6d88\u606f\u8f83\u6162\u7684\u60c5\u51b5\u4e0b\uff0cTCP\u7f13\u51b2\u533a\u6700\u591a\u5bb9\u7eb3\u7684\u53d1\u5e03\u8005\u53d1\u5e03\u7684\u6d88\u606f\u6570\u91cf\uff0c\u8d85\u8fc7\u5219\u4e22\u5f03 topics : \u8ba2\u9605\u7684 \u4e8b\u4ef6\u7c7b\u578b \uff0c\u5305\u62ec\u533a\u5757\u7c7b\u578b\u3001\u4ea4\u6613\u7c7b\u578b\u7b49 \u542f\u52a8\u8282\u70b9 \u00b6 \u4e8b\u4ef6\u8ba2\u9605\u670d\u52a1\u9ed8\u8ba4\u4e3a\u5173\u95ed\u72b6\u6001\uff0c\u9700\u8981\u901a\u8fc7\u914d\u7f6e\u547d\u4ee4\u884c\u53c2\u6570 --es \u7684\u65b9\u5f0f\u6765\u542f\u7528\u3002\u5f00\u542f\u4e8b\u4ef6\u8ba2\u9605\u670d\u52a1\u7684\u8282\u70b9\u7684\u542f\u52a8\u547d\u4ee4\u5982\u4e0b\uff1a $ java -jar FullNode.jar --es \u51c6\u5907\u4e8b\u4ef6\u8ba2\u9605\u811a\u672c \u00b6 \u672c\u6587\u4ee5Nodejs\u4e3a\u4f8b\u6765\u8bf4\u660e\u5982\u4f55\u8ba2\u9605\u4e8b\u4ef6\u3002 \u9996\u5148\uff0c\u4e0b\u8f7dzeromq\u5e93\uff1a $ npm install zeromq@5 \u7136\u540e\uff0c\u7f16\u5199\u8ba2\u9605\u8005\u4ee3\u7801\uff1a // subscriber.js var zmq = require(\"zeromq\"), var sock = zmq.socket(\"sub\"); sock.connect(\"tcp://127.0.0.1:5555\"); sock.subscribe(\"block\"); console.log(\"Subscriber connected to port 5555\"); sock.on(\"message\", function(topic, message) { console.log( \"received a message related to:\", Buffer.from(topic).toString(), \", containing message:\", Buffer.from(message).toString() ); }); \u672c\u793a\u4f8b\u5c06\u8ba2\u9605\u8005\u8fde\u63a5\u5230\u4e86\u8282\u70b9\u4e8b\u4ef6\u53d1\u5e03\u8005\uff0c\u5e76\u8ba2\u9605\u4e86 block \u4e8b\u4ef6\u3002 \u542f\u52a8\u8ba2\u9605\u8005 \u00b6 Nodejs\u542f\u52a8\u547d\u4ee4\u5982\u4e0b\uff1a $ node subscriber.js > Subscriber connected to port 5555 \u5f53\u8282\u70b9\u6709\u65b0\u7684\u533a\u5757\u65f6\uff0c\u8be5\u8ba2\u9605\u8005\u5c06\u6536\u5230\u533a\u5757\u4e8b\u4ef6\uff0c\u8f93\u51fa\u4fe1\u606f\u5982\u4e0b\uff1a received a message related to: blockTrigger, containing message: {\"timeStamp\":1678343709000,\"triggerName\":\"blockTrigger\",\"blockNumber\":1361,\"blockHash\":\"00000000000005519b3995cd638753a862c812d1bda11de14bbfaa5ad3383280\",\"transactionSize\":0,\"latestSolidifiedBlockNumber\":1361,\"transactionList\":[]} received a message related to: blockTrigger, containing message: {\"timeStamp\":1678343712000,\"triggerName\":\"blockTrigger\",\"blockNumber\":1362,\"blockHash\":\"0000000000000552d53d1bdd9929e4533a983f14df8931ee9b3bf6d6c74a47b0\",\"transactionSize\":0,\"latestSolidifiedBlockNumber\":1362,\"transactionList\":[]}","title":"\u4e8b\u4ef6\u8ba2\u9605"},{"location":"architecture/event/#_1","text":"","title":"\u4e8b\u4ef6\u8ba2\u9605"},{"location":"architecture/event/#_2","text":"","title":"\u4f7f\u7528\u4e8b\u4ef6\u63d2\u4ef6\u8fdb\u884c\u4e8b\u4ef6\u8ba2\u9605"},{"location":"architecture/event/#tip","text":"TIP: https://github.com/tronprotocol/TIPs/issues/12","title":"TIP"},{"location":"architecture/event/#_3","text":"\u6ce2\u573a\u4e8b\u4ef6\u8ba2\u9605\u652f\u6301\u56db\u79cd\u7c7b\u578b\u7684\u4e8b\u4ef6\uff1a \u4ea4\u6613\u76f8\u5173\u4e8b\u4ef6 \u8ba2\u9605\u7684\u5185\u5bb9\uff1a transactionId: \u4ea4\u6613\u54c8\u5e0c blockHash: \u533a\u5757\u54c8\u5e0c blockNumber: \u533a\u5757\u9ad8\u5ea6 energyUsage: \u6b64\u6b21\u8c03\u7528\u4e2d\uff0c\u5408\u7ea6\u8c03\u7528\u8005\u6d88\u8017\u7684Energy\u7684\u603b\u91cf energyFee: \u6b64\u6b21\u8c03\u7528\u4e2d\uff0c\u5408\u7ea6\u8c03\u7528\u8005\u6d88\u8017\u7684Energy\u4e2d\uff0c\u9700\u8981TRX\u652f\u4ed8\u7684\u6570\u76ee(SUN\u4e3a\u5355\u4f4d) originEnergyUsage: \u6b64\u6b21\u8c03\u7528\u4e2d\uff0c\u5408\u7ea6\u5f00\u53d1\u8005\u6d88\u8017\u7684Energy\u7684\u603b\u91cf energyUsageTotal: \u6b64\u6b21\u8c03\u7528\u4e2d\uff0c\u5408\u7ea6\u8c03\u7528\u8005\u548c\u5408\u7ea6\u5f00\u53d1\u8005\u6d88\u8017\u7684Energy\u7684\u603b\u91cf \u533a\u5757\u76f8\u5173\u4e8b\u4ef6 \u8ba2\u9605\u7684\u5185\u5bb9\uff1a blockHash: \u533a\u5757\u54c8\u5e0c blockNumber: \u533a\u5757\u9ad8\u5ea6 transactionSize: \u533a\u5757\u4e2d\u5305\u542b\u7684\u4ea4\u6613\u7684\u6570\u76ee latestSolidifiedBlockNumber: \u6700\u65b0\u7684\u56fa\u5316\u5757\u7684\u9ad8\u5ea6 transactionList: \u4ea4\u6613\u54c8\u5e0c\u5217\u8868 \u5408\u7ea6\u4e8b\u4ef6\u76f8\u5173 \u8ba2\u9605\u7684\u5185\u5bb9\uff1a transactionId: \u4ea4\u6613\u54c8\u5e0c contractAddress: \u5408\u7ea6\u5730\u5740 callerAddress: \u5408\u7ea6\u8c03\u7528\u8005\u5730\u5740 blockNumber: \u5408\u7ea6\u4e8b\u4ef6\u6240\u5728\u7684\u533a\u5757\u9ad8\u5ea6 blockTimestamp: \u533a\u5757\u65f6\u95f4\u6233 eventSignature: \u4e8b\u4ef6\u7b7e\u540d topicMap: the map of topic in solidity language data: the data information in solidity language \u5408\u7ea6\u65e5\u5fd7\u4e8b\u4ef6\u76f8\u5173 \u8ba2\u9605\u7684\u5185\u5bb9\uff1a transactionId: \u4ea4\u6613\u54c8\u5e0c contractAddress: \u5408\u7ea6\u5730\u5740 callerAddress: \u5408\u7ea6\u8c03\u7528\u8005\u5730\u5740 blockNumber: \u5408\u7ea6\u4e8b\u4ef6\u6240\u5728\u7684\u533a\u5757\u9ad8\u5ea6 blockTimestamp: \u533a\u5757\u65f6\u95f4\u6233 contractTopics: the list of topic in solidity language data: the data information in solidity language removed: 'true'\u4ee3\u8868\u65e5\u5fd7\u5df2\u7ecf\u88ab\u79fb\u9664 \u5408\u7ea6\u4e8b\u4ef6\u4e0e\u5408\u7ea6\u65e5\u5fd7\u4e8b\u4ef6\u8ba2\u9605\u652f\u6301\u8fc7\u6ee4\u529f\u80fd\uff1a fromBlock: \u8d77\u59cb\u533a\u5757\u7d22\u5f15 toBlock: \u7ed3\u675f\u533a\u5757\u7d22\u5f15 contractAddress: \u5408\u7ea6\u5730\u5740 contractTopics: \u5408\u7ea6\u4e3b\u9898 \u6ce8\u610f \u4e0d\u652f\u6301\u5386\u53f2\u6570\u636e\u67e5\u8be2 \u5728\u5bf9\u975e\u56fa\u5316\u7684\u4e8b\u4ef6\u8fdb\u884c\u8ba2\u9605\u65f6\uff0c\u8bf7\u52a1\u5fc5\u4ee5 blockNumber \u548c blockHash \u4e24\u4e2a\u53c2\u6570\u4e3a\u51c6\uff0c\u4ee5\u9a8c\u8bc1\u6536\u5230\u7684\u4e8b\u4ef6\u662f\u6709\u6548\u7684\u3002\u5728\u53d1\u751f\u7f51\u7edc\u8fde\u63a5\u4e0d\u7a33\u5b9a\u7b49\u7279\u6b8a\u60c5\u51b5\u4e0b\u9020\u6210\u7684\u5207\u94fe\uff0c\u4f1a\u51fa\u73b0\u4e8b\u4ef6\u91cd\u7ec4\u7684\u60c5\u51b5\uff0c\u5bfc\u81f4\u90e8\u5206\u4e8b\u4ef6\u5931\u6548\u3002","title":"\u4e8b\u4ef6\u7c7b\u578b"},{"location":"architecture/event/#_4","text":"\u652f\u6301\u4e8b\u4ef6\u63d2\u4ef6\uff0ckafka & mongodb \u63d2\u4ef6\u5df2\u7ecf\u53d1\u5e03\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u6309\u7167\u9700\u6c42\u81ea\u5b9a\u4e49\u63d2\u4ef6\u3002 \u652f\u6301\u8ba2\u9605\u94fe\u4e0a\u6570\u636e\uff0c\u4f8b\u5982\u533a\u5757\uff0c\u4ea4\u6613\uff0c\u5408\u7ea6\u4ee5\u53ca\u5408\u7ea6\u65e5\u5fd7\u3002\u5f00\u53d1\u8005\u8fd8\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u8fc7\u6ee4\u6761\u4ef6\u6765\u8ba2\u9605\u6307\u5b9a\u7684\u6570\u636e\u3002 \u63d0\u4f9b\u4e8b\u4ef6\u8ba2\u9605\u7684\u6570\u636e\u67e5\u8be2\u670d\u52a1\uff0c\u7ebf\u4e0a\u5730\u5740\u4e3a https://api.tronex.io \u3002","title":"\u65b0\u529f\u80fd"},{"location":"architecture/event/#github","text":"\u4e8b\u4ef6\u8ba2\u9605 \u4e8b\u4ef6\u8ba2\u9605\u6570\u636e\u67e5\u8be2","title":"Github \u9879\u76ee"},{"location":"architecture/event/#_5","text":"kafka\u90e8\u7f72 mongo\u90e8\u7f72","title":"\u4e8b\u4ef6\u8ba2\u9605\u76f8\u5173\u63d2\u4ef6\u90e8\u7f72"},{"location":"architecture/event/#_6","text":"\u4e8b\u4ef6\u8ba2\u9605\u6570\u636e\u67e5\u8be2\u670d\u52a1\u5b9e\u73b0\u4e86\u4e8b\u4ef6\u8ba2\u9605\u6a21\u578b\u3002 \u67e5\u770b\u66f4\u591a\u4fe1\u606f\uff0c\u8bf7\u67e5\u9605 https://github.com/tronprotocol/TIPs/issues/12 \u4e8b\u4ef6\u8ba2\u9605\u6570\u636e\u67e5\u8be2\u670d\u52a1\u90e8\u7f72 \u4e8b\u4ef6\u8ba2\u9605\u6570\u636e\u67e5\u8be2\u670d\u52a1http api","title":"\u4e8b\u4ef6\u8ba2\u9605\u6570\u636e\u67e5\u8be2"},{"location":"architecture/event/#java-tron","text":"TRON\u63d0\u4f9b\u4e86\u4e8b\u4ef6\u8ba2\u9605\u670d\u52a1\uff0c\u5f00\u53d1\u8005\u4e0d\u4f46\u53ef\u4ee5\u901a\u8fc7\u4e8b\u4ef6\u63d2\u4ef6\u6765\u83b7\u53d6\u94fe\u4e0a\u4e8b\u4ef6\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7 Java-tron \u5185\u7f6e\u7684ZeroMQ\u6d88\u606f\u961f\u5217 \u6765\u8ba2\u9605\u4e8b\u4ef6\u3002\u6240\u4e0d\u540c\u7684\u662f\uff0c\u4e8b\u4ef6\u63d2\u4ef6\u9700\u8981\u989d\u5916\u90e8\u7f72\uff0c\u7528\u6765\u5b9e\u73b0\u4e8b\u4ef6\u8f6c\u50a8\uff1a\u5f00\u53d1\u8005\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u5b58\u50a8\u5de5\u5177\uff0c\u5982MongoDB\uff0cKafka\u7b49\uff0c\u63d2\u4ef6\u5e2e\u52a9\u5b8c\u6210\u5bf9\u8ba2\u9605\u7684\u4e8b\u4ef6\u7684\u5b58\u50a8\u5de5\u4f5c\u3002\u800cJava-tron\u5185\u7f6e\u7684ZeroMQ\uff0c\u4e0d\u9700\u8981\u989d\u5916\u7684\u90e8\u7f72\u64cd\u4f5c\uff0c\u4e8b\u4ef6\u8ba2\u9605\u8005\u76f4\u63a5\u8fde\u63a5\u53d1\u5e03\u8005ip\u53ca\u7aef\u53e3\u3001\u8bbe\u7f6e\u8ba2\u9605\u4e3b\u9898\uff0c\u63a5\u6536\u8ba2\u9605\u7684\u4e8b\u4ef6\u5373\u53ef\uff0c\u4f46\u8be5\u65b9\u5f0f\u4e0d\u63d0\u4f9b\u4e8b\u4ef6\u5b58\u50a8\u529f\u80fd\u3002\u56e0\u6b64\uff0c\u5f53\u5f00\u53d1\u8005\u5e0c\u671b\u77ed\u671f\u5e76\u76f4\u63a5\u4ece\u8282\u70b9\u8ba2\u9605\u4e8b\u4ef6\uff0c\u90a3\u4e48\u4f7f\u7528\u5185\u7f6e\u7684\u6d88\u606f\u961f\u5217\u5c06\u662f\u4e00\u4e2a\u66f4\u5408\u9002\u7684\u9009\u62e9\u3002 \u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u901a\u8fc7Java-tron\u5185\u7f6e\u7684\u6d88\u606f\u961f\u5217\u6765\u8ba2\u9605\u4e8b\u4ef6\u3002","title":"\u4f7f\u7528Java-tron\u5185\u7f6e\u7684\u6d88\u606f\u961f\u5217\u8fdb\u884c\u4e8b\u4ef6\u8ba2\u9605"},{"location":"architecture/event/#_7","text":"\u8981\u4f7f\u7528\u8282\u70b9\u5185\u7f6e\u7684ZeroMQ\u8fdb\u884c\u4e8b\u4ef6\u8ba2\u9605\uff0c\u9700\u8981\u5728\u8282\u70b9\u914d\u7f6e\u6587\u4ef6\u4e2d\u5c06 useNativeQueue \u914d\u7f6e\u9879\u8bbe\u7f6e\u4e3a true \u3002 event.subscribe = { native = { useNativeQueue = true // if true, use native message queue, else use event plugin. bindport = 5555 // bind port sendqueuelength = 1000 //max length of send queue } ...... topics = [ { triggerName = \"block\" // block trigger, the value can't be modified enable = true topic = \"block\" // plugin topic, the value could be modified }, ...... ] } native.useNativeQueue : true\u4e3a\u4f7f\u7528\u5185\u7f6e\u6d88\u606f\u961f\u5217\uff0cfalse\u4e3a\u4f7f\u7528\u4e8b\u4ef6\u63d2\u4ef6 native.bindport : ZeroMQ\u53d1\u5e03\u8005\u7ed1\u5b9a\u7aef\u53e3\u3002\u672c\u4f8b\u4e2d\u4e3a 5555 \uff0c\u6240\u4ee5\u8ba2\u9605\u8005\u5e94\u8fde\u63a5\u7684\u53d1\u5e03\u8005\u5730\u5740\u4e3a \"tcp://127.0.0.1:5555\" native.sendqueuelength : \u53d1\u9001\u961f\u5217\u7684\u957f\u5ea6\uff0c\u5373\u5f53\u8ba2\u9605\u8005\u63a5\u6536\u6d88\u606f\u8f83\u6162\u7684\u60c5\u51b5\u4e0b\uff0cTCP\u7f13\u51b2\u533a\u6700\u591a\u5bb9\u7eb3\u7684\u53d1\u5e03\u8005\u53d1\u5e03\u7684\u6d88\u606f\u6570\u91cf\uff0c\u8d85\u8fc7\u5219\u4e22\u5f03 topics : \u8ba2\u9605\u7684 \u4e8b\u4ef6\u7c7b\u578b \uff0c\u5305\u62ec\u533a\u5757\u7c7b\u578b\u3001\u4ea4\u6613\u7c7b\u578b\u7b49","title":"\u914d\u7f6e\u8282\u70b9"},{"location":"architecture/event/#_8","text":"\u4e8b\u4ef6\u8ba2\u9605\u670d\u52a1\u9ed8\u8ba4\u4e3a\u5173\u95ed\u72b6\u6001\uff0c\u9700\u8981\u901a\u8fc7\u914d\u7f6e\u547d\u4ee4\u884c\u53c2\u6570 --es \u7684\u65b9\u5f0f\u6765\u542f\u7528\u3002\u5f00\u542f\u4e8b\u4ef6\u8ba2\u9605\u670d\u52a1\u7684\u8282\u70b9\u7684\u542f\u52a8\u547d\u4ee4\u5982\u4e0b\uff1a $ java -jar FullNode.jar --es","title":"\u542f\u52a8\u8282\u70b9"},{"location":"architecture/event/#_9","text":"\u672c\u6587\u4ee5Nodejs\u4e3a\u4f8b\u6765\u8bf4\u660e\u5982\u4f55\u8ba2\u9605\u4e8b\u4ef6\u3002 \u9996\u5148\uff0c\u4e0b\u8f7dzeromq\u5e93\uff1a $ npm install zeromq@5 \u7136\u540e\uff0c\u7f16\u5199\u8ba2\u9605\u8005\u4ee3\u7801\uff1a // subscriber.js var zmq = require(\"zeromq\"), var sock = zmq.socket(\"sub\"); sock.connect(\"tcp://127.0.0.1:5555\"); sock.subscribe(\"block\"); console.log(\"Subscriber connected to port 5555\"); sock.on(\"message\", function(topic, message) { console.log( \"received a message related to:\", Buffer.from(topic).toString(), \", containing message:\", Buffer.from(message).toString() ); }); \u672c\u793a\u4f8b\u5c06\u8ba2\u9605\u8005\u8fde\u63a5\u5230\u4e86\u8282\u70b9\u4e8b\u4ef6\u53d1\u5e03\u8005\uff0c\u5e76\u8ba2\u9605\u4e86 block \u4e8b\u4ef6\u3002","title":"\u51c6\u5907\u4e8b\u4ef6\u8ba2\u9605\u811a\u672c"},{"location":"architecture/event/#_10","text":"Nodejs\u542f\u52a8\u547d\u4ee4\u5982\u4e0b\uff1a $ node subscriber.js > Subscriber connected to port 5555 \u5f53\u8282\u70b9\u6709\u65b0\u7684\u533a\u5757\u65f6\uff0c\u8be5\u8ba2\u9605\u8005\u5c06\u6536\u5230\u533a\u5757\u4e8b\u4ef6\uff0c\u8f93\u51fa\u4fe1\u606f\u5982\u4e0b\uff1a received a message related to: blockTrigger, containing message: {\"timeStamp\":1678343709000,\"triggerName\":\"blockTrigger\",\"blockNumber\":1361,\"blockHash\":\"00000000000005519b3995cd638753a862c812d1bda11de14bbfaa5ad3383280\",\"transactionSize\":0,\"latestSolidifiedBlockNumber\":1361,\"transactionList\":[]} received a message related to: blockTrigger, containing message: {\"timeStamp\":1678343712000,\"triggerName\":\"blockTrigger\",\"blockNumber\":1362,\"blockHash\":\"0000000000000552d53d1bdd9929e4533a983f14df8931ee9b3bf6d6c74a47b0\",\"transactionSize\":0,\"latestSolidifiedBlockNumber\":1362,\"transactionList\":[]}","title":"\u542f\u52a8\u8ba2\u9605\u8005"},{"location":"clients/tron-grid/","text":"TronGrid \u00b6 \u6700\u65b0\u5b98\u65b9 TronGrid \u6587\u6863\u4f4d\u4e8e https://developers.tron.network/docs/tron-grid-intro . TronGrid\u63d0\u4f9b\u8fd0\u884c\u5728\u4e91\u7aef\u7684\u5ba2\u6237\u7aef, \u56e0\u800c\u4f60\u81ea\u5df1\u672c\u5730\u4e0d\u9700\u8981\u8fd0\u884c\u8282\u70b9\u3002TronGrid\u63d0\u4f9b\u8d1f\u8f7d\u5747\u8861\u7684\uff0c\u5b89\u5168\u7684\uff0c\u53ef\u9760\u7684\u7684\u8282\u70b9\u8bbf\u95eeAPI\u3002 TronGrid\u652f\u6301\u4e24\u79cd\u7c7b\u578b\u7684API\u8c03\u7528\uff1a FullNode & SolidityNode api TronGrid\u652f\u6301\u6240\u6709\u7684FullNode\u548cSolidityNode\u7684api\u8c03\u7528\uff0c\u4f60\u53ea\u9700\u8981\u52a0\u4e0a\u524d\u7f00\uff1a https://api.trongrid.io/ \uff0c\u4f8b\u5982\uff1a https://api.trongrid.io/wallet/getnowblock TronGrid v3 (TG3) api \u793a\u4f8b\uff1a https://api.trongrid.io/v1 \u53c2\u6570, \u67e5\u8be2\u4ee5\u53ca\u8fd4\u56de\u503c \u00b6 TG3\u7c7b\u578b\u63a5\u53e3\u8c03\u7528\u5730\u5740\u53ef\u4ee5\u6309\u7167base58\u6216\u8005hex\u5f62\u5f0f \u67e5\u8be2\u53c2\u6570\u53ef\u4ee5\u6309\u7167\u9a7c\u5cf0\u6216\u8005\u4e0b\u5212\u7ebf\u5f62\u5f0f \u6240\u6709\u8fd4\u56de\u7684json\u6570\u636e\u6309\u7167\u4e0b\u5212\u7ebf\u5f62\u5f0f \u5728\u672c\u6587\u6863\u4e2d\uff0c\u6211\u4eec\u4f18\u5148\u4f7f\u7528base58\u548c\u4e0b\u5212\u7ebf\u5f62\u5f0f \u8d26\u6237\u63a5\u53e3 \u00b6 \u901a\u8fc7\u5730\u5740\u67e5\u8be2\u8d26\u6237 \u63a5\u53e3\uff1a https://api.trongrid.io/v1/accounts/:address \u53c2\u6570\uff1a address: \u8d26\u6237\u7684\u5730\u5740 \u9009\u9879\uff1a only_confirmed \u53ea\u67e5\u8be2\u5df2\u7ecf\u88ab\u786e\u8ba4\u7684\u533a\u5757\u3002 true | false \u9ed8\u8ba4\u4e3afalse\u3002 \u793a\u4f8b\uff1a https://api.trongrid.io/v1/accounts/TLCuBEirVzB6V4menLZKw1jfBTFMZbuKq7?only_confirmed=false \u67e5\u8be2\u8d26\u6237\u7684\u4ea4\u6613\u4fe1\u606f \u63a5\u53e3\uff1a https://api.trongrid.io/v1/accounts/:address/transactions \u53c2\u6570\uff1a address: \u8d26\u6237\u7684\u5730\u5740 \u9009\u9879\uff1a only_confirmed \u53ea\u67e5\u8be2\u5df2\u7ecf\u88ab\u786e\u8ba4\u7684\u4ea4\u6613\u3002 true | false \u9ed8\u8ba4\u4e3afalse\u3002 only_unconfirmed \u53ea\u67e5\u8be2\u672a\u88ab\u786e\u8ba4\u7684\u4ea4\u6613\u3002 true | false \u9ed8\u8ba4\u4e3afalse\u3002 only_to \u53ea\u67e5\u8be2\u4e0e\u76ee\u6807\u5730\u5740\u76f8\u5173\u7684\u4ea4\u6613\u3002 true | false \u9ed8\u8ba4\u4e3afalse\u3002 only_from \u53ea\u67e5\u8be2\u4e0e\u6e90\u5730\u5740\u76f8\u5173\u7684\u4ea4\u6613\u3002 true | false \u9ed8\u8ba4\u4e3afalse\u3002 limit \u5206\u9875\u67e5\u8be2\u4ea4\u6613\uff0c\u6bcf\u9875\u7684\u6570\u76ee\u3002\u9ed8\u8ba4 20 \u3002\u6700\u5927 200 \u3002 fingerprint \u4e0a\u4e00\u9875\u8fd4\u56de\u7684\u6700\u540e\u4e00\u7b14\u4ea4\u6613\u7684\u6307\u7eb9\u3002 order_by \u6392\u5e8f\u65b9\u6848\u3002 order_by=block_number,asc , order_by=block_timestamp,desc \u3002 min_block_timestamp \u4ea4\u6613\u65f6\u95f4\u6233\u6700\u5c0f\u503c\u4e3a 0 \u3002 max_block_timestamp \u4ea4\u6613\u65f6\u95f4\u6233\u6700\u5927\u503c\u4e3a now \u3002 \u793a\u4f8b\uff1a https://api.trongrid.io/v1/accounts/TLCuBEirVzB6V4menLZKw1jfBTFMZbuKq/transactions?only_to=true&only_from=true \u67e5\u8be2\u8d26\u6237\u8d44\u6e90\u4fe1\u606f \u63a5\u53e3\uff1a https://api.trongrid.io/v1/accounts/:address/resources \u53c2\u6570\uff1a address: \u8d26\u6237\u7684\u5730\u5740 \u793a\u4f8b\uff1a https://api.trongrid.io/v1/accounts/TLCuBEirVzB6V4menLZKw1jfBTFMZbuKq/resources \u901a\u8bc1\u63a5\u53e3 \u00b6 \u67e5\u8be2\u6240\u6709\u901a\u8bc1\u4fe1\u606f \u63a5\u53e3\uff1a https://api.trongrid.io/v1/assets \u9009\u9879\uff1a order_by \u6392\u5e8f\u65b9\u6848\u3002\u652f\u6301\u5b57\u6bb5\uff1a total_supply,asc | total_supply,desc , start_time,asc | start_time,desc , end_time,asc | end_time,desc , id,asc | id,desc . \u4f8b\u5982\uff1a order_by=total_supply,asc \u3002 \u6309\u7167\u6807\u8bc6\u7b26\u67e5\u8be2\u901a\u8bc1\u4fe1\u606f \u63a5\u53e3\uff1a https://api.trongrid.io/v1/assets/:identifier \u53c2\u6570\uff1a identifier: \u53ef\u4ee5\u4e3a\u901a\u8bc1id\u6216\u8005\u53d1\u884c\u8005\u7684\u5730\u5740 \u6309\u7167\u901a\u8bc1\u540d\u79f0\u67e5\u8be2\u901a\u8bc1\u4fe1\u606f \u63a5\u53e3\uff1a https://api.trongrid.io/v1/assets/:name/list \u53c2\u6570\uff1a name: \u901a\u8bc1\u540d\u79f0\u3002 \u9009\u9879\uff1a limit \u5206\u9875\u67e5\u8be2\u4ea4\u6613\uff0c\u6bcf\u9875\u7684\u6570\u76ee\u3002\u9ed8\u8ba4 20 \u3002\u6700\u5927 200 \u3002 fingerprint \u4e0a\u4e00\u9875\u8fd4\u56de\u7684\u6700\u540e\u4e00\u7b14\u4ea4\u6613\u7684\u6307\u7eb9\u3002 order_by \u6392\u5e8f\u65b9\u6848\u3002\u652f\u6301\u5b57\u6bb5 order_by=total_supply,asc \uff0c order_by=start_time,desc \u3002 \u533a\u5757\u63a5\u53e3 \u00b6 1. \u67e5\u8be2\u4e00\u4e2a\u533a\u5757\u4e2d\u7684\u4e8b\u4ef6\u4fe1\u606f \u63a5\u53e3\uff1a https://api.trongrid.io/v1/blocks/:identifier/events \u53c2\u6570\uff1a identifier: \u533a\u5757\u9ad8\u5ea6\u3002 \u5408\u7ea6\u63a5\u53e3 \u00b6 \u6839\u636e\u5408\u7ea6\u5730\u5740\u67e5\u8be2\u4e8b\u4ef6\u4fe1\u606f \u63a5\u53e3\uff1a https://api.trongrid.io/v1/contracts/:address/events \u53c2\u6570\uff1a address: \u5408\u7ea6\u5730\u5740\u3002 \u9009\u9879\uff1a only_confirmed \u53ea\u663e\u793a\u5df2\u7ecf\u786e\u8ba4\u8fc7\u7684\u4e8b\u4ef6\u3002 true | false \u9ed8\u8ba4\u4e3a false \u3002 only_unconfirmed \u53ea\u663e\u793a\u672a\u786e\u8ba4\u8fc7\u7684\u4e8b\u4ef6\u3002 true | false \u9ed8\u8ba4\u4e3a false \u3002 event_name \u4e8b\u4ef6\u7684\u540d\u79f0\u3002 block_number \u4e8b\u4ef6\u6240\u5728\u7684\u533a\u5757\u9ad8\u5ea6\u3002 min_block_timestamp \u533a\u5757\u65f6\u95f4\u6233\u6700\u5c0f\u503c\u3002\u9ed8\u8ba4\u4e3a 0 \u3002 max_block_timestamp \u533a\u5757\u65f6\u95f4\u6233\u6700\u5927\u503c\u3002\u9ed8\u8ba4\u4e3a now \u3002 limit \u5206\u9875\u67e5\u8be2\u4ea4\u6613\uff0c\u6bcf\u9875\u7684\u6570\u76ee\u3002\u9ed8\u8ba4 20 \u3002\u6700\u5927 200 \u3002 fingerprint \u4e0a\u4e00\u9875\u8fd4\u56de\u7684\u6700\u540e\u4e00\u7b14\u4ea4\u6613\u7684\u6307\u7eb9\u3002 order_by \u6392\u5e8f\u65b9\u6848\u3002\u81ea\u6301\u5b57\u6bb5 block_timestamp,asc , block_timestamp,desc \u3002 \u67e5\u8be2\u5408\u7ea6\u5730\u5740\u7684\u4ea4\u6613\u4fe1\u606f \u63a5\u53e3\uff1a https://api.trongrid.io/v1/contracts/:address/transactions \u53c2\u6570\uff1a address: \u5408\u7ea6\u5730\u5740\u3002 \u9009\u9879\uff1a only_confirmed \u53ea\u663e\u793a\u5df2\u7ecf\u786e\u8ba4\u8fc7\u7684\u4ea4\u6613\u3002 true | false \u9ed8\u8ba4\u4e3a false \u3002 only_unconfirmed \u53ea\u663e\u793a\u672a\u786e\u8ba4\u8fc7\u7684\u4ea4\u6613\u3002 true | false \u9ed8\u8ba4\u4e3a false \u3002 min_block_timestamp \u533a\u5757\u65f6\u95f4\u6233\u6700\u5c0f\u503c\u3002\u9ed8\u8ba4\u4e3a 0 \u3002 max_block_timestamp \u533a\u5757\u65f6\u95f4\u6233\u6700\u5927\u503c\u3002\u9ed8\u8ba4\u4e3a now \u3002 limit \u5206\u9875\u67e5\u8be2\u4ea4\u6613\uff0c\u6bcf\u9875\u7684\u6570\u76ee\u3002\u9ed8\u8ba4 20 \u3002\u6700\u5927 200 \u3002 fingerprint \u4e0a\u4e00\u9875\u8fd4\u56de\u7684\u6700\u540e\u4e00\u7b14\u4ea4\u6613\u7684\u6307\u7eb9\u3002 order_by \u6392\u5e8f\u65b9\u6848\u3002\u81ea\u6301\u5b57\u6bb5 block_timestamp,asc , block_timestamp,desc \u3002 \u4ea4\u6613\u63a5\u53e3 \u00b6 \u6839\u636e\u4ea4\u6613ID\u67e5\u8be2\u4ea4\u6613\u4fe1\u606f \u63a5\u53e3\uff1a https://api.trongrid.io/v1/transactions/:id \u53c2\u6570\uff1a id: \u4ea4\u6613ID\u3002 \u6839\u636e\u4ea4\u6613ID\u67e5\u8be2\u4ea4\u6613\u4e2d\u7684\u4e8b\u4ef6 A\u63a5\u53e3\uff1a https://api.trongrid.io/v1/transactions/:id/events \u53c2\u6570\uff1a id: \u4ea4\u6613ID\u3002","title":"TronGrid"},{"location":"clients/tron-grid/#trongrid","text":"\u6700\u65b0\u5b98\u65b9 TronGrid \u6587\u6863\u4f4d\u4e8e https://developers.tron.network/docs/tron-grid-intro . TronGrid\u63d0\u4f9b\u8fd0\u884c\u5728\u4e91\u7aef\u7684\u5ba2\u6237\u7aef, \u56e0\u800c\u4f60\u81ea\u5df1\u672c\u5730\u4e0d\u9700\u8981\u8fd0\u884c\u8282\u70b9\u3002TronGrid\u63d0\u4f9b\u8d1f\u8f7d\u5747\u8861\u7684\uff0c\u5b89\u5168\u7684\uff0c\u53ef\u9760\u7684\u7684\u8282\u70b9\u8bbf\u95eeAPI\u3002 TronGrid\u652f\u6301\u4e24\u79cd\u7c7b\u578b\u7684API\u8c03\u7528\uff1a FullNode & SolidityNode api TronGrid\u652f\u6301\u6240\u6709\u7684FullNode\u548cSolidityNode\u7684api\u8c03\u7528\uff0c\u4f60\u53ea\u9700\u8981\u52a0\u4e0a\u524d\u7f00\uff1a https://api.trongrid.io/ \uff0c\u4f8b\u5982\uff1a https://api.trongrid.io/wallet/getnowblock TronGrid v3 (TG3) api \u793a\u4f8b\uff1a https://api.trongrid.io/v1","title":"TronGrid"},{"location":"clients/tron-grid/#_1","text":"TG3\u7c7b\u578b\u63a5\u53e3\u8c03\u7528\u5730\u5740\u53ef\u4ee5\u6309\u7167base58\u6216\u8005hex\u5f62\u5f0f \u67e5\u8be2\u53c2\u6570\u53ef\u4ee5\u6309\u7167\u9a7c\u5cf0\u6216\u8005\u4e0b\u5212\u7ebf\u5f62\u5f0f \u6240\u6709\u8fd4\u56de\u7684json\u6570\u636e\u6309\u7167\u4e0b\u5212\u7ebf\u5f62\u5f0f \u5728\u672c\u6587\u6863\u4e2d\uff0c\u6211\u4eec\u4f18\u5148\u4f7f\u7528base58\u548c\u4e0b\u5212\u7ebf\u5f62\u5f0f","title":"\u53c2\u6570, \u67e5\u8be2\u4ee5\u53ca\u8fd4\u56de\u503c"},{"location":"clients/tron-grid/#_2","text":"\u901a\u8fc7\u5730\u5740\u67e5\u8be2\u8d26\u6237 \u63a5\u53e3\uff1a https://api.trongrid.io/v1/accounts/:address \u53c2\u6570\uff1a address: \u8d26\u6237\u7684\u5730\u5740 \u9009\u9879\uff1a only_confirmed \u53ea\u67e5\u8be2\u5df2\u7ecf\u88ab\u786e\u8ba4\u7684\u533a\u5757\u3002 true | false \u9ed8\u8ba4\u4e3afalse\u3002 \u793a\u4f8b\uff1a https://api.trongrid.io/v1/accounts/TLCuBEirVzB6V4menLZKw1jfBTFMZbuKq7?only_confirmed=false \u67e5\u8be2\u8d26\u6237\u7684\u4ea4\u6613\u4fe1\u606f \u63a5\u53e3\uff1a https://api.trongrid.io/v1/accounts/:address/transactions \u53c2\u6570\uff1a address: \u8d26\u6237\u7684\u5730\u5740 \u9009\u9879\uff1a only_confirmed \u53ea\u67e5\u8be2\u5df2\u7ecf\u88ab\u786e\u8ba4\u7684\u4ea4\u6613\u3002 true | false \u9ed8\u8ba4\u4e3afalse\u3002 only_unconfirmed \u53ea\u67e5\u8be2\u672a\u88ab\u786e\u8ba4\u7684\u4ea4\u6613\u3002 true | false \u9ed8\u8ba4\u4e3afalse\u3002 only_to \u53ea\u67e5\u8be2\u4e0e\u76ee\u6807\u5730\u5740\u76f8\u5173\u7684\u4ea4\u6613\u3002 true | false \u9ed8\u8ba4\u4e3afalse\u3002 only_from \u53ea\u67e5\u8be2\u4e0e\u6e90\u5730\u5740\u76f8\u5173\u7684\u4ea4\u6613\u3002 true | false \u9ed8\u8ba4\u4e3afalse\u3002 limit \u5206\u9875\u67e5\u8be2\u4ea4\u6613\uff0c\u6bcf\u9875\u7684\u6570\u76ee\u3002\u9ed8\u8ba4 20 \u3002\u6700\u5927 200 \u3002 fingerprint \u4e0a\u4e00\u9875\u8fd4\u56de\u7684\u6700\u540e\u4e00\u7b14\u4ea4\u6613\u7684\u6307\u7eb9\u3002 order_by \u6392\u5e8f\u65b9\u6848\u3002 order_by=block_number,asc , order_by=block_timestamp,desc \u3002 min_block_timestamp \u4ea4\u6613\u65f6\u95f4\u6233\u6700\u5c0f\u503c\u4e3a 0 \u3002 max_block_timestamp \u4ea4\u6613\u65f6\u95f4\u6233\u6700\u5927\u503c\u4e3a now \u3002 \u793a\u4f8b\uff1a https://api.trongrid.io/v1/accounts/TLCuBEirVzB6V4menLZKw1jfBTFMZbuKq/transactions?only_to=true&only_from=true \u67e5\u8be2\u8d26\u6237\u8d44\u6e90\u4fe1\u606f \u63a5\u53e3\uff1a https://api.trongrid.io/v1/accounts/:address/resources \u53c2\u6570\uff1a address: \u8d26\u6237\u7684\u5730\u5740 \u793a\u4f8b\uff1a https://api.trongrid.io/v1/accounts/TLCuBEirVzB6V4menLZKw1jfBTFMZbuKq/resources","title":"\u8d26\u6237\u63a5\u53e3"},{"location":"clients/tron-grid/#_3","text":"\u67e5\u8be2\u6240\u6709\u901a\u8bc1\u4fe1\u606f \u63a5\u53e3\uff1a https://api.trongrid.io/v1/assets \u9009\u9879\uff1a order_by \u6392\u5e8f\u65b9\u6848\u3002\u652f\u6301\u5b57\u6bb5\uff1a total_supply,asc | total_supply,desc , start_time,asc | start_time,desc , end_time,asc | end_time,desc , id,asc | id,desc . \u4f8b\u5982\uff1a order_by=total_supply,asc \u3002 \u6309\u7167\u6807\u8bc6\u7b26\u67e5\u8be2\u901a\u8bc1\u4fe1\u606f \u63a5\u53e3\uff1a https://api.trongrid.io/v1/assets/:identifier \u53c2\u6570\uff1a identifier: \u53ef\u4ee5\u4e3a\u901a\u8bc1id\u6216\u8005\u53d1\u884c\u8005\u7684\u5730\u5740 \u6309\u7167\u901a\u8bc1\u540d\u79f0\u67e5\u8be2\u901a\u8bc1\u4fe1\u606f \u63a5\u53e3\uff1a https://api.trongrid.io/v1/assets/:name/list \u53c2\u6570\uff1a name: \u901a\u8bc1\u540d\u79f0\u3002 \u9009\u9879\uff1a limit \u5206\u9875\u67e5\u8be2\u4ea4\u6613\uff0c\u6bcf\u9875\u7684\u6570\u76ee\u3002\u9ed8\u8ba4 20 \u3002\u6700\u5927 200 \u3002 fingerprint \u4e0a\u4e00\u9875\u8fd4\u56de\u7684\u6700\u540e\u4e00\u7b14\u4ea4\u6613\u7684\u6307\u7eb9\u3002 order_by \u6392\u5e8f\u65b9\u6848\u3002\u652f\u6301\u5b57\u6bb5 order_by=total_supply,asc \uff0c order_by=start_time,desc \u3002","title":"\u901a\u8bc1\u63a5\u53e3"},{"location":"clients/tron-grid/#_4","text":"1. \u67e5\u8be2\u4e00\u4e2a\u533a\u5757\u4e2d\u7684\u4e8b\u4ef6\u4fe1\u606f \u63a5\u53e3\uff1a https://api.trongrid.io/v1/blocks/:identifier/events \u53c2\u6570\uff1a identifier: \u533a\u5757\u9ad8\u5ea6\u3002","title":"\u533a\u5757\u63a5\u53e3"},{"location":"clients/tron-grid/#_5","text":"\u6839\u636e\u5408\u7ea6\u5730\u5740\u67e5\u8be2\u4e8b\u4ef6\u4fe1\u606f \u63a5\u53e3\uff1a https://api.trongrid.io/v1/contracts/:address/events \u53c2\u6570\uff1a address: \u5408\u7ea6\u5730\u5740\u3002 \u9009\u9879\uff1a only_confirmed \u53ea\u663e\u793a\u5df2\u7ecf\u786e\u8ba4\u8fc7\u7684\u4e8b\u4ef6\u3002 true | false \u9ed8\u8ba4\u4e3a false \u3002 only_unconfirmed \u53ea\u663e\u793a\u672a\u786e\u8ba4\u8fc7\u7684\u4e8b\u4ef6\u3002 true | false \u9ed8\u8ba4\u4e3a false \u3002 event_name \u4e8b\u4ef6\u7684\u540d\u79f0\u3002 block_number \u4e8b\u4ef6\u6240\u5728\u7684\u533a\u5757\u9ad8\u5ea6\u3002 min_block_timestamp \u533a\u5757\u65f6\u95f4\u6233\u6700\u5c0f\u503c\u3002\u9ed8\u8ba4\u4e3a 0 \u3002 max_block_timestamp \u533a\u5757\u65f6\u95f4\u6233\u6700\u5927\u503c\u3002\u9ed8\u8ba4\u4e3a now \u3002 limit \u5206\u9875\u67e5\u8be2\u4ea4\u6613\uff0c\u6bcf\u9875\u7684\u6570\u76ee\u3002\u9ed8\u8ba4 20 \u3002\u6700\u5927 200 \u3002 fingerprint \u4e0a\u4e00\u9875\u8fd4\u56de\u7684\u6700\u540e\u4e00\u7b14\u4ea4\u6613\u7684\u6307\u7eb9\u3002 order_by \u6392\u5e8f\u65b9\u6848\u3002\u81ea\u6301\u5b57\u6bb5 block_timestamp,asc , block_timestamp,desc \u3002 \u67e5\u8be2\u5408\u7ea6\u5730\u5740\u7684\u4ea4\u6613\u4fe1\u606f \u63a5\u53e3\uff1a https://api.trongrid.io/v1/contracts/:address/transactions \u53c2\u6570\uff1a address: \u5408\u7ea6\u5730\u5740\u3002 \u9009\u9879\uff1a only_confirmed \u53ea\u663e\u793a\u5df2\u7ecf\u786e\u8ba4\u8fc7\u7684\u4ea4\u6613\u3002 true | false \u9ed8\u8ba4\u4e3a false \u3002 only_unconfirmed \u53ea\u663e\u793a\u672a\u786e\u8ba4\u8fc7\u7684\u4ea4\u6613\u3002 true | false \u9ed8\u8ba4\u4e3a false \u3002 min_block_timestamp \u533a\u5757\u65f6\u95f4\u6233\u6700\u5c0f\u503c\u3002\u9ed8\u8ba4\u4e3a 0 \u3002 max_block_timestamp \u533a\u5757\u65f6\u95f4\u6233\u6700\u5927\u503c\u3002\u9ed8\u8ba4\u4e3a now \u3002 limit \u5206\u9875\u67e5\u8be2\u4ea4\u6613\uff0c\u6bcf\u9875\u7684\u6570\u76ee\u3002\u9ed8\u8ba4 20 \u3002\u6700\u5927 200 \u3002 fingerprint \u4e0a\u4e00\u9875\u8fd4\u56de\u7684\u6700\u540e\u4e00\u7b14\u4ea4\u6613\u7684\u6307\u7eb9\u3002 order_by \u6392\u5e8f\u65b9\u6848\u3002\u81ea\u6301\u5b57\u6bb5 block_timestamp,asc , block_timestamp,desc \u3002","title":"\u5408\u7ea6\u63a5\u53e3"},{"location":"clients/tron-grid/#_6","text":"\u6839\u636e\u4ea4\u6613ID\u67e5\u8be2\u4ea4\u6613\u4fe1\u606f \u63a5\u53e3\uff1a https://api.trongrid.io/v1/transactions/:id \u53c2\u6570\uff1a id: \u4ea4\u6613ID\u3002 \u6839\u636e\u4ea4\u6613ID\u67e5\u8be2\u4ea4\u6613\u4e2d\u7684\u4e8b\u4ef6 A\u63a5\u53e3\uff1a https://api.trongrid.io/v1/transactions/:id/events \u53c2\u6570\uff1a id: \u4ea4\u6613ID\u3002","title":"\u4ea4\u6613\u63a5\u53e3"},{"location":"clients/wallet-cli-command/","text":"Wallet\u547d\u4ee4 \u00b6 \u4e0b\u9762\u662fWallet-Cli\u94b1\u5305\u652f\u6301\u7684\u547d\u4ee4\u5206\u7c7b: \u5bc6\u94a5\u7ba1\u7406 \u94fe\u4e0a\u8d26\u6237 \u8d26\u6237\u8d44\u6e90 \u4ea4\u6613 \u67e5\u8be2\u94fe\u4e0a\u6570\u636e \u667a\u80fd\u5408\u7ea6 TRC-10\u8d44\u4ea7 \u6cbb\u7406 \u53bb\u4e2d\u5fc3\u5316\u4ea4\u6613\u6240 \u5bc6\u94a5\u7ba1\u7406 \u00b6 \u4e0b\u9762\u662f\u8d26\u6237\u5730\u5740\u76f8\u5173\u547d\u4ee4\uff1a RegisterWallet Login BackupWallet BackupWallet2Base64 ChangePassword ImportWallet ImportWalletByBase64 RegisterWallet \u00b6 \u6ce8\u518c\u65f6\uff0c\u9700\u8981\u5148\u4e3a\u8d26\u6237\u8bbe\u7f6e\u5bc6\u7801\uff0c\u4e4b\u540e\u5e26\u6709\u8d26\u6237\u4fe1\u606f\u7684json\u6587\u4ef6\u5c06\u4f1a\u751f\u6210\u5728 wallet-cli/wallet \u8def\u5f84\u4e2d\u3002\u8d26\u6237\u5730\u5740\u5373\u662f\u6587\u4ef6\u540d\u4e2dbase58\u683c\u5f0f\u7684\u90e8\u5206\uff0c\u5982\u4e0b\u9762\u793a\u4f8b\u4e2d\u7684\u201cTWyDBTHsWJFhgywWkTNW7vh7jSUxeBaiAw\u201d\uff1a wallet> RegisterWallet Please input password. password: Please input password again. password: Register a wallet successful, keystore file name is UTC--2022-06-27T07-37-47.601000000Z--TWyDBTHsWJFhgywWkTNW7vh7jSUxeBaiAw.json Login \u00b6 \u5f53\u94b1\u5305\u6ce8\u518c\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528Login\u547d\u4ee4\u767b\u9646\u94b1\u5305\u3002\u9009\u62e9\u4f60\u60f3\u8981\u767b\u9646\u7684\u94b1\u5305\u5730\u5740\uff0c\u518d\u8f93\u5165\u5bc6\u7801\u5b8c\u6210\u767b\u9646\u3002 wallet> login use user defined config file in current dir The 1th keystore file name is UTC--2022-06-28T06-52-56.928000000Z--TB9qhqbev6DpX8mxdf3zDdtSQ6GC6Vb6Ej.json The 2th keystore file name is .DS_Store The 3th keystore file name is UTC--2022-06-22T08-31-57.735000000Z--TBnPDbw99BLzPUZuW8Rrcc3RGGQT3cnSfF.json The 4th keystore file name is UTC--2022-04-06T09-43-20.710000000Z--TSzdGHnhYnQKFF4LKrRLztkjYAvbNoxnQ8.json The 5th keystore file name is UTC--2022-04-07T09-03-38.307000000Z--TXBpeye7UQ4dDZEnmGDv4vX37mBYDo1tUE.json Please choose between 1 and 5 4 Please input your password. password: Login successful !!! BackupWallet \u00b6 \u5907\u4efd\u94b1\u5305\u65f6\u9700\u8981\u8f93\u5165\u79d8\u5bc6\uff0c\u6210\u529f\u540e\u5c06\u4f1a\u5bfc\u51fa\u4f60\u7684\u79c1\u94a5, \u5982\u4e0b\u9762\u793a\u4f8b\u4e2d\u7684\u201c721d63b074f18d41c147e04c952ec93467777a30b6f16745bc47a8eae5076545\u201d\uff1a wallet> backupwallet Please input your password. password: BackupWallet successful !! 721d63b074f18d41c147e04c952ec93467777a30b6f16745bc47a8eae5076545 BackupWallet2Base64 \u00b6 \u5907\u4efd\u94b1\u5305\u65f6\u9700\u8981\u8f93\u5165\u79d8\u5bc6\uff0c\u6210\u529f\u540e\u5c06\u4f1a\u4ee5base64\u683c\u5f0f\u5bfc\u51fa\u4f60\u7684\u79c1\u94a5, \u5982\u4e0b\u9762\u793a\u4f8b\u4e2d\u7684\u201cch1jsHTxjUHBR+BMlS7JNGd3ejC28WdFvEeo6uUHZUU=\u201d\uff1a wallet> backupwallet Please input your password. password: BackupWallet successful !! ch1jsHTxjUHBR+BMlS7JNGd3ejC28WdFvEeo6uUHZUU = ChangePassword \u00b6 \u4f7f\u7528\u672c\u547d\u4ee4\u6765\u66f4\u6539\u5bc6\u7801 wallet> changepassword Please input old password. password: Please input new password. Please input password. password: Please input password again. password: The 1th keystore file name is .DS_Store The 2th keystore file name is UTC--2022-06-27T10-58-59.306000000Z--TBnPDbw99BLzPUZuW8Rrcc3RGGQT3cnSfF.json Please choose between 1 and 2 2 ChangePassword successful !! ImportWallet \u00b6 \u5728\u5bfc\u5165\u94b1\u5305\u65f6\uff0c\u9700\u5148\u4e3a\u5373\u5c06\u5bfc\u5165\u7684\u79c1\u94a5\u8bbe\u7f6e\u4e00\u4e2a\u5bc6\u7801\uff0c\u4e4b\u540e\u518d\u5bfc\u5165\u79c1\u94a5\uff0c\u63d0\u793a\u6210\u529f\u540e\uff0c\u5c06\u4f1a\u5728 wallet-cli/wallet \u8def\u5f84\u4e0b\u751f\u6210\u4e00\u4e2a\u8bb0\u5f55\u8be5\u94b1\u5305\u7684json\u6587\u4ef6\uff0c\u8bf7\u770b\u793a\u4f8b\uff1a wallet> importwallet Please input password. password: Please input password again. password: Please input private key. Max retry time:3 bd1ff0f4f852db45316bf08755bf6eee45d0678bfbf852a00020a13d42a1fb5b Import a wallet successful, keystore file name is UTC--2022-06-28T06-52-56.928000000Z--TB9qhqbev6DpX8mxdf3zDdtSQ6GC6Vb6Ej.json ImportWalletByBase64 \u00b6 \u5728\u5bfc\u5165\u94b1\u5305\u65f6\uff0c\u9700\u5148\u4e3a\u5373\u5c06\u5012\u5165\u7684\u79c1\u94a5\u8bbe\u7f6e\u4e00\u4e2a\u5bc6\u7801\uff0c\u4e4b\u540e\u518d\u5bfc\u5165base64\u683c\u5f0f\u7684\u79c1\u94a5\uff0c\u63d0\u793a\u6210\u529f\u540e\uff0c\u5c06\u4f1a\u5728 wallet-cli/wallet \u8def\u5f84\u4e0b\u751f\u6210\u4e00\u4e2a\u8bb0\u5f55\u8be5\u94b1\u5305\u7684json\u6587\u4ef6\u3002 wallet> importwalletbybase64 Please input password. password: Please input password again. password: Please input private key by base64. Max retry time:3 vR/w9PhS20Uxa/CHVb9u7kXQZ4v7+FKgACChPUKh+1s = Import a wallet successful, keystore file name is UTC--2022-06-28T06-51-56.154000000Z--TB9qhqbev6DpX8mxdf3zDdtSQ6GC6Vb6Ej.json \u94fe\u4e0a\u8d26\u6237 \u00b6 \u4e0b\u9762\u662f\u8d26\u6237\u5730\u5740\u76f8\u5173\u547d\u4ee4\uff1a GenerateAddress GetAccount GetAddress GetBalance UpdateAccountPermission GenerateAddress \u00b6 \u4f7f\u7528\u8be5\u547d\u4ee4\u751f\u6210\u4e00\u4e2a\u65b0\u7684\u94b1\u5305\u5730\u5740\u548c\u5b83\u7684\u79c1\u94a5 wallet> generateaddress { \"address\" : \"TQAvi6bemLa1t1irdV1KuaSC5vKc2EswTj\" , \"privateKey\" : \"610a8a809114a96140e1cb040a7813afc74603e58c3d7824c3f68ccc642c297e\" } \u6ce8\u610f \u751f\u6210\u7684\u5730\u5740\u53ca\u5176\u79c1\u94a5\u4e0d\u4f1a\u88ab\u4fdd\u5b58\uff0c\u5982\u9700\u4f7f\u7528\u8bf7\u5355\u72ec\u7559\u5b58\u3002 GetAccount \u00b6 \u4f7f\u7528\u5730\u5740\u83b7\u5f97\u8d26\u6237\u76f8\u5173\u4fe1\u606f\uff0c\u53ef\u4ee5\u67e5\u8be2\u8d26\u6237\u4f59\u989d\uff0c\u521b\u5efa\u65f6\u95f4\u53ca\u5206\u914d\u6743\u9650\u7684\u60c5\u51b5\u7b49 wallet> getaccount [ address ] \u793a\u4f8b\uff1a wallet> getaccount TSzdGHnhYnQKFF4LKrRLztkjYAvbNoxnQ8 { \"address\" : \"TSzdGHnhYnQKFF4LKrRLztkjYAvbNoxnQ8\" , \"balance\" : 2665198240 , \"create_time\" : 1650363711000 , \"latest_opration_time\" : 1653578769000 , \"latest_consume_free_time\" : 1651228080000 , \"account_resource\" : { \"latest_consume_time_for_energy\" : 1653578769000 } , \"owner_permission\" : { \"permission_name\" : \"owner\" , \"threshold\" : 1 , \"keys\" : [ { \"address\" : \"TSzdGHnhYnQKFF4LKrRLztkjYAvbNoxnQ8\" , \"weight\" : 1 } ] } , \"active_permission\" : [ { \"type\" : \"Active\" , \"id\" : 2 , \"permission_name\" : \"active\" , \"threshold\" : 1 , \"operations\" : \"7fff1fc0033e3b00000000000000000000000000000000000000000000000000\" , \"keys\" : [ { \"address\" : \"TSzdGHnhYnQKFF4LKrRLztkjYAvbNoxnQ8\" , \"weight\" : 1 } ] } ] } GetAddress \u00b6 \u4f7f\u7528\u8be5\u547d\u4ee4\u7acb\u5373\u83b7\u5f97\u5f53\u524d\u767b\u9646\u8d26\u6237\u7684\u5730\u5740 wallet> getaddress GetAddress successful !! address = TSzdGHnhYnQKFF4LKrRLztkjYAvbNoxnQ8 GetBalance \u00b6 \u4f7f\u7528\u8be5\u547d\u4ee4\u67e5\u8be2\u5f53\u524d\u767b\u9646\u8d26\u6237\u7684\u4f59\u989d wallet> getbalance Balance = 2665198240 UpdateAccountPermission \u00b6 \u8be5\u547d\u4ee4\u7528\u4e8e\u4e3a\u5176\u4ed6\u8d26\u6237\u8d4b\u4e88\u5f53\u524d\u8d26\u6237\u7684\u90e8\u5206\u6743\u9650\uff0c\u8ba9\u5176\u4ed6\u8d26\u6237\u53ef\u4ee5\u5728\u8be5\u53d1\u8d77\u8d26\u6237\u4e0b\u5b8c\u6210\u591a\u79cd\u64cd\u4f5c\u4ee5\u4fbf\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u529f\u80fd\u53ca\u66f4\u597d\u7684\u7ba1\u7406\u8d26\u6237\uff0c\u7ecf\u5e38\u7528\u4e8e\u591a\u91cd\u7b7e\u540d\u4ea4\u6613\u7b49\u573a\u666f\u3002 wallet>UpdateAccountPermission [ ownerAddress ] [ permissions ] \u6743\u9650\u5206\u4e3a\u5982\u4e0b\u4e09\u79cd\uff1a owner : \u62e5\u6709\u8d26\u6237\u7684\u6240\u6709\u6743\u9650\u3002 active : \u53ef\u4ee5\u83b7\u5f97\u8d26\u6237\u4e2d\u7684\u7279\u5b9a\u6743\u9650\uff0c\u5982\u679c\u662fwitness\u6743\u9650\u5219\u4e0d\u5305\u62ec\u51fa\u5757\u6743\u5229\u3002 witness : \u53ea\u7528\u4e8ewitness, \u51fa\u5757\u7684\u6743\u5229\u5c06\u4f1a\u88ab\u6388\u4e88\u5176\u4ed6\u8d26\u6237\u3002 \u6ce8\u610f \u53c2\u6570 Permission \u5fc5\u987b\u6309json\u683c\u5f0f\u4f20\u5165\u4e14\u4e0d\u80fd\u6362\u884c\u3002\u5982\u679cowner\u8d26\u6237\u4e0d\u662f\u8d85\u7ea7\u4ee3\u8868\uff0c\u5219\u4e0d\u8981\u6388\u6743witness\u6743\u9650\u7ed9\u5176\u4ed6\u8d26\u6237\u3002 \u793a\u4f8b\uff1a wallet> updateaccountpermission TSzdGHnhYnQKFF4LKrRLztkjYAvbNoxnQ8 { \"owner_permission\" : { \"keys\" : [{ \"address\" : \"TSzdGHnhYnQKFF4LKrRLztkjYAvbNoxnQ8\" , \"weight\" :1 }] , \"threshold\" :1, \"type\" :0, \"permission_name\" : \"owner\" } , \"active_permissions\" : [{ \"operations\" : \"7fff1fc0033e0000000000000000000000000000000000000000000000000000\" , \"keys\" : [{ \"address\" : \"TB9qhqbev6DpX8mxdf3zDdtSQ6GC6Vb6Ej\" , \"weight\" :1 } , { \"address\" : \"TXBpeye7UQ4dDZEnmGDv4vX37mBYDo1tUE\" , \"weight\" :1 }] , \"threshold\" :2, \"type\" :2, \"permission_name\" : \"active12323\" }]} { \"raw_data\" : { \"contract\" : [ { \"parameter\" : { \"value\" : { \"owner\" : { \"keys\" : [ { \"address\" : \"TSzdGHnhYnQKFF4LKrRLztkjYAvbNoxnQ8\" , \"weight\" :1 } ] , \"threshold\" :1, \"permission_name\" : \"owner\" } , \"owner_address\" : \"TSzdGHnhYnQKFF4LKrRLztkjYAvbNoxnQ8\" , \"actives\" : [ { \"operations\" : \"7fff1fc0033e0000000000000000000000000000000000000000000000000000\" , \"keys\" : [ { \"address\" : \"TB9qhqbev6DpX8mxdf3zDdtSQ6GC6Vb6Ej\" , \"weight\" :1 } , { \"address\" : \"TXBpeye7UQ4dDZEnmGDv4vX37mBYDo1tUE\" , \"weight\" :1 } ] , \"threshold\" :2, \"type\" : \"Active\" , \"permission_name\" : \"active12323\" } ] } , \"type_url\" : \"type.googleapis.com/protocol.AccountPermissionUpdateContract\" } , \"type\" : \"AccountPermissionUpdateContract\" } ] , \"ref_block_bytes\" : \"4e88\" , \"ref_block_hash\" : \"11a47859be13f689\" , \"expiration\" :1656423231000, \"timestamp\" :1656423171818 } , \"raw_data_hex\" : \"0a024e88220811a47859be13f6894098dc92d49a305aee01082e12e9010a3c747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e4163636f756e745065726d697373696f6e557064617465436f6e747261637412a8010a1541babecec4d9f58f0df77f0728b9c53abb1f21d68412241a056f776e657220013a190a1541babecec4d9f58f0df77f0728b9c53abb1f21d6841001226908021a0b6163746976653132333233200232207fff1fc0033e00000000000000000000000000000000000000000000000000003a190a15410cfaec7164cbfe78dbb8d8fba7e23b4d745ed81310013a190a1541e8bd653015895947cec33d1670a88cf67ab277b9100170ea8d8fd49a30\" } before sign transaction hex string is 0a8d020a024e88220811a47859be13f6894098dc92d49a305aee01082e12e9010a3c747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e4163636f756e745065726d697373696f6e557064617465436f6e747261637412a8010a1541babecec4d9f58f0df77f0728b9c53abb1f21d68412241a056f776e657220013a190a1541babecec4d9f58f0df77f0728b9c53abb1f21d6841001226908021a0b6163746976653132333233200232207fff1fc0033e00000000000000000000000000000000000000000000000000003a190a15410cfaec7164cbfe78dbb8d8fba7e23b4d745ed81310013a190a1541e8bd653015895947cec33d1670a88cf67ab277b9100170ea8d8fd49a30 Please confirm and input your permission id, if input y or Y means default 0 , other non-numeric characters will cancel transaction. y Please choose your key for sign. The 1th keystore file name is UTC--2022-06-28T06-52-56.928000000Z--TB9qhqbev6DpX8mxdf3zDdtSQ6GC6Vb6Ej.json The 2th keystore file name is .DS_Store The 3th keystore file name is UTC--2022-04-06T09-43-20.710000000Z--TSzdGHnhYnQKFF4LKrRLztkjYAvbNoxnQ8.json The 4th keystore file name is UTC--2022-04-07T09-03-38.307000000Z--TXBpeye7UQ4dDZEnmGDv4vX37mBYDo1tUE.json Please choose between 1 and 4 3 Please input your password. password: after sign transaction hex string is 0a8d020a024e88220811a47859be13f6894096bcb5de9a305aee01082e12e9010a3c747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e4163636f756e745065726d697373696f6e557064617465436f6e747261637412a8010a1541babecec4d9f58f0df77f0728b9c53abb1f21d68412241a056f776e657220013a190a1541babecec4d9f58f0df77f0728b9c53abb1f21d6841001226908021a0b6163746976653132333233200232207fff1fc0033e00000000000000000000000000000000000000000000000000003a190a15410cfaec7164cbfe78dbb8d8fba7e23b4d745ed81310013a190a1541e8bd653015895947cec33d1670a88cf67ab277b9100170ea8d8fd49a301241881b00f8e8828d9347469fcbcec730093841c2363561243b7162a9669439266049ab82f20f97a136adc88feff0a4d5aa57b11f762eaa7e05105d27ec5d55a33900 txid is 3dce7f18f6cf6962c38904678947b3b32f9e94ba6460874679d8ed063bb1c0eb UpdateAccountPermission successful !!! \u8d26\u6237\u8d44\u6e90 \u00b6 \u4e0b\u9762\u662f\u8d26\u6237\u5730\u5740\u76f8\u5173\u547d\u4ee4\uff1a freezeBalance unfreezeBalance getDelegatedResource freezeBalanceV2 unfreezeBalanceV2 delegateResource unDelegateResource withdrawExpireUnfreeze getAvailableUnfreezeCount getCanWithdrawUnfreezeAmount getCanDelegatedMaxSize getDelegatedResourceV2 getDelegatedResourceAccountIndexV2 GetAccountNet GetAccountResource freezeBalance \u00b6 \u901a\u8fc7\u8d28\u62bc\u4e00\u5b9a\u6570\u91cf\u7684TRX\u53ef\u4ee5\u83b7\u5f97 \u5e26\u5bbd \uff0c \u80fd\u91cf \u4ee5\u53ca TRON Power \uff08\u6295\u7968\u6743\uff09\u3002\u7528\u6237\u540c\u6837\u4e5f\u53ef\u4ee5\u901a\u8fc7\u8d28\u62bcTRX\u6765\u4e3a\u522b\u4eba\u63d0\u4f9b \u5e26\u5bbd \u548c \u80fd\u91cf \u3002\u8d28\u62bc\u8d44\u4ea7\u7684\u5355\u4f4d\u662fsun\u3002\u8be5\u63a5\u53e3\u5df2\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528freezeBalanceV2\u63a5\u53e3\u8d28\u62bcTRX\u3002 wallet> freezeBalance [ OwnerAddress ] [ frozen_balance ] [ frozen_duration ] [ ResourceCode:0 BANDWIDTH, 1 ENERGY ] [ receiverAddress ] OwnerAddress \u662f\u4ea4\u6613\u53d1\u8d77\u4eba\u7684\u5730\u5740\uff0c\u4e3a\u9009\u586b\uff0c\u4e0d\u586b\u5219\u9ed8\u8ba4\u4e3a\u5f53\u524d\u767b\u5f55\u8d26\u6237\u5730\u5740\u3002 frozen_balance \u662f\u6240\u51bb\u7ed3TRX\u7684\u6570\u503c,\u5355\u4f4d\u4e3a sun , \u6700\u5c0f\u51bb\u7ed3\u503c\u4e3a1000000sun\u3002 frozen_duration \u51bb\u7ed3\u5929\u6570, \u76ee\u524d\u53ea\u80fd\u8bbe\u7f6e\u4e3a3\u5929, \u5c31\u662f\u8bf43\u5929\u4e4b\u540e\u624d\u53ef\u89e3\u51bb\u3002 ResourceCode \u7528\u6765\u6307\u793a\u6240\u51bb\u7ed3\u8d44\u6e90\u7684\u79cd\u7c7b\uff0c0\u4e3a \u5e26\u5bbd \uff0c1\u4e3a \u80fd\u91cf \u3002 receiverAddress \u4e3a\u8d44\u6e90\u63a5\u53d7\u4eba\u7684\u5730\u5740\u3002 ResourceCode \u4e0e receiverAddress \u4e3a\u9009\u586b\uff0c ResourceCode \u5982\u82e5\u4e0d\u586b\uff0c\u9ed8\u8ba4\u503c\u4e3a0\uff0c\u5373\u9009\u62e9\u7c7b\u578b\u4e3a \u5e26\u5bbd \uff0c receiverAddress \u5982\u82e5\u4e0d\u586b\uff0c\u5219\u9ed8\u8ba4\u4e3a OwnerAddress \u4f7f\u7528\u3002 \u793a\u4f8b: wallet> freezeBalance TWyDBTHsWJFhgywWkTNW7vh7jSUxeBaiAw 1000000 3 1 TCrkRWJuHP4VgQF3xwLNBAjVVXvxRRGpbA { \"raw_data\" : { ... } , \"raw_data_hex\" : \"0a02a9b822081db2070d39d2316640c095dda19a305a70080b126c0a32747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e467265657a6542616c616e6365436f6e747261637412360a1541e65aca838a9e15dd81bd9532d2ad61300e58cf7110c0843d180350017a15411fafb1e96dfe4f609e2259bfaf8c77b60c535b9370c6c8d9a19a30\" } before sign transaction hex string is 0a8e010a02a9b822081db2070d39d2316640c095dda19a305a70080b126c0a32747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e467265657a6542616c616e6365436f6e747261637412360a1541e65aca838a9e15dd81bd9532d2ad61300e58cf7110c0843d180350017a15411fafb1e96dfe4f609e2259bfaf8c77b60c535b9370c6c8d9a19a30 Please confirm and input your permission id, if input y or Y means default 0 , other non-numeric characters will cancel transaction. y Please choose your key for sign. The 1th keystore file name is UTC--2022-06-22T08-21-05.158000000Z--TDQgNvjrE6RH749f8aFGyJqEEGyhV4BDEU.json The 2th keystore file name is UTC--2022-06-27T07-37-47.601000000Z--TWyDBTHsWJFhgywWkTNW7vh7jSUxeBaiAw.json Please choose between 1 and 2 2 Please input your password. password: after sign transaction hex string is 0a8e010a02a9b822081db2070d39d2316640e0f7ffab9a305a70080b126c0a32747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e467265657a6542616c616e6365436f6e747261637412360a1541e65aca838a9e15dd81bd9532d2ad61300e58cf7110c0843d180350017a15411fafb1e96dfe4f609e2259bfaf8c77b60c535b9370c6c8d9a19a301241c45742648e6970e01b242c9b6eca2549c8721b860ced71abd331b9fe925f3c0f184768e0d2e3b580ce787cc6f67d186a0d583226fdb69c2cc8cfc6ec42e389f600 txid is f45cb5ae425796a492d4a9ecac8d60fd48bf78dbcdbe1d92725047c5dfbffba2 FreezeBalance successful !!! unfreezeBalance \u00b6 wallet>unfreezeBalance [ OwnerAddress ] ResourceCode ( 0 BANDWIDTH,1 ENERGY,2 TRON_POWER ) [ receiverAddress ] OwnerAddress \u662f\u4ea4\u6613\u53d1\u8d77\u4eba\u7684\u5730\u5740\u3002 ResourceCode \u7528\u6765\u6307\u793a\u6240\u51bb\u7ed3\u8d44\u6e90\u7684\u79cd\u7c7b\uff0c0\u4e3a \u5e26\u5bbd \uff0c1\u4e3a \u80fd\u91cf \u3002 receiverAddress \u4e3a\u8d44\u6e90\u63a5\u53d7\u4eba\u7684\u5730\u5740\u3002 \u793a\u4f8b\uff1a wallet> unfreezebalance TSzdGHnhYnQKFF4LKrRLztkjYAvbNoxnQ8 1 TXBpeye7UQ4dDZEnmGDv4vX37mBYDo1tUE { \"raw_data\" : { \"contract\" : [ { \"parameter\" : { \"value\" : { \"resource\" : \"ENERGY\" , \"receiver_address\" : \"TXBpeye7UQ4dDZEnmGDv4vX37mBYDo1tUE\" , \"owner_address\" : \"TSzdGHnhYnQKFF4LKrRLztkjYAvbNoxnQ8\" } , \"type_url\" : \"type.googleapis.com/protocol.UnfreezeBalanceContract\" } , \"type\" : \"UnfreezeBalanceContract\" } ] , \"ref_block_bytes\" : \"c8b7\" , \"ref_block_hash\" : \"8842722f2845274d\" , \"expiration\" :1656915213000, \"timestamp\" :1656915154748 } , \"raw_data_hex\" : \"0a02c8b722088842722f2845274d40c8f5debe9c305a6c080c12680a34747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e556e667265657a6542616c616e6365436f6e747261637412300a1541babecec4d9f58f0df77f0728b9c53abb1f21d68450017a1541e8bd653015895947cec33d1670a88cf67ab277b970bcaedbbe9c30\" } before sign transaction hex string is 0a8a010a02c8b722088842722f2845274d40c8f5debe9c305a6c080c12680a34747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e556e667265657a6542616c616e6365436f6e747261637412300a1541babecec4d9f58f0df77f0728b9c53abb1f21d68450017a1541e8bd653015895947cec33d1670a88cf67ab277b970bcaedbbe9c30 Please confirm and input your permission id, if input y or Y means default 0 , other non-numeric characters will cancel transaction. y Please choose your key for sign. The 1th keystore file name is UTC--2022-06-28T06-52-56.928000000Z--TB9qhqbev6DpX8mxdf3zDdtSQ6GC6Vb6Ej.json The 2th keystore file name is .DS_Store The 3th keystore file name is UTC--2022-04-06T09-43-20.710000000Z--TSzdGHnhYnQKFF4LKrRLztkjYAvbNoxnQ8.json The 4th keystore file name is UTC--2022-04-07T09-03-38.307000000Z--TXBpeye7UQ4dDZEnmGDv4vX37mBYDo1tUE.json Please choose between 1 and 4 3 Please input your password. password: after sign transaction hex string is 0a8a010a02c8b722088842722f2845274d40e8dd81c99c305a6c080c12680a34747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e556e667265657a6542616c616e6365436f6e747261637412300a1541babecec4d9f58f0df77f0728b9c53abb1f21d68450017a1541e8bd653015895947cec33d1670a88cf67ab277b970bcaedbbe9c301241593a94650274df29619a6a6946258ea32a22f24a33445f943e3d72cd7d9b8ce7234d188f4bf3a6f0c90cb60af36fc77dc8d376afac9ed840f36dfd68c429fb7e00 txid is 3ea58b3ac2cb05868e70d40f58916312d927c40fd1e4c549554dc3e520c1efde UnfreezeBalance successful !!! GetDelegatedResource \u00b6 wallet>getdelegatedresource [ fromAddress ] [ toAddress ] \u8be5\u547d\u4ee4\u7528\u4e8e\u67e5\u8be2\u8d26\u6237\u8d44\u6e90\u8d28\u62bc\u7684\u60c5\u51b5\u3002 fromAddress \u4e3a\u8d44\u6e90\u6240\u6709\u65b9\u5730\u5740\uff0c toAddress \u4e3a\u53d7\u76ca\u65b9\u5730\u5740\u3002 wallet> getdelegatedresource TSzdGHnhYnQKFF4LKrRLztkjYAvbNoxnQ8 TXBpeye7UQ4dDZEnmGDv4vX37mBYDo1tUE { \"delegatedResource\" : [ { \"from\" : \"TSzdGHnhYnQKFF4LKrRLztkjYAvbNoxnQ8\" , \"to\" : \"TXBpeye7UQ4dDZEnmGDv4vX37mBYDo1tUE\" , \"frozen_balance_for_energy\" : 1000000 , \"expire_time_for_energy\" : 1656660447000 } ] } freezeBalanceV2 \u00b6 Stake 2.0\u8d28\u62bc\u63a5\u53e3\uff0c\u901a\u8fc7\u8d28\u62bc\u4e00\u5b9a\u6570\u91cf\u7684TRX\u53ef\u4ee5\u83b7\u5f97 \u5e26\u5bbd \u6216\u8005 \u80fd\u91cf \u4ee5\u53ca TRON Power \uff08\u6295\u7968\u6743\uff09\u3002\u8d28\u62bc\u8d44\u4ea7\u7684\u5355\u4f4d\u662fsun\u3002 wallet> freezeBalanceV2 [ OwnerAddress ] frozen_balance ResourceCode ( 0 BANDWIDTH,1 ENERGY,2 TRON_POWER ) OwnerAddress \u662f\u4ea4\u6613\u53d1\u8d77\u4eba\u7684\u5730\u5740\uff0c\u4e3a\u9009\u586b\uff0c\u4e0d\u586b\u5219\u9ed8\u8ba4\u4e3a\u5f53\u524d\u767b\u5f55\u8d26\u6237\u5730\u5740\u3002 frozen_balance \u662f\u6240\u51bb\u7ed3TRX\u7684\u6570\u503c,\u5355\u4f4d\u4e3a sun , \u6700\u5c0f\u51bb\u7ed3\u503c\u4e3a1000000sun\u3002\u3002 ResourceCode \u7528\u6765\u6307\u793a\u8981\u83b7\u53d6\u8d44\u6e90\u7684\u7c7b\u578b, 0\u4e3a \u5e26\u5bbd \uff0c1\u4e3a \u80fd\u91cf \u3002 \u793a\u4f8b: wallet> freezeBalanceV2 1000000 1 { \"raw_data\" : { \"contract\" : [ { \"parameter\" : { \"value\" : { \"resource\" : \"ENERGY\" , \"frozen_balance\" :1000000, \"owner_address\" : \"TUoHaVjx7n5xz8LwPRDckgFrDWhMhuSuJM\" } , \"type_url\" : \"type.googleapis.com/protocol.FreezeBalanceV2Contract\" } , \"type\" : \"FreezeBalanceV2Contract\" } ] , \"ref_block_bytes\" : \"00bb\" , \"ref_block_hash\" : \"0c237850e9e3c216\" , \"expiration\" :1676620524000, \"timestamp\" :1676620465372 } , \"raw_data_hex\" : \"0a0200bb22080c237850e9e3c21640e0d3fbf2e5305a59083612550a34747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e467265657a6542616c616e63655632436f6e7472616374121d0a1541ce8a0cf0c16d48bcf22825f6053248df653c89ca10c0843d180170dc89f8f2e530\" } before sign transaction hex string is 0a770a0200bb22080c237850e9e3c21640e0d3fbf2e5305a59083612550a34747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e467265657a6542616c616e63655632436f6e7472616374121d0a1541ce8a0cf0c16d48bcf22825f6053248df653c89ca10c0843d180170dc89f8f2e530 Please confirm and input your permission id, if input y or Y means default 0 , other non-numeric characters will cancel transaction. y Please choose your key for sign. The 1th keystore file name is UTC--2023-02-17T02-53-57.163000000Z--THLJLytz6UHwpmDFi5RC43D44dmnh4ZTeL.json The 2th keystore file name is UTC--2023-02-17T07-40-47.121000000Z--TUoHaVjx7n5xz8LwPRDckgFrDWhMhuSuJM.json Please choose between 1 and 2 2 Please input your password. password: after sign transaction hex string is 0a770a0200bb22080c237850e9e3c21640dbb89efde5305a59083612550a34747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e467265657a6542616c616e63655632436f6e7472616374121d0a1541ce8a0cf0c16d48bcf22825f6053248df653c89ca10c0843d180170dc89f8f2e53012419e46cc7b6706ee6a14a541df5f9c518fae9a71ac7a7cc484c48386eb0997a8ab10c41e09feb905c5cc370fe1d15968d22cec2fd2cdc5916adfd3a78c52f8d47000 txid is 1743aa098f5e10ac8b68ccbf0ca6b5f1364a63485e442e6cb03fd33e3331e3fb freezeBalanceV2 successful !!! unfreezeBalanceV2 \u00b6 Stake2.0 \u89e3\u8d28\u62bcAPI\uff1a\u89e3\u9501\u8d28\u62bc\u7684TRX, \u91ca\u653e\u6240\u76f8\u5e94\u6570\u91cf\u7684\u5e26\u5bbd\u548c\u80fd\u91cf\uff0c\u540c\u65f6\u56de\u6536\u76f8\u5e94\u6570\u91cf\u7684\u6295\u7968\u6743(TP)\u3002 wallet> unfreezeBalanceV2 [ OwnerAddress ] unfreezeBalance ResourceCode ( 0 BANDWIDTH,1 ENERGY,2 TRON_POWER ) OwnerAddress \u662f\u4ea4\u6613\u53d1\u8d77\u4eba\u7684\u5730\u5740\u3002\u53ef\u9009\uff0c\u9ed8\u8ba4\u4e3awallet-cli\u767b\u5f55\u5730\u5740\u3002 unfreezeBalance \u89e3\u8d28\u62bcTRX\u6570\u91cf\u3002 ResourceCode \u7528\u6765\u6307\u793a\u6240\u51bb\u7ed3\u8d44\u6e90\u7684\u79cd\u7c7b\uff0c0\u4e3a \u5e26\u5bbd \uff0c1\u4e3a \u80fd\u91cf \u3002 \u793a\u4f8b\uff1a wallet> unfreezeBalanceV2 1000000 1 { \"raw_data\" : { \"contract\" : [ { \"parameter\" : { \"value\" : { \"resource\" : \"ENERGY\" , \"owner_address\" : \"TUoHaVjx7n5xz8LwPRDckgFrDWhMhuSuJM\" , \"unfreeze_balance\" :1000000 } , \"type_url\" : \"type.googleapis.com/protocol.UnfreezeBalanceV2Contract\" } , \"type\" : \"UnfreezeBalanceV2Contract\" } ] , \"ref_block_bytes\" : \"0132\" , \"ref_block_hash\" : \"0772c1a1727e2ef0\" , \"expiration\" :1676620887000, \"timestamp\" :1676620829314 } , \"raw_data_hex\" : \"0a02013222080772c1a1727e2ef040d8e791f3e5305a5b083712570a36747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e556e667265657a6542616c616e63655632436f6e7472616374121d0a1541ce8a0cf0c16d48bcf22825f6053248df653c89ca10c0843d18017082a58ef3e530\" } before sign transaction hex string is 0a790a02013222080772c1a1727e2ef040d8e791f3e5305a5b083712570a36747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e556e667265657a6542616c616e63655632436f6e7472616374121d0a1541ce8a0cf0c16d48bcf22825f6053248df653c89ca10c0843d18017082a58ef3e530 Please confirm and input your permission id, if input y or Y means default 0 , other non-numeric characters will cancel transaction. y Please choose your key for sign. The 1th keystore file name is UTC--2023-02-17T02-53-57.163000000Z--THLJLytz6UHwpmDFi5RC43D44dmnh4ZTeL.json The 2th keystore file name is UTC--2023-02-17T07-40-47.121000000Z--TUoHaVjx7n5xz8LwPRDckgFrDWhMhuSuJM.json Please choose between 1 and 2 2 Please input your password. password: after sign transaction hex string is 0a790a02013222080772c1a1727e2ef040ecd2b4fde5305a5b083712570a36747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e556e667265657a6542616c616e63655632436f6e7472616374121d0a1541ce8a0cf0c16d48bcf22825f6053248df653c89ca10c0843d18017082a58ef3e530124111bac22e9bc35e1a78c13796893e9f2b81dc99eb26d9ce7a95d0c6a0a9b5588739c52b999acd370b255d178f57bf2abef8881891f23e042ddf83c3551b8bd98e01 txid is f9e114347ea89c5d722d20226817bc41c8a39ea36be756ba216cf450ab3f1fb3 unfreezeBalanceV2 successful !!! delegateResource \u00b6 Stake 2.0 \u8d44\u6e90\u4ee3\u7406API\uff1a\u5c06\u5e26\u5bbd\u6216\u8005\u80fd\u91cf\u8d44\u6e90\u4ee3\u7406\u7ed9\u5176\u5b83\u8d26\u6237\u3002 wallet> delegateResource [ OwnerAddress ] balance ResourceCode ( 0 BANDWIDTH,1 ENERGY ) , ReceiverAddress [ lock ] OwnerAddress \u662f\u4ea4\u6613\u53d1\u8d77\u4eba\u7684\u5730\u5740\u3002\u53ef\u9009\uff0c\u9ed8\u8ba4\u4e3awallet-cli\u767b\u5f55\u5730\u5740\u3002 balance \u4ee3\u7406\u7684TRX\u6570\u91cf\u3002 ResourceCode \u7528\u6765\u6307\u793a\u4ee3\u7406\u8d44\u6e90\u7684\u79cd\u7c7b\uff0c0\u4e3a \u5e26\u5bbd \uff0c1\u4e3a \u80fd\u91cf \u3002 ReceiverAddress \u8d44\u6e90\u63a5\u6536\u8005\u5730\u5740\u3002 lock \u7528\u6765\u6307\u793a\u662f\u5426\u5c06\u8be5\u8d44\u6e90\u4ee3\u7406\u9501\u5b9a\u4e09\u5929\uff0c\u53ef\u9009\uff0c\u9ed8\u8ba4\u503c\u4e3a0\uff0c0\u4e3a\u4e0d\u9501\u5b9a\uff0c1\u4e3a\u9501\u5b9a\u3002 \u793a\u4f8b\uff1a wallet> delegateResource 1000000 1 TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g 0 { \"raw_data\" : { \"contract\" : [ { \"parameter\" : { \"value\" : { \"balance\" :1000000, \"resource\" : \"ENERGY\" , \"receiver_address\" : \"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g\" , \"owner_address\" : \"TUoHaVjx7n5xz8LwPRDckgFrDWhMhuSuJM\" } , \"type_url\" : \"type.googleapis.com/protocol.DelegateResourceContract\" } , \"type\" : \"DelegateResourceContract\" } ] , \"ref_block_bytes\" : \"020c\" , \"ref_block_hash\" : \"54e32e95d11894f8\" , \"expiration\" :1676621547000, \"timestamp\" :1676621487525 } , \"raw_data_hex\" : \"0a02020c220854e32e95d11894f840f88bbaf3e5305a710839126d0a35747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e44656c65676174655265736f75726365436f6e747261637412340a1541ce8a0cf0c16d48bcf22825f6053248df653c89ca100118c0843d221541fd49eda0f23ff7ec1d03b52c3a45991c24cd440e70a5bbb6f3e530\" } before sign transaction hex string is 0a8f010a02020c220854e32e95d11894f840f88bbaf3e5305a710839126d0a35747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e44656c65676174655265736f75726365436f6e747261637412340a1541ce8a0cf0c16d48bcf22825f6053248df653c89ca100118c0843d221541fd49eda0f23ff7ec1d03b52c3a45991c24cd440e70a5bbb6f3e530 Please confirm and input your permission id, if input y or Y means default 0 , other non-numeric characters will cancel transaction. y Please choose your key for sign. The 1th keystore file name is UTC--2023-02-17T02-53-57.163000000Z--THLJLytz6UHwpmDFi5RC43D44dmnh4ZTeL.json The 2th keystore file name is UTC--2023-02-17T07-40-47.121000000Z--TUoHaVjx7n5xz8LwPRDckgFrDWhMhuSuJM.json Please choose between 1 and 2 2 Please input your password. password: after sign transaction hex string is 0a8f010a02020c220854e32e95d11894f84093e9dcfde5305a710839126d0a35747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e44656c65676174655265736f75726365436f6e747261637412340a1541ce8a0cf0c16d48bcf22825f6053248df653c89ca100118c0843d221541fd49eda0f23ff7ec1d03b52c3a45991c24cd440e70a5bbb6f3e5301241414de060e9c104bb45d745e22b7b7a30b4a89a2635c62aab152fff5d2f10b7443023a9aa487be86652b74974ff6a7d82d3dbf94cea9ac1e0a7e48e682175e3f601 txid is 0917002d0068dde7ad4ffe46e75303d11192e17bfa78934a5f867c5ae20720ec delegateResource successful !!! unDelegateResource \u00b6 Stake 2.0 \u53d6\u6d88\u8d44\u6e90\u4ee3\u7406API\uff1a\u53d6\u6d88\u4e3a\u76ee\u6807\u5730\u5740\u4ee3\u7406\u7684\u5e26\u5bbd\u6216\u8005\u80fd\u91cf\u3002 wallet> unDelegateResource [ OwnerAddress ] balance ResourceCode ( 0 BANDWIDTH,1 ENERGY ) , ReceiverAddress OwnerAddress \u662f\u4ea4\u6613\u53d1\u8d77\u4eba\u7684\u5730\u5740\u3002\u53ef\u9009\uff0c\u9ed8\u8ba4\u4e3awallet-cli\u767b\u5f55\u5730\u5740\u3002 balance \u89e3\u4ee3\u7406\u7684TRX\u6570\u91cf\u3002 ResourceCode \u7528\u6765\u6307\u793a\u89e3\u9664\u4ee3\u7406\u8d44\u6e90\u7684\u79cd\u7c7b\uff0c0\u4e3a \u5e26\u5bbd \uff0c1\u4e3a \u80fd\u91cf \u3002 ReceiverAddress \u8d44\u6e90\u63a5\u6536\u8005\u5730\u5740\u3002 \u793a\u4f8b\uff1a wallet> unDelegateResource 1000000 1 TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g { \"raw_data\" : { \"contract\" : [ { \"parameter\" : { \"value\" : { \"balance\" :1000000, \"resource\" : \"ENERGY\" , \"receiver_address\" : \"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g\" , \"owner_address\" : \"TUoHaVjx7n5xz8LwPRDckgFrDWhMhuSuJM\" } , \"type_url\" : \"type.googleapis.com/protocol.UnDelegateResourceContract\" } , \"type\" : \"UnDelegateResourceContract\" } ] , \"ref_block_bytes\" : \"0251\" , \"ref_block_hash\" : \"68ac15256c213e71\" , \"expiration\" :1676621754000, \"timestamp\" :1676621695001 } , \"raw_data_hex\" : \"0a020251220868ac15256c213e714090ddc6f3e5305a73083a126f0a37747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e556e44656c65676174655265736f75726365436f6e747261637412340a1541ce8a0cf0c16d48bcf22825f6053248df653c89ca100118c0843d221541fd49eda0f23ff7ec1d03b52c3a45991c24cd440e709990c3f3e530\" } before sign transaction hex string is 0a91010a020251220868ac15256c213e714090ddc6f3e5305a73083a126f0a37747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e556e44656c65676174655265736f75726365436f6e747261637412340a1541ce8a0cf0c16d48bcf22825f6053248df653c89ca100118c0843d221541fd49eda0f23ff7ec1d03b52c3a45991c24cd440e709990c3f3e530 Please confirm and input your permission id, if input y or Y means default 0 , other non-numeric characters will cancel transaction. y Please choose your key for sign. The 1th keystore file name is UTC--2023-02-17T02-53-57.163000000Z--THLJLytz6UHwpmDFi5RC43D44dmnh4ZTeL.json The 2th keystore file name is UTC--2023-02-17T07-40-47.121000000Z--TUoHaVjx7n5xz8LwPRDckgFrDWhMhuSuJM.json Please choose between 1 and 2 2 Please input your password. password: after sign transaction hex string is 0a91010a020251220868ac15256c213e7140febde9fde5305a73083a126f0a37747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e556e44656c65676174655265736f75726365436f6e747261637412340a1541ce8a0cf0c16d48bcf22825f6053248df653c89ca100118c0843d221541fd49eda0f23ff7ec1d03b52c3a45991c24cd440e709990c3f3e530124102ebde16d1abaccd976f8ead4b5acf92b05f7d9796c28ca6a26b4e51442e638e5e33e598bb03732da24dc761a39b9d307c045b55323128dc9b07510ffc48933a01 txid is 537a3f4461ab55c705b77503bc42f469bfc22c0cb8588b8f3641ab40117ebfd8 unDelegateResource successful !!! withdrawExpireUnfreeze \u00b6 Stake 2.0 \u63d0\u53d6\u8d28\u62bc\u672c\u91d1API\uff1a\u63d0\u53d6\u5df2\u8fc7\u9501\u5b9a\u671f\u7684\u89e3\u8d28\u62bc\u7684\u672c\u91d1\u3002 wallet> withdrawExpireUnfreeze [ OwnerAddress ] OwnerAddress \u662f\u4ea4\u6613\u53d1\u8d77\u4eba\u7684\u5730\u5740\u3002\u53ef\u9009\uff0c\u9ed8\u8ba4\u4e3awallet-cli\u767b\u5f55\u5730\u5740\u3002 \u793a\u4f8b\uff1a wallet> withdrawExpireUnfreeze getavailableunfreezecount \u00b6 Stake 2.0 API: \u67e5\u8be2\u5f53\u4e0b\u89e3\u8d28\u62bc\u5269\u4f59\u6b21\u6570\u3002 wallet> getavailableunfreezecount [ OwnerAddress ] OwnerAddress \u662f\u4ea4\u6613\u53d1\u8d77\u4eba\u7684\u5730\u5740\u3002\u53ef\u9009\uff0c\u9ed8\u8ba4\u4e3awallet-cli\u767b\u5f55\u5730\u5740\u3002 \u793a\u4f8b\uff1a wallet> GetAvailableUnfreezeCount { \"count\" : 30 } getcanwithdrawunfreezeamount \u00b6 Stake 2.0 API: \u67e5\u8be2\u5728\u67d0\u65f6\u95f4\u70b9\u53ef\u4ee5\u63d0\u53d6\u7684\u89e3\u8d28\u62bc\u672c\u91d1\u6570\u91cf\u3002 wallet> getcanwithdrawunfreezeamount ownerAddress timestamp OwnerAddress \u662f\u4ea4\u6613\u53d1\u8d77\u4eba\u7684\u5730\u5740\u3002\u53ef\u9009\uff0c\u9ed8\u8ba4\u4e3awallet-cli\u767b\u5f55\u5730\u5740\u3002 timestamp \u67e5\u8be2\u7684\u63d0\u73b0\u65f6\u95f4\u6233\uff0c\u4ee5\u6beb\u79d2\u4e3a\u5355\u4f4d\u3002 \u793a\u4f8b\uff1a wallet> getcanwithdrawunfreezeamount 1776621695001 { \"amount\" : 4000000 } getcandelegatedmaxsize \u00b6 Stake 2.0 API: \u67e5\u8be2\u5728\u67d0\u65f6\u95f4\u70b9\u53ef\u4ee5\u63d0\u53d6\u7684\u89e3\u8d28\u62bc\u672c\u91d1\u6570\u91cf\u3002 wallet> getcandelegatedmaxsize ownerAddress type OwnerAddress \u662f\u4ea4\u6613\u53d1\u8d77\u4eba\u7684\u5730\u5740\u3002\u53ef\u9009\uff0c\u9ed8\u8ba4\u4e3awallet-cli\u767b\u5f55\u5730\u5740\u3002 type \u67e5\u8be2\u7684\u8d44\u6e90\u7c7b\u578b\uff0c0\u4e3a\u5e26\u5bbd\uff0c1\u4e3a\u80fd\u91cf\u3002 \u793a\u4f8b\uff1a wallet> getcandelegatedmaxsize 1 { \"max_size\" : 11000000 } getdelegatedresourcev2 \u00b6 Stake 2.0 API\uff1a\u67e5\u8be2\u67d0\u5730\u5740\u4ee3\u7406\u7ed9\u76ee\u6807\u5730\u5740\u7684\u8d44\u6e90\u60c5\u51b5\u3002 wallet> getdelegatedresourcev2 fromAddress toAddress fromAddress \u8d44\u6e90\u4ee3\u7406\u5730\u5740\u3002 toAddress \u8d44\u6e90\u63a5\u6536\u5730\u5740\u3002 \u793a\u4f8b\uff1a wallet> getdelegatedresourcev2 TUoHaVjx7n5xz8LwPRDckgFrDWhMhuSuJM TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g { \"delegatedResource\" : [ { \"from\" : \"TUoHaVjx7n5xz8LwPRDckgFrDWhMhuSuJM\" , \"to\" : \"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g\" , \"frozen_balance_for_bandwidth\" : 7000000 , \"frozen_balance_for_energy\" : 3000000 } ] } getdelegatedresourceaccountindexv2 \u00b6 Stake 2.0 API\uff1a\u67e5\u8be2\u67d0\u5730\u5740\u7684\u8d44\u6e90\u59d4\u6258\u7d22\u5f15\u3002\u8fd4\u56de\u4e24\u4e2a\u5217\u8868\uff0c\u4e00\u4e2a\u662f\u8be5\u5e10\u6237\u5c06\u8d44\u6e90\u59d4\u6258\u7ed9\u7684\u5730\u5740\u5217\u8868(toAddress)\uff0c\u53e6\u4e00\u4e2a\u662f\u5c06\u8d44\u6e90\u59d4\u6258\u7ed9\u8be5\u5e10\u6237\u7684\u5730\u5740\u5217\u8868(fromAddress) wallet> getdelegatedresourceaccountindexv2 ownerAddress OwnerAddress \u67e5\u8be2\u7684\u5730\u5740\u3002 \u793a\u4f8b\uff1a wallet> getdelegatedresourceaccountindexv2 TUoHaVjx7n5xz8LwPRDckgFrDWhMhuSuJM { \"account\" : \"TUoHaVjx7n5xz8LwPRDckgFrDWhMhuSuJM\" , \"fromAccounts\" : [ \"TUznHJfHe6gdYY7gvWmf6bNZHuPHDZtowf\" ] , \"toAccounts\" : [ \"TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g\" ] } GetAccountNet \u00b6 \u8be5\u547d\u4ee4\u7528\u4e8e\u67e5\u8be2\u8d26\u6237\u5185\u7684\u5e26\u5bbd\u4f7f\u7528\u60c5\u51b5 \u793a\u4f8b\uff1a wallet> getaccountnet TSzdGHnhYnQKFF4LKrRLztkjYAvbNoxnQ8 { \"freeNetUsed\" : 262 , \"freeNetLimit\" : 1500 , \"TotalNetLimit\" : 43200000000 , \"TotalNetWeight\" : 8725123062 } GetAccountResource \u00b6 \u8be5\u547d\u4ee4\u7528\u4e8e\u67e5\u8be2\u8d26\u6237\u7684\u5e26\u5bbd\u548c\u80fd\u91cf\u4f7f\u7528\u60c5\u51b5 \u793a\u4f8b\uff1a wallet> getaccountresource TSzdGHnhYnQKFF4LKrRLztkjYAvbNoxnQ8 { \"freeNetUsed\" : 262 , \"freeNetLimit\" : 1500 , \"TotalNetLimit\" : 43200000000 , \"TotalNetWeight\" : 8725123062 , \"tronPowerLimit\" : 1 , \"TotalEnergyLimit\" : 90000000000 , \"TotalEnergyWeight\" : 328098231 } \u4ea4\u6613 \u00b6 \u4e0b\u9762\u662f\u8d26\u6237\u5730\u5740\u76f8\u5173\u547d\u4ee4\uff1a SendCoin AddTransactionSign BroadcastTransaction GetTransactionApprovedList SendCoin \u00b6 > sendcoin [toAddress] [amount] toAddress \u4e3a\u76ee\u6807\u5730\u5740\uff0c amount \u4e3a\u8f6c\u8d26\u6570\u989d\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u591a\u7b7e\u4ea4\u6613\u4f8b\u5b50\uff0c\u5176\u4e2d\u7684\u7b7e\u540d\u5404\u8d26\u6237\u7684\u6388\u6743\u60c5\u51b5\u4e3a UpdateAccountPermission \u90e8\u5206\u7684\u4f8b\u5b50\u4e2d\u5b9e\u9645\u7684\u6388\u6743\u60c5\u51b5,\u8bf7\u53c2\u8003\uff1a wallet> sendcoin TXBpeye7UQ4dDZEnmGDv4vX37mBYDo1tUE 10 { \"raw_data\" : { \"contract\" : [ \u00b7\u00b7\u00b7 \"raw_data_hex\" : \"0a029ca12208432ed1fe1357ff7f40c0c484f19a305a65080112610a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412300a1541babecec4d9f58f0df77f0728b9c53abb1f21d684121541e8bd653015895947cec33d1670a88cf67ab277b9180a708a8481f19a30\" } before sign transaction hex string is 0a83010a029ca12208432ed1fe1357ff7f40c0c484f19a305a65080112610a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412300a1541babecec4d9f58f0df77f0728b9c53abb1f21d684121541e8bd653015895947cec33d1670a88cf67ab277b9180a708a8481f19a30 Please confirm and input your permission id, if input y or Y means default 0 , other non-numeric characters will cancel transaction. 2 Please choose your key for sign. The 1th keystore file name is UTC--2022-06-28T06-52-56.928000000Z--TB9qhqbev6DpX8mxdf3zDdtSQ6GC6Vb6Ej.json The 2th keystore file name is .DS_Store The 3th keystore file name is UTC--2022-04-06T09-43-20.710000000Z--TSzdGHnhYnQKFF4LKrRLztkjYAvbNoxnQ8.json The 4th keystore file name is UTC--2022-04-07T09-03-38.307000000Z--TXBpeye7UQ4dDZEnmGDv4vX37mBYDo1tUE.json Please choose between 1 and 4 1 Please input your password. password: Current signWeight is: { \"result\" : { \"code\" : \"NOT_ENOUGH_PERMISSION\" } , \"approved_list\" : [ \"TB9qhqbev6DpX8mxdf3zDdtSQ6GC6Vb6Ej\" ] , \"permission\" : { \"operations\" : \"7fff1fc0033e0000000000000000000000000000000000000000000000000000\" , \"keys\" : [ { \"address\" : \"TB9qhqbev6DpX8mxdf3zDdtSQ6GC6Vb6Ej\" , \"weight\" :1 } , { \"address\" : \"TXBpeye7UQ4dDZEnmGDv4vX37mBYDo1tUE\" , \"weight\" :1 } ] , \"threshold\" :2, \"id\" :2, \"type\" : \"Active\" , \"permission_name\" : \"active12323\" } , \"current_weight\" :1, \"transaction\" : { \"result\" : { \"result\" :true } , \"txid\" : \"ece603ec8ad11578450dc8adf29dd9d9833e733c313fe16a947c8c768f1e4483\" , \"transaction\" : { \"signature\" : [ \"990001e909e638bbaa5de9b392121971d25cabde1391f5e164cd8a14608812df01a273e867c2329b8adb233599c5d353c435e789c777fd3e0b9fe83f0737a91101\" ] , \"txID\" : \"ece603ec8ad11578450dc8adf29dd9d9833e733c313fe16a947c8c768f1e4483\" , \"raw_data\" :\u00b7\u00b7\u00b7, \"raw_data_hex\" : \"0a029ca12208432ed1fe1357ff7f40a2b3a7fb9a305a67080112610a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412300a1541babecec4d9f58f0df77f0728b9c53abb1f21d684121541e8bd653015895947cec33d1670a88cf67ab277b9180a2802708a8481f19a30\" } } } Please confirm if continue add signature enter y or Y, else any other y Please choose your key for sign. The 1th keystore file name is UTC--2022-06-28T06-52-56.928000000Z--TB9qhqbev6DpX8mxdf3zDdtSQ6GC6Vb6Ej.json The 2th keystore file name is .DS_Store The 3th keystore file name is UTC--2022-04-06T09-43-20.710000000Z--TSzdGHnhYnQKFF4LKrRLztkjYAvbNoxnQ8.json The 4th keystore file name is UTC--2022-04-07T09-03-38.307000000Z--TXBpeye7UQ4dDZEnmGDv4vX37mBYDo1tUE.json Please choose between 1 and 4 4 Please input your password. password: after sign transaction hex string is 0a85010a029ca12208432ed1fe1357ff7f40a2b3a7fb9a305a67080112610a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412300a1541babecec4d9f58f0df77f0728b9c53abb1f21d684121541e8bd653015895947cec33d1670a88cf67ab277b9180a2802708a8481f19a301241990001e909e638bbaa5de9b392121971d25cabde1391f5e164cd8a14608812df01a273e867c2329b8adb233599c5d353c435e789c777fd3e0b9fe83f0737a91101124141ba3ffe9c7bb1ed184df8bf635d8c987982b2f4b22c447666ac82726f4a97cb2ef4d3fabd64137b8d59239bd7173c74264733ed140ccd04934a88c438de1cab00 txid is ece603ec8ad11578450dc8adf29dd9d9833e733c313fe16a947c8c768f1e4483 Send 10 Sun to TXBpeye7UQ4dDZEnmGDv4vX37mBYDo1tUE successful !! \u5728\u8f6c\u8d26\u8fc7\u7a0b\u4e2d\uff0c\u9700\u8981\u8f93\u5165 permission_id \uff0c\u5176\u9ed8\u8ba4\u503c\u4e3a0\uff0c\u6b64\u65f6\u8868\u793a\u8be5\u7b14\u4ea4\u6613\u53ea\u9700\u53d1\u8d77\u4eba\u7b7e\u540d\u5373\u53ef\u3002 \u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u8f93\u5165\u4e86\u201c2\u201d\uff0c\u8868\u793a\u4f7f\u7528\u591a\u91cd\u7b7e\u540d\u5b8c\u6210\u6b64\u7b14\u4ea4\u6613\uff0c\u6b64\u65f6\u9700\u8981\u62e5\u6709 actives \u6743\u9650\u7684\u4e24\u4e2a\u8d26\u6237\u90fd\u7b7e\u540d\u624d\u80fd\u5b8c\u6210\u4ea4\u6613\uff0c\u8bf7\u53c2\u7167 UpdateAccountPermission \u90e8\u5206\u7684\u4f8b\u5b50\uff0c\u9996\u5148\u7531 TB9qhqbev6DpX8mxdf3zDdtSQ6GC6Vb6Ej \u5b8c\u6210\u7b7e\u540d\uff0c\u6b64\u65f6\u7cfb\u7edf\u4f1a\u8be2\u95ee\u662f\u5426\u7ee7\u7eed\u7b7e\u540d\uff0c\u8f93\u5165\u201cy\u201d\u4e4b\u540e\uff0c\u518d\u7531 TXBpeye7UQ4dDZEnmGDv4vX37mBYDo1tUE \u5b8c\u6210\u7b7e\u540d\u3002 \u4e24\u4e2a\u8d26\u6237\u7684\u6743\u91cd\u5404\u4e3a1\uff0c\u5b8c\u6210\u591a\u7b7e\u7684\u6743\u91cd\u9600\u503c\u4e3a2\uff0c\u6b64\u65f6\u7b7e\u540d\u6761\u4ef6\u8fbe\u6210\uff0c\u4ea4\u6613\u6210\u529f\u3002\u8fd9\u4e2a\u4f8b\u5b50\u4e3a\u4f7f\u7528\u540c\u4e00\u5ba2\u6237\u7aef\u65f6\u5982\u4f55\u5b8c\u6210\u591a\u91cd\u7b7e\u540d\u4ea4\u6613\u3002\u5f53\u4f7f\u7528\u591a\u4e2a\u5ba2\u6237\u7aef\u65f6\uff0c\u8bf7\u53c2\u8003\u4e0b\u9762\u8fd9\u4e2a\u547d\u4ee4\u3002 AddTransactionSign \u00b6 \u5f53\u6709\u591a\u4e2a\u5ba2\u6237\u7aef\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u8be5\u547d\u4ee4\u8fdb\u884c\u591a\u91cd\u7b7e\u540d\u4ea4\u6613\uff0c\u6b64\u65f6\u9700\u8981\u4ea4\u6613\u672c\u4f53\u7684hex string\u3002 \u793a\u4f8b\uff1a wallet> addtransactionsign 0a83010a0241aa2208b2d2c13c86e8bd884098acb1cf9a305a65080112610a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412300a1541babecec4d9f58f0df77f0728b9c53abb1f21d684121541e8bd653015895947cec33d1670a88cf67ab277b9180a70e8e1adcf9a30 Please input permission id. 0 Please choose your key for sign. The 1th keystore file name is UTC--2022-06-28T06-52-56.928000000Z--TB9qhqbev6DpX8mxdf3zDdtSQ6GC6Vb6Ej.json The 2th keystore file name is .DS_Store The 3th keystore file name is UTC--2022-04-06T09-43-20.710000000Z--TSzdGHnhYnQKFF4LKrRLztkjYAvbNoxnQ8.json The 4th keystore file name is UTC--2022-04-07T09-03-38.307000000Z--TXBpeye7UQ4dDZEnmGDv4vX37mBYDo1tUE.json Please choose between 1 and 4 3 Please input your password. password: { \"signature\" : [ \"dbfe007bb44e8db164f4c0cf9b586a8d6a65f0612c4d9ec5350adeae6cd97c7874e7254bbf4156b545a90c34e48c8f28bdb5c8f9258514233b9201b2844d7f9201\" ] , \"txID\" : \"6e1d2460796f717b701e355734ac0e4e8b32e14c24ce569a60ad3f63afe46c87\" , \"raw_data\" : { \"contract\" : [ { \"parameter\" : { \"value\" : { \"amount\" :10, \"owner_address\" : \"TSzdGHnhYnQKFF4LKrRLztkjYAvbNoxnQ8\" , \"to_address\" : \"TXBpeye7UQ4dDZEnmGDv4vX37mBYDo1tUE\" } , \"type_url\" : \"type.googleapis.com/protocol.TransferContract\" } , \"type\" : \"TransferContract\" } ] , \"ref_block_bytes\" : \"41aa\" , \"ref_block_hash\" : \"b2d2c13c86e8bd88\" , \"expiration\" :1656434882649, \"timestamp\" :1656413188328 } , \"raw_data_hex\" : \"0a0241aa2208b2d2c13c86e8bd8840d9f0d9d99a305a65080112610a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412300a1541babecec4d9f58f0df77f0728b9c53abb1f21d684121541e8bd653015895947cec33d1670a88cf67ab277b9180a70e8e1adcf9a30\" } Transaction hex string is 0a83010a0241aa2208b2d2c13c86e8bd8840d9f0d9d99a305a65080112610a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412300a1541babecec4d9f58f0df77f0728b9c53abb1f21d684121541e8bd653015895947cec33d1670a88cf67ab277b9180a70e8e1adcf9a301241dbfe007bb44e8db164f4c0cf9b586a8d6a65f0612c4d9ec5350adeae6cd97c7874e7254bbf4156b545a90c34e48c8f28bdb5c8f9258514233b9201b2844d7f9201 \u6ce8\u610f \u7b7e\u540d\u540e\uff0c\u5404\u65b9\u9700\u8981\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u624b\u52a8\u5b8c\u6210\u4ea4\u6613\u5e7f\u64ad\u3002 BroadcastTransaction \u00b6 \u8981\u4f7f\u7528\u4ea4\u6613\u672c\u4f53hex string\u5b8c\u6210\u4ea4\u6613\u5e7f\u64ad\u65f6\uff0c\u8bf7\u4f7f\u7528\u672c\u547d\u4ee4\u3002 wallet> broadcasttransaction 0a83010a0241aa2208b2d2c13c86e8bd8840d9f0d9d99a305a65080112610a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412300a1541babecec4d9f58f0df77f0728b9c53abb1f21d684121541e8bd653015895947cec33d1670a88cf67ab277b9180a70e8e1adcf9a301241dbfe007bb44e8db164f4c0cf9b586a8d6a65f0612c4d9ec5350adeae6cd97c7874e7254bbf4156b545a90c34e48c8f28bdb5c8f9258514233b9201b2844d7f9201 BroadcastTransaction successful !!! GetTransactionApprovedList \u00b6 \u901a\u8fc7\u4ea4\u6613\u672c\u4f53hex string\u4f7f\u7528\u672c\u547d\u4ee4\u53ef\u4ee5\u67e5\u770b\u7b7e\u540d\u5217\u8868 \u793a\u4f8b\uff1a wallet> getTransactionApprovedList 0a8c010a020318220860e195d3609c86614096eadec79d2d5a6e080112680a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412370a1541a7d8a35b260395c14aa456297662092ba3b76fc01215415a523b449890854c8fc460ab602df9f31fe4293f18808084fea6dee11128027094bcb8bd9d2d1241c18ca91f1533ecdd83041eb0005683c4a39a2310ec60456b1f0075b4517443cf4f601a69788f001d4bc03872e892a5e25c618e38e7b81b8b1e69d07823625c2b0112413d61eb0f8868990cfa138b19878e607af957c37b51961d8be16168d7796675384e24043d121d01569895fcc7deb37648c59f538a8909115e64da167ff659c26101 { \"result\" : { } , \"approved_list\" : [ \"TSzdGHnhYnQKFF4LKrRLztkjYAvbNoxnQ8\" ] , \"transaction\" : { \"result\" : { \"result\" :true } , \"txid\" : \"6e1d2460796f717b701e355734ac0e4e8b32e14c24ce569a60ad3f63afe46c87\" , \"transaction\" : { \"signature\" : [ \"dbfe007bb44e8db164f4c0cf9b586a8d6a65f0612c4d9ec5350adeae6cd97c7874e7254bbf4156b545a90c34e48c8f28bdb5c8f9258514233b9201b2844d7f9201\" ] , \"txID\" : \"6e1d2460796f717b701e355734ac0e4e8b32e14c24ce569a60ad3f63afe46c87\" , \"raw_data\" : { \"contract\" : [ { \"parameter\" : { \"value\" : { \"amount\" :10, \"owner_address\" : \"TSzdGHnhYnQKFF4LKrRLztkjYAvbNoxnQ8\" , \"to_address\" : \"TXBpeye7UQ4dDZEnmGDv4vX37mBYDo1tUE\" } , \"type_url\" : \"type.googleapis.com/protocol.TransferContract\" } , \"type\" : \"TransferContract\" } ] , \"ref_block_bytes\" : \"41aa\" , \"ref_block_hash\" : \"b2d2c13c86e8bd88\" , \"expiration\" :1656434882649, \"timestamp\" :1656413188328 } , \"raw_data_hex\" : \"0a0241aa2208b2d2c13c86e8bd8840d9f0d9d99a305a65080112610a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412300a1541babecec4d9f58f0df77f0728b9c53abb1f21d684121541e8bd653015895947cec33d1670a88cf67ab277b9180a70e8e1adcf9a30\" } } } \u67e5\u8be2\u94fe\u4e0a\u6570\u636e \u00b6 \u4e0b\u9762\u662f\u8d26\u6237\u5730\u5740\u76f8\u5173\u547d\u4ee4\uff1a GetNextMaintenanceTime ListNodes GetBlock GetBlockById GetBlockByLatestNum GetBlockByLimitNext GetTransactionById GetTransactionCountByBlockNum GetTransactionInfoById GetTransactionInfoByBlockNum GetTransactionSignWeight GetNextMaintenanceTime \u00b6 \u4f7f\u7528\u8be5\u547d\u4ee4\u67e5\u8be2\u4e0b\u4e00\u4e2a\u7ef4\u62a4\u65f6\u95f4 wallet> GetNextMaintenanceTime Next maintenance time is : 2022-06-29 16:40:00 ListNodes \u00b6 \u4f7f\u7528\u8be5\u547d\u4ee4\u5217\u51fa\u5176\u4ed6\u8282\u70b9\u7684\u5730\u5740\u548c\u7aef\u53e3\u4fe1\u606f wallet> listnodes IP::1.23.456.789 Port::12345 IP::2.345.67.89 Port::12345 IP::345.678.901.234 Port::12345 \u00b7\u00b7\u00b7 GetBlock \u00b6 \u4f7f\u7528\u8be5\u547d\u4ee4\u901a\u8fc7\u533a\u5757\u9ad8\u5ea6\u67e5\u8be2\u533a\u5757\uff0c\u5982\u4e0d\u8f93\u5165\u533a\u5757\u9ad8\u5ea6\uff0c\u5219\u9ed8\u8ba4\u67e5\u8be2\u6700\u65b0\u533a\u5757\u3002 wallet> getblock Get current block !!! { \"block_header\" : { \"raw_data\" : { \"number\" :27774469, \"txTrieRoot\" : \"0000000000000000000000000000000000000000000000000000000000000000\" , \"witness_address\" : \"TQuzjxWcqHSh1xDUw4wmMFmCcLjz4wSCBp\" , \"parentHash\" : \"0000000001a7ce048eb88d7c3c5e9c5f8e93a6cc568f47140e243d00d0f9280a\" , \"version\" :24, \"timestamp\" :1656919215000 } , \"witness_signature\" : \"3af25276891b1cf7f9f72e63ad956b50e5819fb3fa6f0b6393ed092e53a90a5438620b92b5d499e0068c6775b723e3c90677157b3e9f7b8933d1e863716145f500\" } } GetBlockById \u00b6 \u901a\u8fc7\u533a\u5757\u54c8\u5e0c\u67e5\u8be2\u533a\u5757\u4fe1\u606f wallet> getblockbyid [blockID] \u793a\u4f8b\uff1a wallet> getblockbyid 0000000001a7cd54ee2b302cfd443cccec78e55a31902d2e7ea47e737c1a5ede { \"block_header\" : { \"raw_data\" : { \"number\" :27774292, \"txTrieRoot\" : \"a60f8cb160d06d5279cb463925274e18fec37f0414c4d8fdc4fb2299ccb0a8bf\" , \"witness_address\" : \"TGsdxpHNJaxsVNFFdb4R6Rib1TsKGon2Wp\" , \"parentHash\" : \"0000000001a7cd53685867286b17fa0f2389e1d3026bea0a0019c5fc37f873cb\" , \"version\" :24, \"timestamp\" :1656918678000 } , \"witness_signature\" : \"a93db1a8d989c6637d587369de2872a008f14d1df8f0aaeda8a54c324a44c269367ea31daf623834fd6a4ef3f6150ab8d370adff1df6c0e8c96af9cf34408d5600\" } , \u00b7\u00b7\u00b7 GetBlockByLatestNum \u00b6 \u83b7\u53d6\u6700\u8fd1\u7684n\u4e2a\u533a\u5757\u7684\u4fe1\u606f\uff0cn \u5fc5\u987b\u6ee1\u8db3 0 < n < 100\u3002 wallet> getblockbylatestnum [n] GetBlockByLimitNext \u00b6 \u901a\u8fc7\u533a\u5757\u9ad8\u5ea6\u67e5\u8be2\u533a\u95f4\u5185\u7684\u533a\u5757\u4fe1\u606f\u3002 startBlock \u4e3a\u533a\u95f4\u5f00\u59cb\u7684\u533a\u5757\u9ad8\u5ea6\uff0c endBLock \u4e3a\u533a\u95f4\u7ed3\u675f\u7684\u533a\u5757\u9ad8\u5ea6\u3002 wallet> GetBlockByLimitNext [startBlock, endBlock] \u793a\u4f8b\uff1a wallet> getblockbylimitnext 27774670 27774674 [ { \"block_header\" : { \"raw_data\" : { \"number\" :27774670, \"txTrieRoot\" : \"0eb9ba48deda22fafa613c0aefa6d3e0b21261ad82a126ce99a6b80e8b68045c\" , \"witness_address\" : \"TVKfvNUMcZdZbxhPLb2CkQ4nyUUhvwhv1b\" , \"parentHash\" : \"0000000001a7cecd7a2cdc58fdfd2edbfeaeb530958879bf1a299cc30043cd0b\" , \"version\" :24, \"timestamp\" :1656919824000 } , \"witness_signature\" : \"ee6653289e24edd24d70f4975e12934573d6e798a2a5c5e26e0b13bc6d25138c49a0f55fb0e9a5c503622b5877811403577a5e278528293d05c5f0b9d5d5542401\" } , \u00b7\u00b7\u00b7 GetTransactionById \u00b6 \u901a\u8fc7\u4ea4\u6613\u54c8\u5e0c\u67e5\u8be2\u4ea4\u6613\u4fe1\u606f\u3002 wallet> GetTransactionById [ transactionID ] transactionID \u662f\u4ea4\u6613\u54c8\u5e0c\uff0c\u793a\u4f8b\u5982\u4e0b\uff1a wallet> gettransactionbyid 86f09e0152cae9424685411439601c93f9a0ee484ab6e4184cb02294e85cdf89 { \"ret\" : [ { \"contractRet\" : \"SUCCESS\" } ] , \"signature\" : [ \"26b70d14ca08de644c4b1d8b71952ff57078a36719497bb188040ba589a808c7c896deb82fadcaad7d68be3d1d02bd2e490227ca90cc8b050f750aa10df6105300\" ] , \"txID\" : \"86f09e0152cae9424685411439601c93f9a0ee484ab6e4184cb02294e85cdf89\" , \"raw_data\" : { \u00b7\u00b7\u00b7 GetTransactionCountByBlockNum \u00b6 \u901a\u8fc7\u533a\u5757\u9ad8\u5ea6\u67e5\u8be2\u8be5\u533a\u5757\u5185\u6709\u591a\u5c11\u7b14\u4ea4\u6613\u3002\u6bd4\u5982\u4e0b\u4f8b\u4e2d\uff0c\u533a\u5757\u9ad8\u5ea6\u4e3a27633562\u3002 wallet> gettransactioncountbyblocknum 27633562 The block contains 4 transactions GetTransactionInfoById \u00b6 \u4f7f\u7528\u8be5\u547d\u4ee4\u901a\u8fc7\u4ea4\u6613\u54c8\u5e0c\u83b7\u53d6\u4ea4\u6613\u8be6\u60c5\uff0c\u901a\u5e38\u7528\u4e8e\u67e5\u770b\u667a\u80fd\u5408\u7ea6\u7684\u89e6\u53d1\u60c5\u51b5\u3002 \u793a\u4f8b\uff1a wallet> gettransactioninfobyid 6e1d2460796f717b701e355734ac0e4e8b32e14c24ce569a60ad3f63afe46c87 { \"id\" : \"6e1d2460796f717b701e355734ac0e4e8b32e14c24ce569a60ad3f63afe46c87\" , \"blockNumber\" : 27609041 , \"blockTimeStamp\" : 1656417906000 , \"contractResult\" : [ \"\" ] , \"receipt\" : { \"net_usage\" : 265 } } GetTransactionInfoByBlockNum \u00b6 \u901a\u8fc7\u533a\u5757\u9ad8\u5ea6\u67e5\u8be2\u8be5\u533a\u5757\u5185\u4ea4\u6613\u7684\u8be6\u60c5\uff0c blockNum \u4e3a\u533a\u5757\u9ad8\u5ea6\u3002 wallet> gettransactioninfobyblocknum [blockNum] \u793a\u4f8b\uff1a wallet> gettransactioninfobyblocknum 27775479 [ { \"result\" : \"FAILED\" , \"packingFee\" :882440, \"fee\" :882440, \"blockNumber\" :27775479, \"contractResult\" : [ \"08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002173746172742074696d65206265666f726520626c6f636b2e74696d657374616d7000000000000000000000000000000000000000000000000000000000000000\" ] , \u00b7\u00b7\u00b7 \"result\" : \"FAILED\" , \"packingFee\" :345000, \"fee\" :345000, \"blockNumber\" :27775479, \"contractResult\" : [ \"08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002345524332303a207472616e7366657220746f20746865207a65726f20616464726573730000000000000000000000000000000000000000000000000000000000\" ] , \"blockTimeStamp\" :1656922275000, \"resMessage\" : \"REVERT opcode executed\" , \"receipt\" : { \"result\" : \"REVERT\" , \"net_fee\" :345000, \"energy_usage_total\" :647, \"origin_energy_usage\" :647 } , \"id\" : \"13d1e01639edd3f5200789b2fe4d3fdeb765f0bbe4548a1fb69583da85cf7980\" , \"contract_address\" : \"TBLfSzQo8TGtCotPD5JZntpZfQqPFLehTE\" } ] GetTransactionSignWeight \u00b6 \u901a\u8fc7\u4ea4\u6613\u672c\u4f53hex string\u83b7\u53d6\u7b7e\u540d\u4fe1\u606f \u793a\u4f8b\uff1a wallet>getTransactionSignWeight 0a83010a0241aa2208b2d2c13c86e8bd8840d9f0d9d99a305a65080112610a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412300a1541babecec4d9f58f0df77f0728b9c53abb1f21d684121541e8bd653015895947cec33d1670a88cf67ab277b9180a70e8e1adcf9a301241dbfe007bb44e8db164f4c0cf9b586a8d6a65f0612c4d9ec5350adeae6cd97c7874e7254bbf4156b545a90c34e48c8f28bdb5c8f9258514233b9201b2844d7f9201 { \"result\" : { } , \"approved_list\" : [ \"TSzdGHnhYnQKFF4LKrRLztkjYAvbNoxnQ8\" ] , \"permission\" : { \"keys\" : [ { \"address\" : \"TSzdGHnhYnQKFF4LKrRLztkjYAvbNoxnQ8\" , \"weight\" :1 } ] , \"threshold\" :1, \"permission_name\" : \"owner\" } , \"current_weight\" :1, \"transaction\" : { \"result\" : { \"result\" :true } , \"txid\" : \"6e1d2460796f717b701e355734ac0e4e8b32e14c24ce569a60ad3f63afe46c87\" , \"transaction\" : { \"signature\" : [ \"dbfe007bb44e8db164f4c0cf9b586a8d6a65f0612c4d9ec5350adeae6cd97c7874e7254bbf4156b545a90c34e48c8f28bdb5c8f9258514233b9201b2844d7f9201\" ] , \u00b7\u00b7\u00b7 } } } \u667a\u80fd\u5408\u7ea6 \u00b6 \u672c\u8282\u4e3a\u6240\u6709\u4e0e\u667a\u80fd\u5408\u7ea6\u76f8\u5173\u7684\u547d\u4ee4: DeployContract TriggerContract TriggerConstantContract EstimateEnergy GetContract UpdateEnergyLimit UpdateSetting UnfreezeAsset DeployContract \u00b6 \u4f7f\u7528\u8be5\u547d\u4ee4\u90e8\u7f72\u667a\u80fd\u5408\u7ea6 wallet> DeployContract [ownerAddress] [contractName] [ABI] [byteCode] [constructor] [params] [isHex] [fee_limit] [consume_user_resource_percent] [origin_energy_limit] [value] [token_value] [token_id](e.g: TRXTOKEN, use # if don't provided)