signTransfer method
A signed, encoded transfer of amount from the stored account at
from to to. The scheme follows the stored key (Ed25519 or hybrid);
a zero fee gives the plain version 1 envelope. Throws when the store
is locked or from is unknown.
Implementation
Uint8List signTransfer({
required int chainId,
required Uint8List from,
required Uint8List to,
required int amount,
required int nonce,
int fee = 0,
}) => _scoped(
[from, to],
(p) => _bc._take(
_lib.fn<_KsSignC>('aviary_keystore_sign_transfer').asFunction<_KsSignD>()(
_h,
chainId,
p[0],
p[1],
amount,
nonce,
fee,
),
'keystore_sign_transfer',
),
);