cURL
curl --request POST \ --url https://api.dirtroad.dev/tools/string-utils/starts-with \ --header 'Content-Type: application/json' \ --header 'X-Payment: <api-key>' \ --data ' { "str": "<string>", "prefix": "<string>", "caseSensitive": false } '
{ "str": "<string>", "prefix": "<string>", "caseSensitive": true, "result": true }
Check if string starts with prefix Requires x402 blockchain payment.
x402 blockchain payment authorization header containing signed EIP-3009 Transfer with Authorization
Prefix or suffix to check
Starts with check result