AssetFare Refresh Action Tool
A non-custodial smolagents agent tool — refresh an expired unsigned session action.
smolagentstoolnon-custodialcross-chain
This Space hosts an agent tool (tool.py), meant to be loaded
by an agent — not run as a web app. Explicit caller-approved POST /v2/session/{session_id}/refresh-action for a caller-owned AssetFare session (fixed origin https://api.assetfare.dev). It replaces an expired, UNSUBMITTED session action with a fresh quote-bound unsigned action for the caller to verify, sign and submit. It never signs, never submits, and never auto-chains. Requires the caller-owned session capability token (sent only
AssetFare never signs or submits; this tool never receives a private key and fails
closed on any response that claims the server will sign or submit.
tool.py first):
from smolagents import load_tool
tool = load_tool(
"odaiin/assetfare-refresh-action",
trust_remote_code=True, # runs the reviewed tool code in your process
revision="13600024229c9a2539d487447e9411a35fd068fd", # reviewed immutable Space revision
)
Tool name: assetfare_refresh_action. Does not execute, bridge, swap,
sign, or move funds — any transfer is a separate caller wallet action taken after
explicit approval. Review the
source and tests and the
AssetFare agent integration guide.