Metadata-Version: 2.1
Name: forge-python-sdk
Version: 0.25.2
Summary: A small example package
Home-page: https://github.com/ArcBlock/forge-python-sdk
Author: ArcBlock lnc
Author-email: riley@arcblock.io
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: base58
Requires-Dist: grpcio
Requires-Dist: grpcio-tools
Requires-Dist: toml
Requires-Dist: deepmerge
Requires-Dist: pysha3
Requires-Dist: ed25519

## Forge-python-sdk
Forge-python-sdk is sdk for [Forge](https://github.com/ArcBlock/forge).

## Installation
```sh
pip install forge-python-sdk
```

## Usage
First get your Forge running on local with [Forge Cli](https://github.com/ArcBlock/forge-js/tree/master/packages/forge-cli)

Find the config your forge is using by `forge config`

Set `FORGE_CONFIG` as your environment variable, pointing to the config your forge is running on.

### Simple RPC examples

#### Get Chain Info
```python
from forge_sdk import rpc
rpc.get_chain_info()

info {
  id: "fea5f258f30cd184d3c38af42d99e03325f6c875"
  network: "forge"
  moniker: "forge-local"
  consensus_version: "0.30.2"
  synced: true
  app_hash: "\345\031\313\021\226\301\360\030\254\360\206+/\200\217\275/\r`\021\026\243\342g1\256\335\340\246lr\213"
  block_hash: "E\262~\222\3318 \325\337\016\013\321\342\271\347\346\000\264uC\225nc\354\275n\020~\372x#e"
  block_height: 99833
  block_time {
    seconds: 1554851683
  }
  address: "zyt5PXcpLoEdYsJrnf7bEAuCFBEM5d7Jg3FP"
  voting_power: 10
  total_txs: 264
  version: "0.21.3"
  data_version: "1.5"
  forge_apps_version {
    key: "Event-Chain"
    value: "0.1.0"
  }
  supported_txs: "fg:t:update_asset"
  supported_txs: "fg:t:transfer"
  supported_txs: "fg:t:sys_upgrade"
  supported_txs: "fg:t:stake"
  supported_txs: "fg:t:exchange"
  supported_txs: "fg:t:declare_file"
  supported_txs: "fg:t:declare"
  supported_txs: "fg:t:consensus_upgrade"
  supported_txs: "fg:t:create_asset"
  supported_txs: "fg:t:consume_asset"
  supported_txs: "fg:t:poke"
  supported_txs: "fg:t:account_migrate"
}

```


