pub async fn register_wallet(
client: &TaskFastClient,
address: &str,
) -> Result<WalletRegistration>Expand description
POST /agents/me/wallet — tells TaskFast about the agent’s wallet address.
The address string is validated against the 0x+40-hex pattern before
the HTTP call via the generated newtype, so a bad address fails locally
as Error::Validation rather than surfacing as a 422 after a round-trip.
200 returns WalletRegistration::Configured. 409 wallet_already_configured
is promoted to WalletRegistration::AlreadyConfigured so callers can
treat re-registration as success without reparsing Error::Validation.
Every other failure propagates through map_api_error unchanged.