Documentation ¶
Index ¶
- func GetAccount(c *gin.Context)
- func GetAllESDTData(c *gin.Context)
- func GetBalance(c *gin.Context)
- func GetESDTBalance(c *gin.Context)
- func GetESDTNFTData(c *gin.Context)
- func GetESDTTokensWithRole(c *gin.Context)
- func GetKeyValuePairs(c *gin.Context)
- func GetNFTTokenIDsRegisteredByAddress(c *gin.Context)
- func GetUsername(c *gin.Context)
- func GetValueForKey(c *gin.Context)
- func Routes(router *wrapper.RouterWrapper)
- type FacadeHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAccount ¶
GetAccount returns an accountResponse containing information
about the account correlated with provided address
func GetAllESDTData ¶ added in v1.1.39
GetAllESDTData returns the tokens list from this account
func GetBalance ¶
GetBalance returns the balance for the address parameter
func GetESDTBalance ¶ added in v1.1.12
GetESDTBalance returns the balance for the given address and esdt token
func GetESDTNFTData ¶ added in v1.1.39
GetESDTNFTData returns the nft data for the given token
func GetESDTTokensWithRole ¶ added in v1.1.58
GetESDTTokensWithRole returns the token identifiers where a given address has the given role
func GetKeyValuePairs ¶ added in v1.1.29
GetKeyValuePairs returns all the key-value pairs for the given address
func GetNFTTokenIDsRegisteredByAddress ¶ added in v1.1.58
GetNFTTokenIDsRegisteredByAddress returns the token identifiers of the tokens where a given address is the owner
func GetUsername ¶ added in v1.1.1
GetUsername returns the username for the address parameter
func GetValueForKey ¶ added in v1.0.125
GetValueForKey returns the value for the given address and key
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) (state.UserAccountHandler, error) GetCode(account state.UserAccountHandler) []byte GetESDTData(address string, key string, nonce uint64) (*esdt.ESDigitalToken, 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