|
Download sdks/python/docs/Balance.md from cryptorugmunch/rugmuncher-backend: direct link, hf CLI and curl.
- Browser
- Download file 1.15 kB
-
https://huggingface.co/cryptorugmunch/rugmuncher-backend/resolve/main/sdks/python/docs/Balance.md
- Command line
-
hf download hf://cryptorugmunch/rugmuncher-backend/sdks/python/docs/Balance.md
-
curl -L -o Balance.md https://huggingface.co/cryptorugmunch/rugmuncher-backend/resolve/main/sdks/python/docs/Balance.md
1.15 kB
Balance
Wallet balance + token holdings.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| address | str | ||
| chain | str | ||
| native_balance | float | [optional] [default to 0.0] | |
| native_symbol | str | [optional] [default to ''] | |
| total_value_usd | float | [optional] [default to 0.0] | |
| tokens | List[TokenHolding] | [optional] | |
| fetched_at | datetime | [optional] |
Example
from rugmunch.models.balance import Balance
# TODO update the JSON string below
json = "{}"
# create an instance of Balance from a JSON string
balance_instance = Balance.from_json(json)
# print the JSON string representation of the object
print(Balance.to_json())
# convert the object into a dict
balance_dict = balance_instance.to_dict()
# create an instance of Balance from a dict
balance_from_dict = Balance.from_dict(balance_dict)