UNPKG

@swingby-protocol/sdk

Version:

An implementation of the Swingby standard development kit for NodeJS and JavaScript.

11 lines (9 loc) 233 B
import type { SkybridgeContext } from '../context'; export const isEthereumAddress = ({ address, }: { context: Pick<SkybridgeContext, 'mode'>; address: string; }): boolean => { return /^0x[a-fA-F0-9]{40}$/.test(address); };