Documentation ¶
Index ¶
- Variables
- func RegisterBitcoinServer(s *grpc.Server, srv BitcoinServer)
- type BitcoinClient
- type BitcoinServer
- type Block
- func (*Block) Descriptor() ([]byte, []int)
- func (m *Block) Marshal() (dAtA []byte, err error)
- func (m *Block) MarshalTo(dAtA []byte) (int, error)
- func (m *Block) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Block) ProtoMessage()
- func (m *Block) Reset()
- func (m *Block) Size() (n int)
- func (m *Block) String() string
- func (m *Block) Unmarshal(dAtA []byte) error
- func (m *Block) XXX_DiscardUnknown()
- func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Block) XXX_Merge(src proto.Message)
- func (m *Block) XXX_Size() int
- func (m *Block) XXX_Unmarshal(b []byte) error
- type BlockHeader
- func (*BlockHeader) Descriptor() ([]byte, []int)
- func (m *BlockHeader) Marshal() (dAtA []byte, err error)
- func (m *BlockHeader) MarshalTo(dAtA []byte) (int, error)
- func (m *BlockHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BlockHeader) ProtoMessage()
- func (m *BlockHeader) Reset()
- func (m *BlockHeader) Size() (n int)
- func (m *BlockHeader) String() string
- func (m *BlockHeader) Unmarshal(dAtA []byte) error
- func (m *BlockHeader) XXX_DiscardUnknown()
- func (m *BlockHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockHeader) XXX_Merge(src proto.Message)
- func (m *BlockHeader) XXX_Size() int
- func (m *BlockHeader) XXX_Unmarshal(b []byte) error
- type GetBlockByHashRequest
- func (*GetBlockByHashRequest) Descriptor() ([]byte, []int)
- func (m *GetBlockByHashRequest) Marshal() (dAtA []byte, err error)
- func (m *GetBlockByHashRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetBlockByHashRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetBlockByHashRequest) ProtoMessage()
- func (m *GetBlockByHashRequest) Reset()
- func (m *GetBlockByHashRequest) Size() (n int)
- func (m *GetBlockByHashRequest) String() string
- func (m *GetBlockByHashRequest) Unmarshal(dAtA []byte) error
- func (m *GetBlockByHashRequest) XXX_DiscardUnknown()
- func (m *GetBlockByHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetBlockByHashRequest) XXX_Merge(src proto.Message)
- func (m *GetBlockByHashRequest) XXX_Size() int
- func (m *GetBlockByHashRequest) XXX_Unmarshal(b []byte) error
- type GetBlockByNumberRequest
- func (*GetBlockByNumberRequest) Descriptor() ([]byte, []int)
- func (m *GetBlockByNumberRequest) Marshal() (dAtA []byte, err error)
- func (m *GetBlockByNumberRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetBlockByNumberRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetBlockByNumberRequest) ProtoMessage()
- func (m *GetBlockByNumberRequest) Reset()
- func (m *GetBlockByNumberRequest) Size() (n int)
- func (m *GetBlockByNumberRequest) String() string
- func (m *GetBlockByNumberRequest) Unmarshal(dAtA []byte) error
- func (m *GetBlockByNumberRequest) XXX_DiscardUnknown()
- func (m *GetBlockByNumberRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetBlockByNumberRequest) XXX_Merge(src proto.Message)
- func (m *GetBlockByNumberRequest) XXX_Size() int
- func (m *GetBlockByNumberRequest) XXX_Unmarshal(b []byte) error
- type GetTransactionByHashRequest
- func (*GetTransactionByHashRequest) Descriptor() ([]byte, []int)
- func (m *GetTransactionByHashRequest) Marshal() (dAtA []byte, err error)
- func (m *GetTransactionByHashRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetTransactionByHashRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetTransactionByHashRequest) ProtoMessage()
- func (m *GetTransactionByHashRequest) Reset()
- func (m *GetTransactionByHashRequest) Size() (n int)
- func (m *GetTransactionByHashRequest) String() string
- func (m *GetTransactionByHashRequest) Unmarshal(dAtA []byte) error
- func (m *GetTransactionByHashRequest) XXX_DiscardUnknown()
- func (m *GetTransactionByHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetTransactionByHashRequest) XXX_Merge(src proto.Message)
- func (m *GetTransactionByHashRequest) XXX_Size() int
- func (m *GetTransactionByHashRequest) XXX_Unmarshal(b []byte) error
- type ListTransactionsRequest
- func (*ListTransactionsRequest) Descriptor() ([]byte, []int)
- func (m *ListTransactionsRequest) Marshal() (dAtA []byte, err error)
- func (m *ListTransactionsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ListTransactionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListTransactionsRequest) ProtoMessage()
- func (m *ListTransactionsRequest) Reset()
- func (m *ListTransactionsRequest) Size() (n int)
- func (m *ListTransactionsRequest) String() string
- func (m *ListTransactionsRequest) Unmarshal(dAtA []byte) error
- func (m *ListTransactionsRequest) XXX_DiscardUnknown()
- func (m *ListTransactionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListTransactionsRequest) XXX_Merge(src proto.Message)
- func (m *ListTransactionsRequest) XXX_Size() int
- func (m *ListTransactionsRequest) XXX_Unmarshal(b []byte) error
- type ListTransactionsResponse
- func (*ListTransactionsResponse) Descriptor() ([]byte, []int)
- func (m *ListTransactionsResponse) Marshal() (dAtA []byte, err error)
- func (m *ListTransactionsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ListTransactionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListTransactionsResponse) ProtoMessage()
- func (m *ListTransactionsResponse) Reset()
- func (m *ListTransactionsResponse) Size() (n int)
- func (m *ListTransactionsResponse) String() string
- func (m *ListTransactionsResponse) Unmarshal(dAtA []byte) error
- func (m *ListTransactionsResponse) XXX_DiscardUnknown()
- func (m *ListTransactionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListTransactionsResponse) XXX_Merge(src proto.Message)
- func (m *ListTransactionsResponse) XXX_Size() int
- func (m *ListTransactionsResponse) XXX_Unmarshal(b []byte) error
- type OutPoint
- func (*OutPoint) Descriptor() ([]byte, []int)
- func (m *OutPoint) Marshal() (dAtA []byte, err error)
- func (m *OutPoint) MarshalTo(dAtA []byte) (int, error)
- func (m *OutPoint) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OutPoint) ProtoMessage()
- func (m *OutPoint) Reset()
- func (m *OutPoint) Size() (n int)
- func (m *OutPoint) String() string
- func (m *OutPoint) Unmarshal(dAtA []byte) error
- func (m *OutPoint) XXX_DiscardUnknown()
- func (m *OutPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OutPoint) XXX_Merge(src proto.Message)
- func (m *OutPoint) XXX_Size() int
- func (m *OutPoint) XXX_Unmarshal(b []byte) error
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)
- func (m *Transaction) Marshal() (dAtA []byte, err error)
- func (m *Transaction) MarshalTo(dAtA []byte) (int, error)
- func (m *Transaction) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Transaction) ProtoMessage()
- func (m *Transaction) Reset()
- func (m *Transaction) Size() (n int)
- func (m *Transaction) String() string
- func (m *Transaction) Unmarshal(dAtA []byte) error
- func (m *Transaction) XXX_DiscardUnknown()
- func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Transaction) XXX_Merge(src proto.Message)
- func (m *Transaction) XXX_Size() int
- func (m *Transaction) XXX_Unmarshal(b []byte) error
- type TxIn
- func (*TxIn) Descriptor() ([]byte, []int)
- func (m *TxIn) Marshal() (dAtA []byte, err error)
- func (m *TxIn) MarshalTo(dAtA []byte) (int, error)
- func (m *TxIn) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TxIn) ProtoMessage()
- func (m *TxIn) Reset()
- func (m *TxIn) Size() (n int)
- func (m *TxIn) String() string
- func (m *TxIn) Unmarshal(dAtA []byte) error
- func (m *TxIn) XXX_DiscardUnknown()
- func (m *TxIn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxIn) XXX_Merge(src proto.Message)
- func (m *TxIn) XXX_Size() int
- func (m *TxIn) XXX_Unmarshal(b []byte) error
- type TxOut
- func (*TxOut) Descriptor() ([]byte, []int)
- func (m *TxOut) Marshal() (dAtA []byte, err error)
- func (m *TxOut) MarshalTo(dAtA []byte) (int, error)
- func (m *TxOut) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TxOut) ProtoMessage()
- func (m *TxOut) Reset()
- func (m *TxOut) Size() (n int)
- func (m *TxOut) String() string
- func (m *TxOut) Unmarshal(dAtA []byte) error
- func (m *TxOut) XXX_DiscardUnknown()
- func (m *TxOut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxOut) XXX_Merge(src proto.Message)
- func (m *TxOut) XXX_Size() int
- func (m *TxOut) XXX_Unmarshal(b []byte) error
- type UnimplementedBitcoinServer
- func (*UnimplementedBitcoinServer) GetBlockByHash(ctx context.Context, req *GetBlockByHashRequest) (*Block, error)
- func (*UnimplementedBitcoinServer) GetBlockByNumber(ctx context.Context, req *GetBlockByNumberRequest) (*Block, error)
- func (*UnimplementedBitcoinServer) GetTransactionByHash(ctx context.Context, req *GetTransactionByHashRequest) (*Transaction, error)
- func (*UnimplementedBitcoinServer) ListTransactions(ctx context.Context, req *ListTransactionsRequest) (*ListTransactionsResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthBitcoin = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBitcoin = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterBitcoinServer ¶
func RegisterBitcoinServer(s *grpc.Server, srv BitcoinServer)
Types ¶
type BitcoinClient ¶
type BitcoinClient interface { GetBlockByHash(ctx context.Context, in *GetBlockByHashRequest, opts ...grpc.CallOption) (*Block, error) GetBlockByNumber(ctx context.Context, in *GetBlockByNumberRequest, opts ...grpc.CallOption) (*Block, error) ListTransactions(ctx context.Context, in *ListTransactionsRequest, opts ...grpc.CallOption) (*ListTransactionsResponse, error) GetTransactionByHash(ctx context.Context, in *GetTransactionByHashRequest, opts ...grpc.CallOption) (*Transaction, error) }
BitcoinClient is the client API for Bitcoin service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewBitcoinClient ¶
func NewBitcoinClient(cc *grpc.ClientConn) BitcoinClient
type BitcoinServer ¶
type BitcoinServer interface { GetBlockByHash(context.Context, *GetBlockByHashRequest) (*Block, error) GetBlockByNumber(context.Context, *GetBlockByNumberRequest) (*Block, error) ListTransactions(context.Context, *ListTransactionsRequest) (*ListTransactionsResponse, error) GetTransactionByHash(context.Context, *GetTransactionByHashRequest) (*Transaction, error) }
BitcoinServer is the server API for Bitcoin service.
type Block ¶
type Block struct { Header *BlockHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Transactions []*Transaction `protobuf:"bytes,2,rep,name=transactions,proto3" json:"transactions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Block) Descriptor ¶
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
func (*Block) XXX_DiscardUnknown ¶
func (m *Block) XXX_DiscardUnknown()
func (*Block) XXX_Marshal ¶
func (*Block) XXX_Unmarshal ¶
type BlockHeader ¶
type BlockHeader struct { Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` PrevBlock string `protobuf:"bytes,2,opt,name=prev_block,json=prevBlock,proto3" json:"prev_block,omitempty"` MerkleRoot string `protobuf:"bytes,3,opt,name=merkle_root,json=merkleRoot,proto3" json:"merkle_root,omitempty"` Timestamp *types.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Bits uint32 `protobuf:"varint,5,opt,name=bits,proto3" json:"bits,omitempty"` Nonce uint32 `protobuf:"varint,6,opt,name=nonce,proto3" json:"nonce,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BlockHeader) Descriptor ¶
func (*BlockHeader) Descriptor() ([]byte, []int)
func (*BlockHeader) Marshal ¶
func (m *BlockHeader) Marshal() (dAtA []byte, err error)
func (*BlockHeader) MarshalToSizedBuffer ¶
func (m *BlockHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BlockHeader) ProtoMessage ¶
func (*BlockHeader) ProtoMessage()
func (*BlockHeader) Reset ¶
func (m *BlockHeader) Reset()
func (*BlockHeader) Size ¶
func (m *BlockHeader) Size() (n int)
func (*BlockHeader) String ¶
func (m *BlockHeader) String() string
func (*BlockHeader) Unmarshal ¶
func (m *BlockHeader) Unmarshal(dAtA []byte) error
func (*BlockHeader) XXX_DiscardUnknown ¶
func (m *BlockHeader) XXX_DiscardUnknown()
func (*BlockHeader) XXX_Marshal ¶
func (m *BlockHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockHeader) XXX_Merge ¶
func (m *BlockHeader) XXX_Merge(src proto.Message)
func (*BlockHeader) XXX_Size ¶
func (m *BlockHeader) XXX_Size() int
func (*BlockHeader) XXX_Unmarshal ¶
func (m *BlockHeader) XXX_Unmarshal(b []byte) error
type GetBlockByHashRequest ¶
type GetBlockByHashRequest struct { BlockHash string `protobuf:"bytes,1,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetBlockByHashRequest) Descriptor ¶
func (*GetBlockByHashRequest) Descriptor() ([]byte, []int)
func (*GetBlockByHashRequest) Marshal ¶
func (m *GetBlockByHashRequest) Marshal() (dAtA []byte, err error)
func (*GetBlockByHashRequest) MarshalTo ¶
func (m *GetBlockByHashRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetBlockByHashRequest) MarshalToSizedBuffer ¶
func (m *GetBlockByHashRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetBlockByHashRequest) ProtoMessage ¶
func (*GetBlockByHashRequest) ProtoMessage()
func (*GetBlockByHashRequest) Reset ¶
func (m *GetBlockByHashRequest) Reset()
func (*GetBlockByHashRequest) Size ¶
func (m *GetBlockByHashRequest) Size() (n int)
func (*GetBlockByHashRequest) String ¶
func (m *GetBlockByHashRequest) String() string
func (*GetBlockByHashRequest) Unmarshal ¶
func (m *GetBlockByHashRequest) Unmarshal(dAtA []byte) error
func (*GetBlockByHashRequest) XXX_DiscardUnknown ¶
func (m *GetBlockByHashRequest) XXX_DiscardUnknown()
func (*GetBlockByHashRequest) XXX_Marshal ¶
func (m *GetBlockByHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBlockByHashRequest) XXX_Merge ¶
func (m *GetBlockByHashRequest) XXX_Merge(src proto.Message)
func (*GetBlockByHashRequest) XXX_Size ¶
func (m *GetBlockByHashRequest) XXX_Size() int
func (*GetBlockByHashRequest) XXX_Unmarshal ¶
func (m *GetBlockByHashRequest) XXX_Unmarshal(b []byte) error
type GetBlockByNumberRequest ¶
type GetBlockByNumberRequest struct { BlockNumber uint32 `protobuf:"varint,1,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetBlockByNumberRequest) Descriptor ¶
func (*GetBlockByNumberRequest) Descriptor() ([]byte, []int)
func (*GetBlockByNumberRequest) Marshal ¶
func (m *GetBlockByNumberRequest) Marshal() (dAtA []byte, err error)
func (*GetBlockByNumberRequest) MarshalTo ¶
func (m *GetBlockByNumberRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetBlockByNumberRequest) MarshalToSizedBuffer ¶
func (m *GetBlockByNumberRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetBlockByNumberRequest) ProtoMessage ¶
func (*GetBlockByNumberRequest) ProtoMessage()
func (*GetBlockByNumberRequest) Reset ¶
func (m *GetBlockByNumberRequest) Reset()
func (*GetBlockByNumberRequest) Size ¶
func (m *GetBlockByNumberRequest) Size() (n int)
func (*GetBlockByNumberRequest) String ¶
func (m *GetBlockByNumberRequest) String() string
func (*GetBlockByNumberRequest) Unmarshal ¶
func (m *GetBlockByNumberRequest) Unmarshal(dAtA []byte) error
func (*GetBlockByNumberRequest) XXX_DiscardUnknown ¶
func (m *GetBlockByNumberRequest) XXX_DiscardUnknown()
func (*GetBlockByNumberRequest) XXX_Marshal ¶
func (m *GetBlockByNumberRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBlockByNumberRequest) XXX_Merge ¶
func (m *GetBlockByNumberRequest) XXX_Merge(src proto.Message)
func (*GetBlockByNumberRequest) XXX_Size ¶
func (m *GetBlockByNumberRequest) XXX_Size() int
func (*GetBlockByNumberRequest) XXX_Unmarshal ¶
func (m *GetBlockByNumberRequest) XXX_Unmarshal(b []byte) error
type GetTransactionByHashRequest ¶
type GetTransactionByHashRequest struct { TransactionHash string `protobuf:"bytes,1,opt,name=transaction_hash,json=transactionHash,proto3" json:"transaction_hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetTransactionByHashRequest) Descriptor ¶
func (*GetTransactionByHashRequest) Descriptor() ([]byte, []int)
func (*GetTransactionByHashRequest) Marshal ¶
func (m *GetTransactionByHashRequest) Marshal() (dAtA []byte, err error)
func (*GetTransactionByHashRequest) MarshalTo ¶
func (m *GetTransactionByHashRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetTransactionByHashRequest) MarshalToSizedBuffer ¶
func (m *GetTransactionByHashRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetTransactionByHashRequest) ProtoMessage ¶
func (*GetTransactionByHashRequest) ProtoMessage()
func (*GetTransactionByHashRequest) Reset ¶
func (m *GetTransactionByHashRequest) Reset()
func (*GetTransactionByHashRequest) Size ¶
func (m *GetTransactionByHashRequest) Size() (n int)
func (*GetTransactionByHashRequest) String ¶
func (m *GetTransactionByHashRequest) String() string
func (*GetTransactionByHashRequest) Unmarshal ¶
func (m *GetTransactionByHashRequest) Unmarshal(dAtA []byte) error
func (*GetTransactionByHashRequest) XXX_DiscardUnknown ¶
func (m *GetTransactionByHashRequest) XXX_DiscardUnknown()
func (*GetTransactionByHashRequest) XXX_Marshal ¶
func (m *GetTransactionByHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTransactionByHashRequest) XXX_Merge ¶
func (m *GetTransactionByHashRequest) XXX_Merge(src proto.Message)
func (*GetTransactionByHashRequest) XXX_Size ¶
func (m *GetTransactionByHashRequest) XXX_Size() int
func (*GetTransactionByHashRequest) XXX_Unmarshal ¶
func (m *GetTransactionByHashRequest) XXX_Unmarshal(b []byte) error
type ListTransactionsRequest ¶
type ListTransactionsRequest struct { Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListTransactionsRequest) Descriptor ¶
func (*ListTransactionsRequest) Descriptor() ([]byte, []int)
func (*ListTransactionsRequest) Marshal ¶
func (m *ListTransactionsRequest) Marshal() (dAtA []byte, err error)
func (*ListTransactionsRequest) MarshalTo ¶
func (m *ListTransactionsRequest) MarshalTo(dAtA []byte) (int, error)
func (*ListTransactionsRequest) MarshalToSizedBuffer ¶
func (m *ListTransactionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListTransactionsRequest) ProtoMessage ¶
func (*ListTransactionsRequest) ProtoMessage()
func (*ListTransactionsRequest) Reset ¶
func (m *ListTransactionsRequest) Reset()
func (*ListTransactionsRequest) Size ¶
func (m *ListTransactionsRequest) Size() (n int)
func (*ListTransactionsRequest) String ¶
func (m *ListTransactionsRequest) String() string
func (*ListTransactionsRequest) Unmarshal ¶
func (m *ListTransactionsRequest) Unmarshal(dAtA []byte) error
func (*ListTransactionsRequest) XXX_DiscardUnknown ¶
func (m *ListTransactionsRequest) XXX_DiscardUnknown()
func (*ListTransactionsRequest) XXX_Marshal ¶
func (m *ListTransactionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListTransactionsRequest) XXX_Merge ¶
func (m *ListTransactionsRequest) XXX_Merge(src proto.Message)
func (*ListTransactionsRequest) XXX_Size ¶
func (m *ListTransactionsRequest) XXX_Size() int
func (*ListTransactionsRequest) XXX_Unmarshal ¶
func (m *ListTransactionsRequest) XXX_Unmarshal(b []byte) error
type ListTransactionsResponse ¶
type ListTransactionsResponse struct { Transactions []*Transaction `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListTransactionsResponse) Descriptor ¶
func (*ListTransactionsResponse) Descriptor() ([]byte, []int)
func (*ListTransactionsResponse) Marshal ¶
func (m *ListTransactionsResponse) Marshal() (dAtA []byte, err error)
func (*ListTransactionsResponse) MarshalTo ¶
func (m *ListTransactionsResponse) MarshalTo(dAtA []byte) (int, error)
func (*ListTransactionsResponse) MarshalToSizedBuffer ¶
func (m *ListTransactionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListTransactionsResponse) ProtoMessage ¶
func (*ListTransactionsResponse) ProtoMessage()
func (*ListTransactionsResponse) Reset ¶
func (m *ListTransactionsResponse) Reset()
func (*ListTransactionsResponse) Size ¶
func (m *ListTransactionsResponse) Size() (n int)
func (*ListTransactionsResponse) String ¶
func (m *ListTransactionsResponse) String() string
func (*ListTransactionsResponse) Unmarshal ¶
func (m *ListTransactionsResponse) Unmarshal(dAtA []byte) error
func (*ListTransactionsResponse) XXX_DiscardUnknown ¶
func (m *ListTransactionsResponse) XXX_DiscardUnknown()
func (*ListTransactionsResponse) XXX_Marshal ¶
func (m *ListTransactionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListTransactionsResponse) XXX_Merge ¶
func (m *ListTransactionsResponse) XXX_Merge(src proto.Message)
func (*ListTransactionsResponse) XXX_Size ¶
func (m *ListTransactionsResponse) XXX_Size() int
func (*ListTransactionsResponse) XXX_Unmarshal ¶
func (m *ListTransactionsResponse) XXX_Unmarshal(b []byte) error
type OutPoint ¶
type OutPoint struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Index uint32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*OutPoint) Descriptor ¶
func (*OutPoint) MarshalToSizedBuffer ¶
func (*OutPoint) ProtoMessage ¶
func (*OutPoint) ProtoMessage()
func (*OutPoint) XXX_DiscardUnknown ¶
func (m *OutPoint) XXX_DiscardUnknown()
func (*OutPoint) XXX_Marshal ¶
func (*OutPoint) XXX_Unmarshal ¶
type Transaction ¶
type Transaction struct { Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` TxIn []*TxIn `protobuf:"bytes,2,rep,name=tx_in,json=txIn,proto3" json:"tx_in,omitempty"` TxOut []*TxOut `protobuf:"bytes,3,rep,name=tx_out,json=txOut,proto3" json:"tx_out,omitempty"` LockTime uint32 `protobuf:"varint,4,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Transaction) Descriptor ¶
func (*Transaction) Descriptor() ([]byte, []int)
func (*Transaction) Marshal ¶
func (m *Transaction) Marshal() (dAtA []byte, err error)
func (*Transaction) MarshalToSizedBuffer ¶
func (m *Transaction) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) Reset ¶
func (m *Transaction) Reset()
func (*Transaction) Size ¶
func (m *Transaction) Size() (n int)
func (*Transaction) String ¶
func (m *Transaction) String() string
func (*Transaction) Unmarshal ¶
func (m *Transaction) Unmarshal(dAtA []byte) error
func (*Transaction) XXX_DiscardUnknown ¶
func (m *Transaction) XXX_DiscardUnknown()
func (*Transaction) XXX_Marshal ¶
func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Transaction) XXX_Merge ¶
func (m *Transaction) XXX_Merge(src proto.Message)
func (*Transaction) XXX_Size ¶
func (m *Transaction) XXX_Size() int
func (*Transaction) XXX_Unmarshal ¶
func (m *Transaction) XXX_Unmarshal(b []byte) error
type TxIn ¶
type TxIn struct { PreviousOutPoint *OutPoint `protobuf:"bytes,1,opt,name=previous_out_point,json=previousOutPoint,proto3" json:"previous_out_point,omitempty"` SignatureScript string `protobuf:"bytes,2,opt,name=signature_script,json=signatureScript,proto3" json:"signature_script,omitempty"` Witness []string `protobuf:"bytes,3,rep,name=witness,proto3" json:"witness,omitempty"` Sequence uint32 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TxIn) Descriptor ¶
func (*TxIn) ProtoMessage ¶
func (*TxIn) ProtoMessage()
func (*TxIn) XXX_DiscardUnknown ¶
func (m *TxIn) XXX_DiscardUnknown()
func (*TxIn) XXX_Unmarshal ¶
type TxOut ¶
type TxOut struct { Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` PkScript string `protobuf:"bytes,2,opt,name=pk_script,json=pkScript,proto3" json:"pk_script,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TxOut) Descriptor ¶
func (*TxOut) ProtoMessage ¶
func (*TxOut) ProtoMessage()
func (*TxOut) XXX_DiscardUnknown ¶
func (m *TxOut) XXX_DiscardUnknown()
func (*TxOut) XXX_Marshal ¶
func (*TxOut) XXX_Unmarshal ¶
type UnimplementedBitcoinServer ¶
type UnimplementedBitcoinServer struct { }
UnimplementedBitcoinServer can be embedded to have forward compatible implementations.
func (*UnimplementedBitcoinServer) GetBlockByHash ¶
func (*UnimplementedBitcoinServer) GetBlockByHash(ctx context.Context, req *GetBlockByHashRequest) (*Block, error)
func (*UnimplementedBitcoinServer) GetBlockByNumber ¶
func (*UnimplementedBitcoinServer) GetBlockByNumber(ctx context.Context, req *GetBlockByNumberRequest) (*Block, error)
func (*UnimplementedBitcoinServer) GetTransactionByHash ¶
func (*UnimplementedBitcoinServer) GetTransactionByHash(ctx context.Context, req *GetTransactionByHashRequest) (*Transaction, error)
func (*UnimplementedBitcoinServer) ListTransactions ¶
func (*UnimplementedBitcoinServer) ListTransactions(ctx context.Context, req *ListTransactionsRequest) (*ListTransactionsResponse, error)
Click to show internal directories.
Click to hide internal directories.