utxo

package
v0.0.0-...-8c09bb4 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WalletUtxoService_GetSupportChains_FullMethodName        = "/proto.utxo.WalletUtxoService/getSupportChains"
	WalletUtxoService_ConvertAddress_FullMethodName          = "/proto.utxo.WalletUtxoService/convertAddress"
	WalletUtxoService_ValidAddress_FullMethodName            = "/proto.utxo.WalletUtxoService/validAddress"
	WalletUtxoService_GetFee_FullMethodName                  = "/proto.utxo.WalletUtxoService/getFee"
	WalletUtxoService_GetAccount_FullMethodName              = "/proto.utxo.WalletUtxoService/getAccount"
	WalletUtxoService_GetUnspentOutputs_FullMethodName       = "/proto.utxo.WalletUtxoService/getUnspentOutputs"
	WalletUtxoService_GetBlockByNumber_FullMethodName        = "/proto.utxo.WalletUtxoService/getBlockByNumber"
	WalletUtxoService_GetBlockByHash_FullMethodName          = "/proto.utxo.WalletUtxoService/getBlockByHash"
	WalletUtxoService_GetBlockHeaderByHash_FullMethodName    = "/proto.utxo.WalletUtxoService/getBlockHeaderByHash"
	WalletUtxoService_GetBlockHeaderByNumber_FullMethodName  = "/proto.utxo.WalletUtxoService/getBlockHeaderByNumber"
	WalletUtxoService_SendTx_FullMethodName                  = "/proto.utxo.WalletUtxoService/SendTx"
	WalletUtxoService_GetTxByAddress_FullMethodName          = "/proto.utxo.WalletUtxoService/getTxByAddress"
	WalletUtxoService_GetTxByHash_FullMethodName             = "/proto.utxo.WalletUtxoService/getTxByHash"
	WalletUtxoService_CreateUnSignTransaction_FullMethodName = "/proto.utxo.WalletUtxoService/createUnSignTransaction"
	WalletUtxoService_BuildSignedTransaction_FullMethodName  = "/proto.utxo.WalletUtxoService/buildSignedTransaction"
	WalletUtxoService_DecodeTransaction_FullMethodName       = "/proto.utxo.WalletUtxoService/decodeTransaction"
	WalletUtxoService_VerifySignedTransaction_FullMethodName = "/proto.utxo.WalletUtxoService/verifySignedTransaction"
)

Variables

View Source
var (
	TxStatus_name = map[int32]string{
		0: "NotFound",
		1: "Pending",
		2: "Failed",
		3: "Success",
		4: "ContractExecuteFailed",
		5: "Other",
	}
	TxStatus_value = map[string]int32{
		"NotFound":              0,
		"Pending":               1,
		"Failed":                2,
		"Success":               3,
		"ContractExecuteFailed": 4,
		"Other":                 5,
	}
)

Enum value maps for TxStatus.

View Source
var File_proto_utxo_proto protoreflect.FileDescriptor
View Source
var WalletUtxoService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.utxo.WalletUtxoService",
	HandlerType: (*WalletUtxoServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "getSupportChains",
			Handler:    _WalletUtxoService_GetSupportChains_Handler,
		},
		{
			MethodName: "convertAddress",
			Handler:    _WalletUtxoService_ConvertAddress_Handler,
		},
		{
			MethodName: "validAddress",
			Handler:    _WalletUtxoService_ValidAddress_Handler,
		},
		{
			MethodName: "getFee",
			Handler:    _WalletUtxoService_GetFee_Handler,
		},
		{
			MethodName: "getAccount",
			Handler:    _WalletUtxoService_GetAccount_Handler,
		},
		{
			MethodName: "getUnspentOutputs",
			Handler:    _WalletUtxoService_GetUnspentOutputs_Handler,
		},
		{
			MethodName: "getBlockByNumber",
			Handler:    _WalletUtxoService_GetBlockByNumber_Handler,
		},
		{
			MethodName: "getBlockByHash",
			Handler:    _WalletUtxoService_GetBlockByHash_Handler,
		},
		{
			MethodName: "getBlockHeaderByHash",
			Handler:    _WalletUtxoService_GetBlockHeaderByHash_Handler,
		},
		{
			MethodName: "getBlockHeaderByNumber",
			Handler:    _WalletUtxoService_GetBlockHeaderByNumber_Handler,
		},
		{
			MethodName: "SendTx",
			Handler:    _WalletUtxoService_SendTx_Handler,
		},
		{
			MethodName: "getTxByAddress",
			Handler:    _WalletUtxoService_GetTxByAddress_Handler,
		},
		{
			MethodName: "getTxByHash",
			Handler:    _WalletUtxoService_GetTxByHash_Handler,
		},
		{
			MethodName: "createUnSignTransaction",
			Handler:    _WalletUtxoService_CreateUnSignTransaction_Handler,
		},
		{
			MethodName: "buildSignedTransaction",
			Handler:    _WalletUtxoService_BuildSignedTransaction_Handler,
		},
		{
			MethodName: "decodeTransaction",
			Handler:    _WalletUtxoService_DecodeTransaction_Handler,
		},
		{
			MethodName: "verifySignedTransaction",
			Handler:    _WalletUtxoService_VerifySignedTransaction_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/utxo.proto",
}

WalletUtxoService_ServiceDesc is the grpc.ServiceDesc for WalletUtxoService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterWalletUtxoServiceServer

func RegisterWalletUtxoServiceServer(s grpc.ServiceRegistrar, srv WalletUtxoServiceServer)

Types

type AccountRequest

type AccountRequest struct {
	ConsumerToken string `protobuf:"bytes,1,opt,name=consumer_token,json=consumerToken,proto3" json:"consumer_token,omitempty"`
	Chain         string `protobuf:"bytes,2,opt,name=chain,proto3" json:"chain,omitempty"`
	Coin          string `protobuf:"bytes,3,opt,name=coin,proto3" json:"coin,omitempty"`
	Network       string `protobuf:"bytes,4,opt,name=network,proto3" json:"network,omitempty"`
	Address       string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"`
	Brc20Address  string `protobuf:"bytes,6,opt,name=brc20_address,json=brc20Address,proto3" json:"brc20_address,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountRequest) Descriptor deprecated

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

Deprecated: Use AccountRequest.ProtoReflect.Descriptor instead.

func (*AccountRequest) GetAddress

func (x *AccountRequest) GetAddress() string

func (*AccountRequest) GetBrc20Address

func (x *AccountRequest) GetBrc20Address() string

func (*AccountRequest) GetChain

func (x *AccountRequest) GetChain() string

func (*AccountRequest) GetCoin

func (x *AccountRequest) GetCoin() string

func (*AccountRequest) GetConsumerToken

func (x *AccountRequest) GetConsumerToken() string

func (*AccountRequest) GetNetwork

func (x *AccountRequest) GetNetwork() string

func (*AccountRequest) ProtoMessage

func (*AccountRequest) ProtoMessage()

func (*AccountRequest) ProtoReflect

func (x *AccountRequest) ProtoReflect() protoreflect.Message

func (*AccountRequest) Reset

func (x *AccountRequest) Reset()

func (*AccountRequest) String

func (x *AccountRequest) String() string

type AccountResponse

type AccountResponse struct {
	Code    common.ReturnCode `protobuf:"varint,1,opt,name=code,proto3,enum=proto.ReturnCode" json:"code,omitempty"`
	Msg     string            `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Network string            `protobuf:"bytes,3,opt,name=network,proto3" json:"network,omitempty"`
	Balance string            `protobuf:"bytes,6,opt,name=balance,proto3" json:"balance,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountResponse) Descriptor deprecated

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

Deprecated: Use AccountResponse.ProtoReflect.Descriptor instead.

func (*AccountResponse) GetBalance

func (x *AccountResponse) GetBalance() string

func (*AccountResponse) GetCode

func (x *AccountResponse) GetCode() common.ReturnCode

func (*AccountResponse) GetMsg

func (x *AccountResponse) GetMsg() string

func (*AccountResponse) GetNetwork

func (x *AccountResponse) GetNetwork() string

func (*AccountResponse) ProtoMessage

func (*AccountResponse) ProtoMessage()

func (*AccountResponse) ProtoReflect

func (x *AccountResponse) ProtoReflect() protoreflect.Message

func (*AccountResponse) Reset

func (x *AccountResponse) Reset()

func (*AccountResponse) String

func (x *AccountResponse) String() string

type Address

type Address struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*Address) Descriptor deprecated

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

Deprecated: Use Address.ProtoReflect.Descriptor instead.

func (*Address) GetAddress

func (x *Address) GetAddress() string

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) ProtoReflect

func (x *Address) ProtoReflect() protoreflect.Message

func (*Address) Reset

func (x *Address) Reset()

func (*Address) String

func (x *Address) String() string

type BlockHashRequest

type BlockHashRequest struct {
	ConsumerToken string `protobuf:"bytes,1,opt,name=consumer_token,json=consumerToken,proto3" json:"consumer_token,omitempty"`
	Chain         string `protobuf:"bytes,2,opt,name=chain,proto3" json:"chain,omitempty"`
	Hash          string `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockHashRequest) Descriptor deprecated

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

Deprecated: Use BlockHashRequest.ProtoReflect.Descriptor instead.

func (*BlockHashRequest) GetChain

func (x *BlockHashRequest) GetChain() string

func (*BlockHashRequest) GetConsumerToken

func (x *BlockHashRequest) GetConsumerToken() string

func (*BlockHashRequest) GetHash

func (x *BlockHashRequest) GetHash() string

func (*BlockHashRequest) ProtoMessage

func (*BlockHashRequest) ProtoMessage()

func (*BlockHashRequest) ProtoReflect

func (x *BlockHashRequest) ProtoReflect() protoreflect.Message

func (*BlockHashRequest) Reset

func (x *BlockHashRequest) Reset()

func (*BlockHashRequest) String

func (x *BlockHashRequest) String() string

type BlockHeaderHashRequest

type BlockHeaderHashRequest struct {
	Chain   string `protobuf:"bytes,1,opt,name=chain,proto3" json:"chain,omitempty"`
	Network string `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"`
	Hash    string `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockHeaderHashRequest) Descriptor deprecated

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

Deprecated: Use BlockHeaderHashRequest.ProtoReflect.Descriptor instead.

func (*BlockHeaderHashRequest) GetChain

func (x *BlockHeaderHashRequest) GetChain() string

func (*BlockHeaderHashRequest) GetHash

func (x *BlockHeaderHashRequest) GetHash() string

func (*BlockHeaderHashRequest) GetNetwork

func (x *BlockHeaderHashRequest) GetNetwork() string

func (*BlockHeaderHashRequest) ProtoMessage

func (*BlockHeaderHashRequest) ProtoMessage()

func (*BlockHeaderHashRequest) ProtoReflect

func (x *BlockHeaderHashRequest) ProtoReflect() protoreflect.Message

func (*BlockHeaderHashRequest) Reset

func (x *BlockHeaderHashRequest) Reset()

func (*BlockHeaderHashRequest) String

func (x *BlockHeaderHashRequest) String() string

type BlockHeaderNumberRequest

type BlockHeaderNumberRequest struct {
	Chain   string `protobuf:"bytes,1,opt,name=chain,proto3" json:"chain,omitempty"`
	Network string `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"`
	Height  int64  `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockHeaderNumberRequest) Descriptor deprecated

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

Deprecated: Use BlockHeaderNumberRequest.ProtoReflect.Descriptor instead.

func (*BlockHeaderNumberRequest) GetChain

func (x *BlockHeaderNumberRequest) GetChain() string

func (*BlockHeaderNumberRequest) GetHeight

func (x *BlockHeaderNumberRequest) GetHeight() int64

func (*BlockHeaderNumberRequest) GetNetwork

func (x *BlockHeaderNumberRequest) GetNetwork() string

func (*BlockHeaderNumberRequest) ProtoMessage

func (*BlockHeaderNumberRequest) ProtoMessage()

func (*BlockHeaderNumberRequest) ProtoReflect

func (x *BlockHeaderNumberRequest) ProtoReflect() protoreflect.Message

func (*BlockHeaderNumberRequest) Reset

func (x *BlockHeaderNumberRequest) Reset()

func (*BlockHeaderNumberRequest) String

func (x *BlockHeaderNumberRequest) String() string

type BlockHeaderResponse

type BlockHeaderResponse struct {
	Code       common.ReturnCode `protobuf:"varint,1,opt,name=code,proto3,enum=proto.ReturnCode" json:"code,omitempty"`
	Msg        string            `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	ParentHash string            `protobuf:"bytes,3,opt,name=parent_hash,json=parentHash,proto3" json:"parent_hash,omitempty"`
	Number     string            `protobuf:"bytes,4,opt,name=number,proto3" json:"number,omitempty"`
	Blockhash  string            `protobuf:"bytes,5,opt,name=blockhash,proto3" json:"blockhash,omitempty"`
	Merkleroot string            `protobuf:"bytes,6,opt,name=merkleroot,proto3" json:"merkleroot,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockHeaderResponse) Descriptor deprecated

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

Deprecated: Use BlockHeaderResponse.ProtoReflect.Descriptor instead.

func (*BlockHeaderResponse) GetBlockhash

func (x *BlockHeaderResponse) GetBlockhash() string

func (*BlockHeaderResponse) GetCode

func (x *BlockHeaderResponse) GetCode() common.ReturnCode

func (*BlockHeaderResponse) GetMerkleroot

func (x *BlockHeaderResponse) GetMerkleroot() string

func (*BlockHeaderResponse) GetMsg

func (x *BlockHeaderResponse) GetMsg() string

func (*BlockHeaderResponse) GetNumber

func (x *BlockHeaderResponse) GetNumber() string

func (*BlockHeaderResponse) GetParentHash

func (x *BlockHeaderResponse) GetParentHash() string

func (*BlockHeaderResponse) ProtoMessage

func (*BlockHeaderResponse) ProtoMessage()

func (*BlockHeaderResponse) ProtoReflect

func (x *BlockHeaderResponse) ProtoReflect() protoreflect.Message

func (*BlockHeaderResponse) Reset

func (x *BlockHeaderResponse) Reset()

func (*BlockHeaderResponse) String

func (x *BlockHeaderResponse) String() string

type BlockInfoTransactionList

type BlockInfoTransactionList struct {
	Fee  string  `protobuf:"bytes,1,opt,name=fee,proto3" json:"fee,omitempty"`
	Vin  []*Vin  `protobuf:"bytes,2,rep,name=vin,proto3" json:"vin,omitempty"`
	Vout []*Vout `protobuf:"bytes,3,rep,name=vout,proto3" json:"vout,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockInfoTransactionList) Descriptor deprecated

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

Deprecated: Use BlockInfoTransactionList.ProtoReflect.Descriptor instead.

func (*BlockInfoTransactionList) GetFee

func (x *BlockInfoTransactionList) GetFee() string

func (*BlockInfoTransactionList) GetVin

func (x *BlockInfoTransactionList) GetVin() []*Vin

func (*BlockInfoTransactionList) GetVout

func (x *BlockInfoTransactionList) GetVout() []*Vout

func (*BlockInfoTransactionList) ProtoMessage

func (*BlockInfoTransactionList) ProtoMessage()

func (*BlockInfoTransactionList) ProtoReflect

func (x *BlockInfoTransactionList) ProtoReflect() protoreflect.Message

func (*BlockInfoTransactionList) Reset

func (x *BlockInfoTransactionList) Reset()

func (*BlockInfoTransactionList) String

func (x *BlockInfoTransactionList) String() string

type BlockNumberRequest

type BlockNumberRequest struct {
	ConsumerToken string `protobuf:"bytes,1,opt,name=consumer_token,json=consumerToken,proto3" json:"consumer_token,omitempty"`
	Chain         string `protobuf:"bytes,2,opt,name=chain,proto3" json:"chain,omitempty"`
	Height        int64  `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockNumberRequest) Descriptor deprecated

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

Deprecated: Use BlockNumberRequest.ProtoReflect.Descriptor instead.

func (*BlockNumberRequest) GetChain

func (x *BlockNumberRequest) GetChain() string

func (*BlockNumberRequest) GetConsumerToken

func (x *BlockNumberRequest) GetConsumerToken() string

func (*BlockNumberRequest) GetHeight

func (x *BlockNumberRequest) GetHeight() int64

func (*BlockNumberRequest) ProtoMessage

func (*BlockNumberRequest) ProtoMessage()

func (*BlockNumberRequest) ProtoReflect

func (x *BlockNumberRequest) ProtoReflect() protoreflect.Message

func (*BlockNumberRequest) Reset

func (x *BlockNumberRequest) Reset()

func (*BlockNumberRequest) String

func (x *BlockNumberRequest) String() string

type BlockResponse

type BlockResponse struct {
	Code   common.ReturnCode           `protobuf:"varint,1,opt,name=code,proto3,enum=proto.ReturnCode" json:"code,omitempty"`
	Msg    string                      `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Height int64                       `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	Hash   string                      `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"`
	TxList []*BlockInfoTransactionList `protobuf:"bytes,5,rep,name=tx_list,json=txList,proto3" json:"tx_list,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockResponse) Descriptor deprecated

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

Deprecated: Use BlockResponse.ProtoReflect.Descriptor instead.

func (*BlockResponse) GetCode

func (x *BlockResponse) GetCode() common.ReturnCode

func (*BlockResponse) GetHash

func (x *BlockResponse) GetHash() string

func (*BlockResponse) GetHeight

func (x *BlockResponse) GetHeight() int64

func (*BlockResponse) GetMsg

func (x *BlockResponse) GetMsg() string

func (*BlockResponse) GetTxList

func (x *BlockResponse) GetTxList() []*BlockInfoTransactionList

func (*BlockResponse) ProtoMessage

func (*BlockResponse) ProtoMessage()

func (*BlockResponse) ProtoReflect

func (x *BlockResponse) ProtoReflect() protoreflect.Message

func (*BlockResponse) Reset

func (x *BlockResponse) Reset()

func (*BlockResponse) String

func (x *BlockResponse) String() string

type ConvertAddressRequest

type ConvertAddressRequest struct {
	ConsumerToken string `protobuf:"bytes,1,opt,name=consumer_token,json=consumerToken,proto3" json:"consumer_token,omitempty"`
	Chain         string `protobuf:"bytes,2,opt,name=chain,proto3" json:"chain,omitempty"`
	Network       string `protobuf:"bytes,3,opt,name=network,proto3" json:"network,omitempty"`
	PublicKey     []byte `protobuf:"bytes,4,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	Format        string `protobuf:"bytes,5,opt,name=format,proto3" json:"format,omitempty"`
	// contains filtered or unexported fields
}

func (*ConvertAddressRequest) Descriptor deprecated

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

Deprecated: Use ConvertAddressRequest.ProtoReflect.Descriptor instead.

func (*ConvertAddressRequest) GetChain

func (x *ConvertAddressRequest) GetChain() string

func (*ConvertAddressRequest) GetConsumerToken

func (x *ConvertAddressRequest) GetConsumerToken() string

func (*ConvertAddressRequest) GetFormat

func (x *ConvertAddressRequest) GetFormat() string

func (*ConvertAddressRequest) GetNetwork

func (x *ConvertAddressRequest) GetNetwork() string

func (*ConvertAddressRequest) GetPublicKey

func (x *ConvertAddressRequest) GetPublicKey() []byte

func (*ConvertAddressRequest) ProtoMessage

func (*ConvertAddressRequest) ProtoMessage()

func (*ConvertAddressRequest) ProtoReflect

func (x *ConvertAddressRequest) ProtoReflect() protoreflect.Message

func (*ConvertAddressRequest) Reset

func (x *ConvertAddressRequest) Reset()

func (*ConvertAddressRequest) String

func (x *ConvertAddressRequest) String() string

type ConvertAddressResponse

type ConvertAddressResponse struct {
	Code    common.ReturnCode `protobuf:"varint,1,opt,name=code,proto3,enum=proto.ReturnCode" json:"code,omitempty"`
	Msg     string            `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Address string            `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*ConvertAddressResponse) Descriptor deprecated

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

Deprecated: Use ConvertAddressResponse.ProtoReflect.Descriptor instead.

func (*ConvertAddressResponse) GetAddress

func (x *ConvertAddressResponse) GetAddress() string

func (*ConvertAddressResponse) GetCode

func (*ConvertAddressResponse) GetMsg

func (x *ConvertAddressResponse) GetMsg() string

func (*ConvertAddressResponse) ProtoMessage

func (*ConvertAddressResponse) ProtoMessage()

func (*ConvertAddressResponse) ProtoReflect

func (x *ConvertAddressResponse) ProtoReflect() protoreflect.Message

func (*ConvertAddressResponse) Reset

func (x *ConvertAddressResponse) Reset()

func (*ConvertAddressResponse) String

func (x *ConvertAddressResponse) String() string

type DecodeTransactionRequest

type DecodeTransactionRequest struct {
	Chain   string `protobuf:"bytes,1,opt,name=chain,proto3" json:"chain,omitempty"`
	Network string `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"`
	RawTx   string `protobuf:"bytes,3,opt,name=raw_tx,json=rawTx,proto3" json:"raw_tx,omitempty"`
	// contains filtered or unexported fields
}

func (*DecodeTransactionRequest) Descriptor deprecated

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

Deprecated: Use DecodeTransactionRequest.ProtoReflect.Descriptor instead.

func (*DecodeTransactionRequest) GetChain

func (x *DecodeTransactionRequest) GetChain() string

func (*DecodeTransactionRequest) GetNetwork

func (x *DecodeTransactionRequest) GetNetwork() string

func (*DecodeTransactionRequest) GetRawTx

func (x *DecodeTransactionRequest) GetRawTx() string

func (*DecodeTransactionRequest) ProtoMessage

func (*DecodeTransactionRequest) ProtoMessage()

func (*DecodeTransactionRequest) ProtoReflect

func (x *DecodeTransactionRequest) ProtoReflect() protoreflect.Message

func (*DecodeTransactionRequest) Reset

func (x *DecodeTransactionRequest) Reset()

func (*DecodeTransactionRequest) String

func (x *DecodeTransactionRequest) String() string

type DecodeTransactionResponse

type DecodeTransactionResponse struct {
	Code   common.ReturnCode           `protobuf:"varint,1,opt,name=code,proto3,enum=proto.ReturnCode" json:"code,omitempty"`
	Msg    string                      `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	TxList []*BlockInfoTransactionList `protobuf:"bytes,3,rep,name=tx_list,json=txList,proto3" json:"tx_list,omitempty"`
	// contains filtered or unexported fields
}

func (*DecodeTransactionResponse) Descriptor deprecated

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

Deprecated: Use DecodeTransactionResponse.ProtoReflect.Descriptor instead.

func (*DecodeTransactionResponse) GetCode

func (*DecodeTransactionResponse) GetMsg

func (x *DecodeTransactionResponse) GetMsg() string

func (*DecodeTransactionResponse) GetTxList

func (*DecodeTransactionResponse) ProtoMessage

func (*DecodeTransactionResponse) ProtoMessage()

func (*DecodeTransactionResponse) ProtoReflect

func (*DecodeTransactionResponse) Reset

func (x *DecodeTransactionResponse) Reset()

func (*DecodeTransactionResponse) String

func (x *DecodeTransactionResponse) String() string

type FeeRequest

type FeeRequest struct {
	ConsumerToken string `protobuf:"bytes,1,opt,name=consumer_token,json=consumerToken,proto3" json:"consumer_token,omitempty"`
	Chain         string `protobuf:"bytes,2,opt,name=chain,proto3" json:"chain,omitempty"`
	Coin          string `protobuf:"bytes,3,opt,name=coin,proto3" json:"coin,omitempty"`
	Network       string `protobuf:"bytes,4,opt,name=network,proto3" json:"network,omitempty"`
	RawTx         string `protobuf:"bytes,5,opt,name=rawTx,proto3" json:"rawTx,omitempty"`
	Address       string `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*FeeRequest) Descriptor deprecated

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

Deprecated: Use FeeRequest.ProtoReflect.Descriptor instead.

func (*FeeRequest) GetAddress

func (x *FeeRequest) GetAddress() string

func (*FeeRequest) GetChain

func (x *FeeRequest) GetChain() string

func (*FeeRequest) GetCoin

func (x *FeeRequest) GetCoin() string

func (*FeeRequest) GetConsumerToken

func (x *FeeRequest) GetConsumerToken() string

func (*FeeRequest) GetNetwork

func (x *FeeRequest) GetNetwork() string

func (*FeeRequest) GetRawTx

func (x *FeeRequest) GetRawTx() string

func (*FeeRequest) ProtoMessage

func (*FeeRequest) ProtoMessage()

func (*FeeRequest) ProtoReflect

func (x *FeeRequest) ProtoReflect() protoreflect.Message

func (*FeeRequest) Reset

func (x *FeeRequest) Reset()

func (*FeeRequest) String

func (x *FeeRequest) String() string

type FeeResponse

type FeeResponse struct {
	Code      common.ReturnCode `protobuf:"varint,1,opt,name=code,proto3,enum=proto.ReturnCode" json:"code,omitempty"`
	Msg       string            `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	SlowFee   string            `protobuf:"bytes,3,opt,name=slow_fee,json=slowFee,proto3" json:"slow_fee,omitempty"`
	NormalFee string            `protobuf:"bytes,4,opt,name=normal_fee,json=normalFee,proto3" json:"normal_fee,omitempty"`
	FastFee   string            `protobuf:"bytes,5,opt,name=fast_fee,json=fastFee,proto3" json:"fast_fee,omitempty"`
	// contains filtered or unexported fields
}

func (*FeeResponse) Descriptor deprecated

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

Deprecated: Use FeeResponse.ProtoReflect.Descriptor instead.

func (*FeeResponse) GetCode

func (x *FeeResponse) GetCode() common.ReturnCode

func (*FeeResponse) GetFastFee

func (x *FeeResponse) GetFastFee() string

func (*FeeResponse) GetMsg

func (x *FeeResponse) GetMsg() string

func (*FeeResponse) GetNormalFee

func (x *FeeResponse) GetNormalFee() string

func (*FeeResponse) GetSlowFee

func (x *FeeResponse) GetSlowFee() string

func (*FeeResponse) ProtoMessage

func (*FeeResponse) ProtoMessage()

func (*FeeResponse) ProtoReflect

func (x *FeeResponse) ProtoReflect() protoreflect.Message

func (*FeeResponse) Reset

func (x *FeeResponse) Reset()

func (*FeeResponse) String

func (x *FeeResponse) String() string

type SendTxRequest

type SendTxRequest struct {
	ConsumerToken string `protobuf:"bytes,1,opt,name=consumer_token,json=consumerToken,proto3" json:"consumer_token,omitempty"`
	Chain         string `protobuf:"bytes,2,opt,name=chain,proto3" json:"chain,omitempty"`
	Coin          string `protobuf:"bytes,3,opt,name=coin,proto3" json:"coin,omitempty"`
	Network       string `protobuf:"bytes,4,opt,name=network,proto3" json:"network,omitempty"`
	RawTx         string `protobuf:"bytes,5,opt,name=raw_tx,json=rawTx,proto3" json:"raw_tx,omitempty"`
	// contains filtered or unexported fields
}

func (*SendTxRequest) Descriptor deprecated

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

Deprecated: Use SendTxRequest.ProtoReflect.Descriptor instead.

func (*SendTxRequest) GetChain

func (x *SendTxRequest) GetChain() string

func (*SendTxRequest) GetCoin

func (x *SendTxRequest) GetCoin() string

func (*SendTxRequest) GetConsumerToken

func (x *SendTxRequest) GetConsumerToken() string

func (*SendTxRequest) GetNetwork

func (x *SendTxRequest) GetNetwork() string

func (*SendTxRequest) GetRawTx

func (x *SendTxRequest) GetRawTx() string

func (*SendTxRequest) ProtoMessage

func (*SendTxRequest) ProtoMessage()

func (*SendTxRequest) ProtoReflect

func (x *SendTxRequest) ProtoReflect() protoreflect.Message

func (*SendTxRequest) Reset

func (x *SendTxRequest) Reset()

func (*SendTxRequest) String

func (x *SendTxRequest) String() string

type SendTxResponse

type SendTxResponse struct {
	Code   common.ReturnCode `protobuf:"varint,1,opt,name=code,proto3,enum=proto.ReturnCode" json:"code,omitempty"`
	Msg    string            `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	TxHash string            `protobuf:"bytes,3,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
	// contains filtered or unexported fields
}

func (*SendTxResponse) Descriptor deprecated

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

Deprecated: Use SendTxResponse.ProtoReflect.Descriptor instead.

func (*SendTxResponse) GetCode

func (x *SendTxResponse) GetCode() common.ReturnCode

func (*SendTxResponse) GetMsg

func (x *SendTxResponse) GetMsg() string

func (*SendTxResponse) GetTxHash

func (x *SendTxResponse) GetTxHash() string

func (*SendTxResponse) ProtoMessage

func (*SendTxResponse) ProtoMessage()

func (*SendTxResponse) ProtoReflect

func (x *SendTxResponse) ProtoReflect() protoreflect.Message

func (*SendTxResponse) Reset

func (x *SendTxResponse) Reset()

func (*SendTxResponse) String

func (x *SendTxResponse) String() string

type SignedTransactionRequest

type SignedTransactionRequest struct {
	Chain     string `protobuf:"bytes,1,opt,name=chain,proto3" json:"chain,omitempty"`
	Network   string `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"`
	Base64Tx  string `protobuf:"bytes,3,opt,name=base64_tx,json=base64Tx,proto3" json:"base64_tx,omitempty"`
	Signature string `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*SignedTransactionRequest) Descriptor deprecated

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

Deprecated: Use SignedTransactionRequest.ProtoReflect.Descriptor instead.

func (*SignedTransactionRequest) GetBase64Tx

func (x *SignedTransactionRequest) GetBase64Tx() string

func (*SignedTransactionRequest) GetChain

func (x *SignedTransactionRequest) GetChain() string

func (*SignedTransactionRequest) GetNetwork

func (x *SignedTransactionRequest) GetNetwork() string

func (*SignedTransactionRequest) GetSignature

func (x *SignedTransactionRequest) GetSignature() string

func (*SignedTransactionRequest) ProtoMessage

func (*SignedTransactionRequest) ProtoMessage()

func (*SignedTransactionRequest) ProtoReflect

func (x *SignedTransactionRequest) ProtoReflect() protoreflect.Message

func (*SignedTransactionRequest) Reset

func (x *SignedTransactionRequest) Reset()

func (*SignedTransactionRequest) String

func (x *SignedTransactionRequest) String() string

type SignedTransactionResponse

type SignedTransactionResponse struct {
	Code     common.ReturnCode `protobuf:"varint,1,opt,name=code,proto3,enum=proto.ReturnCode" json:"code,omitempty"`
	Msg      string            `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	SignedTx string            `protobuf:"bytes,3,opt,name=signed_tx,json=signedTx,proto3" json:"signed_tx,omitempty"`
	// contains filtered or unexported fields
}

func (*SignedTransactionResponse) Descriptor deprecated

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

Deprecated: Use SignedTransactionResponse.ProtoReflect.Descriptor instead.

func (*SignedTransactionResponse) GetCode

func (*SignedTransactionResponse) GetMsg

func (x *SignedTransactionResponse) GetMsg() string

func (*SignedTransactionResponse) GetSignedTx

func (x *SignedTransactionResponse) GetSignedTx() string

func (*SignedTransactionResponse) ProtoMessage

func (*SignedTransactionResponse) ProtoMessage()

func (*SignedTransactionResponse) ProtoReflect

func (*SignedTransactionResponse) Reset

func (x *SignedTransactionResponse) Reset()

func (*SignedTransactionResponse) String

func (x *SignedTransactionResponse) String() string

type SupportChainsRequest

type SupportChainsRequest struct {
	ConsumerToken string `protobuf:"bytes,1,opt,name=consumer_token,json=consumerToken,proto3" json:"consumer_token,omitempty"`
	Chain         string `protobuf:"bytes,2,opt,name=chain,proto3" json:"chain,omitempty"`
	Network       string `protobuf:"bytes,3,opt,name=network,proto3" json:"network,omitempty"`
	// contains filtered or unexported fields
}

func (*SupportChainsRequest) Descriptor deprecated

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

Deprecated: Use SupportChainsRequest.ProtoReflect.Descriptor instead.

func (*SupportChainsRequest) GetChain

func (x *SupportChainsRequest) GetChain() string

func (*SupportChainsRequest) GetConsumerToken

func (x *SupportChainsRequest) GetConsumerToken() string

func (*SupportChainsRequest) GetNetwork

func (x *SupportChainsRequest) GetNetwork() string

func (*SupportChainsRequest) ProtoMessage

func (*SupportChainsRequest) ProtoMessage()

func (*SupportChainsRequest) ProtoReflect

func (x *SupportChainsRequest) ProtoReflect() protoreflect.Message

func (*SupportChainsRequest) Reset

func (x *SupportChainsRequest) Reset()

func (*SupportChainsRequest) String

func (x *SupportChainsRequest) String() string

type SupportChainsResponse

type SupportChainsResponse struct {
	Code    common.ReturnCode `protobuf:"varint,1,opt,name=code,proto3,enum=proto.ReturnCode" json:"code,omitempty"`
	Msg     string            `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Support bool              `protobuf:"varint,3,opt,name=support,proto3" json:"support,omitempty"`
	// contains filtered or unexported fields
}

func (*SupportChainsResponse) Descriptor deprecated

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

Deprecated: Use SupportChainsResponse.ProtoReflect.Descriptor instead.

func (*SupportChainsResponse) GetCode

func (*SupportChainsResponse) GetMsg

func (x *SupportChainsResponse) GetMsg() string

func (*SupportChainsResponse) GetSupport

func (x *SupportChainsResponse) GetSupport() bool

func (*SupportChainsResponse) ProtoMessage

func (*SupportChainsResponse) ProtoMessage()

func (*SupportChainsResponse) ProtoReflect

func (x *SupportChainsResponse) ProtoReflect() protoreflect.Message

func (*SupportChainsResponse) Reset

func (x *SupportChainsResponse) Reset()

func (*SupportChainsResponse) String

func (x *SupportChainsResponse) String() string

type TxAddressRequest

type TxAddressRequest struct {
	ConsumerToken string `protobuf:"bytes,1,opt,name=consumer_token,json=consumerToken,proto3" json:"consumer_token,omitempty"`
	Chain         string `protobuf:"bytes,2,opt,name=chain,proto3" json:"chain,omitempty"`
	Coin          string `protobuf:"bytes,3,opt,name=coin,proto3" json:"coin,omitempty"`
	Network       string `protobuf:"bytes,4,opt,name=network,proto3" json:"network,omitempty"`
	Address       string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"`
	Brc20Address  string `protobuf:"bytes,6,opt,name=brc20_address,json=brc20Address,proto3" json:"brc20_address,omitempty"`
	Page          uint32 `protobuf:"varint,7,opt,name=page,proto3" json:"page,omitempty"`
	Pagesize      uint32 `protobuf:"varint,8,opt,name=pagesize,proto3" json:"pagesize,omitempty"`
	Cursor        string `protobuf:"bytes,9,opt,name=cursor,proto3" json:"cursor,omitempty"`
	// contains filtered or unexported fields
}

func (*TxAddressRequest) Descriptor deprecated

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

Deprecated: Use TxAddressRequest.ProtoReflect.Descriptor instead.

func (*TxAddressRequest) GetAddress

func (x *TxAddressRequest) GetAddress() string

func (*TxAddressRequest) GetBrc20Address

func (x *TxAddressRequest) GetBrc20Address() string

func (*TxAddressRequest) GetChain

func (x *TxAddressRequest) GetChain() string

func (*TxAddressRequest) GetCoin

func (x *TxAddressRequest) GetCoin() string

func (*TxAddressRequest) GetConsumerToken

func (x *TxAddressRequest) GetConsumerToken() string

func (*TxAddressRequest) GetCursor

func (x *TxAddressRequest) GetCursor() string

func (*TxAddressRequest) GetNetwork

func (x *TxAddressRequest) GetNetwork() string

func (*TxAddressRequest) GetPage

func (x *TxAddressRequest) GetPage() uint32

func (*TxAddressRequest) GetPagesize

func (x *TxAddressRequest) GetPagesize() uint32

func (*TxAddressRequest) ProtoMessage

func (*TxAddressRequest) ProtoMessage()

func (*TxAddressRequest) ProtoReflect

func (x *TxAddressRequest) ProtoReflect() protoreflect.Message

func (*TxAddressRequest) Reset

func (x *TxAddressRequest) Reset()

func (*TxAddressRequest) String

func (x *TxAddressRequest) String() string

type TxAddressResponse

type TxAddressResponse struct {
	Code common.ReturnCode `protobuf:"varint,1,opt,name=code,proto3,enum=proto.ReturnCode" json:"code,omitempty"`
	Msg  string            `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Tx   []*TxMessage      `protobuf:"bytes,3,rep,name=tx,proto3" json:"tx,omitempty"`
	// contains filtered or unexported fields
}

func (*TxAddressResponse) Descriptor deprecated

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

Deprecated: Use TxAddressResponse.ProtoReflect.Descriptor instead.

func (*TxAddressResponse) GetCode

func (x *TxAddressResponse) GetCode() common.ReturnCode

func (*TxAddressResponse) GetMsg

func (x *TxAddressResponse) GetMsg() string

func (*TxAddressResponse) GetTx

func (x *TxAddressResponse) GetTx() []*TxMessage

func (*TxAddressResponse) ProtoMessage

func (*TxAddressResponse) ProtoMessage()

func (*TxAddressResponse) ProtoReflect

func (x *TxAddressResponse) ProtoReflect() protoreflect.Message

func (*TxAddressResponse) Reset

func (x *TxAddressResponse) Reset()

func (*TxAddressResponse) String

func (x *TxAddressResponse) String() string

type TxHashRequest

type TxHashRequest struct {
	ConsumerToken string `protobuf:"bytes,1,opt,name=consumer_token,json=consumerToken,proto3" json:"consumer_token,omitempty"`
	Chain         string `protobuf:"bytes,2,opt,name=chain,proto3" json:"chain,omitempty"`
	Coin          string `protobuf:"bytes,3,opt,name=coin,proto3" json:"coin,omitempty"`
	Network       string `protobuf:"bytes,4,opt,name=network,proto3" json:"network,omitempty"`
	Hash          string `protobuf:"bytes,5,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

func (*TxHashRequest) Descriptor deprecated

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

Deprecated: Use TxHashRequest.ProtoReflect.Descriptor instead.

func (*TxHashRequest) GetChain

func (x *TxHashRequest) GetChain() string

func (*TxHashRequest) GetCoin

func (x *TxHashRequest) GetCoin() string

func (*TxHashRequest) GetConsumerToken

func (x *TxHashRequest) GetConsumerToken() string

func (*TxHashRequest) GetHash

func (x *TxHashRequest) GetHash() string

func (*TxHashRequest) GetNetwork

func (x *TxHashRequest) GetNetwork() string

func (*TxHashRequest) ProtoMessage

func (*TxHashRequest) ProtoMessage()

func (*TxHashRequest) ProtoReflect

func (x *TxHashRequest) ProtoReflect() protoreflect.Message

func (*TxHashRequest) Reset

func (x *TxHashRequest) Reset()

func (*TxHashRequest) String

func (x *TxHashRequest) String() string

type TxHashResponse

type TxHashResponse struct {
	Code common.ReturnCode `protobuf:"varint,1,opt,name=code,proto3,enum=proto.ReturnCode" json:"code,omitempty"`
	Msg  string            `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Tx   *TxMessage        `protobuf:"bytes,3,opt,name=tx,proto3" json:"tx,omitempty"`
	// contains filtered or unexported fields
}

func (*TxHashResponse) Descriptor deprecated

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

Deprecated: Use TxHashResponse.ProtoReflect.Descriptor instead.

func (*TxHashResponse) GetCode

func (x *TxHashResponse) GetCode() common.ReturnCode

func (*TxHashResponse) GetMsg

func (x *TxHashResponse) GetMsg() string

func (*TxHashResponse) GetTx

func (x *TxHashResponse) GetTx() *TxMessage

func (*TxHashResponse) ProtoMessage

func (*TxHashResponse) ProtoMessage()

func (*TxHashResponse) ProtoReflect

func (x *TxHashResponse) ProtoReflect() protoreflect.Message

func (*TxHashResponse) Reset

func (x *TxHashResponse) Reset()

func (*TxHashResponse) String

func (x *TxHashResponse) String() string

type TxMessage

type TxMessage 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"`
	Froms        []*Address `protobuf:"bytes,3,rep,name=froms,proto3" json:"froms,omitempty"`
	Tos          []*Address `protobuf:"bytes,4,rep,name=tos,proto3" json:"tos,omitempty"`
	Values       []*Value   `protobuf:"bytes,7,rep,name=values,proto3" json:"values,omitempty"`
	Fee          string     `protobuf:"bytes,5,opt,name=fee,proto3" json:"fee,omitempty"`
	Status       TxStatus   `protobuf:"varint,6,opt,name=status,proto3,enum=proto.utxo.TxStatus" json:"status,omitempty"`
	Type         int32      `protobuf:"varint,8,opt,name=type,proto3" json:"type,omitempty"`
	Height       string     `protobuf:"bytes,9,opt,name=height,proto3" json:"height,omitempty"`
	Brc20Address string     `protobuf:"bytes,10,opt,name=brc20_address,json=brc20Address,proto3" json:"brc20_address,omitempty"`
	Datetime     string     `protobuf:"bytes,11,opt,name=datetime,proto3" json:"datetime,omitempty"`
	// contains filtered or unexported fields
}

func (*TxMessage) Descriptor deprecated

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

Deprecated: Use TxMessage.ProtoReflect.Descriptor instead.

func (*TxMessage) GetBrc20Address

func (x *TxMessage) GetBrc20Address() string

func (*TxMessage) GetDatetime

func (x *TxMessage) GetDatetime() string

func (*TxMessage) GetFee

func (x *TxMessage) GetFee() string

func (*TxMessage) GetFroms

func (x *TxMessage) GetFroms() []*Address

func (*TxMessage) GetHash

func (x *TxMessage) GetHash() string

func (*TxMessage) GetHeight

func (x *TxMessage) GetHeight() string

func (*TxMessage) GetIndex

func (x *TxMessage) GetIndex() uint32

func (*TxMessage) GetStatus

func (x *TxMessage) GetStatus() TxStatus

func (*TxMessage) GetTos

func (x *TxMessage) GetTos() []*Address

func (*TxMessage) GetType

func (x *TxMessage) GetType() int32

func (*TxMessage) GetValues

func (x *TxMessage) GetValues() []*Value

func (*TxMessage) ProtoMessage

func (*TxMessage) ProtoMessage()

func (*TxMessage) ProtoReflect

func (x *TxMessage) ProtoReflect() protoreflect.Message

func (*TxMessage) Reset

func (x *TxMessage) Reset()

func (*TxMessage) String

func (x *TxMessage) String() string

type TxStatus

type TxStatus int32
const (
	TxStatus_NotFound              TxStatus = 0
	TxStatus_Pending               TxStatus = 1
	TxStatus_Failed                TxStatus = 2
	TxStatus_Success               TxStatus = 3
	TxStatus_ContractExecuteFailed TxStatus = 4
	TxStatus_Other                 TxStatus = 5
)

func (TxStatus) Descriptor

func (TxStatus) Descriptor() protoreflect.EnumDescriptor

func (TxStatus) Enum

func (x TxStatus) Enum() *TxStatus

func (TxStatus) EnumDescriptor deprecated

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

Deprecated: Use TxStatus.Descriptor instead.

func (TxStatus) Number

func (x TxStatus) Number() protoreflect.EnumNumber

func (TxStatus) String

func (x TxStatus) String() string

func (TxStatus) Type

type UnSignTransactionRequest

type UnSignTransactionRequest struct {
	Chain    string `protobuf:"bytes,1,opt,name=chain,proto3" json:"chain,omitempty"`
	Network  string `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"`
	Base64Tx string `protobuf:"bytes,3,opt,name=base64_tx,json=base64Tx,proto3" json:"base64_tx,omitempty"`
	// contains filtered or unexported fields
}

func (*UnSignTransactionRequest) Descriptor deprecated

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

Deprecated: Use UnSignTransactionRequest.ProtoReflect.Descriptor instead.

func (*UnSignTransactionRequest) GetBase64Tx

func (x *UnSignTransactionRequest) GetBase64Tx() string

func (*UnSignTransactionRequest) GetChain

func (x *UnSignTransactionRequest) GetChain() string

func (*UnSignTransactionRequest) GetNetwork

func (x *UnSignTransactionRequest) GetNetwork() string

func (*UnSignTransactionRequest) ProtoMessage

func (*UnSignTransactionRequest) ProtoMessage()

func (*UnSignTransactionRequest) ProtoReflect

func (x *UnSignTransactionRequest) ProtoReflect() protoreflect.Message

func (*UnSignTransactionRequest) Reset

func (x *UnSignTransactionRequest) Reset()

func (*UnSignTransactionRequest) String

func (x *UnSignTransactionRequest) String() string

type UnSignTransactionResponse

type UnSignTransactionResponse struct {
	Code     common.ReturnCode `protobuf:"varint,1,opt,name=code,proto3,enum=proto.ReturnCode" json:"code,omitempty"`
	Msg      string            `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	UnSignTx string            `protobuf:"bytes,3,opt,name=un_sign_tx,json=unSignTx,proto3" json:"un_sign_tx,omitempty"`
	// contains filtered or unexported fields
}

func (*UnSignTransactionResponse) Descriptor deprecated

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

Deprecated: Use UnSignTransactionResponse.ProtoReflect.Descriptor instead.

func (*UnSignTransactionResponse) GetCode

func (*UnSignTransactionResponse) GetMsg

func (x *UnSignTransactionResponse) GetMsg() string

func (*UnSignTransactionResponse) GetUnSignTx

func (x *UnSignTransactionResponse) GetUnSignTx() string

func (*UnSignTransactionResponse) ProtoMessage

func (*UnSignTransactionResponse) ProtoMessage()

func (*UnSignTransactionResponse) ProtoReflect

func (*UnSignTransactionResponse) Reset

func (x *UnSignTransactionResponse) Reset()

func (*UnSignTransactionResponse) String

func (x *UnSignTransactionResponse) String() string

type UnimplementedWalletUtxoServiceServer

type UnimplementedWalletUtxoServiceServer struct{}

UnimplementedWalletUtxoServiceServer should be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedWalletUtxoServiceServer) BuildSignedTransaction

func (UnimplementedWalletUtxoServiceServer) ConvertAddress

func (UnimplementedWalletUtxoServiceServer) CreateUnSignTransaction

func (UnimplementedWalletUtxoServiceServer) DecodeTransaction

func (UnimplementedWalletUtxoServiceServer) GetAccount

func (UnimplementedWalletUtxoServiceServer) GetBlockByHash

func (UnimplementedWalletUtxoServiceServer) GetBlockByNumber

func (UnimplementedWalletUtxoServiceServer) GetBlockHeaderByHash

func (UnimplementedWalletUtxoServiceServer) GetBlockHeaderByNumber

func (UnimplementedWalletUtxoServiceServer) GetFee

func (UnimplementedWalletUtxoServiceServer) GetSupportChains

func (UnimplementedWalletUtxoServiceServer) GetTxByAddress

func (UnimplementedWalletUtxoServiceServer) GetTxByHash

func (UnimplementedWalletUtxoServiceServer) GetUnspentOutputs

func (UnimplementedWalletUtxoServiceServer) SendTx

func (UnimplementedWalletUtxoServiceServer) ValidAddress

func (UnimplementedWalletUtxoServiceServer) VerifySignedTransaction

type UnsafeWalletUtxoServiceServer

type UnsafeWalletUtxoServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeWalletUtxoServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WalletUtxoServiceServer will result in compilation errors.

type UnspentOutput

type UnspentOutput struct {
	TxHashBigEndian string `protobuf:"bytes,1,opt,name=tx_hash_big_endian,json=txHashBigEndian,proto3" json:"tx_hash_big_endian,omitempty"`
	TxHash          string `protobuf:"bytes,2,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
	TxOutputN       uint64 `protobuf:"varint,3,opt,name=tx_output_n,json=txOutputN,proto3" json:"tx_output_n,omitempty"`
	Script          string `protobuf:"bytes,4,opt,name=script,proto3" json:"script,omitempty"`
	Value           uint64 `protobuf:"varint,5,opt,name=value,proto3" json:"value,omitempty"`
	Confirmations   uint64 `protobuf:"varint,6,opt,name=confirmations,proto3" json:"confirmations,omitempty"`
	TxIndex         uint64 `protobuf:"varint,7,opt,name=tx_index,json=txIndex,proto3" json:"tx_index,omitempty"`
	// contains filtered or unexported fields
}

func (*UnspentOutput) Descriptor deprecated

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

Deprecated: Use UnspentOutput.ProtoReflect.Descriptor instead.

func (*UnspentOutput) GetConfirmations

func (x *UnspentOutput) GetConfirmations() uint64

func (*UnspentOutput) GetScript

func (x *UnspentOutput) GetScript() string

func (*UnspentOutput) GetTxHash

func (x *UnspentOutput) GetTxHash() string

func (*UnspentOutput) GetTxHashBigEndian

func (x *UnspentOutput) GetTxHashBigEndian() string

func (*UnspentOutput) GetTxIndex

func (x *UnspentOutput) GetTxIndex() uint64

func (*UnspentOutput) GetTxOutputN

func (x *UnspentOutput) GetTxOutputN() uint64

func (*UnspentOutput) GetValue

func (x *UnspentOutput) GetValue() uint64

func (*UnspentOutput) ProtoMessage

func (*UnspentOutput) ProtoMessage()

func (*UnspentOutput) ProtoReflect

func (x *UnspentOutput) ProtoReflect() protoreflect.Message

func (*UnspentOutput) Reset

func (x *UnspentOutput) Reset()

func (*UnspentOutput) String

func (x *UnspentOutput) String() string

type UnspentOutputsRequest

type UnspentOutputsRequest struct {
	ConsumerToken string `protobuf:"bytes,1,opt,name=consumer_token,json=consumerToken,proto3" json:"consumer_token,omitempty"`
	Chain         string `protobuf:"bytes,2,opt,name=chain,proto3" json:"chain,omitempty"`
	Symbol        string `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Network       string `protobuf:"bytes,4,opt,name=network,proto3" json:"network,omitempty"`
	Address       string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"`
	Cursor        string `protobuf:"bytes,6,opt,name=cursor,proto3" json:"cursor,omitempty"`
	Limit         uint64 `protobuf:"varint,7,opt,name=limit,proto3" json:"limit,omitempty"`
	CoinType      string `protobuf:"bytes,8,opt,name=coinType,proto3" json:"coinType,omitempty"`
	// contains filtered or unexported fields
}

func (*UnspentOutputsRequest) Descriptor deprecated

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

Deprecated: Use UnspentOutputsRequest.ProtoReflect.Descriptor instead.

func (*UnspentOutputsRequest) GetAddress

func (x *UnspentOutputsRequest) GetAddress() string

func (*UnspentOutputsRequest) GetChain

func (x *UnspentOutputsRequest) GetChain() string

func (*UnspentOutputsRequest) GetCoinType

func (x *UnspentOutputsRequest) GetCoinType() string

func (*UnspentOutputsRequest) GetConsumerToken

func (x *UnspentOutputsRequest) GetConsumerToken() string

func (*UnspentOutputsRequest) GetCursor

func (x *UnspentOutputsRequest) GetCursor() string

func (*UnspentOutputsRequest) GetLimit

func (x *UnspentOutputsRequest) GetLimit() uint64

func (*UnspentOutputsRequest) GetNetwork

func (x *UnspentOutputsRequest) GetNetwork() string

func (*UnspentOutputsRequest) GetSymbol

func (x *UnspentOutputsRequest) GetSymbol() string

func (*UnspentOutputsRequest) ProtoMessage

func (*UnspentOutputsRequest) ProtoMessage()

func (*UnspentOutputsRequest) ProtoReflect

func (x *UnspentOutputsRequest) ProtoReflect() protoreflect.Message

func (*UnspentOutputsRequest) Reset

func (x *UnspentOutputsRequest) Reset()

func (*UnspentOutputsRequest) String

func (x *UnspentOutputsRequest) String() string

type UnspentOutputsResponse

type UnspentOutputsResponse struct {
	Code           common.ReturnCode `protobuf:"varint,1,opt,name=code,proto3,enum=proto.ReturnCode" json:"code,omitempty"`
	Msg            string            `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	UnspentOutputs []*UnspentOutput  `protobuf:"bytes,3,rep,name=unspent_outputs,json=unspentOutputs,proto3" json:"unspent_outputs,omitempty"`
	// contains filtered or unexported fields
}

func (*UnspentOutputsResponse) Descriptor deprecated

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

Deprecated: Use UnspentOutputsResponse.ProtoReflect.Descriptor instead.

func (*UnspentOutputsResponse) GetCode

func (*UnspentOutputsResponse) GetMsg

func (x *UnspentOutputsResponse) GetMsg() string

func (*UnspentOutputsResponse) GetUnspentOutputs

func (x *UnspentOutputsResponse) GetUnspentOutputs() []*UnspentOutput

func (*UnspentOutputsResponse) ProtoMessage

func (*UnspentOutputsResponse) ProtoMessage()

func (*UnspentOutputsResponse) ProtoReflect

func (x *UnspentOutputsResponse) ProtoReflect() protoreflect.Message

func (*UnspentOutputsResponse) Reset

func (x *UnspentOutputsResponse) Reset()

func (*UnspentOutputsResponse) String

func (x *UnspentOutputsResponse) String() string

type ValidAddressRequest

type ValidAddressRequest struct {
	ConsumerToken string `protobuf:"bytes,1,opt,name=consumer_token,json=consumerToken,proto3" json:"consumer_token,omitempty"`
	Chain         string `protobuf:"bytes,2,opt,name=chain,proto3" json:"chain,omitempty"`
	Network       string `protobuf:"bytes,3,opt,name=network,proto3" json:"network,omitempty"`
	Symbol        string `protobuf:"bytes,4,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Address       string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"`
	Format        string `protobuf:"bytes,6,opt,name=format,proto3" json:"format,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidAddressRequest) Descriptor deprecated

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

Deprecated: Use ValidAddressRequest.ProtoReflect.Descriptor instead.

func (*ValidAddressRequest) GetAddress

func (x *ValidAddressRequest) GetAddress() string

func (*ValidAddressRequest) GetChain

func (x *ValidAddressRequest) GetChain() string

func (*ValidAddressRequest) GetConsumerToken

func (x *ValidAddressRequest) GetConsumerToken() string

func (*ValidAddressRequest) GetFormat

func (x *ValidAddressRequest) GetFormat() string

func (*ValidAddressRequest) GetNetwork

func (x *ValidAddressRequest) GetNetwork() string

func (*ValidAddressRequest) GetSymbol

func (x *ValidAddressRequest) GetSymbol() string

func (*ValidAddressRequest) ProtoMessage

func (*ValidAddressRequest) ProtoMessage()

func (*ValidAddressRequest) ProtoReflect

func (x *ValidAddressRequest) ProtoReflect() protoreflect.Message

func (*ValidAddressRequest) Reset

func (x *ValidAddressRequest) Reset()

func (*ValidAddressRequest) String

func (x *ValidAddressRequest) String() string

type ValidAddressResponse

type ValidAddressResponse struct {
	Code             common.ReturnCode `protobuf:"varint,1,opt,name=code,proto3,enum=proto.ReturnCode" json:"code,omitempty"`
	Msg              string            `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Valid            bool              `protobuf:"varint,3,opt,name=valid,proto3" json:"valid,omitempty"`
	CanWithdrawal    bool              `protobuf:"varint,4,opt,name=can_withdrawal,json=canWithdrawal,proto3" json:"can_withdrawal,omitempty"`
	CanonicalAddress string            `protobuf:"bytes,5,opt,name=canonical_address,json=canonicalAddress,proto3" json:"canonical_address,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidAddressResponse) Descriptor deprecated

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

Deprecated: Use ValidAddressResponse.ProtoReflect.Descriptor instead.

func (*ValidAddressResponse) GetCanWithdrawal

func (x *ValidAddressResponse) GetCanWithdrawal() bool

func (*ValidAddressResponse) GetCanonicalAddress

func (x *ValidAddressResponse) GetCanonicalAddress() string

func (*ValidAddressResponse) GetCode

func (x *ValidAddressResponse) GetCode() common.ReturnCode

func (*ValidAddressResponse) GetMsg

func (x *ValidAddressResponse) GetMsg() string

func (*ValidAddressResponse) GetValid

func (x *ValidAddressResponse) GetValid() bool

func (*ValidAddressResponse) ProtoMessage

func (*ValidAddressResponse) ProtoMessage()

func (*ValidAddressResponse) ProtoReflect

func (x *ValidAddressResponse) ProtoReflect() protoreflect.Message

func (*ValidAddressResponse) Reset

func (x *ValidAddressResponse) Reset()

func (*ValidAddressResponse) String

func (x *ValidAddressResponse) String() string

type Value

type Value struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Value) Descriptor deprecated

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

Deprecated: Use Value.ProtoReflect.Descriptor instead.

func (*Value) GetValue

func (x *Value) GetValue() string

func (*Value) ProtoMessage

func (*Value) ProtoMessage()

func (*Value) ProtoReflect

func (x *Value) ProtoReflect() protoreflect.Message

func (*Value) Reset

func (x *Value) Reset()

func (*Value) String

func (x *Value) String() string

type VerifyTransactionRequest

type VerifyTransactionRequest struct {
	Chain     string `protobuf:"bytes,1,opt,name=chain,proto3" json:"chain,omitempty"`
	Network   string `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"`
	PublicKey string `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	Signature string `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyTransactionRequest) Descriptor deprecated

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

Deprecated: Use VerifyTransactionRequest.ProtoReflect.Descriptor instead.

func (*VerifyTransactionRequest) GetChain

func (x *VerifyTransactionRequest) GetChain() string

func (*VerifyTransactionRequest) GetNetwork

func (x *VerifyTransactionRequest) GetNetwork() string

func (*VerifyTransactionRequest) GetPublicKey

func (x *VerifyTransactionRequest) GetPublicKey() string

func (*VerifyTransactionRequest) GetSignature

func (x *VerifyTransactionRequest) GetSignature() string

func (*VerifyTransactionRequest) ProtoMessage

func (*VerifyTransactionRequest) ProtoMessage()

func (*VerifyTransactionRequest) ProtoReflect

func (x *VerifyTransactionRequest) ProtoReflect() protoreflect.Message

func (*VerifyTransactionRequest) Reset

func (x *VerifyTransactionRequest) Reset()

func (*VerifyTransactionRequest) String

func (x *VerifyTransactionRequest) String() string

type VerifyTransactionResponse

type VerifyTransactionResponse struct {
	Code   common.ReturnCode `protobuf:"varint,1,opt,name=code,proto3,enum=proto.ReturnCode" json:"code,omitempty"`
	Msg    string            `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Verify bool              `protobuf:"varint,3,opt,name=verify,proto3" json:"verify,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyTransactionResponse) Descriptor deprecated

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

Deprecated: Use VerifyTransactionResponse.ProtoReflect.Descriptor instead.

func (*VerifyTransactionResponse) GetCode

func (*VerifyTransactionResponse) GetMsg

func (x *VerifyTransactionResponse) GetMsg() string

func (*VerifyTransactionResponse) GetVerify

func (x *VerifyTransactionResponse) GetVerify() bool

func (*VerifyTransactionResponse) ProtoMessage

func (*VerifyTransactionResponse) ProtoMessage()

func (*VerifyTransactionResponse) ProtoReflect

func (*VerifyTransactionResponse) Reset

func (x *VerifyTransactionResponse) Reset()

func (*VerifyTransactionResponse) String

func (x *VerifyTransactionResponse) String() string

type Vin

type Vin struct {
	Hash    string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Script  string `protobuf:"bytes,2,opt,name=script,proto3" json:"script,omitempty"`
	Index   uint32 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"`
	Amount  int64  `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
	Address string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*Vin) Descriptor deprecated

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

Deprecated: Use Vin.ProtoReflect.Descriptor instead.

func (*Vin) GetAddress

func (x *Vin) GetAddress() string

func (*Vin) GetAmount

func (x *Vin) GetAmount() int64

func (*Vin) GetHash

func (x *Vin) GetHash() string

func (*Vin) GetIndex

func (x *Vin) GetIndex() uint32

func (*Vin) GetScript

func (x *Vin) GetScript() string

func (*Vin) ProtoMessage

func (*Vin) ProtoMessage()

func (*Vin) ProtoReflect

func (x *Vin) ProtoReflect() protoreflect.Message

func (*Vin) Reset

func (x *Vin) Reset()

func (*Vin) String

func (x *Vin) String() string

type Vout

type Vout struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Script  string `protobuf:"bytes,2,opt,name=script,proto3" json:"script,omitempty"`
	Amount  int64  `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	Index   uint32 `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"`
	// contains filtered or unexported fields
}

func (*Vout) Descriptor deprecated

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

Deprecated: Use Vout.ProtoReflect.Descriptor instead.

func (*Vout) GetAddress

func (x *Vout) GetAddress() string

func (*Vout) GetAmount

func (x *Vout) GetAmount() int64

func (*Vout) GetIndex

func (x *Vout) GetIndex() uint32

func (*Vout) GetScript

func (x *Vout) GetScript() string

func (*Vout) ProtoMessage

func (*Vout) ProtoMessage()

func (*Vout) ProtoReflect

func (x *Vout) ProtoReflect() protoreflect.Message

func (*Vout) Reset

func (x *Vout) Reset()

func (*Vout) String

func (x *Vout) String() string

type WalletUtxoServiceClient

type WalletUtxoServiceClient interface {
	GetSupportChains(ctx context.Context, in *SupportChainsRequest, opts ...grpc.CallOption) (*SupportChainsResponse, error)
	ConvertAddress(ctx context.Context, in *ConvertAddressRequest, opts ...grpc.CallOption) (*ConvertAddressResponse, error)
	ValidAddress(ctx context.Context, in *ValidAddressRequest, opts ...grpc.CallOption) (*ValidAddressResponse, error)
	GetFee(ctx context.Context, in *FeeRequest, opts ...grpc.CallOption) (*FeeResponse, error)
	GetAccount(ctx context.Context, in *AccountRequest, opts ...grpc.CallOption) (*AccountResponse, error)
	GetUnspentOutputs(ctx context.Context, in *UnspentOutputsRequest, opts ...grpc.CallOption) (*UnspentOutputsResponse, error)
	GetBlockByNumber(ctx context.Context, in *BlockNumberRequest, opts ...grpc.CallOption) (*BlockResponse, error)
	GetBlockByHash(ctx context.Context, in *BlockHashRequest, opts ...grpc.CallOption) (*BlockResponse, error)
	GetBlockHeaderByHash(ctx context.Context, in *BlockHeaderHashRequest, opts ...grpc.CallOption) (*BlockHeaderResponse, error)
	GetBlockHeaderByNumber(ctx context.Context, in *BlockHeaderNumberRequest, opts ...grpc.CallOption) (*BlockHeaderResponse, error)
	SendTx(ctx context.Context, in *SendTxRequest, opts ...grpc.CallOption) (*SendTxResponse, error)
	GetTxByAddress(ctx context.Context, in *TxAddressRequest, opts ...grpc.CallOption) (*TxAddressResponse, error)
	GetTxByHash(ctx context.Context, in *TxHashRequest, opts ...grpc.CallOption) (*TxHashResponse, error)
	CreateUnSignTransaction(ctx context.Context, in *UnSignTransactionRequest, opts ...grpc.CallOption) (*UnSignTransactionResponse, error)
	BuildSignedTransaction(ctx context.Context, in *SignedTransactionRequest, opts ...grpc.CallOption) (*SignedTransactionResponse, error)
	DecodeTransaction(ctx context.Context, in *DecodeTransactionRequest, opts ...grpc.CallOption) (*DecodeTransactionResponse, error)
	VerifySignedTransaction(ctx context.Context, in *VerifyTransactionRequest, opts ...grpc.CallOption) (*VerifyTransactionResponse, error)
}

WalletUtxoServiceClient is the client API for WalletUtxoService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type WalletUtxoServiceServer

WalletUtxoServiceServer is the server API for WalletUtxoService service. All implementations should embed UnimplementedWalletUtxoServiceServer for forward compatibility.

Jump to

Keyboard shortcuts

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