core

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2018 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CreateKey      = "create_key"
	ListKeys       = "list_keys"
	CreateAccount  = "create_account"
	CreateAsset    = "create_asset"
	CreateReceiver = "CreateReceiver"
	BuildTx        = "build_tx"
	BuildMulTx     = "build_mul_tx"
	BuildSpend     = "spend"
	BuildIssue     = "issue"
	BuildCtlAddr   = "address"
	SignTx         = "Sign_tx"
	SubmitTx       = "submit_tx"
	GetTransaction = "get_transaction"
)
View Source
const (
	// Success indicates the rpc calling is successful.
	Success = iota
	// ErrLocalExe indicates error occurs before the rpc calling.
	ErrLocalExe
	// ErrConnect indicates error occurs connecting to the bytomd, e.g.,
	// bytomd can't parse the received arguments.
	ErrConnect
	// ErrLocalParse indicates error occurs locally when parsing the response.
	ErrLocalParse
	// ErrRemote indicates error occurs in bytomd.
	ErrRemote
)

Variables

This section is empty.

Functions

func ClientCall added in v0.5.1

func ClientCall(path string, req ...interface{}) (interface{}, int)

Wrapper rpc call api.

func Execute

func Execute()

Execute send tx

func MustRPCClient added in v0.5.1

func MustRPCClient() *rpc.Client

Wraper rpc's client

func RestoreStruct

func RestoreStruct(data interface{}, out interface{})

RestoreStruct Restore data

func SendReq

func SendReq(method string, args []string) (interface{}, bool)

SendReq genetate tx and send data

func Sendbulktx

func Sendbulktx(threadTxNum int, txBtmNum string, sendAcct string, sendasset string, controlPrograms []string, txidChan chan string, index *uint64)

Sendbulktx send asset tx

Types

type Reveive

type Reveive struct {
	AccountID    string `json:"account_id"`
	AccountAlias string `json:"account_alias"`
}

Reveive use while CreateReceiver

Jump to

Keyboard shortcuts

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