address

package
v1.2.22 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccount

func GetAccount(c *gin.Context)

GetAccount returns a response containing information about the account correlated with provided address

func GetAllESDTData added in v1.1.39

func GetAllESDTData(c *gin.Context)

GetAllESDTData returns the tokens list from this account

func GetBalance

func GetBalance(c *gin.Context)

GetBalance returns the balance for the address parameter

func GetESDTBalance added in v1.1.12

func GetESDTBalance(c *gin.Context)

GetESDTBalance returns the balance for the given address and esdt token

func GetESDTNFTData added in v1.1.39

func GetESDTNFTData(c *gin.Context)

GetESDTNFTData returns the nft data for the given token

func GetESDTTokensWithRole added in v1.1.58

func GetESDTTokensWithRole(c *gin.Context)

GetESDTTokensWithRole returns the token identifiers where a given address has the given role

func GetESDTsRoles added in v1.2.10

func GetESDTsRoles(c *gin.Context)

GetESDTsRoles returns the token identifiers and roles for a given address

func GetKeyValuePairs added in v1.1.29

func GetKeyValuePairs(c *gin.Context)

GetKeyValuePairs returns all the key-value pairs for the given address

func GetNFTTokenIDsRegisteredByAddress added in v1.1.58

func GetNFTTokenIDsRegisteredByAddress(c *gin.Context)

GetNFTTokenIDsRegisteredByAddress returns the token identifiers of the tokens where a given address is the owner

func GetUsername added in v1.1.1

func GetUsername(c *gin.Context)

GetUsername returns the username for the address parameter

func GetValueForKey added in v1.0.125

func GetValueForKey(c *gin.Context)

GetValueForKey returns the value for the given address and key

func Routes

func Routes(router *wrapper.RouterWrapper)

Routes defines address related routes

Types

type FacadeHandler

type FacadeHandler interface {
	GetBalance(address string) (*big.Int, error)
	GetUsername(address string) (string, error)
	GetValueForKey(address string, key string) (string, error)
	GetAccount(address string) (api.AccountResponse, error)
	GetESDTData(address string, key string, nonce uint64) (*esdt.ESDigitalToken, error)
	GetESDTsRoles(address string) (map[string][]string, error)
	GetNFTTokenIDsRegisteredByAddress(address string) ([]string, error)
	GetESDTsWithRole(address string, role string) ([]string, error)
	GetAllESDTTokens(address string) (map[string]*esdt.ESDigitalToken, error)
	GetKeyValuePairs(address string) (map[string]string, error)
	IsInterfaceNil() bool
}

FacadeHandler interface defines methods that can be used by the gin webserver

Jump to

Keyboard shortcuts

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