pb

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2017 License: MIT Imports: 6 Imported by: 10

Documentation

Overview

Package pb is a generated protocol buffer package.

It is generated from these files:

api.proto

It has these top-level messages:

Empty
KeySelection
Address
Height
Balances
Key
Keys
Addresses
BoolResponse
NetParams
TransactionList
Tx
Txid
FeeLevelSelection
FeePerByte
Fee
SpendInfo
PeerList
Peer
Confirmations
Utxo
SweepInfo
Input
Output
Signature
CreateMultisigInfo
SignatureList
MultisignInfo
RawTx
EstimateFeeData
Header
ImportedKey

Index

Constants

This section is empty.

Variables

View Source
var FeeLevel_name = map[int32]string{
	0: "ECONOMIC",
	1: "NORMAL",
	2: "PRIORITY",
}
View Source
var FeeLevel_value = map[string]int32{
	"ECONOMIC": 0,
	"NORMAL":   1,
	"PRIORITY": 2,
}
View Source
var KeyPurpose_name = map[int32]string{
	0: "INTERNAL",
	1: "EXTERNAL",
}
View Source
var KeyPurpose_value = map[string]int32{
	"INTERNAL": 0,
	"EXTERNAL": 1,
}

Functions

func RegisterAPIServer

func RegisterAPIServer(s *grpc.Server, srv APIServer)

Types

type APIClient

type APIClient interface {
	Stop(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
	CurrentAddress(ctx context.Context, in *KeySelection, opts ...grpc.CallOption) (*Address, error)
	NewAddress(ctx context.Context, in *KeySelection, opts ...grpc.CallOption) (*Address, error)
	ChainTip(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Height, error)
	Balance(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Balances, error)
	MasterPrivateKey(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Key, error)
	MasterPublicKey(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Key, error)
	HasKey(ctx context.Context, in *Address, opts ...grpc.CallOption) (*BoolResponse, error)
	Params(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*NetParams, error)
	Transactions(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TransactionList, error)
	GetTransaction(ctx context.Context, in *Txid, opts ...grpc.CallOption) (*Tx, error)
	GetFeePerByte(ctx context.Context, in *FeeLevelSelection, opts ...grpc.CallOption) (*FeePerByte, error)
	Spend(ctx context.Context, in *SpendInfo, opts ...grpc.CallOption) (*Txid, error)
	BumpFee(ctx context.Context, in *Txid, opts ...grpc.CallOption) (*Txid, error)
	Peers(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*PeerList, error)
	AddWatchedScript(ctx context.Context, in *Address, opts ...grpc.CallOption) (*Empty, error)
	GetConfirmations(ctx context.Context, in *Txid, opts ...grpc.CallOption) (*Confirmations, error)
	SweepAddress(ctx context.Context, in *SweepInfo, opts ...grpc.CallOption) (*Txid, error)
	ReSyncBlockchain(ctx context.Context, in *Height, opts ...grpc.CallOption) (*Empty, error)
	CreateMultisigSignature(ctx context.Context, in *CreateMultisigInfo, opts ...grpc.CallOption) (*SignatureList, error)
	Multisign(ctx context.Context, in *MultisignInfo, opts ...grpc.CallOption) (*RawTx, error)
	EstimateFee(ctx context.Context, in *EstimateFeeData, opts ...grpc.CallOption) (*Fee, error)
	GetKey(ctx context.Context, in *Address, opts ...grpc.CallOption) (*Key, error)
	ListKeys(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Keys, error)
	ListAddresses(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Addresses, error)
	ImportKey(ctx context.Context, in *ImportedKey, opts ...grpc.CallOption) (*Empty, error)
	WalletNotify(ctx context.Context, in *Empty, opts ...grpc.CallOption) (API_WalletNotifyClient, error)
	DumpHeaders(ctx context.Context, in *Empty, opts ...grpc.CallOption) (API_DumpHeadersClient, error)
}

func NewAPIClient

func NewAPIClient(cc *grpc.ClientConn) APIClient

type APIServer

type APIServer interface {
	Stop(context.Context, *Empty) (*Empty, error)
	CurrentAddress(context.Context, *KeySelection) (*Address, error)
	NewAddress(context.Context, *KeySelection) (*Address, error)
	ChainTip(context.Context, *Empty) (*Height, error)
	Balance(context.Context, *Empty) (*Balances, error)
	MasterPrivateKey(context.Context, *Empty) (*Key, error)
	MasterPublicKey(context.Context, *Empty) (*Key, error)
	HasKey(context.Context, *Address) (*BoolResponse, error)
	Params(context.Context, *Empty) (*NetParams, error)
	Transactions(context.Context, *Empty) (*TransactionList, error)
	GetTransaction(context.Context, *Txid) (*Tx, error)
	GetFeePerByte(context.Context, *FeeLevelSelection) (*FeePerByte, error)
	Spend(context.Context, *SpendInfo) (*Txid, error)
	BumpFee(context.Context, *Txid) (*Txid, error)
	Peers(context.Context, *Empty) (*PeerList, error)
	AddWatchedScript(context.Context, *Address) (*Empty, error)
	GetConfirmations(context.Context, *Txid) (*Confirmations, error)
	SweepAddress(context.Context, *SweepInfo) (*Txid, error)
	ReSyncBlockchain(context.Context, *Height) (*Empty, error)
	CreateMultisigSignature(context.Context, *CreateMultisigInfo) (*SignatureList, error)
	Multisign(context.Context, *MultisignInfo) (*RawTx, error)
	EstimateFee(context.Context, *EstimateFeeData) (*Fee, error)
	GetKey(context.Context, *Address) (*Key, error)
	ListKeys(context.Context, *Empty) (*Keys, error)
	ListAddresses(context.Context, *Empty) (*Addresses, error)
	ImportKey(context.Context, *ImportedKey) (*Empty, error)
	WalletNotify(*Empty, API_WalletNotifyServer) error
	DumpHeaders(*Empty, API_DumpHeadersServer) error
}

type API_DumpHeadersClient

type API_DumpHeadersClient interface {
	Recv() (*Header, error)
	grpc.ClientStream
}

type API_DumpHeadersServer

type API_DumpHeadersServer interface {
	Send(*Header) error
	grpc.ServerStream
}

type API_WalletNotifyClient

type API_WalletNotifyClient interface {
	Recv() (*Tx, error)
	grpc.ClientStream
}

type API_WalletNotifyServer

type API_WalletNotifyServer interface {
	Send(*Tx) error
	grpc.ServerStream
}

type Address

type Address struct {
	Addr string `protobuf:"bytes,1,opt,name=addr" json:"addr,omitempty"`
}

func (*Address) Descriptor

func (*Address) Descriptor() ([]byte, []int)

func (*Address) GetAddr

func (m *Address) GetAddr() string

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) Reset

func (m *Address) Reset()

func (*Address) String

func (m *Address) String() string

type Addresses

type Addresses struct {
	Addresses []*Address `protobuf:"bytes,1,rep,name=addresses" json:"addresses,omitempty"`
}

func (*Addresses) Descriptor

func (*Addresses) Descriptor() ([]byte, []int)

func (*Addresses) GetAddresses

func (m *Addresses) GetAddresses() []*Address

func (*Addresses) ProtoMessage

func (*Addresses) ProtoMessage()

func (*Addresses) Reset

func (m *Addresses) Reset()

func (*Addresses) String

func (m *Addresses) String() string

type Balances

type Balances struct {
	Confirmed   uint64 `protobuf:"varint,1,opt,name=confirmed" json:"confirmed,omitempty"`
	Unconfirmed uint64 `protobuf:"varint,2,opt,name=unconfirmed" json:"unconfirmed,omitempty"`
}

func (*Balances) Descriptor

func (*Balances) Descriptor() ([]byte, []int)

func (*Balances) GetConfirmed

func (m *Balances) GetConfirmed() uint64

func (*Balances) GetUnconfirmed

func (m *Balances) GetUnconfirmed() uint64

func (*Balances) ProtoMessage

func (*Balances) ProtoMessage()

func (*Balances) Reset

func (m *Balances) Reset()

func (*Balances) String

func (m *Balances) String() string

type BoolResponse

type BoolResponse struct {
	Bool bool `protobuf:"varint,1,opt,name=bool" json:"bool,omitempty"`
}

func (*BoolResponse) Descriptor

func (*BoolResponse) Descriptor() ([]byte, []int)

func (*BoolResponse) GetBool

func (m *BoolResponse) GetBool() bool

func (*BoolResponse) ProtoMessage

func (*BoolResponse) ProtoMessage()

func (*BoolResponse) Reset

func (m *BoolResponse) Reset()

func (*BoolResponse) String

func (m *BoolResponse) String() string

type Confirmations

type Confirmations struct {
	Confirmations uint32 `protobuf:"varint,1,opt,name=confirmations" json:"confirmations,omitempty"`
}

func (*Confirmations) Descriptor

func (*Confirmations) Descriptor() ([]byte, []int)

func (*Confirmations) GetConfirmations

func (m *Confirmations) GetConfirmations() uint32

func (*Confirmations) ProtoMessage

func (*Confirmations) ProtoMessage()

func (*Confirmations) Reset

func (m *Confirmations) Reset()

func (*Confirmations) String

func (m *Confirmations) String() string

type CreateMultisigInfo

type CreateMultisigInfo struct {
	Inputs       []*Input  `protobuf:"bytes,1,rep,name=inputs" json:"inputs,omitempty"`
	Outputs      []*Output `protobuf:"bytes,2,rep,name=outputs" json:"outputs,omitempty"`
	Key          string    `protobuf:"bytes,3,opt,name=key" json:"key,omitempty"`
	RedeemScript []byte    `protobuf:"bytes,4,opt,name=redeemScript,proto3" json:"redeemScript,omitempty"`
	FeePerByte   uint64    `protobuf:"varint,5,opt,name=feePerByte" json:"feePerByte,omitempty"`
}

func (*CreateMultisigInfo) Descriptor

func (*CreateMultisigInfo) Descriptor() ([]byte, []int)

func (*CreateMultisigInfo) GetFeePerByte

func (m *CreateMultisigInfo) GetFeePerByte() uint64

func (*CreateMultisigInfo) GetInputs

func (m *CreateMultisigInfo) GetInputs() []*Input

func (*CreateMultisigInfo) GetKey

func (m *CreateMultisigInfo) GetKey() string

func (*CreateMultisigInfo) GetOutputs

func (m *CreateMultisigInfo) GetOutputs() []*Output

func (*CreateMultisigInfo) GetRedeemScript

func (m *CreateMultisigInfo) GetRedeemScript() []byte

func (*CreateMultisigInfo) ProtoMessage

func (*CreateMultisigInfo) ProtoMessage()

func (*CreateMultisigInfo) Reset

func (m *CreateMultisigInfo) Reset()

func (*CreateMultisigInfo) String

func (m *CreateMultisigInfo) String() string

type Empty

type Empty struct {
}

func (*Empty) Descriptor

func (*Empty) Descriptor() ([]byte, []int)

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

type EstimateFeeData

type EstimateFeeData struct {
	Inputs     []*Input  `protobuf:"bytes,1,rep,name=inputs" json:"inputs,omitempty"`
	Outputs    []*Output `protobuf:"bytes,2,rep,name=outputs" json:"outputs,omitempty"`
	FeePerByte uint64    `protobuf:"varint,3,opt,name=feePerByte" json:"feePerByte,omitempty"`
}

func (*EstimateFeeData) Descriptor

func (*EstimateFeeData) Descriptor() ([]byte, []int)

func (*EstimateFeeData) GetFeePerByte

func (m *EstimateFeeData) GetFeePerByte() uint64

func (*EstimateFeeData) GetInputs

func (m *EstimateFeeData) GetInputs() []*Input

func (*EstimateFeeData) GetOutputs

func (m *EstimateFeeData) GetOutputs() []*Output

func (*EstimateFeeData) ProtoMessage

func (*EstimateFeeData) ProtoMessage()

func (*EstimateFeeData) Reset

func (m *EstimateFeeData) Reset()

func (*EstimateFeeData) String

func (m *EstimateFeeData) String() string

type Fee

type Fee struct {
	Fee uint64 `protobuf:"varint,1,opt,name=fee" json:"fee,omitempty"`
}

func (*Fee) Descriptor

func (*Fee) Descriptor() ([]byte, []int)

func (*Fee) GetFee

func (m *Fee) GetFee() uint64

func (*Fee) ProtoMessage

func (*Fee) ProtoMessage()

func (*Fee) Reset

func (m *Fee) Reset()

func (*Fee) String

func (m *Fee) String() string

type FeeLevel

type FeeLevel int32
const (
	FeeLevel_ECONOMIC FeeLevel = 0
	FeeLevel_NORMAL   FeeLevel = 1
	FeeLevel_PRIORITY FeeLevel = 2
)

func (FeeLevel) EnumDescriptor

func (FeeLevel) EnumDescriptor() ([]byte, []int)

func (FeeLevel) String

func (x FeeLevel) String() string

type FeeLevelSelection

type FeeLevelSelection struct {
	FeeLevel FeeLevel `protobuf:"varint,1,opt,name=feeLevel,enum=pb.FeeLevel" json:"feeLevel,omitempty"`
}

func (*FeeLevelSelection) Descriptor

func (*FeeLevelSelection) Descriptor() ([]byte, []int)

func (*FeeLevelSelection) GetFeeLevel

func (m *FeeLevelSelection) GetFeeLevel() FeeLevel

func (*FeeLevelSelection) ProtoMessage

func (*FeeLevelSelection) ProtoMessage()

func (*FeeLevelSelection) Reset

func (m *FeeLevelSelection) Reset()

func (*FeeLevelSelection) String

func (m *FeeLevelSelection) String() string

type FeePerByte

type FeePerByte struct {
	Fee uint64 `protobuf:"varint,1,opt,name=fee" json:"fee,omitempty"`
}

func (*FeePerByte) Descriptor

func (*FeePerByte) Descriptor() ([]byte, []int)

func (*FeePerByte) GetFee

func (m *FeePerByte) GetFee() uint64

func (*FeePerByte) ProtoMessage

func (*FeePerByte) ProtoMessage()

func (*FeePerByte) Reset

func (m *FeePerByte) Reset()

func (*FeePerByte) String

func (m *FeePerByte) String() string
type Header struct {
	Entry string `protobuf:"bytes,1,opt,name=entry" json:"entry,omitempty"`
}

func (*Header) Descriptor

func (*Header) Descriptor() ([]byte, []int)

func (*Header) GetEntry

func (m *Header) GetEntry() string

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) Reset

func (m *Header) Reset()

func (*Header) String

func (m *Header) String() string

type Height

type Height struct {
	Height uint32 `protobuf:"varint,1,opt,name=height" json:"height,omitempty"`
}

func (*Height) Descriptor

func (*Height) Descriptor() ([]byte, []int)

func (*Height) GetHeight

func (m *Height) GetHeight() uint32

func (*Height) ProtoMessage

func (*Height) ProtoMessage()

func (*Height) Reset

func (m *Height) Reset()

func (*Height) String

func (m *Height) String() string

type ImportedKey

type ImportedKey struct {
	Key          string                     `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
	CreationDate *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=creationDate" json:"creationDate,omitempty"`
}

func (*ImportedKey) Descriptor

func (*ImportedKey) Descriptor() ([]byte, []int)

func (*ImportedKey) GetCreationDate

func (m *ImportedKey) GetCreationDate() *google_protobuf.Timestamp

func (*ImportedKey) GetKey

func (m *ImportedKey) GetKey() string

func (*ImportedKey) ProtoMessage

func (*ImportedKey) ProtoMessage()

func (*ImportedKey) Reset

func (m *ImportedKey) Reset()

func (*ImportedKey) String

func (m *ImportedKey) String() string

type Input

type Input struct {
	Txid  string `protobuf:"bytes,1,opt,name=txid" json:"txid,omitempty"`
	Index uint32 `protobuf:"varint,2,opt,name=index" json:"index,omitempty"`
}

func (*Input) Descriptor

func (*Input) Descriptor() ([]byte, []int)

func (*Input) GetIndex

func (m *Input) GetIndex() uint32

func (*Input) GetTxid

func (m *Input) GetTxid() string

func (*Input) ProtoMessage

func (*Input) ProtoMessage()

func (*Input) Reset

func (m *Input) Reset()

func (*Input) String

func (m *Input) String() string

type Key

type Key struct {
	Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
}

func (*Key) Descriptor

func (*Key) Descriptor() ([]byte, []int)

func (*Key) GetKey

func (m *Key) GetKey() string

func (*Key) ProtoMessage

func (*Key) ProtoMessage()

func (*Key) Reset

func (m *Key) Reset()

func (*Key) String

func (m *Key) String() string

type KeyPurpose

type KeyPurpose int32
const (
	KeyPurpose_INTERNAL KeyPurpose = 0
	KeyPurpose_EXTERNAL KeyPurpose = 1
)

func (KeyPurpose) EnumDescriptor

func (KeyPurpose) EnumDescriptor() ([]byte, []int)

func (KeyPurpose) String

func (x KeyPurpose) String() string

type KeySelection

type KeySelection struct {
	Purpose KeyPurpose `protobuf:"varint,1,opt,name=purpose,enum=pb.KeyPurpose" json:"purpose,omitempty"`
}

func (*KeySelection) Descriptor

func (*KeySelection) Descriptor() ([]byte, []int)

func (*KeySelection) GetPurpose

func (m *KeySelection) GetPurpose() KeyPurpose

func (*KeySelection) ProtoMessage

func (*KeySelection) ProtoMessage()

func (*KeySelection) Reset

func (m *KeySelection) Reset()

func (*KeySelection) String

func (m *KeySelection) String() string

type Keys

type Keys struct {
	Keys []*Key `protobuf:"bytes,1,rep,name=keys" json:"keys,omitempty"`
}

func (*Keys) Descriptor

func (*Keys) Descriptor() ([]byte, []int)

func (*Keys) GetKeys

func (m *Keys) GetKeys() []*Key

func (*Keys) ProtoMessage

func (*Keys) ProtoMessage()

func (*Keys) Reset

func (m *Keys) Reset()

func (*Keys) String

func (m *Keys) String() string

type MultisignInfo

type MultisignInfo struct {
	Inputs       []*Input     `protobuf:"bytes,1,rep,name=inputs" json:"inputs,omitempty"`
	Outputs      []*Output    `protobuf:"bytes,2,rep,name=outputs" json:"outputs,omitempty"`
	Sig1         []*Signature `protobuf:"bytes,3,rep,name=sig1" json:"sig1,omitempty"`
	Sig2         []*Signature `protobuf:"bytes,4,rep,name=sig2" json:"sig2,omitempty"`
	RedeemScript []byte       `protobuf:"bytes,5,opt,name=redeemScript,proto3" json:"redeemScript,omitempty"`
	FeePerByte   uint64       `protobuf:"varint,6,opt,name=feePerByte" json:"feePerByte,omitempty"`
	Broadcast    bool         `protobuf:"varint,7,opt,name=broadcast" json:"broadcast,omitempty"`
}

func (*MultisignInfo) Descriptor

func (*MultisignInfo) Descriptor() ([]byte, []int)

func (*MultisignInfo) GetBroadcast

func (m *MultisignInfo) GetBroadcast() bool

func (*MultisignInfo) GetFeePerByte

func (m *MultisignInfo) GetFeePerByte() uint64

func (*MultisignInfo) GetInputs

func (m *MultisignInfo) GetInputs() []*Input

func (*MultisignInfo) GetOutputs

func (m *MultisignInfo) GetOutputs() []*Output

func (*MultisignInfo) GetRedeemScript

func (m *MultisignInfo) GetRedeemScript() []byte

func (*MultisignInfo) GetSig1

func (m *MultisignInfo) GetSig1() []*Signature

func (*MultisignInfo) GetSig2

func (m *MultisignInfo) GetSig2() []*Signature

func (*MultisignInfo) ProtoMessage

func (*MultisignInfo) ProtoMessage()

func (*MultisignInfo) Reset

func (m *MultisignInfo) Reset()

func (*MultisignInfo) String

func (m *MultisignInfo) String() string

type NetParams

type NetParams struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

func (*NetParams) Descriptor

func (*NetParams) Descriptor() ([]byte, []int)

func (*NetParams) GetName

func (m *NetParams) GetName() string

func (*NetParams) ProtoMessage

func (*NetParams) ProtoMessage()

func (*NetParams) Reset

func (m *NetParams) Reset()

func (*NetParams) String

func (m *NetParams) String() string

type Output

type Output struct {
	ScriptPubKey []byte `protobuf:"bytes,1,opt,name=scriptPubKey,proto3" json:"scriptPubKey,omitempty"`
	Value        uint64 `protobuf:"varint,2,opt,name=value" json:"value,omitempty"`
}

func (*Output) Descriptor

func (*Output) Descriptor() ([]byte, []int)

func (*Output) GetScriptPubKey

func (m *Output) GetScriptPubKey() []byte

func (*Output) GetValue

func (m *Output) GetValue() uint64

func (*Output) ProtoMessage

func (*Output) ProtoMessage()

func (*Output) Reset

func (m *Output) Reset()

func (*Output) String

func (m *Output) String() string

type Peer

type Peer struct {
	Address         string                     `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
	BytesSent       uint64                     `protobuf:"varint,2,opt,name=bytesSent" json:"bytesSent,omitempty"`
	BytesReceived   uint64                     `protobuf:"varint,3,opt,name=bytesReceived" json:"bytesReceived,omitempty"`
	Connected       bool                       `protobuf:"varint,4,opt,name=connected" json:"connected,omitempty"`
	ID              int32                      `protobuf:"varint,5,opt,name=ID" json:"ID,omitempty"`
	LastBlock       int32                      `protobuf:"varint,6,opt,name=lastBlock" json:"lastBlock,omitempty"`
	ProtocolVersion uint32                     `protobuf:"varint,7,opt,name=protocolVersion" json:"protocolVersion,omitempty"`
	Services        string                     `protobuf:"bytes,8,opt,name=services" json:"services,omitempty"`
	UserAgent       string                     `protobuf:"bytes,9,opt,name=userAgent" json:"userAgent,omitempty"`
	TimeConnected   *google_protobuf.Timestamp `protobuf:"bytes,10,opt,name=timeConnected" json:"timeConnected,omitempty"`
}

func (*Peer) Descriptor

func (*Peer) Descriptor() ([]byte, []int)

func (*Peer) GetAddress

func (m *Peer) GetAddress() string

func (*Peer) GetBytesReceived

func (m *Peer) GetBytesReceived() uint64

func (*Peer) GetBytesSent

func (m *Peer) GetBytesSent() uint64

func (*Peer) GetConnected

func (m *Peer) GetConnected() bool

func (*Peer) GetID

func (m *Peer) GetID() int32

func (*Peer) GetLastBlock

func (m *Peer) GetLastBlock() int32

func (*Peer) GetProtocolVersion

func (m *Peer) GetProtocolVersion() uint32

func (*Peer) GetServices

func (m *Peer) GetServices() string

func (*Peer) GetTimeConnected

func (m *Peer) GetTimeConnected() *google_protobuf.Timestamp

func (*Peer) GetUserAgent

func (m *Peer) GetUserAgent() string

func (*Peer) ProtoMessage

func (*Peer) ProtoMessage()

func (*Peer) Reset

func (m *Peer) Reset()

func (*Peer) String

func (m *Peer) String() string

type PeerList

type PeerList struct {
	Peers []*Peer `protobuf:"bytes,1,rep,name=peers" json:"peers,omitempty"`
}

func (*PeerList) Descriptor

func (*PeerList) Descriptor() ([]byte, []int)

func (*PeerList) GetPeers

func (m *PeerList) GetPeers() []*Peer

func (*PeerList) ProtoMessage

func (*PeerList) ProtoMessage()

func (*PeerList) Reset

func (m *PeerList) Reset()

func (*PeerList) String

func (m *PeerList) String() string

type RawTx

type RawTx struct {
	Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
}

func (*RawTx) Descriptor

func (*RawTx) Descriptor() ([]byte, []int)

func (*RawTx) GetTx

func (m *RawTx) GetTx() []byte

func (*RawTx) ProtoMessage

func (*RawTx) ProtoMessage()

func (*RawTx) Reset

func (m *RawTx) Reset()

func (*RawTx) String

func (m *RawTx) String() string

type Signature

type Signature struct {
	Index     uint32 `protobuf:"varint,1,opt,name=index" json:"index,omitempty"`
	Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
}

func (*Signature) Descriptor

func (*Signature) Descriptor() ([]byte, []int)

func (*Signature) GetIndex

func (m *Signature) GetIndex() uint32

func (*Signature) GetSignature

func (m *Signature) GetSignature() []byte

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) Reset

func (m *Signature) Reset()

func (*Signature) String

func (m *Signature) String() string

type SignatureList

type SignatureList struct {
	Sigs []*Signature `protobuf:"bytes,1,rep,name=sigs" json:"sigs,omitempty"`
}

func (*SignatureList) Descriptor

func (*SignatureList) Descriptor() ([]byte, []int)

func (*SignatureList) GetSigs

func (m *SignatureList) GetSigs() []*Signature

func (*SignatureList) ProtoMessage

func (*SignatureList) ProtoMessage()

func (*SignatureList) Reset

func (m *SignatureList) Reset()

func (*SignatureList) String

func (m *SignatureList) String() string

type SpendInfo

type SpendInfo struct {
	Address  string   `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
	Amount   uint64   `protobuf:"varint,2,opt,name=amount" json:"amount,omitempty"`
	FeeLevel FeeLevel `protobuf:"varint,3,opt,name=feeLevel,enum=pb.FeeLevel" json:"feeLevel,omitempty"`
}

func (*SpendInfo) Descriptor

func (*SpendInfo) Descriptor() ([]byte, []int)

func (*SpendInfo) GetAddress

func (m *SpendInfo) GetAddress() string

func (*SpendInfo) GetAmount

func (m *SpendInfo) GetAmount() uint64

func (*SpendInfo) GetFeeLevel

func (m *SpendInfo) GetFeeLevel() FeeLevel

func (*SpendInfo) ProtoMessage

func (*SpendInfo) ProtoMessage()

func (*SpendInfo) Reset

func (m *SpendInfo) Reset()

func (*SpendInfo) String

func (m *SpendInfo) String() string

type SweepInfo

type SweepInfo struct {
	Utxos        []*Utxo  `protobuf:"bytes,1,rep,name=utxos" json:"utxos,omitempty"`
	Address      string   `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"`
	Key          string   `protobuf:"bytes,3,opt,name=key" json:"key,omitempty"`
	RedeemScript []byte   `protobuf:"bytes,4,opt,name=redeemScript,proto3" json:"redeemScript,omitempty"`
	FeeLevel     FeeLevel `protobuf:"varint,5,opt,name=feeLevel,enum=pb.FeeLevel" json:"feeLevel,omitempty"`
}

func (*SweepInfo) Descriptor

func (*SweepInfo) Descriptor() ([]byte, []int)

func (*SweepInfo) GetAddress

func (m *SweepInfo) GetAddress() string

func (*SweepInfo) GetFeeLevel

func (m *SweepInfo) GetFeeLevel() FeeLevel

func (*SweepInfo) GetKey

func (m *SweepInfo) GetKey() string

func (*SweepInfo) GetRedeemScript

func (m *SweepInfo) GetRedeemScript() []byte

func (*SweepInfo) GetUtxos

func (m *SweepInfo) GetUtxos() []*Utxo

func (*SweepInfo) ProtoMessage

func (*SweepInfo) ProtoMessage()

func (*SweepInfo) Reset

func (m *SweepInfo) Reset()

func (*SweepInfo) String

func (m *SweepInfo) String() string

type TransactionList

type TransactionList struct {
	Transactions []*Tx `protobuf:"bytes,1,rep,name=transactions" json:"transactions,omitempty"`
}

func (*TransactionList) Descriptor

func (*TransactionList) Descriptor() ([]byte, []int)

func (*TransactionList) GetTransactions

func (m *TransactionList) GetTransactions() []*Tx

func (*TransactionList) ProtoMessage

func (*TransactionList) ProtoMessage()

func (*TransactionList) Reset

func (m *TransactionList) Reset()

func (*TransactionList) String

func (m *TransactionList) String() string

type Tx

type Tx struct {
	Txid      string                     `protobuf:"bytes,1,opt,name=txid" json:"txid,omitempty"`
	Value     int64                      `protobuf:"varint,2,opt,name=value" json:"value,omitempty"`
	Height    int32                      `protobuf:"varint,3,opt,name=height" json:"height,omitempty"`
	Timestamp *google_protobuf.Timestamp `protobuf:"bytes,4,opt,name=timestamp" json:"timestamp,omitempty"`
	WatchOnly bool                       `protobuf:"varint,5,opt,name=watchOnly" json:"watchOnly,omitempty"`
	Raw       []byte                     `protobuf:"bytes,6,opt,name=raw,proto3" json:"raw,omitempty"`
}

func (*Tx) Descriptor

func (*Tx) Descriptor() ([]byte, []int)

func (*Tx) GetHeight

func (m *Tx) GetHeight() int32

func (*Tx) GetRaw

func (m *Tx) GetRaw() []byte

func (*Tx) GetTimestamp

func (m *Tx) GetTimestamp() *google_protobuf.Timestamp

func (*Tx) GetTxid

func (m *Tx) GetTxid() string

func (*Tx) GetValue

func (m *Tx) GetValue() int64

func (*Tx) GetWatchOnly

func (m *Tx) GetWatchOnly() bool

func (*Tx) ProtoMessage

func (*Tx) ProtoMessage()

func (*Tx) Reset

func (m *Tx) Reset()

func (*Tx) String

func (m *Tx) String() string

type Txid

type Txid struct {
	Hash string `protobuf:"bytes,1,opt,name=hash" json:"hash,omitempty"`
}

func (*Txid) Descriptor

func (*Txid) Descriptor() ([]byte, []int)

func (*Txid) GetHash

func (m *Txid) GetHash() string

func (*Txid) ProtoMessage

func (*Txid) ProtoMessage()

func (*Txid) Reset

func (m *Txid) Reset()

func (*Txid) String

func (m *Txid) String() string

type Utxo

type Utxo struct {
	Txid  string `protobuf:"bytes,1,opt,name=txid" json:"txid,omitempty"`
	Index uint32 `protobuf:"varint,2,opt,name=index" json:"index,omitempty"`
	Value uint64 `protobuf:"varint,3,opt,name=value" json:"value,omitempty"`
}

func (*Utxo) Descriptor

func (*Utxo) Descriptor() ([]byte, []int)

func (*Utxo) GetIndex

func (m *Utxo) GetIndex() uint32

func (*Utxo) GetTxid

func (m *Utxo) GetTxid() string

func (*Utxo) GetValue

func (m *Utxo) GetValue() uint64

func (*Utxo) ProtoMessage

func (*Utxo) ProtoMessage()

func (*Utxo) Reset

func (m *Utxo) Reset()

func (*Utxo) String

func (m *Utxo) String() string

Jump to

Keyboard shortcuts

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