Socket
Book a DemoInstallSign in
Socket

@zetachain/addresses

Package Overview
Dependencies
Maintainers
5
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zetachain/addresses

This package includes the addresses and networks to use Zetachain.

0.0.13
latest
npmnpm
Version published
Weekly downloads
21
-41.67%
Maintainers
5
Weekly downloads
 
Created
Source

ZetaChain addresses

This package includes the addresses and networks to use Zetachain.

Usage

import { getAddress } from "@zetachain/addresses";

const address = getAddress({ address: "zetaToken", networkName: "goerli", zetaNetwork:"athens" });

API

MethodDescription
isTestnetNetworkName = (networkName: string): networkName is TestnetNetworkNameReturns true if it's a valid Testnet name
isZetaTestnet = (networkName: string): networkName is ZetaTestnetNetworkNameReturns true if it's a valid ZetaTestnet name
isMainnetNetworkName = (networkName: string): networkName is MainnetNetworkNameReturns true if it's a valid Mainnet name
isNetworkName = (networkName: string): networkName is NetworkNameReturns true if it's a valid network name
isZetaNetworkName = (networkName: string): networkName is ZetaNetworkNameReturns true if it's a valid Zeta network name
type ZetaAddressValid values for ZetaAddress
getAddress = ({ address: ZetaAddress; networkName: string; zetaNetwork: string; }): stringReturns the address of a valid ZetaAddress

FAQs

Package last updated on 02 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.