Utils
This module contains methods that are backend independent.
get_token_from_registry(asset: str) -> TokenInfo | None
Get token from the Cardano Token Registry.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
asset |
str
|
The policy + name of the asset. |
required |
Returns:
Type | Description |
---|---|
TokenInfo | None
|
Either the token information if the asset exists, or None if it doesn't. |
Source code in src/charli3_dendrite/backend/utils.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
|