Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type MultiversxApiService ¶
type MultiversxNetService ¶
type MultiversxNetService interface {
CreateWallet(folderPath string, password string) (Wallet, error)
SendTransactions(pemPath string, to []string, amount decimal.Decimal, dataStr string) ([]string, error)
CreateSwapTokensFixedInput(pemPath string, contract string, fromToken string, amount decimal.Decimal, toToken string, slippage decimal.Decimal, fromDecimals int, toDecimals int) (SwapResult, error)
GetAccount(address string) (string, error)
GetTrxStatus(hash string) (string, error)
}
type SwapResult ¶
type TokenApi ¶
type TokenApi struct {
Identifier string `json:"identifier"`
Name string `json:"name"`
Ticker string `json:"ticker"`
Owner string `json:"owner"`
Minted string `json:"minted"`
Burnt string `json:"burnt"`
InitialMinted string `json:"initialMinted"`
Decimals int `json:"decimals"`
IsPaused bool `json:"isPaused"`
Transactions int `json:"transactions"`
Accounts int `json:"accounts"`
CanUpgrade bool `json:"canUpgrade"`
CanMint bool `json:"canMint"`
CanBurn bool `json:"canBurn"`
CanChangeOwner bool `json:"canChangeOwner"`
CanPause bool `json:"canPause"`
CanFreeze bool `json:"canFreeze"`
CanWipe bool `json:"canWipe"`
Price decimal.Decimal `json:"price"`
MarketCap decimal.Decimal `json:"marketCap"`
Supply string `json:"supply"`
CirculatingSupply string `json:"circulatingSupply"`
}
Click to show internal directories.
Click to hide internal directories.