GitHub 6248★

Check if a value is base58 encoded

JavaScript version

// It doesn't accept the I, O, l characters
const isBase58 = (value) => /^[A-HJ-NP-Za-km-z1-9]*$/.test(value);

TypeScript version

const isBase58 = (value: string): boolean => /^[A-HJ-NP-Za-km-z1-9]*$/.test(value);
Follow me on and to get more useful contents.