getSignatureFromTransaction
Given a transaction signed by its fee payer, this method will return the Signature that uniquely identifies it. This string can be used to look up transactions at a later date, for example on a Solana block explorer.
Parameters
| Parameter | Type |
|---|---|
transaction | Transaction |
Returns
Signature
Example
Throws
with code SOLANA_ERROR__TRANSACTION__FEE_PAYER_SIGNATURE_MISSING if the transaction's fee payer has not signed it.
See
getSignatureFromTransactionIfPresent if the transaction might legitimately not have been signed by its fee payer.