Skip to main content

Python SDK

pip install fenryxpy

fenryxpy is fully async (aiohttp). Every method awaits.

Hello world

import asyncio
from fenryxpy import FenryxClient

async def main():
async with FenryxClient("https://v2.rpc.fenryx.io") as c:
print(await c.status())
print(await c.pools())

asyncio.run(main())

Module shortcuts (Bloque 12.2)

await c.pools()
await c.apex_all()
await c.gossip_root()
await c.tps_estimate()
await c.staking_v2_records()
await c.staking_v2_reward_pool()
await c.pou_records()
await c.pc_stats()
await c.insurance_proposals()
await c.guardian_genesis()
await c.did_verify("frx1...")
await c.gov_v2_proposals()
await c.gov_v2_info()
await c.upgrade_current()
await c.dex_pools()
await c.file_manifests()
await c.wasm_contracts()
await c.subnets()
await c.btc_relay_state()
await c.token_list()
await c.lightning_channel(42)
await c.x1_contract("0x…")

Escape hatch

await c.get_raw("omnia/some_new_thing")
await c.post_raw("omnia/some_new_thing", {"foo": "bar"})

Source

github.com/fenryxlabs/fenryx-py