workmail20.pirichain.api
1.0.2
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Framework 4.8
This package targets .NET Framework 4.8. The package is compatible with this framework or higher.
dotnet add package workmail20.pirichain.api --version 1.0.2
NuGet\Install-Package workmail20.pirichain.api -Version 1.0.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="workmail20.pirichain.api" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="workmail20.pirichain.api" Version="1.0.2" />
<PackageReference Include="workmail20.pirichain.api" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add workmail20.pirichain.api --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: workmail20.pirichain.api, 1.0.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package workmail20.pirichain.api@1.0.2
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=workmail20.pirichain.api&version=1.0.2
#tool nuget:?package=workmail20.pirichain.api&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Pirichain-api-csharp
Package for Pirichain API calls through C-sharp
Pirichain is blockchain system that based on dPos (Delegated Proof of Stake) and has it own environment to create wallet and token, transactions, sending or storing data as a transaction, delegation.
Requirements
- .NET >= 6.0;
- .NET Framework >= 4.8.0;
Usage
PirichainAPI_w20 papi = new PirichainAPI_w20(true);
string response = "";
response = await papi.createNewAddress();
response = await papi.createNewAddress("portuguese", true);
response = await papi.rescuePrivateKey("entry frequent airport firm document close human roof fix pond popular laugh banner fruit faint exact sleep axis pipe crush today elder inform saddle");
response = await papi.getMnemonic("4bab94162ba406575bb5dd5814faa0bec124bb947a72cb221e951a8e348e9ce5");
response = await papi.getBalance("PRTMRWG479eCmbbufg92qZsysYHMH7bRL7H6eDVwNSx");
response = await papi.getBalanceList("PRTMRgoFporAfQYrNNJfj3Go37FT5AR3ueKCwpdKd1s");
response = await papi.getToken();
response = await papi.listTokens();
response = await papi.getScenario("PRTMQ7fcZp7ACGDEom4KJQ4bvJ5nwQ3CcaUTFy642mE");
response = await papi.listMyScenarios("PRTMPUAV2mTGq6Dpu9ZBYmJyXWdt9RYiiouvRaZ8xUR");
response = await papi.listScenarios();
response = await papi.executeScenario("PRTMPBjj3sutTtHwvRgB8YFHtMdcTv1Bd7cMWMxMrZP", "PRTMRWG479eCmbbufg92qZsysYHMH7bRL7H6eDVwNSx",
"9d656610ec7ff8a8e7e9225234ee54b6fa31d147981e1b91106ce901ae69bf9b", "init", "[\"11\",\"22\",\"333\"]");
response = await papi.previewScenario("{}", "PRTMRWG479eCmbbufg92qZsysYHMH7bRL7H6eDVwNSx",
"9d656610ec7ff8a8e7e9225234ee54b6fa31d147981e1b91106ce901ae69bf9b", "init", "['11','22','333']");
response = await papi.listTransactions();
response = await papi.listPoolTransactions();
response = await papi.listTransactionsByAssetID("0", "50", "-1");
response = await papi.listTransactionsByAddr("PRTMPUAV2mTGq6Dpu9ZBYmJyXWdt9RYiiouvRaZ8xUR", "0", "50");
response = await papi.getTransaction("f0f5733c7cc71ad3ae2dea4417c7e16a39aed9edba6a4c414568875b30a1ad9b");
response = await papi.getPoolTransaction("f0f5733c7cc71ad3ae2dea4417c7e16a39aed9edba6a4c414568875b30a1ad9b");
response = await papi.getBlocks();
response = await papi.getBlocksDesc();
response = await papi.getLastBlocks();
response = await papi.getOnlyBlocks();
response = await papi.getBlock("2673310");
response = await papi.createToken("","", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", true, false);
response = await papi.pushData("PRTMRWG479eCmbbufg92qZsysYHMH7bRL7H6eDVwNSx", "9d656610ec7ff8a8e7e9225234ee54b6fa31d147981e1b91106ce901ae69bf9b", "PRTMRN71Mz5mrZMA59mPtURrTG9S4yydYDyi1YNi5uX",
"{\"key\":\"xxxx1\",\"value\":\"xxxxx\",\"enc\":\"1\"}",
"043e6ace02e5b6c8031455d91ae88b411b80935f48404c6014075043e71d2ffb8da3b2f5f3a480f9be45b9455b846781bdbdf6466076645cc86e5a00c82c51bc00");
response = await papi.listData();
response = await papi.listDataByAddress("PRTMRN71Mz5mrZMA59mPtURrTG9S4yydYDyi1YNi5uX");
response = await papi.getAddressListByAsset();
response = await papi.isValidAddress("PRTMRN71Mz5mrZMA59mPtURrTG9S4yydYDyi1YNi5u0");
response = await papi.search("99f9f4ec7012db95868bb9526cd9b239765634183b64ad3eb7b3c13daf5ed12d");
response = await papi.search("2673310");
response = await papi.listDeputies();
response = await papi.checkDeputy("PRTMPRSg92ndyu5NeaEf7q3D6TdJeKKa6nKStVMcU4e");
response = await papi.getMyRewardQuantity("PRTMRWG479eCmbbufg92qZsysYHMH7bRL7H6eDVwNSx", "9d656610ec7ff8a8e7e9225234ee54b6fa31d147981e1b91106ce901ae69bf9b");
response = await papi.getPiriPrice();
response = await papi.getRichList();
response = await papi.getDetailStats();
response = await papi.getStats();
response = await papi.listDelegationTopN();
response = await papi.getCirculation();
API documentation
For more detailed and up-to-date API documentation, you can access it at https://api.pirichain.com and refer to the Postman collection documents specified at that address.
Changelog
To keep track, please refer to CHANGELOG.md.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Framework | net48 is compatible. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.8
- Newtonsoft.Json (>= 13.0.3)
- System.Net.Http (>= 4.3.0)
-
net6.0
- Newtonsoft.Json (>= 13.0.3)
- System.Net.Http (>= 4.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.2 | 316 | 8/4/2023 |