tronSignTransaction
TRON: Sign transaction
Asks device to sign given transaction. User is asked to confirm all transaction details on OneKey.
const response = await HardwareSDK.tronSignTransaction(connectId, deviceId, params)Params
path- requiredstring | Array<number>minimum length is3. read moretransaction- requiredTronTransactiontype
TronTransaction Type
type TronTransaction = {
refBlockBytes: string;
refBlockHash: string;
expiration: number;
data?: string;
contract: TronTransactionContract;
timestamp: number;
feeLimit?: number;
};
type TronTransactionContract = {
transferContract?: TronTransferContract;
triggerSmartContract?: TronTriggerSmartContract;
};
type TronTransferContract = {
toAddress?: string;
amount?: UintType;
};
type TronTriggerSmartContract = {
contractAddress?: string;
callValue?: number;
data?: string;
callTokenValue?: number;
assetId?: number;
};
Example
Result
Error
Transaction Signing and Broadcasting
Last updated
Was this helpful?