admin

package
v3.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

common flags

Functions

func DecodeTransaction

func DecodeTransaction(rawTx string) (*types.Transaction, error)

DecodeTransaction decode tx from hex string

func LoadKeyStore

func LoadKeyStore(keyfile, passfile string) error

LoadKeyStore load keystore

func Prepare

func Prepare(ctx *cli.Context) (err error)

Prepare load keystore and init server

func Sign

func Sign(method string, params []string) (rawTx string, err error)

Sign sign

func SwapAdmin

func SwapAdmin(method string, params []string) (result interface{}, err error)

SwapAdmin rpc call server `swap.AdminCall`

Types

type CallArgs

type CallArgs struct {
	Method    string   `json:"method"`
	Params    []string `json:"params"`
	Timestamp int64    `json:"timestamp"`
}

CallArgs call args

func VerifyTransaction

func VerifyTransaction(tx *types.Transaction) (*common.Address, *CallArgs, error)

VerifyTransaction get sender

Jump to

Keyboard shortcuts

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