Skip to Content
API referenceOrbit SolanaSrcComponentsgetSolanaExplorerLink()

@tuwaio/satellite-connect-monorepo


getSolanaExplorerLink()

getSolanaExplorerLink(url?, cluster?): string

Defined in: packages/orbit-solana/src/utils/getSolanaExplorerLink.ts:15 

Generates a full URL to a transaction on a Solana explorer like Solscan.

Parameters

url?

string

The url after baseUrl.

cluster?

SolanaClusterMoniker

The optional cluster name (‘devnet’, ‘testnet’) to add as a query parameter.

Returns

string

The full URL to the transaction on the explorer.

Last updated on