Documentation ¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterBlockchainServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterBlockchainServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BlockchainServiceClient) error
- func RegisterBlockchainServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterBlockchainServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BlockchainServiceServer) error
- func RegisterBlockchainServiceServer(s grpc.ServiceRegistrar, srv BlockchainServiceServer)
- type Asset
- func (*Asset) Descriptor() ([]byte, []int)deprecated
- func (x *Asset) GetAdvertisedSymbol() string
- func (x *Asset) GetDecimals() int32
- func (x *Asset) GetDefinition() *Asset_Definition
- func (x *Asset) GetName() string
- func (*Asset) ProtoMessage()
- func (x *Asset) ProtoReflect() protoreflect.Message
- func (x *Asset) Reset()
- func (x *Asset) String() string
- type AssetResourceName
- func (n AssetResourceName) ContainsWildcard() bool
- func (n AssetResourceName) MarshalString() (string, error)
- func (n AssetResourceName) NetworkResourceName() NetworkResourceName
- func (n AssetResourceName) String() string
- func (n *AssetResourceName) UnmarshalString(name string) error
- func (n AssetResourceName) Validate() error
- type Asset_Definition
- func (*Asset_Definition) Descriptor() ([]byte, []int)deprecated
- func (x *Asset_Definition) GetAssetGroupId() string
- func (x *Asset_Definition) GetAssetType() string
- func (x *Asset_Definition) GetSubGroupId() string
- func (*Asset_Definition) ProtoMessage()
- func (x *Asset_Definition) ProtoReflect() protoreflect.Message
- func (x *Asset_Definition) Reset()
- func (x *Asset_Definition) String() string
- type BatchGetAssetsRequest
- func (*BatchGetAssetsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BatchGetAssetsRequest) GetNames() []string
- func (x *BatchGetAssetsRequest) GetParent() string
- func (*BatchGetAssetsRequest) ProtoMessage()
- func (x *BatchGetAssetsRequest) ProtoReflect() protoreflect.Message
- func (x *BatchGetAssetsRequest) Reset()
- func (x *BatchGetAssetsRequest) String() string
- type BatchGetAssetsResponse
- func (*BatchGetAssetsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BatchGetAssetsResponse) GetAssets() []*Asset
- func (x *BatchGetAssetsResponse) GetNotFound() []string
- func (*BatchGetAssetsResponse) ProtoMessage()
- func (x *BatchGetAssetsResponse) ProtoReflect() protoreflect.Message
- func (x *BatchGetAssetsResponse) Reset()
- func (x *BatchGetAssetsResponse) String() string
- type BlockchainServiceClient
- type BlockchainServiceServer
- type GetAssetRequest
- type GetNetworkRequest
- type ListAssetsRequest
- func (*ListAssetsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListAssetsRequest) GetFilter() string
- func (x *ListAssetsRequest) GetPageSize() int32
- func (x *ListAssetsRequest) GetPageToken() string
- func (x *ListAssetsRequest) GetParent() string
- func (*ListAssetsRequest) ProtoMessage()
- func (x *ListAssetsRequest) ProtoReflect() protoreflect.Message
- func (x *ListAssetsRequest) Reset()
- func (x *ListAssetsRequest) String() string
- type ListAssetsResponse
- func (*ListAssetsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListAssetsResponse) GetAssets() []*Asset
- func (x *ListAssetsResponse) GetNextPageToken() string
- func (*ListAssetsResponse) ProtoMessage()
- func (x *ListAssetsResponse) ProtoReflect() protoreflect.Message
- func (x *ListAssetsResponse) Reset()
- func (x *ListAssetsResponse) String() string
- type ListNetworksRequest
- func (*ListNetworksRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListNetworksRequest) GetPageSize() int32
- func (x *ListNetworksRequest) GetPageToken() string
- func (*ListNetworksRequest) ProtoMessage()
- func (x *ListNetworksRequest) ProtoReflect() protoreflect.Message
- func (x *ListNetworksRequest) Reset()
- func (x *ListNetworksRequest) String() string
- type ListNetworksResponse
- func (*ListNetworksResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListNetworksResponse) GetNetworks() []*Network
- func (x *ListNetworksResponse) GetNextPageToken() string
- func (*ListNetworksResponse) ProtoMessage()
- func (x *ListNetworksResponse) ProtoReflect() protoreflect.Message
- func (x *ListNetworksResponse) Reset()
- func (x *ListNetworksResponse) String() string
- type Network
- func (*Network) Descriptor() ([]byte, []int)deprecated
- func (x *Network) GetDisplayName() string
- func (x *Network) GetName() string
- func (x *Network) GetNativeAsset() string
- func (x *Network) GetProtocolFamily() string
- func (x *Network) GetType() Network_Type
- func (*Network) ProtoMessage()
- func (x *Network) ProtoReflect() protoreflect.Message
- func (x *Network) Reset()
- func (x *Network) String() string
- type NetworkResourceName
- func (n NetworkResourceName) AssetResourceName(assetId string) AssetResourceName
- func (n NetworkResourceName) ContainsWildcard() bool
- func (n NetworkResourceName) MarshalString() (string, error)
- func (n NetworkResourceName) String() string
- func (n *NetworkResourceName) UnmarshalString(name string) error
- func (n NetworkResourceName) Validate() error
- type Network_Type
- func (Network_Type) Descriptor() protoreflect.EnumDescriptor
- func (x Network_Type) Enum() *Network_Type
- func (Network_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x Network_Type) Number() protoreflect.EnumNumber
- func (x Network_Type) String() string
- func (Network_Type) Type() protoreflect.EnumType
- type UnimplementedBlockchainServiceServer
- func (UnimplementedBlockchainServiceServer) BatchGetAssets(context.Context, *BatchGetAssetsRequest) (*BatchGetAssetsResponse, error)
- func (UnimplementedBlockchainServiceServer) GetAsset(context.Context, *GetAssetRequest) (*Asset, error)
- func (UnimplementedBlockchainServiceServer) GetNetwork(context.Context, *GetNetworkRequest) (*Network, error)
- func (UnimplementedBlockchainServiceServer) ListAssets(context.Context, *ListAssetsRequest) (*ListAssetsResponse, error)
- func (UnimplementedBlockchainServiceServer) ListNetworks(context.Context, *ListNetworksRequest) (*ListNetworksResponse, error)
- type UnsafeBlockchainServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( Network_Type_name = map[int32]string{ 0: "TYPE_UNSPECIFIED", 1: "MAINNET", 2: "TESTNET", } Network_Type_value = map[string]int32{ "TYPE_UNSPECIFIED": 0, "MAINNET": 1, "TESTNET": 2, } )
Enum value maps for Network_Type.
var BlockchainService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "coinbase.cloud.blockchain.v1.BlockchainService", HandlerType: (*BlockchainServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetNetwork", Handler: _BlockchainService_GetNetwork_Handler, }, { MethodName: "ListNetworks", Handler: _BlockchainService_ListNetworks_Handler, }, { MethodName: "GetAsset", Handler: _BlockchainService_GetAsset_Handler, }, { MethodName: "ListAssets", Handler: _BlockchainService_ListAssets_Handler, }, { MethodName: "BatchGetAssets", Handler: _BlockchainService_BatchGetAssets_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "coinbase/cloud/blockchain/v1/blockchain.proto", }
BlockchainService_ServiceDesc is the grpc.ServiceDesc for BlockchainService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_coinbase_cloud_blockchain_v1_blockchain_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBlockchainServiceHandler ¶
func RegisterBlockchainServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterBlockchainServiceHandler registers the http handlers for service BlockchainService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterBlockchainServiceHandlerClient ¶
func RegisterBlockchainServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BlockchainServiceClient) error
RegisterBlockchainServiceHandlerClient registers the http handlers for service BlockchainService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BlockchainServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BlockchainServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "BlockchainServiceClient" to call the correct interceptors.
func RegisterBlockchainServiceHandlerFromEndpoint ¶
func RegisterBlockchainServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterBlockchainServiceHandlerFromEndpoint is same as RegisterBlockchainServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterBlockchainServiceHandlerServer ¶
func RegisterBlockchainServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BlockchainServiceServer) error
RegisterBlockchainServiceHandlerServer registers the http handlers for service BlockchainService to "mux". UnaryRPC :call BlockchainServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterBlockchainServiceHandlerFromEndpoint instead.
func RegisterBlockchainServiceServer ¶
func RegisterBlockchainServiceServer(s grpc.ServiceRegistrar, srv BlockchainServiceServer)
Types ¶
type Asset ¶
type Asset struct { // The resource name of the Asset. // Format: networks/{network_id}/assets/{asset_id} Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The symbol representation of this asset (e.g. ETH) as advertised by the Network. // // For a native Asset this may be implicit, e.g., the on-chain data may not include // any symbol reference. // // For some protocols there can be Assets with arbitrary symbols that are not globally // unique, and it should not be trusted to represent a canonical symbol/ticker. AdvertisedSymbol string `protobuf:"bytes,2,opt,name=advertised_symbol,json=advertisedSymbol,proto3" json:"advertised_symbol,omitempty"` // The number of decimals the Asset uses. Note: in some instances this // value can change over time. Decimals int32 `protobuf:"varint,3,opt,name=decimals,proto3" json:"decimals,omitempty"` // The Asset's definition. Definition *Asset_Definition `protobuf:"bytes,4,opt,name=definition,proto3" json:"definition,omitempty"` // contains filtered or unexported fields }
The Asset resource, which represents an on-chain asset.
func (*Asset) Descriptor
deprecated
func (*Asset) GetAdvertisedSymbol ¶
func (*Asset) GetDecimals ¶
func (*Asset) GetDefinition ¶
func (x *Asset) GetDefinition() *Asset_Definition
func (*Asset) ProtoMessage ¶
func (*Asset) ProtoMessage()
func (*Asset) ProtoReflect ¶
func (x *Asset) ProtoReflect() protoreflect.Message
type AssetResourceName ¶
func (AssetResourceName) ContainsWildcard ¶
func (n AssetResourceName) ContainsWildcard() bool
func (AssetResourceName) MarshalString ¶
func (n AssetResourceName) MarshalString() (string, error)
func (AssetResourceName) NetworkResourceName ¶
func (n AssetResourceName) NetworkResourceName() NetworkResourceName
func (AssetResourceName) String ¶
func (n AssetResourceName) String() string
func (*AssetResourceName) UnmarshalString ¶
func (n *AssetResourceName) UnmarshalString(name string) error
func (AssetResourceName) Validate ¶
func (n AssetResourceName) Validate() error
type Asset_Definition ¶
type Asset_Definition struct { // The type of Asset the definition describes. // Possible values: "native", "erc20", "erc721", "erc1155" AssetType string `protobuf:"bytes,1,opt,name=asset_type,json=assetType,proto3" json:"asset_type,omitempty"` // The identifier that distinguishes this Asset group. Generally a // contract address for the Asset. For a native Asset this is not set. AssetGroupId string `protobuf:"bytes,2,opt,name=asset_group_id,json=assetGroupId,proto3" json:"asset_group_id,omitempty"` // The identifier that distinguishes the specific Asset within the // asset group. Generally a token ID. For a native Asset or ERC-20 // this is not set. SubGroupId string `protobuf:"bytes,3,opt,name=sub_group_id,json=subGroupId,proto3" json:"sub_group_id,omitempty"` // contains filtered or unexported fields }
The defining characteristics that combine to uniquely identify an Asset on-chain. Fungible tokens, such as ERC-20s, require an asset_group_id (the contract address). Non-fungible tokens and multi-token assets such as ERC-721s and ERC-1155s require a both an asset_group_id and a sub_group_id (the token ID).
func (*Asset_Definition) Descriptor
deprecated
func (*Asset_Definition) Descriptor() ([]byte, []int)
Deprecated: Use Asset_Definition.ProtoReflect.Descriptor instead.
func (*Asset_Definition) GetAssetGroupId ¶
func (x *Asset_Definition) GetAssetGroupId() string
func (*Asset_Definition) GetAssetType ¶
func (x *Asset_Definition) GetAssetType() string
func (*Asset_Definition) GetSubGroupId ¶
func (x *Asset_Definition) GetSubGroupId() string
func (*Asset_Definition) ProtoMessage ¶
func (*Asset_Definition) ProtoMessage()
func (*Asset_Definition) ProtoReflect ¶
func (x *Asset_Definition) ProtoReflect() protoreflect.Message
func (*Asset_Definition) Reset ¶
func (x *Asset_Definition) Reset()
func (*Asset_Definition) String ¶
func (x *Asset_Definition) String() string
type BatchGetAssetsRequest ¶
type BatchGetAssetsRequest struct { // The resource name of the parent Network. // Format: networks/{network_id} Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The resource names of the Assets to retrieve. // Each name has format: networks/{network_id}/assets/{asset_id} // A maximum of 1000 Assets can be retrieved in a batch. Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"` // contains filtered or unexported fields }
The request message for BatchGetAssets.
func (*BatchGetAssetsRequest) Descriptor
deprecated
func (*BatchGetAssetsRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchGetAssetsRequest.ProtoReflect.Descriptor instead.
func (*BatchGetAssetsRequest) GetNames ¶
func (x *BatchGetAssetsRequest) GetNames() []string
func (*BatchGetAssetsRequest) GetParent ¶
func (x *BatchGetAssetsRequest) GetParent() string
func (*BatchGetAssetsRequest) ProtoMessage ¶
func (*BatchGetAssetsRequest) ProtoMessage()
func (*BatchGetAssetsRequest) ProtoReflect ¶
func (x *BatchGetAssetsRequest) ProtoReflect() protoreflect.Message
func (*BatchGetAssetsRequest) Reset ¶
func (x *BatchGetAssetsRequest) Reset()
func (*BatchGetAssetsRequest) String ¶
func (x *BatchGetAssetsRequest) String() string
type BatchGetAssetsResponse ¶
type BatchGetAssetsResponse struct { // The list of Assets. // Note: The returned Assets may not be in the same order as in the request. Assets []*Asset `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"` // The resource names of the Assets that were not found. // Each name has format: networks/{network_id}/assets/{asset_id}. NotFound []string `protobuf:"bytes,2,rep,name=not_found,json=notFound,proto3" json:"not_found,omitempty"` // contains filtered or unexported fields }
The response message for BatchGetAssets.
func (*BatchGetAssetsResponse) Descriptor
deprecated
func (*BatchGetAssetsResponse) Descriptor() ([]byte, []int)
Deprecated: Use BatchGetAssetsResponse.ProtoReflect.Descriptor instead.
func (*BatchGetAssetsResponse) GetAssets ¶
func (x *BatchGetAssetsResponse) GetAssets() []*Asset
func (*BatchGetAssetsResponse) GetNotFound ¶
func (x *BatchGetAssetsResponse) GetNotFound() []string
func (*BatchGetAssetsResponse) ProtoMessage ¶
func (*BatchGetAssetsResponse) ProtoMessage()
func (*BatchGetAssetsResponse) ProtoReflect ¶
func (x *BatchGetAssetsResponse) ProtoReflect() protoreflect.Message
func (*BatchGetAssetsResponse) Reset ¶
func (x *BatchGetAssetsResponse) Reset()
func (*BatchGetAssetsResponse) String ¶
func (x *BatchGetAssetsResponse) String() string
type BlockchainServiceClient ¶
type BlockchainServiceClient interface { // Retrieves a Network by resource name. GetNetwork(ctx context.Context, in *GetNetworkRequest, opts ...grpc.CallOption) (*Network, error) // Returns the list of Networks available for use. ListNetworks(ctx context.Context, in *ListNetworksRequest, opts ...grpc.CallOption) (*ListNetworksResponse, error) // Retrieves an Asset by resource name. GetAsset(ctx context.Context, in *GetAssetRequest, opts ...grpc.CallOption) (*Asset, error) // Returns a list of Assets available on a given Network. ListAssets(ctx context.Context, in *ListAssetsRequest, opts ...grpc.CallOption) (*ListAssetsResponse, error) // Returns the list of Assets indicated by the given request. BatchGetAssets(ctx context.Context, in *BatchGetAssetsRequest, opts ...grpc.CallOption) (*BatchGetAssetsResponse, error) }
BlockchainServiceClient is the client API for BlockchainService 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.
func NewBlockchainServiceClient ¶
func NewBlockchainServiceClient(cc grpc.ClientConnInterface) BlockchainServiceClient
type BlockchainServiceServer ¶
type BlockchainServiceServer interface { // Retrieves a Network by resource name. GetNetwork(context.Context, *GetNetworkRequest) (*Network, error) // Returns the list of Networks available for use. ListNetworks(context.Context, *ListNetworksRequest) (*ListNetworksResponse, error) // Retrieves an Asset by resource name. GetAsset(context.Context, *GetAssetRequest) (*Asset, error) // Returns a list of Assets available on a given Network. ListAssets(context.Context, *ListAssetsRequest) (*ListAssetsResponse, error) // Returns the list of Assets indicated by the given request. BatchGetAssets(context.Context, *BatchGetAssetsRequest) (*BatchGetAssetsResponse, error) // contains filtered or unexported methods }
BlockchainServiceServer is the server API for BlockchainService service. All implementations must embed UnimplementedBlockchainServiceServer for forward compatibility
type GetAssetRequest ¶
type GetAssetRequest struct { // The resource name of the Asset. // Format: networks/{network_id}/assets/{asset_id}. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
The request message for GetAsset.
func (*GetAssetRequest) Descriptor
deprecated
func (*GetAssetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAssetRequest.ProtoReflect.Descriptor instead.
func (*GetAssetRequest) GetName ¶
func (x *GetAssetRequest) GetName() string
func (*GetAssetRequest) ProtoMessage ¶
func (*GetAssetRequest) ProtoMessage()
func (*GetAssetRequest) ProtoReflect ¶
func (x *GetAssetRequest) ProtoReflect() protoreflect.Message
func (*GetAssetRequest) Reset ¶
func (x *GetAssetRequest) Reset()
func (*GetAssetRequest) String ¶
func (x *GetAssetRequest) String() string
type GetNetworkRequest ¶
type GetNetworkRequest struct { // The resource name of the Network. // Format: networks/{network_id}. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
The request message for GetNetwork.
func (*GetNetworkRequest) Descriptor
deprecated
func (*GetNetworkRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNetworkRequest.ProtoReflect.Descriptor instead.
func (*GetNetworkRequest) GetName ¶
func (x *GetNetworkRequest) GetName() string
func (*GetNetworkRequest) ProtoMessage ¶
func (*GetNetworkRequest) ProtoMessage()
func (*GetNetworkRequest) ProtoReflect ¶
func (x *GetNetworkRequest) ProtoReflect() protoreflect.Message
func (*GetNetworkRequest) Reset ¶
func (x *GetNetworkRequest) Reset()
func (*GetNetworkRequest) String ¶
func (x *GetNetworkRequest) String() string
type ListAssetsRequest ¶
type ListAssetsRequest struct { // The resource name of the parent Network. // Format: networks/{network_id} Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The maximum number of Assets to return. The default is 50. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A page token, received from a previous ListAssets call. // Provide this to retrieve the subsequent page. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // A filter string which conforms to https://google.aip.dev/160. // Supported queries include any conjunction of the following: // 1. definition.asset_type (= | !=) "{asset_type}" // 2. definition.asset_group_id (= | !=) "{asset_group_id}" // 3. definition.sub_group_id (= | !=) "{sub_group_id}" Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` // contains filtered or unexported fields }
The request message for ListAssets.
func (*ListAssetsRequest) Descriptor
deprecated
func (*ListAssetsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListAssetsRequest.ProtoReflect.Descriptor instead.
func (*ListAssetsRequest) GetFilter ¶
func (x *ListAssetsRequest) GetFilter() string
func (*ListAssetsRequest) GetPageSize ¶
func (x *ListAssetsRequest) GetPageSize() int32
func (*ListAssetsRequest) GetPageToken ¶
func (x *ListAssetsRequest) GetPageToken() string
func (*ListAssetsRequest) GetParent ¶
func (x *ListAssetsRequest) GetParent() string
func (*ListAssetsRequest) ProtoMessage ¶
func (*ListAssetsRequest) ProtoMessage()
func (*ListAssetsRequest) ProtoReflect ¶
func (x *ListAssetsRequest) ProtoReflect() protoreflect.Message
func (*ListAssetsRequest) Reset ¶
func (x *ListAssetsRequest) Reset()
func (*ListAssetsRequest) String ¶
func (x *ListAssetsRequest) String() string
type ListAssetsResponse ¶
type ListAssetsResponse struct { // The list of Assets. Assets []*Asset `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"` // A token, which can be sent as page_token to retrieve the next page. // If this field is omitted, there are no subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
The response message for ListAssets.
func (*ListAssetsResponse) Descriptor
deprecated
func (*ListAssetsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListAssetsResponse.ProtoReflect.Descriptor instead.
func (*ListAssetsResponse) GetAssets ¶
func (x *ListAssetsResponse) GetAssets() []*Asset
func (*ListAssetsResponse) GetNextPageToken ¶
func (x *ListAssetsResponse) GetNextPageToken() string
func (*ListAssetsResponse) ProtoMessage ¶
func (*ListAssetsResponse) ProtoMessage()
func (*ListAssetsResponse) ProtoReflect ¶
func (x *ListAssetsResponse) ProtoReflect() protoreflect.Message
func (*ListAssetsResponse) Reset ¶
func (x *ListAssetsResponse) Reset()
func (*ListAssetsResponse) String ¶
func (x *ListAssetsResponse) String() string
type ListNetworksRequest ¶
type ListNetworksRequest struct { // The maximum number of Networks to return. The default is 50. PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A page token, received from a previous ListNetworks call. // Provide this to retrieve the subsequent page. PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
The request message for ListNetworks.
func (*ListNetworksRequest) Descriptor
deprecated
func (*ListNetworksRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListNetworksRequest.ProtoReflect.Descriptor instead.
func (*ListNetworksRequest) GetPageSize ¶
func (x *ListNetworksRequest) GetPageSize() int32
func (*ListNetworksRequest) GetPageToken ¶
func (x *ListNetworksRequest) GetPageToken() string
func (*ListNetworksRequest) ProtoMessage ¶
func (*ListNetworksRequest) ProtoMessage()
func (*ListNetworksRequest) ProtoReflect ¶
func (x *ListNetworksRequest) ProtoReflect() protoreflect.Message
func (*ListNetworksRequest) Reset ¶
func (x *ListNetworksRequest) Reset()
func (*ListNetworksRequest) String ¶
func (x *ListNetworksRequest) String() string
type ListNetworksResponse ¶
type ListNetworksResponse struct { // The list of Networks. Networks []*Network `protobuf:"bytes,1,rep,name=networks,proto3" json:"networks,omitempty"` // A token, which can be sent as page_token to retrieve the next page. // If this field is omitted, there are no subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
The response message for ListNetworks.
func (*ListNetworksResponse) Descriptor
deprecated
func (*ListNetworksResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListNetworksResponse.ProtoReflect.Descriptor instead.
func (*ListNetworksResponse) GetNetworks ¶
func (x *ListNetworksResponse) GetNetworks() []*Network
func (*ListNetworksResponse) GetNextPageToken ¶
func (x *ListNetworksResponse) GetNextPageToken() string
func (*ListNetworksResponse) ProtoMessage ¶
func (*ListNetworksResponse) ProtoMessage()
func (*ListNetworksResponse) ProtoReflect ¶
func (x *ListNetworksResponse) ProtoReflect() protoreflect.Message
func (*ListNetworksResponse) Reset ¶
func (x *ListNetworksResponse) Reset()
func (*ListNetworksResponse) String ¶
func (x *ListNetworksResponse) String() string
type Network ¶
type Network struct { // The resource name of the Network. // Format: networks/{network_id}. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // A user-readable name for the Network. DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // The native Asset for this Network. // Format: networks/{network_id}/assets/{asset_id} NativeAsset string `protobuf:"bytes,3,opt,name=native_asset,json=nativeAsset,proto3" json:"native_asset,omitempty"` // The protocol family this Network is a part of. // Today, the only supported value is "protocolFamilies/evm". ProtocolFamily string `protobuf:"bytes,4,opt,name=protocol_family,json=protocolFamily,proto3" json:"protocol_family,omitempty"` // The type of Network. Type Network_Type `protobuf:"varint,5,opt,name=type,proto3,enum=coinbase.cloud.blockchain.v1.Network_Type" json:"type,omitempty"` // contains filtered or unexported fields }
The Network resource, which represents a blockchain network.
func (*Network) Descriptor
deprecated
func (*Network) GetDisplayName ¶
func (*Network) GetNativeAsset ¶
func (*Network) GetProtocolFamily ¶
func (*Network) GetType ¶
func (x *Network) GetType() Network_Type
func (*Network) ProtoMessage ¶
func (*Network) ProtoMessage()
func (*Network) ProtoReflect ¶
func (x *Network) ProtoReflect() protoreflect.Message
type NetworkResourceName ¶
type NetworkResourceName struct {
NetworkId string
}
func (NetworkResourceName) AssetResourceName ¶
func (n NetworkResourceName) AssetResourceName( assetId string, ) AssetResourceName
func (NetworkResourceName) ContainsWildcard ¶
func (n NetworkResourceName) ContainsWildcard() bool
func (NetworkResourceName) MarshalString ¶
func (n NetworkResourceName) MarshalString() (string, error)
func (NetworkResourceName) String ¶
func (n NetworkResourceName) String() string
func (*NetworkResourceName) UnmarshalString ¶
func (n *NetworkResourceName) UnmarshalString(name string) error
func (NetworkResourceName) Validate ¶
func (n NetworkResourceName) Validate() error
type Network_Type ¶
type Network_Type int32
The type of Network.
const ( // The default unused value. Network_TYPE_UNSPECIFIED Network_Type = 0 // A mainnet Network, storing real funds. Network_MAINNET Network_Type = 1 // A testnet Network, used for testing. Network_TESTNET Network_Type = 2 )
func (Network_Type) Descriptor ¶
func (Network_Type) Descriptor() protoreflect.EnumDescriptor
func (Network_Type) Enum ¶
func (x Network_Type) Enum() *Network_Type
func (Network_Type) EnumDescriptor
deprecated
func (Network_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Network_Type.Descriptor instead.
func (Network_Type) Number ¶
func (x Network_Type) Number() protoreflect.EnumNumber
func (Network_Type) String ¶
func (x Network_Type) String() string
func (Network_Type) Type ¶
func (Network_Type) Type() protoreflect.EnumType
type UnimplementedBlockchainServiceServer ¶
type UnimplementedBlockchainServiceServer struct { }
UnimplementedBlockchainServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedBlockchainServiceServer) BatchGetAssets ¶
func (UnimplementedBlockchainServiceServer) BatchGetAssets(context.Context, *BatchGetAssetsRequest) (*BatchGetAssetsResponse, error)
func (UnimplementedBlockchainServiceServer) GetAsset ¶
func (UnimplementedBlockchainServiceServer) GetAsset(context.Context, *GetAssetRequest) (*Asset, error)
func (UnimplementedBlockchainServiceServer) GetNetwork ¶
func (UnimplementedBlockchainServiceServer) GetNetwork(context.Context, *GetNetworkRequest) (*Network, error)
func (UnimplementedBlockchainServiceServer) ListAssets ¶
func (UnimplementedBlockchainServiceServer) ListAssets(context.Context, *ListAssetsRequest) (*ListAssetsResponse, error)
func (UnimplementedBlockchainServiceServer) ListNetworks ¶
func (UnimplementedBlockchainServiceServer) ListNetworks(context.Context, *ListNetworksRequest) (*ListNetworksResponse, error)
type UnsafeBlockchainServiceServer ¶
type UnsafeBlockchainServiceServer interface {
// contains filtered or unexported methods
}
UnsafeBlockchainServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BlockchainServiceServer will result in compilation errors.