Documentation
¶
Overview ¶
Package personal is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func RegisterAccountManagerHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAccountManagerHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AccountManagerClient) error
- func RegisterAccountManagerHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAccountManagerServer(s *grpc.Server, srv AccountManagerServer)
- type AccountManagerClient
- type AccountManagerServer
- type DeriveAccountRequest
- func (*DeriveAccountRequest) Descriptor() ([]byte, []int)
- func (m *DeriveAccountRequest) GetPath() string
- func (m *DeriveAccountRequest) GetPin() *wrappers.BoolValue
- func (m *DeriveAccountRequest) GetUrl() string
- func (*DeriveAccountRequest) ProtoMessage()
- func (m *DeriveAccountRequest) Reset()
- func (m *DeriveAccountRequest) String() string
- func (m *DeriveAccountRequest) XXX_DiscardUnknown()
- func (m *DeriveAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeriveAccountRequest) XXX_Merge(src proto.Message)
- func (m *DeriveAccountRequest) XXX_Size() int
- func (m *DeriveAccountRequest) XXX_Unmarshal(b []byte) error
- type EcRecoverRequest
- func (*EcRecoverRequest) Descriptor() ([]byte, []int)
- func (m *EcRecoverRequest) GetData() []byte
- func (m *EcRecoverRequest) GetSig() []byte
- func (*EcRecoverRequest) ProtoMessage()
- func (m *EcRecoverRequest) Reset()
- func (m *EcRecoverRequest) String() string
- func (m *EcRecoverRequest) XXX_DiscardUnknown()
- func (m *EcRecoverRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EcRecoverRequest) XXX_Merge(src proto.Message)
- func (m *EcRecoverRequest) XXX_Size() int
- func (m *EcRecoverRequest) XXX_Unmarshal(b []byte) error
- type ImportRawKeyRequest
- func (*ImportRawKeyRequest) Descriptor() ([]byte, []int)
- func (m *ImportRawKeyRequest) GetPassword() string
- func (m *ImportRawKeyRequest) GetPrivkey() string
- func (*ImportRawKeyRequest) ProtoMessage()
- func (m *ImportRawKeyRequest) Reset()
- func (m *ImportRawKeyRequest) String() string
- func (m *ImportRawKeyRequest) XXX_DiscardUnknown()
- func (m *ImportRawKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ImportRawKeyRequest) XXX_Merge(src proto.Message)
- func (m *ImportRawKeyRequest) XXX_Size() int
- func (m *ImportRawKeyRequest) XXX_Unmarshal(b []byte) error
- type NewAccountRequest
- func (*NewAccountRequest) Descriptor() ([]byte, []int)
- func (m *NewAccountRequest) GetPassword() string
- func (*NewAccountRequest) ProtoMessage()
- func (m *NewAccountRequest) Reset()
- func (m *NewAccountRequest) String() string
- func (m *NewAccountRequest) XXX_DiscardUnknown()
- func (m *NewAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NewAccountRequest) XXX_Merge(src proto.Message)
- func (m *NewAccountRequest) XXX_Size() int
- func (m *NewAccountRequest) XXX_Unmarshal(b []byte) error
- type OpenWalletRequest
- func (*OpenWalletRequest) Descriptor() ([]byte, []int)
- func (m *OpenWalletRequest) GetPassphrase() *wrappers.StringValue
- func (m *OpenWalletRequest) GetUrl() string
- func (*OpenWalletRequest) ProtoMessage()
- func (m *OpenWalletRequest) Reset()
- func (m *OpenWalletRequest) String() string
- func (m *OpenWalletRequest) XXX_DiscardUnknown()
- func (m *OpenWalletRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OpenWalletRequest) XXX_Merge(src proto.Message)
- func (m *OpenWalletRequest) XXX_Size() int
- func (m *OpenWalletRequest) XXX_Unmarshal(b []byte) error
- type SendTxArgs
- func (*SendTxArgs) Descriptor() ([]byte, []int)
- func (m *SendTxArgs) GetData() []byte
- func (m *SendTxArgs) GetFrom() string
- func (m *SendTxArgs) GetGas() *wrappers.UInt64Value
- func (m *SendTxArgs) GetGasPrice() *wrappers.UInt64Value
- func (m *SendTxArgs) GetInput() []byte
- func (m *SendTxArgs) GetIsPrivate() bool
- func (m *SendTxArgs) GetNonce() *wrappers.UInt64Value
- func (m *SendTxArgs) GetParticipants() []string
- func (m *SendTxArgs) GetPasswd() string
- func (m *SendTxArgs) GetTo() *wrappers.StringValue
- func (m *SendTxArgs) GetValue() *wrappers.UInt64Value
- func (*SendTxArgs) ProtoMessage()
- func (m *SendTxArgs) Reset()
- func (m *SendTxArgs) String() string
- func (m *SendTxArgs) XXX_DiscardUnknown()
- func (m *SendTxArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SendTxArgs) XXX_Merge(src proto.Message)
- func (m *SendTxArgs) XXX_Size() int
- func (m *SendTxArgs) XXX_Unmarshal(b []byte) error
- type SignRequest
- func (*SignRequest) Descriptor() ([]byte, []int)
- func (m *SignRequest) GetAddr() string
- func (m *SignRequest) GetData() []byte
- func (m *SignRequest) GetPasswd() string
- func (*SignRequest) ProtoMessage()
- func (m *SignRequest) Reset()
- func (m *SignRequest) String() string
- func (m *SignRequest) XXX_DiscardUnknown()
- func (m *SignRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignRequest) XXX_Merge(src proto.Message)
- func (m *SignRequest) XXX_Size() int
- func (m *SignRequest) XXX_Unmarshal(b []byte) error
- type SignTransactionResult
- func (*SignTransactionResult) Descriptor() ([]byte, []int)
- func (m *SignTransactionResult) GetRaw() []byte
- func (m *SignTransactionResult) GetTx() *common.Transaction
- func (*SignTransactionResult) ProtoMessage()
- func (m *SignTransactionResult) Reset()
- func (m *SignTransactionResult) String() string
- func (m *SignTransactionResult) XXX_DiscardUnknown()
- func (m *SignTransactionResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignTransactionResult) XXX_Merge(src proto.Message)
- func (m *SignTransactionResult) XXX_Size() int
- func (m *SignTransactionResult) XXX_Unmarshal(b []byte) error
- type Signature
- func (*Signature) Descriptor() ([]byte, []int)
- func (m *Signature) GetSignature() []byte
- func (*Signature) ProtoMessage()
- func (m *Signature) Reset()
- func (m *Signature) String() string
- func (m *Signature) XXX_DiscardUnknown()
- func (m *Signature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Signature) XXX_Merge(src proto.Message)
- func (m *Signature) XXX_Size() int
- func (m *Signature) XXX_Unmarshal(b []byte) error
- type UnlockAccountRequest
- func (*UnlockAccountRequest) Descriptor() ([]byte, []int)
- func (m *UnlockAccountRequest) GetAddress() string
- func (m *UnlockAccountRequest) GetDuration() *wrappers.UInt64Value
- func (m *UnlockAccountRequest) GetPassword() string
- func (*UnlockAccountRequest) ProtoMessage()
- func (m *UnlockAccountRequest) Reset()
- func (m *UnlockAccountRequest) String() string
- func (m *UnlockAccountRequest) XXX_DiscardUnknown()
- func (m *UnlockAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UnlockAccountRequest) XXX_Merge(src proto.Message)
- func (m *UnlockAccountRequest) XXX_Size() int
- func (m *UnlockAccountRequest) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAccountManagerHandler ¶
func RegisterAccountManagerHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterAccountManagerHandler registers the http handlers for service AccountManager to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAccountManagerHandlerClient ¶
func RegisterAccountManagerHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AccountManagerClient) error
RegisterAccountManagerHandlerClient registers the http handlers for service AccountManager to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AccountManagerClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AccountManagerClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AccountManagerClient" to call the correct interceptors.
func RegisterAccountManagerHandlerFromEndpoint ¶
func RegisterAccountManagerHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAccountManagerHandlerFromEndpoint is same as RegisterAccountManagerHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAccountManagerServer ¶
func RegisterAccountManagerServer(s *grpc.Server, srv AccountManagerServer)
Types ¶
type AccountManagerClient ¶
type AccountManagerClient interface {
// ListAccounts will return a list of addresses for accounts this node manages.
ListAccounts(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*common.Accounts, error)
// ListWallets will return a list of wallets this node manages.
ListWallets(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*common.RawWallets, error)
// OpenWallet initiates a hardware wallet opening procedure, establishing a USB
// connection and attempting to authenticate via the provided passphrase. Note,
// the method may return an extra challenge requiring a second open (e.g. the
// Trezor PIN matrix challenge).
OpenWallet(ctx context.Context, in *OpenWalletRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// DeriveAccount requests a HD wallet to derive a new account, optionally pinning
// it for later reuse.
DeriveAccount(ctx context.Context, in *DeriveAccountRequest, opts ...grpc.CallOption) (*common.Account, error)
// NewAccount will create a new account and returns the address for the new account.
NewAccount(ctx context.Context, in *NewAccountRequest, opts ...grpc.CallOption) (*common.Address, error)
// ImportRawKey stores the given hex encoded ECDSA key into the key directory,
// encrypting it with the passphrase.
ImportRawKey(ctx context.Context, in *ImportRawKeyRequest, opts ...grpc.CallOption) (*common.Address, error)
// UnlockAccount will unlock the account associated with the given address with
// the given password for duration seconds. If duration is nil it will use a
// default of 300 seconds. It returns an indication if the account was unlocked.
UnlockAccount(ctx context.Context, in *UnlockAccountRequest, opts ...grpc.CallOption) (*common.IsOk, error)
// LockAccount will lock the account associated with the given address when it's unlocked.
LockAccount(ctx context.Context, in *common.Address, opts ...grpc.CallOption) (*common.IsOk, error)
// SendTransaction creates a transaction for the given argument, sign it and submit it to the
// transaction pool.
SendTransaction(ctx context.Context, in *SendTxArgs, opts ...grpc.CallOption) (*common.Hash, error)
SignTransaction(ctx context.Context, in *SendTxArgs, opts ...grpc.CallOption) (*SignTransactionResult, error)
Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*Signature, error)
EcRecover(ctx context.Context, in *EcRecoverRequest, opts ...grpc.CallOption) (*common.Address, error)
SignAndSendTransaction(ctx context.Context, in *SendTxArgs, opts ...grpc.CallOption) (*common.Hash, error)
}
AccountManagerClient is the client API for AccountManager service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAccountManagerClient ¶
func NewAccountManagerClient(cc *grpc.ClientConn) AccountManagerClient
type AccountManagerServer ¶
type AccountManagerServer interface {
// ListAccounts will return a list of addresses for accounts this node manages.
ListAccounts(context.Context, *empty.Empty) (*common.Accounts, error)
// ListWallets will return a list of wallets this node manages.
ListWallets(context.Context, *empty.Empty) (*common.RawWallets, error)
// OpenWallet initiates a hardware wallet opening procedure, establishing a USB
// connection and attempting to authenticate via the provided passphrase. Note,
// the method may return an extra challenge requiring a second open (e.g. the
// Trezor PIN matrix challenge).
OpenWallet(context.Context, *OpenWalletRequest) (*empty.Empty, error)
// DeriveAccount requests a HD wallet to derive a new account, optionally pinning
// it for later reuse.
DeriveAccount(context.Context, *DeriveAccountRequest) (*common.Account, error)
// NewAccount will create a new account and returns the address for the new account.
NewAccount(context.Context, *NewAccountRequest) (*common.Address, error)
// ImportRawKey stores the given hex encoded ECDSA key into the key directory,
// encrypting it with the passphrase.
ImportRawKey(context.Context, *ImportRawKeyRequest) (*common.Address, error)
// UnlockAccount will unlock the account associated with the given address with
// the given password for duration seconds. If duration is nil it will use a
// default of 300 seconds. It returns an indication if the account was unlocked.
UnlockAccount(context.Context, *UnlockAccountRequest) (*common.IsOk, error)
// LockAccount will lock the account associated with the given address when it's unlocked.
LockAccount(context.Context, *common.Address) (*common.IsOk, error)
// SendTransaction creates a transaction for the given argument, sign it and submit it to the
// transaction pool.
SendTransaction(context.Context, *SendTxArgs) (*common.Hash, error)
SignTransaction(context.Context, *SendTxArgs) (*SignTransactionResult, error)
Sign(context.Context, *SignRequest) (*Signature, error)
EcRecover(context.Context, *EcRecoverRequest) (*common.Address, error)
SignAndSendTransaction(context.Context, *SendTxArgs) (*common.Hash, error)
}
AccountManagerServer is the server API for AccountManager service.
type DeriveAccountRequest ¶
type DeriveAccountRequest struct {
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
Pin *wrappers.BoolValue `protobuf:"bytes,3,opt,name=pin,proto3" json:"pin,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*DeriveAccountRequest) Descriptor ¶
func (*DeriveAccountRequest) Descriptor() ([]byte, []int)
func (*DeriveAccountRequest) GetPath ¶
func (m *DeriveAccountRequest) GetPath() string
func (*DeriveAccountRequest) GetPin ¶
func (m *DeriveAccountRequest) GetPin() *wrappers.BoolValue
func (*DeriveAccountRequest) GetUrl ¶
func (m *DeriveAccountRequest) GetUrl() string
func (*DeriveAccountRequest) ProtoMessage ¶
func (*DeriveAccountRequest) ProtoMessage()
func (*DeriveAccountRequest) Reset ¶
func (m *DeriveAccountRequest) Reset()
func (*DeriveAccountRequest) String ¶
func (m *DeriveAccountRequest) String() string
func (*DeriveAccountRequest) XXX_DiscardUnknown ¶
func (m *DeriveAccountRequest) XXX_DiscardUnknown()
func (*DeriveAccountRequest) XXX_Marshal ¶
func (m *DeriveAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeriveAccountRequest) XXX_Merge ¶
func (m *DeriveAccountRequest) XXX_Merge(src proto.Message)
func (*DeriveAccountRequest) XXX_Size ¶
func (m *DeriveAccountRequest) XXX_Size() int
func (*DeriveAccountRequest) XXX_Unmarshal ¶
func (m *DeriveAccountRequest) XXX_Unmarshal(b []byte) error
type EcRecoverRequest ¶
type EcRecoverRequest struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
Sig []byte `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*EcRecoverRequest) Descriptor ¶
func (*EcRecoverRequest) Descriptor() ([]byte, []int)
func (*EcRecoverRequest) GetData ¶
func (m *EcRecoverRequest) GetData() []byte
func (*EcRecoverRequest) GetSig ¶
func (m *EcRecoverRequest) GetSig() []byte
func (*EcRecoverRequest) ProtoMessage ¶
func (*EcRecoverRequest) ProtoMessage()
func (*EcRecoverRequest) Reset ¶
func (m *EcRecoverRequest) Reset()
func (*EcRecoverRequest) String ¶
func (m *EcRecoverRequest) String() string
func (*EcRecoverRequest) XXX_DiscardUnknown ¶
func (m *EcRecoverRequest) XXX_DiscardUnknown()
func (*EcRecoverRequest) XXX_Marshal ¶
func (m *EcRecoverRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EcRecoverRequest) XXX_Merge ¶
func (m *EcRecoverRequest) XXX_Merge(src proto.Message)
func (*EcRecoverRequest) XXX_Size ¶
func (m *EcRecoverRequest) XXX_Size() int
func (*EcRecoverRequest) XXX_Unmarshal ¶
func (m *EcRecoverRequest) XXX_Unmarshal(b []byte) error
type ImportRawKeyRequest ¶
type ImportRawKeyRequest struct {
Privkey string `protobuf:"bytes,1,opt,name=privkey,proto3" json:"privkey,omitempty"`
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ImportRawKeyRequest) Descriptor ¶
func (*ImportRawKeyRequest) Descriptor() ([]byte, []int)
func (*ImportRawKeyRequest) GetPassword ¶
func (m *ImportRawKeyRequest) GetPassword() string
func (*ImportRawKeyRequest) GetPrivkey ¶
func (m *ImportRawKeyRequest) GetPrivkey() string
func (*ImportRawKeyRequest) ProtoMessage ¶
func (*ImportRawKeyRequest) ProtoMessage()
func (*ImportRawKeyRequest) Reset ¶
func (m *ImportRawKeyRequest) Reset()
func (*ImportRawKeyRequest) String ¶
func (m *ImportRawKeyRequest) String() string
func (*ImportRawKeyRequest) XXX_DiscardUnknown ¶
func (m *ImportRawKeyRequest) XXX_DiscardUnknown()
func (*ImportRawKeyRequest) XXX_Marshal ¶
func (m *ImportRawKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ImportRawKeyRequest) XXX_Merge ¶
func (m *ImportRawKeyRequest) XXX_Merge(src proto.Message)
func (*ImportRawKeyRequest) XXX_Size ¶
func (m *ImportRawKeyRequest) XXX_Size() int
func (*ImportRawKeyRequest) XXX_Unmarshal ¶
func (m *ImportRawKeyRequest) XXX_Unmarshal(b []byte) error
type NewAccountRequest ¶
type NewAccountRequest struct {
Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*NewAccountRequest) Descriptor ¶
func (*NewAccountRequest) Descriptor() ([]byte, []int)
func (*NewAccountRequest) GetPassword ¶
func (m *NewAccountRequest) GetPassword() string
func (*NewAccountRequest) ProtoMessage ¶
func (*NewAccountRequest) ProtoMessage()
func (*NewAccountRequest) Reset ¶
func (m *NewAccountRequest) Reset()
func (*NewAccountRequest) String ¶
func (m *NewAccountRequest) String() string
func (*NewAccountRequest) XXX_DiscardUnknown ¶
func (m *NewAccountRequest) XXX_DiscardUnknown()
func (*NewAccountRequest) XXX_Marshal ¶
func (m *NewAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NewAccountRequest) XXX_Merge ¶
func (m *NewAccountRequest) XXX_Merge(src proto.Message)
func (*NewAccountRequest) XXX_Size ¶
func (m *NewAccountRequest) XXX_Size() int
func (*NewAccountRequest) XXX_Unmarshal ¶
func (m *NewAccountRequest) XXX_Unmarshal(b []byte) error
type OpenWalletRequest ¶
type OpenWalletRequest struct {
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
Passphrase *wrappers.StringValue `protobuf:"bytes,2,opt,name=passphrase,proto3" json:"passphrase,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
OpenWalletRequest interface OpenWallet request parameters
func (*OpenWalletRequest) Descriptor ¶
func (*OpenWalletRequest) Descriptor() ([]byte, []int)
func (*OpenWalletRequest) GetPassphrase ¶
func (m *OpenWalletRequest) GetPassphrase() *wrappers.StringValue
func (*OpenWalletRequest) GetUrl ¶
func (m *OpenWalletRequest) GetUrl() string
func (*OpenWalletRequest) ProtoMessage ¶
func (*OpenWalletRequest) ProtoMessage()
func (*OpenWalletRequest) Reset ¶
func (m *OpenWalletRequest) Reset()
func (*OpenWalletRequest) String ¶
func (m *OpenWalletRequest) String() string
func (*OpenWalletRequest) XXX_DiscardUnknown ¶
func (m *OpenWalletRequest) XXX_DiscardUnknown()
func (*OpenWalletRequest) XXX_Marshal ¶
func (m *OpenWalletRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OpenWalletRequest) XXX_Merge ¶
func (m *OpenWalletRequest) XXX_Merge(src proto.Message)
func (*OpenWalletRequest) XXX_Size ¶
func (m *OpenWalletRequest) XXX_Size() int
func (*OpenWalletRequest) XXX_Unmarshal ¶
func (m *OpenWalletRequest) XXX_Unmarshal(b []byte) error
type SendTxArgs ¶
type SendTxArgs struct {
From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
To *wrappers.StringValue `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
Gas *wrappers.UInt64Value `protobuf:"bytes,3,opt,name=gas,proto3" json:"gas,omitempty"`
GasPrice *wrappers.UInt64Value `protobuf:"bytes,4,opt,name=gasPrice,proto3" json:"gasPrice,omitempty"`
Value *wrappers.UInt64Value `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"`
Nonce *wrappers.UInt64Value `protobuf:"bytes,6,opt,name=nonce,proto3" json:"nonce,omitempty"`
Data []byte `protobuf:"bytes,7,opt,name=data,proto3" json:"data,omitempty"`
Input []byte `protobuf:"bytes,8,opt,name=input,proto3" json:"input,omitempty"`
IsPrivate bool `protobuf:"varint,9,opt,name=isPrivate,proto3" json:"isPrivate,omitempty"`
Participants []string `protobuf:"bytes,10,rep,name=participants,proto3" json:"participants,omitempty"`
Passwd string `protobuf:"bytes,11,opt,name=passwd,proto3" json:"passwd,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*SendTxArgs) Descriptor ¶
func (*SendTxArgs) Descriptor() ([]byte, []int)
func (*SendTxArgs) GetData ¶
func (m *SendTxArgs) GetData() []byte
func (*SendTxArgs) GetFrom ¶
func (m *SendTxArgs) GetFrom() string
func (*SendTxArgs) GetGas ¶
func (m *SendTxArgs) GetGas() *wrappers.UInt64Value
func (*SendTxArgs) GetGasPrice ¶
func (m *SendTxArgs) GetGasPrice() *wrappers.UInt64Value
func (*SendTxArgs) GetInput ¶
func (m *SendTxArgs) GetInput() []byte
func (*SendTxArgs) GetIsPrivate ¶
func (m *SendTxArgs) GetIsPrivate() bool
func (*SendTxArgs) GetNonce ¶
func (m *SendTxArgs) GetNonce() *wrappers.UInt64Value
func (*SendTxArgs) GetParticipants ¶
func (m *SendTxArgs) GetParticipants() []string
func (*SendTxArgs) GetPasswd ¶
func (m *SendTxArgs) GetPasswd() string
func (*SendTxArgs) GetTo ¶
func (m *SendTxArgs) GetTo() *wrappers.StringValue
func (*SendTxArgs) GetValue ¶
func (m *SendTxArgs) GetValue() *wrappers.UInt64Value
func (*SendTxArgs) ProtoMessage ¶
func (*SendTxArgs) ProtoMessage()
func (*SendTxArgs) Reset ¶
func (m *SendTxArgs) Reset()
func (*SendTxArgs) String ¶
func (m *SendTxArgs) String() string
func (*SendTxArgs) XXX_DiscardUnknown ¶
func (m *SendTxArgs) XXX_DiscardUnknown()
func (*SendTxArgs) XXX_Marshal ¶
func (m *SendTxArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SendTxArgs) XXX_Merge ¶
func (m *SendTxArgs) XXX_Merge(src proto.Message)
func (*SendTxArgs) XXX_Size ¶
func (m *SendTxArgs) XXX_Size() int
func (*SendTxArgs) XXX_Unmarshal ¶
func (m *SendTxArgs) XXX_Unmarshal(b []byte) error
type SignRequest ¶
type SignRequest struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
Passwd string `protobuf:"bytes,3,opt,name=passwd,proto3" json:"passwd,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*SignRequest) Descriptor ¶
func (*SignRequest) Descriptor() ([]byte, []int)
func (*SignRequest) GetAddr ¶
func (m *SignRequest) GetAddr() string
func (*SignRequest) GetData ¶
func (m *SignRequest) GetData() []byte
func (*SignRequest) GetPasswd ¶
func (m *SignRequest) GetPasswd() string
func (*SignRequest) ProtoMessage ¶
func (*SignRequest) ProtoMessage()
func (*SignRequest) Reset ¶
func (m *SignRequest) Reset()
func (*SignRequest) String ¶
func (m *SignRequest) String() string
func (*SignRequest) XXX_DiscardUnknown ¶
func (m *SignRequest) XXX_DiscardUnknown()
func (*SignRequest) XXX_Marshal ¶
func (m *SignRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignRequest) XXX_Merge ¶
func (m *SignRequest) XXX_Merge(src proto.Message)
func (*SignRequest) XXX_Size ¶
func (m *SignRequest) XXX_Size() int
func (*SignRequest) XXX_Unmarshal ¶
func (m *SignRequest) XXX_Unmarshal(b []byte) error
type SignTransactionResult ¶
type SignTransactionResult struct {
Raw []byte `protobuf:"bytes,1,opt,name=raw,proto3" json:"raw,omitempty"`
Tx *common.Transaction `protobuf:"bytes,2,opt,name=tx,proto3" json:"tx,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*SignTransactionResult) Descriptor ¶
func (*SignTransactionResult) Descriptor() ([]byte, []int)
func (*SignTransactionResult) GetRaw ¶
func (m *SignTransactionResult) GetRaw() []byte
func (*SignTransactionResult) GetTx ¶
func (m *SignTransactionResult) GetTx() *common.Transaction
func (*SignTransactionResult) ProtoMessage ¶
func (*SignTransactionResult) ProtoMessage()
func (*SignTransactionResult) Reset ¶
func (m *SignTransactionResult) Reset()
func (*SignTransactionResult) String ¶
func (m *SignTransactionResult) String() string
func (*SignTransactionResult) XXX_DiscardUnknown ¶
func (m *SignTransactionResult) XXX_DiscardUnknown()
func (*SignTransactionResult) XXX_Marshal ¶
func (m *SignTransactionResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignTransactionResult) XXX_Merge ¶
func (m *SignTransactionResult) XXX_Merge(src proto.Message)
func (*SignTransactionResult) XXX_Size ¶
func (m *SignTransactionResult) XXX_Size() int
func (*SignTransactionResult) XXX_Unmarshal ¶
func (m *SignTransactionResult) XXX_Unmarshal(b []byte) error
type Signature ¶
type Signature struct {
Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Signature) Descriptor ¶
func (*Signature) GetSignature ¶
func (*Signature) ProtoMessage ¶
func (*Signature) ProtoMessage()
func (*Signature) XXX_DiscardUnknown ¶
func (m *Signature) XXX_DiscardUnknown()
func (*Signature) XXX_Marshal ¶
func (*Signature) XXX_Unmarshal ¶
type UnlockAccountRequest ¶
type UnlockAccountRequest struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
Duration *wrappers.UInt64Value `protobuf:"bytes,3,opt,name=duration,proto3" json:"duration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*UnlockAccountRequest) Descriptor ¶
func (*UnlockAccountRequest) Descriptor() ([]byte, []int)
func (*UnlockAccountRequest) GetAddress ¶
func (m *UnlockAccountRequest) GetAddress() string
func (*UnlockAccountRequest) GetDuration ¶
func (m *UnlockAccountRequest) GetDuration() *wrappers.UInt64Value
func (*UnlockAccountRequest) GetPassword ¶
func (m *UnlockAccountRequest) GetPassword() string
func (*UnlockAccountRequest) ProtoMessage ¶
func (*UnlockAccountRequest) ProtoMessage()
func (*UnlockAccountRequest) Reset ¶
func (m *UnlockAccountRequest) Reset()
func (*UnlockAccountRequest) String ¶
func (m *UnlockAccountRequest) String() string
func (*UnlockAccountRequest) XXX_DiscardUnknown ¶
func (m *UnlockAccountRequest) XXX_DiscardUnknown()
func (*UnlockAccountRequest) XXX_Marshal ¶
func (m *UnlockAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnlockAccountRequest) XXX_Merge ¶
func (m *UnlockAccountRequest) XXX_Merge(src proto.Message)
func (*UnlockAccountRequest) XXX_Size ¶
func (m *UnlockAccountRequest) XXX_Size() int
func (*UnlockAccountRequest) XXX_Unmarshal ¶
func (m *UnlockAccountRequest) XXX_Unmarshal(b []byte) error