Execute onchain enforcement actions — update reputation scores, slash stakes, mint/revoke safety badges via smart contracts on Base.
Interact with deployed smart contracts on Base to enforce safety decisions. All actions are onchain and publicly auditable.
Update an agent's reputation score on the ReputationCore contract.
Parameters:
address (string, required) — The agent's Ethereum addressscore (number, required) — New score (0-1000)reason (string, required) — Human-readable reason for the updateReturns: Object with: success (boolean), tx_hash, old_score, new_score, gas_used.
Slash a percentage of an agent's staked ETH via SafetyStaking contract.
Parameters:
address (string, required) — The agent to slashbps (number, required) — Basis points to slash (100 = 1%, max 5000 = 50%)reason (string, required) — Human-readable reasonReturns: Object with: success (boolean), tx_hash, slash_amount_eth, remaining_stake_eth, gas_used.
Mint a safety badge NFT for an agent that meets tier requirements.
Parameters:
address (string, required) — The agent receiving the badgetier (number, required) — Badge tier: 1=Bronze, 2=Silver, 3=Goldscore (number, required) — Agent's current scoreReturns: Object with: success (boolean), tx_hash, token_id, tier_name, gas_used.
Revoke (burn) an agent's safety badge.
Parameters:
address (string, required) — The agent whose badge to revokereason (string, required) — Human-readable reasonReturns: Object with: success (boolean), tx_hash, revoked_token_id, gas_used.