rpc

package
v1.66.3 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: BSD-3-Clause Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(name string, s types.RPCServer)

Init init rpc server

Types

type Grpc

type Grpc struct {
	// contains filtered or unexported fields
}

Grpc grpc class

func (Grpc) CreateRawTransaction

func (g Grpc) CreateRawTransaction(ctx context.Context, in *pty.ReqCreatePrivacyTx) (*types.Transaction, error)

func (Grpc) EnablePrivacy

func (g Grpc) EnablePrivacy(ctx context.Context, in *pty.ReqEnablePrivacy) (*pty.RepEnablePrivacy, error)

使能隐私账户

func (Grpc) RescanUtxos

func (g Grpc) RescanUtxos(ctx context.Context, in *pty.ReqRescanUtxos) (*pty.RepRescanUtxos, error)

扫描UTXO以及获取扫描UTXO后的状态

func (Grpc) ShowPrivacyKey

func (g Grpc) ShowPrivacyKey(ctx context.Context, in *types.ReqString) (*pty.ReplyPrivacyPkPair, error)

显示指定地址的公钥对信息,可以作为后续交易参数

type Jrpc

type Jrpc struct {
	// contains filtered or unexported fields
}

Jrpc json rpc class

func (*Jrpc) CreateRawTransaction

func (c *Jrpc) CreateRawTransaction(in *pty.ReqCreatePrivacyTx, result *interface{}) error

CreateRawTransaction create raw trasaction for json rpc

func (*Jrpc) EnablePrivacy

func (c *Jrpc) EnablePrivacy(in *pty.ReqEnablePrivacy, result *json.RawMessage) error

EnablePrivacy enable privacy for json rpc

func (*Jrpc) GetPrivacyTxByAddr

func (c *Jrpc) GetPrivacyTxByAddr(in *pty.ReqPrivacyTransactionList, result *interface{}) error

GetPrivacyTxByAddr get all privacy transaction list by param

func (*Jrpc) RescanUtxos

func (c *Jrpc) RescanUtxos(in *pty.ReqRescanUtxos, result *json.RawMessage) error

RescanUtxos rescan utxosl for json rpc

func (*Jrpc) ShowPrivacyAccountInfo

func (c *Jrpc) ShowPrivacyAccountInfo(in *pty.ReqPrivacyAccount, result *json.RawMessage) error

ShowPrivacyAccountInfo display privacy account information for json rpc

func (*Jrpc) ShowPrivacyAccountSpend

func (c *Jrpc) ShowPrivacyAccountSpend(in *pty.ReqPrivBal4AddrToken, result *json.RawMessage) error

ShowPrivacyAccountSpend display spend privacy account for json rpc

func (*Jrpc) ShowPrivacyKey

func (c *Jrpc) ShowPrivacyKey(in *types.ReqString, result *json.RawMessage) error

ShowPrivacyKey display privacy key for json rpc

Jump to

Keyboard shortcuts

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