address

package
v1.1.23 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: GPL-3.0 Imports: 9 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 an accountResponse containing information

about the account correlated with provided address

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 GetESDTTokens added in v1.1.12

func GetESDTTokens(c *gin.Context)

GetESDTTokens returns the tokens list from this account

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) (state.UserAccountHandler, error)
	GetCode(account state.UserAccountHandler) []byte
	GetESDTBalance(address string, key string) (string, string, error)
	GetAllESDTTokens(address 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