Asks device to sign given transaction. User is asked to confirm all transaction details on Trezor.
ES6
const result = await TrezorConnect.stellarSignTransaction(params);CommonJS
TrezorConnect.stellarSignTransaction(params).then(function(result) {
});path— obligatorystring | Array<number>minimum length is3. read morenetworkPassphrase- obligatorystringnetwork passphrasetransaction- obligatoryObjecttype of StellarTransaction
TrezorConnect.stellarSignTransaction(
path: "m/44'/1'/0'/0'/0'",
networkPassphrase: "Test SDF Network ; September 2015",
transaction: {
source: "GAXSFOOGF4ELO5HT5PTN23T5XE6D5QWL3YBHSVQ2HWOFEJNYYMRJENBV",
fee: 100,
sequence: 4294967296,
timebounds: {
minTime: null,
maxTime: null
},
memo: {
id: null,
type: 0,
text: null,
hash: null
},
operations: [
{
type: "payment",
source: "GAXSFOOGF4ELO5HT5PTN23T5XE6D5QWL3YBHSVQ2HWOFEJNYYMRJENBV",
destination: "GAXSFOOGF4ELO5HT5PTN23T5XE6D5QWL3YBHSVQ2HWOFEJNYYMRJENBV",
asset: null,
amount: "10000"
}
]
}
});{
success: true,
payload: {
publicKey: string,
signature: string,
}
}Error
{
success: false,
payload: {
error: string // error message
}
}