2

It seems Solscan defaults to setting onCurve to false for addresses that don't have any transactions associated to it. How can I reliably check if a given address is on curve or not?

1 Answer 1

3

We can use the isOnCurve method of PublicKey from web3.js:

const onCurve = PublicKey.isOnCurve('ACYz3rCamFVGdub1BZ43yUnemp9PWNQBbn4KvPrrMeS1');

PS: It appears solana.fm doesn't have this bug, so can also just use that.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.