Skip to main content

getValidationError

scrypt-ts-opcat v1.0.1


scrypt-ts-opcat / PrivateKey / getValidationError

Function: getValidationError()

getValidationError(data, network?): Error

Defined in: node_modules/@opcat-labs/opcat/types/privatekey.d.cts:157

Check if there would be any errors when initializing a PrivateKey

Parameters

data

string

The encoded data in various formats

network?

any

Either "livenet" or "testnet"

Returns

Error

An error if exists