signTransactions method

  1. @override
Future<SignTransactionsResult> signTransactions(
  1. SignTransactionsParams params
)

Privileged Methods

The wallet endpoint should attempt to simulate the encoded transactions (base-64 on mobile devices and base-58 on desktop browsers) and present them to the user for approval (if applicable). If approved (or if it does not require approval), the wallet endpoint should sign the transactions with the private keys for the requested authorized account addresses, and return the signed transactions to the dApp endpoint.

Implementation

@override
Future<SignTransactionsResult> signTransactions(
  final SignTransactionsParams params,
) => params.payloads.length == 1 ? _signTransaction(params) : _signAllTransactions(params);