Documentation ¶
Index ¶
- func GetAccount(c *gin.Context)
- func GetBalance(c *gin.Context)
- func GetESDTBalance(c *gin.Context)
- func GetESDTTokens(c *gin.Context)
- func GetKeyValuePairs(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 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 GetESDTTokens ¶ added in v1.1.12
GetESDTTokens returns the tokens list from this account
func GetKeyValuePairs ¶ added in v1.1.29
GetKeyValuePairs returns all the key-value pairs for the given address
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 GetESDTBalance(address string, key string) (string, string, error) GetAllESDTTokens(address string) ([]string, error) GetKeyValuePairs(address string) (map[string]string, error) IsInterfaceNil() bool }
FacadeHandler interface defines methods that can be used by the gin webserver
Click to show internal directories.
Click to hide internal directories.