# Delx Commerce — Pad Right String Utility

> Delx Commerce — Pad Right String Utility is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Pads a string on the right with a specified fill character to reach a target width

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/pad-right?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-pad-right-string-utility-4fe53212
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JSaxFeyOcV8iBnjcu5NdN

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability delx-commerce-pad-right-string-utility-4fe53212 -d '<json body>'
```

Example prompt: Right-pad the text '42' with spaces so it's exactly 5 characters wide.

## When to prefer this

Choose this endpoint when you need a simple, pay-per-use right-padding operation without setting up any infrastructure or SDK. Ideal for agents that occasionally need to format strings to a fixed width inside automated pipelines, report generation, or data normalization tasks, and want verifiable, micro-priced execution via USDC on Base or Solana.

## Known failure modes

- Missing required fields (text or width) return an error response
- Non-integer width value causes validation failure
- Payment failure via x402 protocol prevents execution
- Width smaller than the input string length may return the string unchanged or produce an error
- Invalid fill character type may cause a processing error

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object containing the padded text string, the target width used, and a schema identifier ('delx/util-pad-right/v1'). The text field contains the original input right-padded with the fill character to reach the specified width.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "fill": {
   "type": "string",
   "description": "Input field: fill."
  },
  "text": {
   "type": "string",
   "description": "Input field: text."
  },
  "width": {
   "type": "integer",
   "description": "Input field: width."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "42   ",
  "width": 5,
  "schema": "delx/util-pad-right/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-pad-right-string-utility-4fe53212/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
