Used to check if an operation hash is valid.
0 = NO_PREFIX_MATCHED, 1 = INVALID_CHECKSUM, 2 = INVALID_LENGTH, 3 = VALID, 4 = PREFIX_NOT_ALLOWED, 5 = INVALID_ENCODING, 6 = OTHER,
import { validateOperation } from '@taquito/utils';const operationHash = 'oo6JPEAy8VuMRGaFuMmLNFFGdJgiaKfnmT1CpHJfKP3Ye5ZahiP'const validation = validateOperation(operationHash)console.log(validation)// This example return 3 which correspond to VALID Copy
import { validateOperation } from '@taquito/utils';const operationHash = 'oo6JPEAy8VuMRGaFuMmLNFFGdJgiaKfnmT1CpHJfKP3Ye5ZahiP'const validation = validateOperation(operationHash)console.log(validation)// This example return 3 which correspond to VALID
Used to check if an operation hash is valid.