api

package
v0.0.0-...-bc7c564 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	network.API
	// contains filtered or unexported fields
}

func NewApi

func NewApi(blockchain *blockchain.Blockchain) *Api

func (*Api) ExecuteOperations

func (this *Api) ExecuteOperations(_ context.Context, params *struct{ RawOperations string }) (bool, error)

func (*Api) FindOperation

func (this *Api) FindOperation(_ context.Context, params *struct{ Ophash string }) (*network.Operation, error)

func (*Api) GetAccount

func (this *Api) GetAccount(_ context.Context, params *struct{ Account uint32 }) (*network.Account, error)

func (*Api) GetAccountOperations

func (this *Api) GetAccountOperations(_ context.Context, params *struct {
	Account uint32
	Offset  *uint32
	Limit   uint32
}) ([]network.Operation, error)

func (*Api) GetBlock

func (this *Api) GetBlock(_ context.Context, params *struct{ Block uint32 }) (*network.Block, error)

func (*Api) GetBlockCount

func (this *Api) GetBlockCount(context.Context, *struct{}) (int, error)

func (*Api) GetBlockOperations

func (this *Api) GetBlockOperations(_ context.Context, params *struct{ Block uint32 }) ([]network.Operation, error)

func (*Api) GetBlockTemplate

func (a *Api) GetBlockTemplate(_ context.Context, params *struct {
	Reserve_size   uint64
	Wallet_address string
}) (*network.BlockTemplate, error)

func (*Api) GetHandlers

func (a *Api) GetHandlers() map[string]interface{}

func (*Api) GetPending

func (this *Api) GetPending(context.Context, *struct{}) ([]network.Operation, error)

func (*Api) GetPubKeyAccounts

func (this *Api) GetPubKeyAccounts(_ context.Context, params *struct{ B58_pubkey string }) ([]uint32, error)

func (*Api) SubmitBlock

func (a *Api) SubmitBlock(_ context.Context, params []string) (*network.SubmitBlock, error)

Jump to

Keyboard shortcuts

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