Kit
Type aliases

TransactionPartialSigner

TransactionPartialSigner<TAddress> = Readonly<{ address: Address<TAddress>; signTransactions: Promise<readonly Readonly<Record<Address, SignatureBytes>>[]>; }>

A signer interface that signs an array of Transaction | Transactions without modifying their content. It defines a TransactionPartialSigner#signTransactions | signTransactions function that returns a SignatureDictionary for each provided transaction.

Such signature dictionaries are expected to be merged with the existing ones if any.

Type Parameters

Type ParameterDefault typeDescription
TAddress extends stringstringSupply a string literal to define a signer having a particular address.

Example

const signer: TransactionPartialSigner<'1234..5678'> = {
    address: address('1234..5678'),
    signTransactions: async (
        transactions: Transaction[]
    ): Promise<SignatureDictionary[]> => {
        // My custom signing logic.
    },
};

Remarks

Here are the main characteristics of this signer interface:

  • Parallel. It returns a signature directory for each provided transaction without modifying them, making it possible for multiple partial signers to sign the same transaction in parallel.
  • Flexible order. The order in which we use these signers for a given transaction doesn’t matter.

See

On this page