chaincode

package module
v0.0.0-...-869c34d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 2 Imported by: 2

README

go-chaincode

Package chaincode provides default chain-codes (i.e., (so called) currency-codes) for different blockchain-networks, for the Go programming language.

(For example, for Ethereum mainnet (i.e., chain-id=1) the default chain-code is "ETH" (and not "wei").)

The data for the chain currency-codes comes from https://chainid.network/

This package provides those chain-codess as constants, which are easily usable by programs written in the Go programming language.

Documention

Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-chaincode

GoDoc

Import

To import package chaincode use import code like the follownig:

import "github.com/reiver/go-chaincode"

Installation

To install package chaincode do the following:

GOPROXY=direct go get https://github.com/reiver/go-chaincode

Author

Package chaincode was written by Charles Iliya Krempeaux

Documentation

Index

Constants

View Source
const ArbitrumNova = "ETH"
View Source
const ArbitrumOne = "ETH"
View Source
const AvalancheCChain = "AVAX"
View Source
const AvalancheFujiTestnet = "AVAX"
View Source
const BerachainArtio = "BERA"
View Source
const Blast = "ETH"
View Source
const BlastSepoliaTestnet = "ETH"
View Source
const EthereumClassic = "ETC"
View Source
const EthereumMainnet = "ETH"
View Source
const FantomOpera = "FTM"
View Source
const FantomTestnet = "FTM"
View Source
const Holesky = "ETH"
View Source
const OPMainnet = "ETH"
View Source
const OPSepoliaTestnet = "ETH"
View Source
const PolygonMainnet = "MATIC"
View Source
const RootstockMainnet = "RBTC"
View Source
const RootstockTestnet = "tRBTC"
View Source
const Sepolia = "ETH"
View Source
const ShapeSepolia = "ETH"
View Source
const Zora = "ETH"
View Source
const ZoraSepoliaTestnet = "ETH"

Variables

This section is empty.

Functions

func ChainCode

func ChainCode(chainid uint64) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL