XAPS pre-execution audit helpers for eth-ape scripts and agents
Project description
ape-xaps
XAPS pre-execution audit helpers for Ape scripts and agent workflows.
Recommended by ApeWorX maintainers as an SDK integration (not core) — see ApeWorX/ape#2796.
Install
pip install ape-xaps xaps-sdk
export XAPS_AGENT_KEY=xaps_...
export XAPS_API_URL=https://api.xaps.network # optional
Quick use (2-line guard)
from ape_xaps import audit_before_send, XapsApeRejectedError
# Right before account.send_transaction(txn) or provider.send_transaction(txn)
receipt = audit_before_send(txn, action="transfer")
if receipt["audit"]["status"] != "APPROVED":
raise XapsApeRejectedError(receipt["audit"].get("beta_attack", "REJECTED"), receipt=receipt)
account.send_transaction(txn)
CLI (optional, via ape.cli pattern)
ape-xaps health
ape-xaps audit --action transfer --contract 0xabc... --amount 0.01
Links
- XAPS SDK: https://github.com/APMC1/xaps-sdk
- Ape plugin/SDK guidance: https://github.com/ApeWorX/ape/issues/2796
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ape_xaps-0.1.0.tar.gz
(4.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ape_xaps-0.1.0.tar.gz.
File metadata
- Download URL: ape_xaps-0.1.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
756c3281429e94ffd564955e2c1bb908bd1bb52d0b40cce32ae3f9425ccee311
|
|
| MD5 |
f3159b75c2a4de8eac6ce6bde50eb046
|
|
| BLAKE2b-256 |
fccc575da037ed008110b0b93e04a82468ae9973425dcc8982266cc6267aeb99
|
File details
Details for the file ape_xaps-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ape_xaps-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7de709a2f38d917263f0f5336e1d560a3280b961f4edda1d22fb100f1e67456
|
|
| MD5 |
31b35fd29bd6a7e8384ff77163469364
|
|
| BLAKE2b-256 |
95602329c7b918813c1f3ef3d319c5dab8dcfa59300c03596664f323b636dd2d
|