import { PublicKey } from "@solana/web3.js";

export const isPDA = (address: string) => {
	try {
		const publicKey = new PublicKey(address);
		return !PublicKey.isOnCurve(publicKey);
	} catch (error) {
		return false;
	}
};
