Kit
Functions

getSignatureFromTransaction

getSignatureFromTransaction(transaction): Signature

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

ParameterType
transactionTransaction

Returns

Signature

Example

import { getSignatureFromTransaction } from '@solana/transactions';
 
const signature = getSignatureFromTransaction(tx);
console.debug(`Inspect this transaction at https://explorer.solana.com/tx/${signature}`);

On this page