package
0.23.0-rc.1
Repository: https://github.com/injectivelabs/utils-go.git
Documentation: pkg.go.dev

# README

Token Metadata for Go

Usage

Import this repo directly into your own go repo

Maintain

To add a new token's metadata:

  1. add a new token_name: {address:token_address, coinGeckoId:token_coingecko_id, denom:token_denom, metaSource: [Alchemy/custom]} kv pair in token_meta.json
  2. run make gen

To add some new util functions

  1. develop your new util functions
  2. don't forget to run make build to make sure no error in compiling at least

# Functions

GetTokenByAddress no case sensitivity, and it's safe to pass address with prefix "peggy" for unknown address, request metadata from alchemy This method rely on an internal cache, so it's safe to call it frequently.
GetTokenByDenom no case sensitivity.
GetTokenBySymbol no case sensitivity, USD/usd/Usd are all fine.
No description provided by the author

# Constants

query from Alchemy API.
defined in Customizers.

# Structs

No description provided by the author
No description provided by the author
Meta this struct is the same as the metadata in the resp of Alchemy.
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author