POST

Convert hex string to base64-encoded bytes. Native implementation

/v1/hex-bytes

Conversions · natif

Request → Response

Examples from schemas.json.

Requestapplication/json
POST /v1/hex-bytes
Content-Type: application/json

{
  "hex": "48656c6c6f"
}
Responseapplication/json
HTTP/1.1 200 OK
Content-Type: application/json

// Endpoint-specific body after 402 settlement

Overview

Convert hex string to base64-encoded bytes. Native implementation.

Request schema

Body: JSON · application/json

FieldTypeDescription
hexstringrequired
IMPLEMENTATION
curl -X POST https://api.tools402.dev/v1/hex-bytes \
  -H "Content-Type: application/json" \
  -d '{
  "hex": "48656c6c6f"
}'

402 payment flow omitted — see Integrations for settlement.