Skip to main content

Centre.PyCS

Icon Centre.PyCS

Third Party Library for implementing Credits Blockchain in Python

Installation of PIP

pm> pip install Centr.PyCS 

Or

pm> pip3 install Centr.PyCS 

Getting started

After installing it's time to actually use it. To get started we have to add the PyCS namespace: Import Connector from PyCS;.

Centre is providing an easy way of connecting to the Credits Blockchain where the goal is to limit the time needed for new Developers intergrating the Credits Blockchain into there projects

Detailed Documentation

For All Centre build Libraries there is detailed documentation which can be found here: https://centr.gitbook.io/netcs

Connector Object

In order to get the library working we first need to initialize the Connector object

connect_ = Connector("95.111.224.219:9091");

The Connector object needs to have 2 variables the first: IP address of a node running Credits Blockchain and Second: the API port of that particular node.

Examples

Retrieving Balance

For a very easy example we are going to retrieve a Balance of a give wallet address

Connect_ =  Connector("165.22.212.253:9090")
print(Connect_.WalletGetBalance("ACkyon3ERkNEcNwpjUn4S6TLP3L76LFg3X6kWoJx82dK"))

With only 2 Lines of code we can now retrieve a balance from the blockchain that easy !

Sending Transaction

In the next example we are going to send an transaction with the native currency CS

connect_ = new Connector("95.111.224.219:9091");
Print(connect_.SendTransaction(1, 0, "Enter Sender Publickey", "Enter Sender Privatekey", "Enter Receiver Publickey"));

Well look at that ! You now sended an transaction on the Credits Blockchain great job ;)

Contribution

Everyone is free to help me out as this will be a community driven Library !

Metadata

Release files for Centre.PyCS 0.2.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Centre.PyCS 0.2.0.1
File Size Uploaded
Centre.PyCS-0.2.0.1.tar.gz 49.4 kB Details

Release files / Centre.PyCS-0.2.0.1.tar.gz

Download URL Centre.PyCS-0.2.0.1.tar.gz
Size 49.4 kB
Tags Source
SHA-256 checksum
How to use checksums
cf3f09c4a4910e7674b65ec97652571446f57560dac1d9f629cffa24e3d88e6d
BLAKE2b-256 checksum
How to use checksums
ada67e5fe2d12aa896a67a1055ceb2258a30e8202d25cdddb03ed9d816e83e65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.7.4

Release history Release notifications | RSS feed

This release

0.2.0.1 This release

1 release file

0.1.0.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page