I have a JSON of TRON and I want to sign it. What should I do #1436
Unanswered
tangang199354
asked this question in
Q&A
Replies: 2 comments 2 replies
-
I want to sign the JSON for this transfer, but I can't find a Function in the SDK that can sign it |
Beta Was this translation helpful? Give feedback.
1 reply
-
You have to sign a SigningInput object, and then invoke sign(). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
{
"visible":false,
"txID":"43e61ed5157578c658159f2fa741289e2c51031d26fd310502f97044617d8511",
"raw_data":{
"contract":[
{
"parameter":{
"value":{
"data":"4bf3e2d000000000000000000000000000000000000000000000000000000000012eafda00000000000000000000000000000000000000000000000000000000609c8241",
"owner_address":"411e6992467173863e666db86a6ebc84d2dffd0e05",
"contract_address":"414d750a57d1cadae660f911bf120a4e11a9f13bbb",
"call_value":1000000
},
"type_url":"type.googleapis.com/protocol.TriggerSmartContract"
},
"type":"TriggerSmartContract"
}
],
"ref_block_bytes":"e816",
"ref_block_hash":"ecd82adc1d718100",
"expiration":1620869691000,
"fee_limit":40000000,
"timestamp":1620869637327
},
"raw_data_hex":"0a02e8162208ecd82adc1d71810040f8ecf29a962f5ab201081f12ad010a31747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e54726967676572536d617274436f6e747261637412780a15411e6992467173863e666db86a6ebc84d2dffd0e051215414d750a57d1cadae660f911bf120a4e11a9f13bbb18c0843d22444bf3e2d000000000000000000000000000000000000000000000000000000000012eafda00000000000000000000000000000000000000000000000000000000609c824170cfc9ef9a962f900180b48913",
"payInfo":{
"contract_address":"414d750a57d1cadae660f911bf120a4e11a9f13bbb",
"owner_address":"411e6992467173863e666db86a6ebc84d2dffd0e05",
"function_selector":"trxToTokenSwapInput(uint256,uint256)",
"parameter":"00000000000000000000000000000000000000000000000000000000012eafda00000000000000000000000000000000000000000000000000000000609c8241",
"call_value":1000000,
"fee_limit":40000000
}
}
Beta Was this translation helpful? Give feedback.
All reactions