Skip to content

telcoin/token-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

token-list

Latest Version Docs CI

Ethereum token list standard created by Uniswap

usage

Cargo.toml:

token-list = { version = "0.1.0", features = ["from-uri"] }
tokio = { version = "1", features = ["full"] }

main.rs:

use token_list::TokenList;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let token_list = TokenList::from_uri("https://defi.cmc.eth.link").await?;

    assert_eq!(token_list.name, "CMC DeFi");

    Ok(())
}

You don't need the tokio dependency if you do not wish to enable the from_uri method.

About

Ethereum token list standard

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages