getResolvedInstructionAccountAsTransactionSigner
Extracts a TransactionSigner from a resolved instruction account.
This function validates that the resolved account is a transaction signer and returns it. Use this when you need the resolved account to be a signer.
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
T extends string | string | The address type, defaults to string. |
Parameters
| Parameter | Type | Description |
|---|---|---|
inputName | string | The name of the instruction input, used in error messages. |
value | | Address<T> | readonly [Address<T>, ProgramDerivedAddressBump] | TransactionSigner<T> | null | undefined | The resolved account value expected to be a signer. |
Returns
TransactionSigner<T>
The transaction signer.
Throws
Throws a SolanaError if the value is not a TransactionSigner.