• Stars
    star
    127
  • Rank 282,790 (Top 6 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created over 3 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Python client library for interacting with blockchains based on the Cosmos-SDK

CosmPy

A python library for interacting with cosmos based blockchain networks

PyPI PyPI - Python Version License
PyPI - Wheel CosmPy sanity checks and tests Download per Month

We recently stopped using the develop branch for feature consolidation and renamed master to main. Please see the Contribution Guides for up-to-date instructions.

To Install

pip3 install cosmpy

Getting Started

Below is a simple example for querying an account's balances:

from cosmpy.aerial.client import LedgerClient, NetworkConfig

# connect to Fetch.ai network using default parameters
ledger_client = LedgerClient(NetworkConfig.fetchai_mainnet())

alice: str = 'fetch12q5gw9l9d0yyq2th77x6pjsesczpsly8h5089x'
balances = ledger_client.query_bank_all_balances(alice)

# show all coin balances
for coin in balances:
  print(f'{coin.amount}{coin.denom}')

Documentation

The full documentation can be found here.

Examples

Under the examples directory, you can find examples of basic ledger interactions using cosmpy, such as transferring tokens, staking, deploying and interacting with a smart contract, and performing atomic swaps.

Contributing

All contributions are very welcome! Remember, contribution is not only PRs and code, but any help with docs or helping other developers solve their issues are very appreciated!

Read below to learn how you can take part in the CosmPy project.

Code of Conduct

Please be sure to read and follow our Code of Conduct. By participating, you are expected to uphold this code.

Contribution Guidelines

Read our contribution guidelines to learn about our issue and pull request submission processes, coding rules, and more.

Development Guidelines

Read our development guidelines to learn about the development processes and workflows.

Issues, Questions and Discussions

We use GitHub Issues for tracking requests and bugs, and GitHub Discussions for general questions and discussion.

License

The CosmPy project is licensed under Apache License 2.0.

More Repositories

1

uAgents

A fast and lightweight framework for creating decentralized agents with ease.
Python
834
star
2

agents-aea

A framework for autonomous economic agent (AEA) development
Python
202
star
3

fetchd

Source code for Fetch.ai blockchain nodes
Go
98
star
4

ledger

Official Fetch.AI Ledger C++ implementation
C++
78
star
5

docs-archived

This repo contains documentation for public Fetch.ai products.
Makefile
57
star
6

colearn

Colearn is a collection of protocols for running multi-stakeholder machine learning that preserve data privacy
Python
36
star
7

ledger-archive

C++
28
star
8

agents-tac

Competition and Agent Frameworks for the Trading Agents Competition
Jupyter Notebook
27
star
9

research-dvrf

C++ implementation of Distributed Verifiable Random Functions
C++
24
star
10

ledger-api-py

Official Python client library for interacting with the Fetch.AI Ledger
Python
18
star
11

mettalex-market-maker

Solidity
15
star
12

carpark_agent

Fetch.ai Carpark agent - A Raspberry Pi CCTV camera project to broadcast numbers of available car parking spaces on the Fetch.ai network
Python
14
star
13

cosmos-sdk

Fetch.ai fork of the Cosmos SDK
Go
12
star
14

genesis-launch

Repo for launch of Fetch.ai main-net
11
star
15

ledger-staking-contract

Solidity
10
star
16

jenesis

Python
8
star
17

etch-examples

Python
8
star
18

cosmos-explorer

Fetch.ai network explorer
JavaScript
8
star
19

website-token-information

Website containing information about FET token trends
JavaScript
7
star
20

agents-template

A template repo for development with the AEA framework
Shell
7
star
21

agentverse

Public repository for Agentverse
7
star
22

docs

Fetch.ai documentation for AI Agents, AI Engine, Fetch Network and more.
MDX
6
star
23

mettalex-documentation

Public documentation for Mettalex
5
star
24

staking-contract

Smart contract implementing the Fetch Dutch Staking Auctions
JavaScript
5
star
25

tools-etch-code-highlighter

Etch code highlighters
Vim Script
5
star
26

uAgents-examples

A collection of uAgents project examples
Python
4
star
27

docker-images

Dockerfiles, scripts and setup necesary to build docker images used by Fetch.ai (e.g. for build, CI, etc. ...)
Shell
4
star
28

agents-yoti

A repo to explore integrating the AEA framework (https://docs.fetch.ai/aea) with Yoti (https://www.yoti.com).
Python
4
star
29

FIPs

The Fetch Improvement Proposals repository
4
star
30

cra-template-cosmjs-keplr

A create-react-app template for DApps which interact with cosmos-based networks as well as the Fetch wallet and Keplr
JavaScript
3
star
31

cosmos-consensus

Integration of the Fetch DRB with the Tendermint consensus
Go
3
star
32

ledger-api-javascript

Official Javascript client library for interacting with the Fetch.AI Ledger
TypeScript
3
star
33

fetch-ethereum-bridge-v1

Rust
3
star
34

pyOEF

Python
2
star
35

improvement-proposals

2
star
36

docker-constellation

Docker image repository for generating a docker build
Python
2
star
37

networks-beaconworld

2
star
38

networks-agentland

Information for connecting to the Agentland testnet
2
star
39

genesis-fetchhub

repo for launching Stargate upgrade of Fetch.ai mainnet
JavaScript
2
star
40

ai-engine-sdk-python

Python
2
star
41

project-agent-platform

A repository for collecting feedback with the agent platform project
1
star
42

mettalex-sdk

Python
1
star
43

wallet-browser-extension

TypeScript
1
star
44

genesis-prelaunch

Repository for coordinating prelaunch network starts
1
star
45

tendermint

Go
1
star
46

etch-demos

Etch demo versions of popular Ethereum tutorial dApps.
Jupyter Notebook
1
star
47

tools-pocketbook

Python based CLI wallet for testing ledger instances
Python
1
star
48

apps-wallet-chrome-extension

JavaScript
1
star
49

cw-fetch-std

A Rust library for CosmWasm smart contract development
Rust
1
star
50

demo-collective-learning

Demo code for the Collective Learning Medium article
Jupyter Notebook
1
star
51

avctl

Command line tool for interacting with Agentverse hosted services
1
star
52

agents-manager-app-site

Website for AEA Manager app
HTML
1
star
53

babble

A python client library for sending messages via the memorandum service
Python
1
star