Fenguoz / tron-php

Support TRON's TRX and TRC20, which include functions such as address creation, balance query, transaction transfer, query the latest blockchain, query information based on the blockchain, and query information based on the transaction hash
MIT License
200 stars 72 forks source link

TRX转账没有使用离线签名吗? #7

Closed 619096932 closed 3 years ago

619096932 commented 3 years ago

[Error.php:225] Client error: POST https://api.trongrid.io/wallet/gettransactionsign resulted in a 404 Not Found response: Error: 404 - Status: Not Found

[code] 404 [type] GuzzleHttp\Exception\ClientException [file] in /Applications/code/ex/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php on line 113

0 GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response)) in /Applications/code/ex/vendor/guzzlehttp/guzzle/src/Middleware.php on line 65

Fenguoz commented 3 years ago

这个是由于iexbase/tron-api包处理的。现在rpc已经取消了在线签名。在3.1之前是有在线签名和离线签名,3.1就开始只有离线签名了。建议把iexbase/tron-api更新至3.1版本

619096932 commented 3 years ago

好吧。昨晚还自己搞了个离线签名 签名方法和以太坊的基本一致