Functions
signTransaction
signTransaction<
T
>(keyPairs
,transaction
):Promise
<NominalType
<"transactionSignedness"
,"fullySigned"
> &Readonly
<{messageBytes
:TransactionMessageBytes
;signatures
:SignaturesMap
; }> &T
>
Given an array of CryptoKey
objects which are private keys pertaining to addresses that are
required to sign a transaction, this method will return a new signed transaction of type
FullySignedTransaction.
This function will throw unless the resulting transaction is fully signed.
Type Parameters
Type Parameter |
---|
T extends Readonly <{ messageBytes : TransactionMessageBytes ; signatures : SignaturesMap ; }> & TransactionWithLifetime |
Parameters
Parameter | Type |
---|---|
keyPairs | CryptoKeyPair [] |
transaction | T |
Returns
Promise
<NominalType
<"transactionSignedness"
, "fullySigned"
> & Readonly
<{ messageBytes
: TransactionMessageBytes
; signatures
: SignaturesMap
; }> & T
>
Example
See
partiallySignTransaction if you want to sign the transaction without asserting that the resulting transaction is fully signed.