For the complete documentation index, see llms.txt. This page is also available as Markdown.

TRON

This document show Tron network qrcode protocol in TokenPocket. The TokenPocket Android version supports this protocol from 1.6.7, and Tron network watch-wallet uses this protocol interact with cold wallet, also the new version of the app will compatible with old version qrcode protocol.

Sign transaction


tron:signTransaction-version=1.0&protocol=TokenPocket&network=tron&chain_id=11111&data={
	"tx":{ 
            "visible": false,
            "txID": "a08fd7a3ad426a4dd9fa6654c36293d8dd8db3bf961bd9820696477f82b7572e",
            "raw_data": {
                "contract": [{
                    "parameter": {
                        "value": {
                            "amount": 100,
                            "owner_address": "41f90a4115ca0859c0db8415d73b3a22626506cbbe",
                            "to_address": "41be9cd66315067fd1c588b2cf7dd15969de15f556"
                        },
                        "type_url": "type.googleapis.com/protocol.TransferContract"
                    },
                    "type": "TransferContract"
                }],
                "ref_block_bytes": "7cea",
                "ref_block_hash": "cb7295aa4aa80650",
                "expiration": 1676983275000,
                "timestamp": 1676983215610
            },
            "raw_data_hex": "0a027cea2208cb7295aa4aa8065040f89bf89fe7305a65080112610a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412300a1541f90a4115ca0859c0db8415d73b3a22626506cbbe121541be9cd66315067fd1c588b2cf7dd15969de15f556186470facbf49fe730"
        },
	"address":"xxx",
	"useTronHeader":true
}

tron:signTransaction //action 
tx //Full tron transaction tx data
address //necessary, app will use the wallet with this address to sign transaction

//sign transaction result
tron:signTransactionSignature-version=1.0&protocol=TokenPocket&network=tron&chain_id=11111&data={
	"visible": false,
	"txID": "2d93a1c8e561c40af3685cdcb18421fdf6beb30ec503457701d4e54a7bafd990",
	"raw_data": {
		"contract": [{
			"parameter": {
				"value": {
					"amount": 100,
					"owner_address": "41f90a4115ca0859c0db8415d73b3a22626506cbbe",
					"to_address": "41be9cd66315067fd1c588b2cf7dd15969de15f556"
				},
				"type_url": "type.googleapis.com\/protocol.TransferContract"
			},
			"type": "TransferContract"
		}],
		"ref_block_bytes": "7e1a",
		"ref_block_hash": "629f76b26bb8f439",
		"expiration": 1676984190000,
		"timestamp": 1676984131233
	},
	"raw_data_hex": "0a027e1a2208629f76b26bb8f43940b088b0a0e7305a65080112610a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412300a1541f90a4115ca0859c0db8415d73b3a22626506cbbe121541be9cd66315067fd1c588b2cf7dd15969de15f556186470a1bdaca0e730",
	"__payload__": {
		"to_address": "41be9cd66315067fd1c588b2cf7dd15969de15f556",
		"owner_address": "41f90a4115ca0859c0db8415d73b3a22626506cbbe",
		"amount": 100
	},
	"useTronHeader": true,
	"signature": ["1a5cc4447f5cc5e3fee31ca57cadd6da653634a8f4c7d991554ec687558d009016c552d635f8ed8045b1fecab35fb43a0f1c7bb5a6391431199d5d7003d2e81c00"],
}

Sign and send transaction

Sign message

SignMessageV2

Last updated