Search
Setup for Free
a
arktype
•
8mo ago
McKamyk
validating 0x prefixed hex
How can I validate a hex string that is prefixed by
0x<hex>
0x<hex>
in typescript
.
.
.
type Address = `0x${string}`
type Address = `0x${string}`
Can I do this same thing here
?
arktype
Join
This is a friendly space centered around ArkType, TypeScript's 1:1 validator (https://github.com/arktypeio/arktype)
857
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
0x<hex>
0x<hex>
type
Address
=
`0x${
string
}`
type
Address
=
`0x${
string
}`
Similar Threads
Validating that a string isn't empty after trimming
a
arktype / questions
3mo ago
dynamic key using string.uuid.v4 validating invalid strings.
a
arktype / questions
6mo ago
Validating Large JSON Schemas without high time/memory costs
a
arktype / questions
10mo ago
How to properly make a property of a class type?
a
arktype / questions
3y ago