tronprotocol / documentation Goto Github PK
View Code? Open in Web Editor NEWDocumentations of project TRON
License: GNU Lesser General Public License v3.0
Documentations of project TRON
License: GNU Lesser General Public License v3.0
RT
哪里有官方的测试网fullnode节点信息
@zergweak 你好,我们是US TRON DCD团队。我想问您设么时候有空能在 Tron-http.md 文档里描述一下所有关于多重签名的Full Node HTTP API函数,参数,参数说明,和返回值?这样我们才可以写Tron-Web的Javascript API.
AccountPermissionUpdateContract
AccountPermissionUpdate
多谢了!
My Public Address to Receive BNB bnb1qgynk6rwx8nww58mqqefuufervhg0euun0rmxf
Pay me via Trust Wallet: https://share.trustwallet.com/RE0O0IbuCbb
`Bandwidth Points
交易以字节数组的形式在网络中传输及存储,一条交易消耗的Bandwidth Points = 交易字节数 * Bandwidth Points费率。当前Bandwidth Points费率 = 1。
如一条交易的字节数组长度为200,那么该交易需要消耗200 Bandwidth Points。
注意 由于网络中总冻结资金以及账户的冻结资金随时可能发生变化,因此账户拥有的Bandwidth Points不是固定值。`
发现在转账1.12 TRX时,交易的raw_data_hex长度=266,而通过区块浏览器查询到所消耗的带宽为267。
在转账0.000001TRX时,交易的raw_data_hex长度=262,而通过区块浏览器查询到所消耗的带宽为265。
区块浏览器展示(翻个墙):
DELETE
I found this https://support.exodus.io/article/778-guide-to-swap-trx-to-mainnet
Is it still valid?
转账之前需要显示消耗的带宽
TRX,TRC10,TRC20 分别是怎么计算的?
交易以字节数组的形式在网络中传输及存储,一条交易消耗的Bandwidth Points = 交易字节数 * Bandwidth Points费率。当前Bandwidth Points费率 = 1。
这是TRC20的计算方式吗?
交易字节数是怎么计算呢?
请问需要使用这个功能需要怎么办,急
Now the energy upper limit is 50_000_000_000, it's not enough, can it expand to 500_000_000_000?
Thanks!
Is there, or will there ever be a Tron/TRX IRC channel 1? There are some great developer communities on IRC, I would highly recommend an official Tron channel for this platform.
Would be glad to help.
Regards,
ive had the Tron wallet ios since it came out ,,and now i cant even get it to download to my phone !! is there issues ?? have i lost my TRX and all the other coins i had in there???? really need some help here,,thanks
{"raw_data":{"contract":[{"parameter":{"type_url":"type.googleapis.com/protocol.TransferContract","value":{"amount":100000000,"owner_address":"41aed8b191c49361e54ba57552364bcaf0080e2904","toAddress":"41dfa234a54a2e29d0996557d8f7919d3777efe229"}},"type":"TransferContract"}],"expiration":1554314754000,"ref_block_bytes":"e017","ref_block_hash":"22363f3c30bfb063","timestamp":1554278757201},"signature":["30319d7ed60268059a3f7926473747108325e0f1775e9b012624cadc3847dac815d4b9bf109e9f68b4db9953b54362b9c7bc58e3a3e2700751f5e8689513afb601"],"txID":"2a56e744e6b69295673ead36085e5100865dd1d38853cb1ad883e1e3ee9bbfdd"}
交易数据哪里错了
GiveDirect (@give_direct)
Always nice when others recognize your hard work... Happy New Year and take a minute to read this great article... Cheers! https://t.co/6LxkdXq3ux
#GiveDirect #GiveDirectProject #GiveDirectPlatform #Philanthropy #BasicIncome #UBI #Africa #Ghana
Trying to run Full node on ubuntu or alpine from release Odyssey-v3.6.1 with openjdk8 and receive:
11:50:21.410 WARN [main] o.t.c.a.TronApplicationContext Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blockMsgHandler': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.tron.core.net.TronNetDelegate org.tron.core.net.messagehandler.BlockMsgHandler.tronNetDelegate; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tronNetDelegate': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.tron.common.overlay.server.SyncPool org.tron.core.net.TronNetDelegate.syncPool; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'syncPool': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.tron.common.overlay.discover.node.NodeManager org.tron.common.overlay.server.SyncPool.nodeManager; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'nodeManager' defined in URL [jar:file:/home/tron/FullNode.jar!/org/tron/common/overlay/discover/node/NodeManager.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.tron.core.db.Manager]: : Error creating bean with name 'manager': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.tron.core.db.TransactionStore org.tron.core.db.Manager.transactionStore; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionStore': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.tron.core.db.KhaosDatabase org.tron.core.db.TransactionStore.khaosDatabase; nested exception is java.lang.NoClassDefFoundError: javafx/util/Pair; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'manager': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.tron.core.db.TransactionStore org.tron.core.db.Manager.transactionStore; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionStore': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.tron.core.db.KhaosDatabase org.tron.core.db.TransactionStore.khaosDatabase; nested exception is java.lang.NoClassDefFoundError: javafx/util/Pair
Please advice!
运行命令: curl -X POST http://127.0.0.1:8091/walletsolidity/getblockbynum -d '{"num": 100}'
结果:
{ "blockID":"000000000000006459a4898c4ada4282e5004b1744f29d944e581810bb838526", "block_header":{ "raw_data":{ "number":100, "txTrieRoot":"0000000000000000000000000000000000000000000000000000000000000000", "witness_address":"41daf91ea1770222145d6f73f84c3ecc99499242e3", "parentHash":"0000000000000063aed8fead595dd4ece8c3cc2f5fcd4c580867001b2f219759", "version":7, "timestamp":1552448817000 }, "witness_signature":"9cdad911568095723f2a4ebae2e5d9da8b2849f43f0a8614eff4728c8fd48fb86434de54d5cc7c47548af9bfb2587fa7c6d5eba13f2ff4be993008b7a8b808bc00" } }
结果中只有blockId和blockHeader. 如果这个接口只返回这两个信息,那么我要怎么样才能根据blockNumber获取块中的交易列表。
In the protobuf documentation, it states that there are only 8 contract types - however looking at the blockchain, there are at least 12.
Guys, it would be great for smart contract developers like me if you could add command samples on this documentation's smart contract deployment
section. Particularly on 3. Deploy contract
& 4. Invoke contract
steps. Many thanks in advance.
Regarding the Bug Bounty announcement (https://github.com/tronprotocol/Documentation/blob/master/English_Documentation/TRON_BUG-BOUNTY_Program/TRON_BUG-BOUNTY_Program.md), I failed to see any indication of which branches/revisions of the source code are meant to be audited and eligible for the bounty. Is there a specific release version I should be focused on, or does the Develop branch HEAD also qualify? Thanks.
Fist Tron website is not working and then i try to send email to [email protected].
I am getting non delivery msg.
"Your message wasn't delivered to [email protected] because the domain tron.netowrk couldn't be found. Check for typos or unnecessary spaces and try again. "
version
/trx/Python-3.7.1# tron-cli version
[ TRON-CLI ]: Version:...
1.0.5
ⓘ: Upgrade to latest version:
pip install troncli --upgrade
At present, the block 10705315 has been synchronized.
It would be nice to have more information on how to use the API, as well as some working code snippets.
Hi,
I have tried to sign up Tron in tronscan.org to test how does the representative voting idea works.
But turns out when i request the trx i did not get the initial 10,000k tokens as mentioned in the tron page.
Below is the address i used when i request a trx token,
27XUvX7j1pFK6VZqNJz85jAJQXPGDzmAMfp.
To make sure something is not right I even tried to create a second account just to confirm it and it still gave the same results.
Below is also 1 of the error when I tried to participate on the token (with 0 token i have).
unfreezebalance接收方变量为receiver_address, 不是receiveraddress
There have been some automatic deduction of staked TRX to a different wallet immediately after unstaking.
There are lots of suspision that the TRX wallet that receives the unstaked token belongs to the network, as the rewards are still being issued as if being staked on the network.
After tracking the deductions using TRONSCAN, this is the wallet where the staked TRX are being sent to:
TBc9PCXDt1YnEBnD1bo51wtea9DMyMXSXG
./gradlew build
Downloading https://services.gradle.org/distributions/gradle-4.3-all.zip
Exception in thread "main" java.net.UnknownHostException: services.gradle.org
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:673)
at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173)
at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264)
at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1156)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1050)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1564)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:263)
at org.gradle.wrapper.Download.downloadInternal(Download.java:66)
at org.gradle.wrapper.Download.download(Download.java:51)
at org.gradle.wrapper.Install$1.call(Install.java:62)
at org.gradle.wrapper.Install$1.call(Install.java:48)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:69)
at org.gradle.wrapper.Install.createDist(Install.java:48)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
当本地构建交易时,通过http接口请求到最新的块信息。
然后构建BlockHeader.raw, raw中的witnessId属性如何设置。
在测试类中找到许多demo设置witnessId的值都不相同。
I tried to use
curl -X POST --data '{"jsonrpc":"2.0","method":"GetAccount","params":["TJCnKsPa7y5okkXvQAidZBzqx3QyQ6sxMW"],"id":1}' http://127.0.0.1:50051
and return
io.netty.handler.codec.http2.Http2Exception: Unexpected HTTP/1.x request: POST /
at io.netty.handler.codec.http2.Http2Exception.connectionError(Http2Exception.java:85)
at io.netty.handler.codec.http2.Http2ConnectionHandler$PrefaceDecoder.readClientPrefaceString(Http2ConnectionHandler.java:314)
at io.netty.handler.codec.http2.Http2ConnectionHandler$PrefaceDecoder.decode(Http2ConnectionHandler.java:251)
at io.netty.handler.codec.http2.Http2ConnectionHandler.decode(Http2ConnectionHandler.java:450)
at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1434)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:965)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:646)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:581)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:498)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:460)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748)
Suggestion to add a doc outlying the basics of token creation:
Including for example
I've been on this for days now, please HELP ME..! Immediately I registered on tron.network(personalcenter) I transfered 100USD in BTC to my wallet in an attempt to purchase trx. Now I've learned how to get trx from Binance but my 100Dollars is still stuck in the BTC part of my wallet. I have over 100TRX on the TRX part of the wallet but if I want to withdraw the BTC I can't submit because the address requires 40 digits for me to be able to click submit and btc address is usually 34 digits. Ive been able to transfer the ETH and TRX which is up to 40 but not BTC. What do I do?
Not sure where this should go, but I downloaded the Tron Wallet for Android yesterday made a transfer of all my trx to the cold wallet. No sign of it anywhere even though I used the receiving address that was provided.
调用私钥发送方法后提示NOT_ENOUGH_EFFECTIVE_CONNECTION
how to call rpc-api via curl? is there an example?
There is a link on documetation <> (Documentation/blob/master/TRX/Tron-overview.md) section 10.3, which link to offline signature description, is broken.
We cant know how to do offline signature now.
Currently this is the only doc for Tesnet documentation:
But for those who don't run a node and just want to use grpc of deployed testnet nodes, it would be nice to also have the list of TRON testnet solidity nodes ips that are currently deployed just like you did for mainet with :
https://github.com/tronprotocol/Documentation/blob/master/TRX/Official_Public_Node.md
Thanks
我使用Github上的一件部署的脚本部署了测试链, 但是同步不到区块信息, 主链可以, 不知是和原因
https://github.com/tronprotocol/Documentation/blob/master/TRX_CN/Tron-exchange.md Tron
公链与交易所对接方案
测试网同步全节点失败, 所有的对端节点都拒绝连接, 拒绝连接: TOO_MANY_PEERS
sync with testnet fullnode failed, but all peers refused the connection , reason: TOO_MANY_PEERS
Handshake Receive from /47.252.81.126:18888, type: P2P_DISCONNECT
reason: TOO_MANY_PEERS
.....
哪位大兄弟知道如何解决这个问题?
Hi guys, How can i solove this problem?
On the documentation to generate an address from the privatekey on step 5 you have the following variable:
P = 5ed0ec89eaec33d359b0632624b299d1174ee2aec5a625a3ce9145dd2ba4e48e049327d454fbf7ec700a9464f87dc4b73a592e27fd0d6d1fe7faf302e9f63306
On the next step you apply sha256(P) and according to the documentation the result is:
Hash = c7bcfe2713a76a15afa7ed84f25675b364b0e45e2668c1cdd59370136ad8ec2f
At this step if I apply sha256(P) I don't get the same result. Instead I get this hash:
Hash = 65551c712f0e301ba0ae5867f8f770e48f35791d177e4bda3edabdf714b5cdf5
You can try it on: https://emn178.github.io/online-tools/sha3_256.html
Can someone confirm if there is an error on the documentation ?
16:01:26: Executing task 'build'...
:extractIncludeProto UP-TO-DATE
:extractProto UP-TO-DATE
:generateProto
Using TaskInputs.file() with something that doesn't resolve to a File object has been deprecated and is scheduled to be removed in Gradle 5.0. Use TaskInputs.files() instead.
:generateProto UP-TO-DATE
C:\java-tron-develop\src\main\java\org\tron\core\db\api\index\AbstractIndex.java:109: 错误: 不兼容的类型: 无法推断类型变量 F,T#1
.filter(Iterables.transform(resultSet, AbstractIndex.this::getObject), Objects::nonNull)
^
(参数不匹配; 方法引用无效
对于getObject(? super WrappedByteArray), 找不到合适的方法
方法 AbstractIndex.getObject(byte[])不适用
(参数不匹配; Object无法转换为byte[])
方法 AbstractIndex.getObject(WrappedByteArray)不适用
(参数不匹配; Object无法转换为WrappedByteArray))
其中, F,T#1,T#2是类型变量:
F扩展已在方法 <F,T#1>transform(Iterable,Function<? super F,? extends T#1>)中声明的Object
T#1扩展已在方法 <F,T#1>transform(Iterable,Function<? super F,? extends T#1>)中声明的Object
T#2扩展已在类 AbstractIndex中声明的Object
C:\java-tron-develop\src\main\java\org\tron\core\db\api\index\AbstractIndex.java:122: 错误: 不兼容的类型: 无法推断类型变量 F,T#1
.filter(Iterables.transform(resultSet, AbstractIndex.this::getObject), Objects::nonNull)
^
(参数不匹配; 方法引用无效
对于getObject(? super WrappedByteArray), 找不到合适的方法
方法 AbstractIndex.getObject(byte[])不适用
(参数不匹配; Object无法转换为byte[])
方法 AbstractIndex.getObject(WrappedByteArray)不适用
(参数不匹配; Object无法转换为WrappedByteArray))
其中, F,T#1,T#2是类型变量:
F扩展已在方法 <F,T#1>transform(Iterable,Function<? super F,? extends T#1>)中声明的Object
T#1扩展已在方法 <F,T#1>transform(Iterable,Function<? super F,? extends T#1>)中声明的Object
T#2扩展已在类 AbstractIndex中声明的Object
C:\java-tron-develop\src\main\java\org\tron\core\db\api\index\AbstractIndex.java:131: 错误: 不兼容的类型: 无法推断类型变量 F,T#1
.filter(Iterables.transform(index, AbstractIndex.this::getObject), Objects::nonNull)
^
(参数不匹配; 方法引用无效
对于getObject(? super WrappedByteArray), 找不到合适的方法
方法 AbstractIndex.getObject(byte[])不适用
(参数不匹配; Object无法转换为byte[])
方法 AbstractIndex.getObject(WrappedByteArray)不适用
(参数不匹配; Object无法转换为WrappedByteArray))
其中, F,T#1,T#2是类型变量:
F扩展已在方法 <F,T#1>transform(Iterable,Function<? super F,? extends T#1>)中声明的Object
T#1扩展已在方法 <F,T#1>transform(Iterable,Function<? super F,? extends T#1>)中声明的Object
T#2扩展已在类 AbstractIndex中声明的Object
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
3 个错误
:compileJava FAILED
FAILURE: Build failed with an exception.
Compilation failed; see the compiler error output for details.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Get more help at https://help.gradle.org
BUILD FAILED in 20s
4 actionable tasks: 1 executed, 3 up-to-date
Compilation failed; see the compiler error output for details.
16:01:47: Task execution finished 'build'.
1、wallet/broadcasttransaction接口返回成功
2、wallet/gettransactionsign 当时也能查到交易(1执行完后立即执行的这个接口)
3、问题是:过一段时间后区块浏览器上没有该交易,再用wallet/gettransactionsign也查不到了,用同样的数据再调用wallet/broadcasttransaction就报DUP_TRANSACTION_ERROR,出现频率随机
想要解决的问题
4、如何避免这个问题?
5、我这个交易到底有没有广播成功?
Hello Team,
I am a Crypto developer and have few queries regarding the withdraw function in Tron. I am trying to withdraw Tron my exchange using the below methods
Thanks in advance
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.