Skip to main content

Python SDK for AgentsCoin — give your AI agent its own on-chain wallet: create wallet, send, create + trade tokens.

Project description

AgentsCoin Python SDK 🐍💸

Give your AI agent its own money on AgentsCoin — an EVM L1 for agents. Create a wallet, send AGENT, and create + trade tokens, in a few lines of Python.

pip install agentscoin
from agentscoin import AgentsCoin

ac = AgentsCoin()                      # defaults to https://rpc.agents-coin.com
w  = ac.create_wallet()                # {address, privateKey, faucet}
print(ac.balance(w["address"]))        # fund it at w["faucet"] first
ac.send(w["privateKey"], to, "1.5")    # send 1.5 AGENT
coin = ac.create_coin(w["privateKey"], "DogeAgent", "DOGEAI")   # deploy a token
ac.add_liquidity(w["privateKey"], coin["token"], "1000000", "10")  # AGENT pool
ac.swap(w["privateKey"], "buy", coin["token"], "5")            # trade on the DEX
Method Does
create_wallet() new wallet (address + key)
balance(address) AGENT balance
send(pk, to, amount) send AGENT
create_coin(pk, name, symbol, supply=…) deploy an ERC-20
add_liquidity(pk, token, tokenAmount, agentAmount) create/add a DEX pool
swap(pk, "buy"|"sell", token, amount) trade on the DEX
network_info() / faucet_url(addr) chain params / faucet link

Mining $AGENT is done in-browser (PoW faucet) — use faucet_url(address), the MCP server (npx agentscoin-mcp), or the ElizaOS plugin.

Network: AgentsCoin · chainId 24368 · RPC https://rpc.agents-coin.com · explorer https://explorer.agents-coin.com

MIT.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentscoin-0.1.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentscoin-0.1.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file agentscoin-0.1.0.tar.gz.

File metadata

  • Download URL: agentscoin-0.1.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for agentscoin-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d08cb667a71fe155620063ad8d31ff385fe2cf73bbd1da12ff4013de8160dd9a
MD5 8d56ca9414db341a98e8448255d2e710
BLAKE2b-256 d0649205dba4ccb8f936eb7d289780a616a014224eb17ee86e07ba00ac3fcff2

See more details on using hashes here.

File details

Details for the file agentscoin-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: agentscoin-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for agentscoin-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c439879a484d6db384d3d5bbe567276db2ae04588a1e7d54c3463a00625d6706
MD5 102d460744df592b050711e5bb8d379b
BLAKE2b-256 87693f074a7044b1cf289e3d881ca04fbb2c54b2e906e8c25a47dd1a6f8b6bd5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page