Data Integrity
import NeucronSDK from "./src/neucron-sdk.js";
const neucron = new NeucronSDK();
await neucron.authentication.login({ email: "your-email@example.com", password: "your-password" });Upload File
// For browser:
const fileInput = document.createElement('input');
fileInput.type = 'file';
fileInput.onchange = async () => {
console.log(await neucron.dataIntegrity.uploadFile({ filePath: fileInput.files[0] }));
};
// For Node.js:
console.log(await neucron.dataIntegrity.uploadFile({ filePath: 'path/to/your/file.png' }));Upload Encrypted File
Post Data
Upload File on Ordinal
Upload Hashed File
API Response
Last updated