Class Gateway
Class representing the Network Address and Node Account address for gaining access to the Hedera Network.
Implements
Inherited Members
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 SourceGateway(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 |
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 SourceAccountNum
Network Account Number for Gateway Account
Declaration
public long AccountNum { get; }
Property Value
| Type | Description |
|---|---|
| Int64 |
RealmNum
Network Realm Number for Gateway Account
Declaration
public long RealmNum { get; }
Property Value
| Type | Description |
|---|---|
| Int64 |
ShardNum
Network Shard Number for Gateway Account
Declaration
public long ShardNum { get; }
Property Value
| Type | Description |
|---|---|
| Int64 |
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 SourceImplicit(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 |