Calculate health restored from damage dealt and lifesteal percentage.
0.01 USDC · per calculation
POST https://market.datapackvibe.com/x402/lifesteal-calculator
The unpaid request returns payment instructions. An x402 client can pay in USDC and retry with its payment authorization.
Machine-readable service details · Agent instructions
{
"type": "object",
"properties": {
"damage": {
"type": "number",
"default": 120
},
"lifesteal_percent": {
"type": "number",
"default": 0.08
},
"max_health": {
"type": "number",
"default": 100
},
"current_health": {
"type": "number",
"default": 40
}
}
}Calculation output may be used in games and commercial projects.