assertContainsResolvableTransactionSendingSigner
Asserts that the provided signers contain at least one TransactionSendingSigner that can be unambiguously resolved.
This means the signers must contain at least one sending signer, and at most one sending-only signer (i.e. a signer that implements TransactionSendingSigner but not TransactionPartialSigner or TransactionModifyingSigner). Composite signers that also implement other interfaces can be demoted to non-sending roles, so multiple composite sending signers are allowed.
Parameters
| Parameter | Type | Description |
|---|---|---|
signers | readonly TransactionSigner[] | The signers to check. |
Returns
void
Throws
SolanaError with code SOLANA_ERROR__SIGNER__TRANSACTION_SENDING_SIGNER_MISSING if no sending signer is found.
Throws
SolanaError with code SOLANA_ERROR__SIGNER__TRANSACTION_CANNOT_HAVE_MULTIPLE_SENDING_SIGNERS if more than one sending-only signer is found.