Skip to main content
Version: 0.96.0

Function: getCCIPExplorerUrl()

getCCIPExplorerUrl(type: ExplorerLinkType, value: string): string

Defined in: explorer.ts:46

Generate a CCIP Explorer URL for a message, transaction, or address.

Parameters

ParameterTypeDescription
typeExplorerLinkTypeThe type of link: 'msg' for message ID, 'tx' for transaction hash, 'address' for wallet/contract address
valuestringThe message ID, transaction hash, or address

Returns

string

The full CCIP Explorer URL

Example

TypeScript
getCCIPExplorerUrl('msg', '0x54da064fc6080248aa42cc8dec9e1d19e55c5e21d9a662e06fe30915201ce553')
// => 'https://ccip.chain.link/msg/0x54da064fc6080248aa42cc8dec9e1d19e55c5e21d9a662e06fe30915201ce553'