services

package
v0.0.0-...-04daf00 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiversxApiService

type MultiversxApiService struct {
	ApiUrl string
}

func (MultiversxApiService) GetAccountToken

func (m MultiversxApiService) GetAccountToken(address string, token string) (decimal.Decimal, error)

func (MultiversxApiService) GetTokensPrice

func (m MultiversxApiService) GetTokensPrice(token string) (core.TokenApi, error)

type MultiversxService

type MultiversxService struct {
	ProxyUrl string
}

func (MultiversxService) CreateSwapTokensFixedInput

func (m MultiversxService) CreateSwapTokensFixedInput(pemPath string, contract string, fromToken string, amount decimal.Decimal, toToken string, slippage decimal.Decimal, fromDecimals int, toDecimals int) (core.SwapResult, error)

func (MultiversxService) CreateWallet

func (m MultiversxService) CreateWallet(folderPath string, password string) (core.Wallet, error)

Function for create a single wallet, returning a struct

func (MultiversxService) GetAccount

func (m MultiversxService) GetAccount(address string) (float64, error)

func (MultiversxService) GetContractStatus

func (m MultiversxService) GetContractStatus(hash string) (string, error)

func (MultiversxService) GetTrxStatus

func (m MultiversxService) GetTrxStatus(hash string) (string, error)

func (MultiversxService) SendTransactions

func (m MultiversxService) SendTransactions(pemPath string, to []string, amount decimal.Decimal, dataStr string) ([]string, error)

func (MultiversxService) SwapTokensFixedInputData

func (m MultiversxService) SwapTokensFixedInputData(fromToken string, amount decimal.Decimal, toToken string, slippage decimal.Decimal) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL