UNPKG

@starknet-react/core

Version:

Starknet React is a collection of React hooks for Starknet.

19 lines (16 loc) 501 B
import type { Chain } from "@starknet-react/chains"; export interface Explorer { // link to a block block(hashOrNumber: { hash?: string; number?: number }): string; // link to a transaction transaction(hash: string): string; // link to a contract/account contract(address: string): string; // link to class hash class(hash: string): string; // the name of the explorer name: string; } export type ExplorerFactory<T extends Explorer = Explorer> = ( chain: Chain, ) => T | null;