Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to sign a transaction and broadcast it in network
but I got error response
Here is my Code:
`val tron = WalletHelper.wallet
val trc20Contract = Tron.TransferTRC20Contract.newBuilder()
.setOwnerAddress(tron.getAddressForCoin(CoinType.TRON))
.setContractAddress("Contract")
.setToAddress("To")
// 1000
.setAmount(5.0.toBigDecimal().multiply(BigDecimal.TEN.pow(6)).toBigInteger().toByteString())
this is output json of my transaction:
{ "raw_data": { "contract": [ { "parameter": { "type_url": "type.googleapis.com/protocol.TriggerSmartContract", "value": { "contract_address": "41a614f803b6fd780986a42c78ec9c7f77e6ded13c", "data": "a9059cbb000000000000000000000041e2d6c8039fbc2da047642e7017c046aeed65364300000000000000000000000000000000000000000000000000000000004c4b40", "owner_address": "41a8e79cf78bd92abd03980adb849483963772cad3" } }, "type": "TriggerSmartContract" } ], "expiration": 1659240583776, "fee_limit": 1000000000, "ref_block_bytes": "3467", "ref_block_hash": "0c3058558647abbc", "timestamp": 1659204583776 }, "signature": [ "7fc2a815736d0703683fb3bfd5e123a7e479922b671333d653724e68974391ef7b8a50b34a757b2fcbfbc287741d61a0b7fc3663d00f50c96492f902f452054c00" ], "txID": "b30fe126270db271be11971877ff777b684cc21763a49312e3420945b9d52c40" }
I send this to: https://api.trongrid.io/wallet/broadcasttransaction
but I got this response:
{ "code": "TAPOS_ERROR", "txid": "b30fe126270db271be11971877ff777b684cc21763a49312e3420945b9d52c40", "message": "5461706f7320636865636b206572726f722e" }
Beta Was this translation helpful? Give feedback.
All reactions