Documentation ¶
Index ¶
- func Init(name string, s types.RPCServer)
- type Grpc
- func (g Grpc) CreateRawTransaction(ctx context.Context, in *pty.ReqCreatePrivacyTx) (*types.Transaction, error)
- func (g Grpc) EnablePrivacy(ctx context.Context, in *pty.ReqEnablePrivacy) (*pty.RepEnablePrivacy, error)
- func (g Grpc) RescanUtxos(ctx context.Context, in *pty.ReqRescanUtxos) (*pty.RepRescanUtxos, error)
- func (g Grpc) ShowPrivacyKey(ctx context.Context, in *types.ReqString) (*pty.ReplyPrivacyPkPair, error)
- type Jrpc
- func (c *Jrpc) CreateRawTransaction(in *pty.ReqCreatePrivacyTx, result *interface{}) error
- func (c *Jrpc) EnablePrivacy(in *pty.ReqEnablePrivacy, result *json.RawMessage) error
- func (c *Jrpc) GetPrivacyTxByAddr(in *pty.ReqPrivacyTransactionList, result *interface{}) error
- func (c *Jrpc) RescanUtxos(in *pty.ReqRescanUtxos, result *json.RawMessage) error
- func (c *Jrpc) ShowPrivacyAccountInfo(in *pty.ReqPPrivacyAccount, result *json.RawMessage) error
- func (c *Jrpc) ShowPrivacyAccountSpend(in *pty.ReqPrivBal4AddrToken, result *json.RawMessage) error
- func (c *Jrpc) ShowPrivacyKey(in *types.ReqString, result *json.RawMessage) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.ReqPPrivacyAccount, 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 ¶
ShowPrivacyKey display privacy key for json rpc
Click to show internal directories.
Click to hide internal directories.