Skip to content

Files

Latest commit

e620fe5 · Feb 20, 2025

History

History
224 lines (119 loc) · 5.53 KB

Token.md

File metadata and controls

224 lines (119 loc) · 5.53 KB

Token

Properties

Name Type Description Notes
ChainID string The unique identifier of a blockchain in CAIP-2 notation.
Address string The address of an account.
Name string The CAIP-2 identifier for a blockchain.
Symbol string The symbol of the token
Decimals int32 How many decimals the token supports
LogoURI string The URI for the logo or icon of a token, chain, or DeFi project.
Tags Tags
PriceUSD Pointer to float64 The price of the asset or token in US Dollars. [optional]
Extensions Extensions

Methods

NewToken

func NewToken(chainID string, address string, name string, symbol string, decimals int32, logoURI string, tags Tags, extensions Extensions, ) *Token

NewToken instantiates a new Token object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewTokenWithDefaults

func NewTokenWithDefaults() *Token

NewTokenWithDefaults instantiates a new Token object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetChainID

func (o *Token) GetChainID() string

GetChainID returns the ChainID field if non-nil, zero value otherwise.

GetChainIDOk

func (o *Token) GetChainIDOk() (*string, bool)

GetChainIDOk returns a tuple with the ChainID field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetChainID

func (o *Token) SetChainID(v string)

SetChainID sets ChainID field to given value.

GetAddress

func (o *Token) GetAddress() string

GetAddress returns the Address field if non-nil, zero value otherwise.

GetAddressOk

func (o *Token) GetAddressOk() (*string, bool)

GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetAddress

func (o *Token) SetAddress(v string)

SetAddress sets Address field to given value.

GetName

func (o *Token) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

GetNameOk

func (o *Token) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetName

func (o *Token) SetName(v string)

SetName sets Name field to given value.

GetSymbol

func (o *Token) GetSymbol() string

GetSymbol returns the Symbol field if non-nil, zero value otherwise.

GetSymbolOk

func (o *Token) GetSymbolOk() (*string, bool)

GetSymbolOk returns a tuple with the Symbol field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSymbol

func (o *Token) SetSymbol(v string)

SetSymbol sets Symbol field to given value.

GetDecimals

func (o *Token) GetDecimals() int32

GetDecimals returns the Decimals field if non-nil, zero value otherwise.

GetDecimalsOk

func (o *Token) GetDecimalsOk() (*int32, bool)

GetDecimalsOk returns a tuple with the Decimals field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDecimals

func (o *Token) SetDecimals(v int32)

SetDecimals sets Decimals field to given value.

GetLogoURI

func (o *Token) GetLogoURI() string

GetLogoURI returns the LogoURI field if non-nil, zero value otherwise.

GetLogoURIOk

func (o *Token) GetLogoURIOk() (*string, bool)

GetLogoURIOk returns a tuple with the LogoURI field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetLogoURI

func (o *Token) SetLogoURI(v string)

SetLogoURI sets LogoURI field to given value.

GetTags

func (o *Token) GetTags() Tags

GetTags returns the Tags field if non-nil, zero value otherwise.

GetTagsOk

func (o *Token) GetTagsOk() (*Tags, bool)

GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTags

func (o *Token) SetTags(v Tags)

SetTags sets Tags field to given value.

GetPriceUSD

func (o *Token) GetPriceUSD() float64

GetPriceUSD returns the PriceUSD field if non-nil, zero value otherwise.

GetPriceUSDOk

func (o *Token) GetPriceUSDOk() (*float64, bool)

GetPriceUSDOk returns a tuple with the PriceUSD field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPriceUSD

func (o *Token) SetPriceUSD(v float64)

SetPriceUSD sets PriceUSD field to given value.

HasPriceUSD

func (o *Token) HasPriceUSD() bool

HasPriceUSD returns a boolean if a field has been set.

GetExtensions

func (o *Token) GetExtensions() Extensions

GetExtensions returns the Extensions field if non-nil, zero value otherwise.

GetExtensionsOk

func (o *Token) GetExtensionsOk() (*Extensions, bool)

GetExtensionsOk returns a tuple with the Extensions field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetExtensions

func (o *Token) SetExtensions(v Extensions)

SetExtensions sets Extensions field to given value.

[Back to Model list] [Back to API list] [Back to README]