Asks device to sign given transaction using the private key derived by given BIP44 path. User is asked to confirm all transaction details on Trezor.
ES6
const result = await TrezorConnect.eosSignTransaction(params);
CommonJS
TrezorConnect.eosSignTransaction(params).then(function(result) {
});
path
— requiredstring | Array<number>
minimum length is3
. read moretransaction
- requiredObject
type of Transaction
TrezorConnect.eosSignTransaction({
path: "m/44'/194'/0'/0/0",
transaction: {
chainId: 'cf057bbfb72640471fd910bcb67639c22df9f92470936cddc1ade0e2f2e7dc4f',
header: {
expiration: '2019-12-01T12:00:00',
refBlockNum: 6439,
refBlockPrefix: 2995713264,
maxNetUsageWords: 0,
maxCpuUsageMs: 0,
delaySec: 0,
},
actions: [{
account: 'eosio.token',
authorization: [{
actor: 'abcdefg12345',
permission: 'active',
}],
name: 'transfer',
data: {
from: 'abcdefg12345',
to: '12345abcdefg',
quantity: '1.0000 EOS',
memo: 'memo',
},
}]
}
});
{
success: true,
payload: {
signature: string, // hexadecimal string
}
}
Error
{
success: false,
payload: {
error: string // error message
}
}