Replies: 3 comments
-
Have you checked Tron signing tests? |
Beta Was this translation helpful? Give feedback.
-
@catenocrypt yes, i check this test file. for example i need to pass: |
Beta Was this translation helpful? Give feedback.
-
can i define the "function_selector" using "set_data()" ? |
Beta Was this translation helpful? Give feedback.
-
Hello,
I want to ask how to trigger smart contract method on Tron transaction.
this's how far i reached, but still cannot figure out how to pass the function name or function's parameters.
val transferContract = Tron.TriggerSmartContract.newBuilder() .setOwnerAddress(tronAddress) .setCallValue(0) .setContractAddress(contractAddress) .build()
and here's a js example of what i'm trying to implement:
tronWeb.transactionBuilder.triggerSmartContract( CONTRACT, 'transfer(address,uint256)', { feeLimit: 1_000_000, callValue: 0 }, [{ type: 'address', value: ACCOUNT }, { type: 'uint256', value: 1000000 }] );
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions