selectEvmTxExplorerLink()
selectEvmTxExplorerLink<
T
>(params
):string
Defined in: packages/pulsar-evm/src/utils/selectEvmTxExplorerLink.ts:26
Generates a URL to a block explorer or Safe UI for a given transaction. It handles different URL structures for standard EVM transactions and Safe multi-sig transactions.
Type Parameters
T
T
extends Transaction
The transaction type, extending the base Transaction
.
Parameters
params
The parameters for the selection.
chains
readonly [Chain
, Chain
]
An array of supported chain objects, typically from viem/chains
.
tx
T
Returns
string
The full URL to the transaction on the corresponding block explorer or Safe app, or an empty string if the transaction or required chain configuration is not found.
Last updated on