Hashgraph 6.0.0

.NET Client Library for Hedera Hashgraph

Install-Package Hashgraph -Version 6.0.0
dotnet add package Hashgraph --version 6.0.0
<PackageReference Include="Hashgraph" Version="6.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Hashgraph --version 6.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Version 6.0.0 Throw new ContractException for Query Contract Errors

Version 6 introduces two potentially breaking changes. First, the library has removed its dependency on the NSec library. This change has nothing to do with the quality of the NSec library, which has served the project well. However, while adding Smart Contract support to the Hashgraph library, a dependency on the Bouncy Castle project was necessary. Since the Bouncy Castle library also provides Ed25519 support, having references to two security libraries was redundant and the library code was switch to the Bouncy Castle implementation. The associated testing project still relies heavily on the NSec library; and may do so for some time given the ease and utility the NSec library provides in testing.

The second potentially breaking change is the addition of the ContractException class. The behavior of QueryContractAsync method has changed. Previous implementations would throw a PrecheckException for any non-success result returned from the network. However, the network, at times, includes additional error and diagnostics information that cannot be captured in a PrecheckException. The ContractException was introduced to communicate this information back to the calling code. Since the information is nearly identical to a ContractCallResult, and additional flag was also introduced on the QueryContractParams called ThrowOnFail that when set to false, the QueryContractAsync function will always return a ContractCallResult, regardless of call result (in so far as the query request was accepted by the network and not rejected due to an invalid signature or other typical sources of PrecheckExceptions). The default value for ThrowOnFail is true to align more closely with existing behavior.

Version 6.0.0 Throw new ContractException for Query Contract Errors

Version 6 introduces two potentially breaking changes. First, the library has removed its dependency on the NSec library. This change has nothing to do with the quality of the NSec library, which has served the project well. However, while adding Smart Contract support to the Hashgraph library, a dependency on the Bouncy Castle project was necessary. Since the Bouncy Castle library also provides Ed25519 support, having references to two security libraries was redundant and the library code was switch to the Bouncy Castle implementation. The associated testing project still relies heavily on the NSec library; and may do so for some time given the ease and utility the NSec library provides in testing.

The second potentially breaking change is the addition of the ContractException class. The behavior of QueryContractAsync method has changed. Previous implementations would throw a PrecheckException for any non-success result returned from the network. However, the network, at times, includes additional error and diagnostics information that cannot be captured in a PrecheckException. The ContractException was introduced to communicate this information back to the calling code. Since the information is nearly identical to a ContractCallResult, and additional flag was also introduced on the QueryContractParams called ThrowOnFail that when set to false, the QueryContractAsync function will always return a ContractCallResult, regardless of call result (in so far as the query request was accepted by the network and not rejected due to an invalid signature or other typical sources of PrecheckExceptions). The default value for ThrowOnFail is true to align more closely with existing behavior.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
6.0.0 0 7/9/2020
5.7.0 211 6/20/2020
5.6.0 91 6/13/2020
5.5.0 74 6/10/2020
5.4.4 82 5/25/2020
5.4.0 61 5/5/2020
5.3.11 98 3/26/2020
5.3.3 164 2/29/2020
5.3.0 89 2/13/2020
5.2.1 178 2/10/2020
5.2.0 195 2/8/2020
5.1.0 115 1/27/2020
5.0.0 148 1/25/2020
4.1.0 416 12/1/2019
4.0.0 88 11/8/2019
3.3.2 110 11/5/2019
3.2.0 96 10/30/2019
3.1.0 103 10/6/2019
3.0.0 210 9/20/2019
2.2.0 105 9/16/2019
2.1.0 124 8/31/2019
2.0.0 187 8/19/2019
1.5.2 201 7/15/2019
1.5.0 223 7/12/2019
1.4.5 198 6/21/2019
1.4.1 206 6/11/2019
1.4.0 222 6/2/2019
1.3.0 220 5/30/2019
1.2.0 219 5/24/2019
1.1.6 217 5/21/2019
1.1.5 223 5/21/2019
1.1.4 223 5/21/2019
1.1.3 211 5/20/2019
1.1.2 219 5/20/2019
1.1.1 225 5/20/2019
1.0.1 214 5/18/2019
1.0.0 223 5/16/2019
0.3.7 223 5/14/2019
0.3.5 220 5/10/2019
0.3.3 226 5/10/2019
0.3.2 217 5/9/2019
0.3.1 215 5/9/2019
0.3.0 222 5/7/2019
0.2.0 227 5/7/2019
0.1.0 227 5/4/2019