Integrate privacy-preserving blockchain infrastructure into your application
/api/payroll/createCreate a new payroll run with encrypted employee salaries
/api/payroll/historyRetrieve payroll execution history
/api/employees/addAdd employee with encrypted salary data
0xe32Bd7a0332F247aC71961d2cF19Dc6451Fd8C260x12538d0C9bc198fBfC960C10F00f428E188ACb270xdcE1b52325Ff67Acc7c7e6Ad6cb2e82f55B61bF50x5d4FbC09187F3A271a96B9482BfCAd104288431A0xEE5c4c3aa840145fCa7ab0791042515556190A0B0x9895b4Dc0960081d17b09636D990Fe94B9F433180x8F645f0b9400B80C1BcB7A8F3eD40Ef4A9415fE3// JavaScript/TypeScript
import { ethers } from 'ethers';
const provider = new ethers.JsonRpcProvider('https://polygon-rpc.com');
const contract = new ethers.Contract(
'0xe32Bd7a0332F247aC71961d2cF19Dc6451Fd8C26',
PAYROLL_ABI,
provider
);
// Add employee with encrypted salary
const tx = await contract.addEmployee(
'0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb',
ethers.parseEther('5000'), // Encrypted salary
{ gasLimit: 200000 }
);
await tx.wait();
console.log('Employee added!');