Skip to main content
Abstract Final Class Best-effort explorer-link construction for transactions whose backend response omits an explorerLink field.
abstract final class ChainExplorerRegistry
Kept separate from CrossmintRuntimeWalletBase so adding a new chain is a one-file change and the 18 URL rows do not bloat the wallet base.

Static Methods

explorerLinkForTransaction

static String? explorerLinkForTransaction({
  required String chain,
  required String hash,
})
Builds a https://<explorer>/tx/<hash> URL for the given chain + hash, or null when either the chain is not registered or the hash is empty.

transactionHashFromRaw

static String transactionHashFromRaw(CrossmintJsonMap raw)
Extracts a transaction hash from a wallet transaction’s raw envelope.