cURL
curl --request POST \ --url https://api.dirtroad.dev/tools/string-utils/ends-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 ends with suffix Requires x402 blockchain payment.
x402 blockchain payment authorization header containing signed EIP-3009 Transfer with Authorization
Prefix or suffix to check
Ends with check result