Get explorer URL for a transaction
The network identifier
The transaction hash
Full URL to view transaction, or null if no explorer
const url = getTransactionUrl('eip155:8453', '0x1234...');console.log(url); // 'https://basescan.org/tx/0x1234...' Copy
const url = getTransactionUrl('eip155:8453', '0x1234...');console.log(url); // 'https://basescan.org/tx/0x1234...'
Get explorer URL for a transaction