import { with0x } from '@app/common/utils' ; export function validateTxId ( txid ) { const value = with0x ( txid ) . toLowerCase ( ) ; if ( value . length !== 66 ) return false ; try { return with0x ( BigInt ( value ) . toString ( 16 ) . padStart ( 64 , '0' ) ) === value ; } catch ( e ) { return false ; } }