apex-fusion-agent-sdk
Python Agent SDK for the Vector blockchain. Built on PyCardano + Ogmios.
Installation
pip install apex-fusion-agent-sdk
Requires Python >= 3.11.
Quick Start
import asyncio
from vector_agent import VectorAgent
async def main():
async with VectorAgent() as agent:
address = await agent.get_address()
print(f"Address: {address}")
balance = await agent.get_balance()
print(f"ADA: {balance.ada}")
tx = await agent.send(to="addr1...", ada=5.0)
print(f"TX Hash: {tx.tx_hash}")
print(f"Explorer: {tx.explorer_url}")
asyncio.run(main())
Configuration is read from environment variables by default (see Configuration).
Features
Two Modes of Operation
VectorAgent— Standalone mode. Talks directly to Ogmios and submit-api via PyCardano. No external server needed.VectorAgentMCP— MCP client mode. Connects to a TypeScript MCP server via stdio. Same API surface asVectorAgent.
Wallet Management
- HD Wallets — BIP39 mnemonic with CIP-1852 derivation
.skeyFiles — cardano-cli signing key files
Transactions
- Send ADA and native tokens
- Build multi-output transactions
- Dry-run simulation with fee estimates
- Transaction history queries via Koios
Smart Contracts
- Deploy PlutusV1/V2/V3 scripts
- Interact with deployed contracts (lock & spend)
Safety Layer
- Configurable per-transaction and daily spend limits (in lovelace)
- Audit logging of all transactions
API
Query Methods
await agent.get_address() # Agent's payment address
await agent.get_balance() # ADA + token balances
await agent.get_balance("addr1...") # Balance of any address
await agent.get_utxos() # List UTxOs
await agent.get_protocol_parameters() # Raw protocol params
await agent.get_spend_limits() # Current spend limit status
await agent.get_transaction_history() # TX history via Koios
Transfer Methods
# Send ADA
tx = await agent.send(to="addr1...", ada=5.0)
tx = await agent.send(to="addr1...", lovelace=5_000_000)
# Send native tokens
tx = await agent.send_tokens(
to="addr1...",
policy_id="abcd1234...",
asset_name="MyToken",
quantity=100,
)
Advanced Transaction Building
# Dry-run (simulate without submitting)
result = await agent.dry_run(to="addr1...", ada=5.0)
print(f"Fee: {result.fee_ada} ADA")
# Multi-output transaction
result = await agent.build_transaction(
outputs=[
{"address": "addr1...", "lovelace": 5_000_000},
{"address": "addr1...", "lovelace": 3_000_000},
],
submit=True,
)
Smart Contracts
# Deploy a script
result = await agent.deploy_contract(
script_cbor="59...",
script_type="PlutusV2",
lovelace=2_000_000,
)
print(f"Script address: {result.script_address}")
# Interact with a deployed contract
result = await agent.interact_contract(
script_cbor="59...",
action="spend",
utxo_ref={"tx_hash": "abcd...", "output_index": 0},
)
MCP Client Mode
from vector_agent import VectorAgentMCP
async with VectorAgentMCP(
server_command="node",
server_args=["build/index.js"],
working_dir="/path/to/mcp-server",
) as agent:
balance = await agent.get_balance()
VectorAgentMCP has the same API as VectorAgent — it delegates all operations to a TypeScript MCP server over stdio.
Configuration
All settings can be passed as constructor arguments or read from environment variables:
| Environment Variable | Description | Default |
|---|---|---|
VECTOR_OGMIOS_URL |
Ogmios endpoint | — |
VECTOR_SUBMIT_URL |
Submit-api endpoint | — |
VECTOR_KOIOS_URL |
Koios endpoint (for history) | testnet |
VECTOR_EXPLORER_URL |
Block explorer base URL | testnet |
VECTOR_MNEMONIC |
BIP39 mnemonic | — |
VECTOR_SKEY_PATH |
Path to cardano-cli .skey file |
— |
VECTOR_ACCOUNT_INDEX |
HD derivation account index | 0 |
VECTOR_SPEND_LIMIT_PER_TX |
Per-transaction limit (lovelace) | 100000000 (100 ADA) |
VECTOR_SPEND_LIMIT_DAILY |
Daily limit (lovelace) | 500000000 (500 ADA) |
See .env.example for a template.
License
MIT
Metadata
Release files for apex-fusion-agent-sdk 0.1.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| apex_fusion_agent_sdk-0.1.10.tar.gz | 42.5 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| apex_fusion_agent_sdk-0.1.10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 88.8 kB
Release files / apex_fusion_agent_sdk-0.1.10.tar.gz
| Download URL | apex_fusion_agent_sdk-0.1.10.tar.gz |
|---|---|
| Size | 42.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
92591a8c990090a68a4325355101a60c18c7a20a720d9800263112c60a13909b
|
|
BLAKE2b-256 checksum How to use checksums |
cce500d720ff3af3193369b18ea8ca8cb7d1e4f0b88824e6924a9df1bfd56f2c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 9, 2026.
Transparency logRelease files / apex_fusion_agent_sdk-0.1.10-py3-none-any.whl
| Download URL | apex_fusion_agent_sdk-0.1.10-py3-none-any.whl |
|---|---|
| Size | 46.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d515d5e623daef016aa54ec68c73fa2a61b4d81d51661bc1b69ec01f559dd5ad
|
|
BLAKE2b-256 checksum How to use checksums |
5cf98d2b5413da011ac2295936292a921f4f329314baff0e6920852425003d6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 9, 2026.
Transparency logSecurity for apex-fusion-agent-sdk 0.1.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for apex_fusion_agent_sdk-0.1.10.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 9, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.