signTransfer method

Uint8List signTransfer({
  1. required int chainId,
  2. required Uint8List from,
  3. required Uint8List to,
  4. required int amount,
  5. required int nonce,
  6. int fee = 0,
})

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',
  ),
);