wallet

package
v0.0.0-...-c57a2f4 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2019 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account int

func (*Account) Create

func (account *Account) Create(manager hdwallet.AccountManager, response *JsonResponse) error

Creating a new account

func (*Account) List

func (account *Account) List(wallet hdwallet.HDWallet, response *JsonResponse) error

Getting list accounts

type Address

type Address int

func (*Address) Create

func (_ *Address) Create(manage hdwallet.AddressManager, response *JsonResponse) error

type CreatedAccountResponse

type CreatedAccountResponse struct {
	Id   uint32 `json:"id"`
	Name string `json:"name"`
}

type JsonResponse

type JsonResponse struct {
	Status  bool        `json:"status"`
	Data    interface{} `json:"data"`
	Message string      `json:"message"`
}

RPC response structure

func (*JsonResponse) Error

func (response *JsonResponse) Error(err error)

The Error function sets response status false and renders an error message

func (*JsonResponse) Render

func (response *JsonResponse) Render(data interface{})

The render function renders response data and sets response status true

type ListAccountResponse

type ListAccountResponse []CreatedAccountResponse

type Wallet

type Wallet int

func (*Wallet) Create

func (_ *Wallet) Create(w hdwallet.HDWallet, reply *JsonResponse) error

Creating a new wallet

Jump to

Keyboard shortcuts

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