PrivacyCore™ API Documentation

Integrate privacy-preserving blockchain infrastructure into your application

RESTful API
Simple HTTP endpoints
Standard REST API with JSON responses. Easy to integrate with any programming language.
Type-Safe SDK
TypeScript & Python
Full type safety with auto-completion. Available for JavaScript, TypeScript, and Python.
Web3 Integration
Direct smart contract access
Interact directly with Polygon mainnet contracts using ethers.js or web3.py.
API Endpoints
Core PrivacyCore™ API endpoints for payroll, voting, KYC, and more

Confidential Payroll

POST/api/payroll/create

Create a new payroll run with encrypted employee salaries

GET/api/payroll/history

Retrieve payroll execution history

POST/api/employees/add

Add employee with encrypted salary data

Smart Contract Addresses (Polygon Mainnet)

Confidential Payroll0xe32Bd7a0332F247aC71961d2cF19Dc6451Fd8C26
Private Voting0x12538d0C9bc198fBfC960C10F00f428E188ACb27
Confidential KYC0xdcE1b52325Ff67Acc7c7e6Ad6cb2e82f55B61bF5
Confidential Trading0x5d4FbC09187F3A271a96B9482BfCAd104288431A
Private Medical Records0xEE5c4c3aa840145fCa7ab0791042515556190A0B
Confidential Credit Scoring0x9895b4Dc0960081d17b09636D990Fe94B9F43318
PRIV Token0x8F645f0b9400B80C1BcB7A8F3eD40Ef4A9415fE3

Quick Start Example

// 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!');