Show / Hide Table of Contents

Class Gateway

Class representing the Network Address and Node Account address for gaining access to the Hedera Network.

Inheritance
Object
Gateway
Implements
IEquatable<Gateway>
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Hashgraph
Assembly: Hashgraph.dll
Syntax
public sealed class Gateway : IEquatable<Gateway>
Remarks

This class consists of both an Address representing the main node within the network and the host name and port of the network address where the public network endpoint is located. This class is immutable once created.

Constructors

| Improve this Doc View Source

Gateway(String, Address)

Public Constructor, a

Gateway
is immutable after creation.

Declaration
public Gateway(string url, Address address)
Parameters
Type Name Description
String url

The URL and port of the public Hedera Network access point.

Address address

Main Network Node Address

| Improve this Doc View Source

Gateway(String, Int64, Int64, Int64)

Public Constructor, a

Gateway
is immutable after creation.

Declaration
public Gateway(string url, long shardNum, long realmNum, long accountNum)
Parameters
Type Name Description
String url

The URL and port of the public Hedera Network access point.

Int64 shardNum

Main Network Node Shard Number

Int64 realmNum

Main Network Node Realm Number

Int64 accountNum

Main Network Node Account Number

Properties

| Improve this Doc View Source

AccountNum

Network Account Number for Gateway Account

Declaration
public long AccountNum { get; }
Property Value
Type Description
Int64
| Improve this Doc View Source

RealmNum

Network Realm Number for Gateway Account

Declaration
public long RealmNum { get; }
Property Value
Type Description
Int64
| Improve this Doc View Source

ShardNum

Network Shard Number for Gateway Account

Declaration
public long ShardNum { get; }
Property Value
Type Description
Int64
| Improve this Doc View Source

Url

The URL and port of the public Hedera Network access point.

Declaration
public string Url { get; }
Property Value
Type Description
String

Operators

| Improve this Doc View Source

Implicit(Gateway to Address)

Implicit operator for converting a Gateway to an Address

Declaration
public static implicit operator Address(Gateway gateway)
Parameters
Type Name Description
Gateway gateway

The Gateway object containing the realm, shard and account number address information to convert into an address object.

Returns
Type Description
Address

Implements

System.IEquatable<T>
  • Improve this Doc
  • View Source
In This Article
Back to top .NET Client Library for Hedera Hashgraph