@recallnet/chains

0.0.9 • Public • Published

@recallnet/chains

This package provides chain configurations and utility functions for interacting with Recall Network chains. It includes definitions for Testnet, Localnet, and Devnet environments with their respective chain configurations.

Installation

pnpm add @recallnet/chains

Usage

import { devnet, getChain, localnet, testnet } from "@recallnet/chains";
// Check if a chain has a parent chain
import { checkHasParentChain, getParentChain } from "@recallnet/chains";
// Get service URLs for a chain
import { getExplorerUrl, getObjectApiUrl } from "@recallnet/chains";

// Get a specific chain by name
const chain = getChain("testnet");

const hasParent = checkHasParentChain(testnet);
const parentChain = getParentChain(testnet);

const apiUrl = getObjectApiUrl(testnet);
const explorerUrl = getExplorerUrl(testnet);

Features

  • Chain configurations for Testnet, Localnet, and Devnet
  • Utility functions for checking chain support
  • Utility functions for retrieving parent chains
  • Utility functions for retrieving service URLs

License

MIT AND Apache-2.0

Readme

Keywords

none

Package Sidebar

Install

npm i @recallnet/chains

Weekly Downloads

87

Version

0.0.9

License

MIT AND Apache-2.0

Unpacked Size

22.1 kB

Total Files

6

Last publish

Collaborators

  • asutula
  • recall-admin
  • carsonfarmer
  • joewagner
  • dtbuchholz