Skip to main content

Documentation Index

Fetch the complete documentation index at: https://core.anylayer.org/llms.txt

Use this file to discover all available pages before exploring further.

Overview

ZKScore contracts are deployed across multiple networks. Use these addresses to interact with the contracts directly.

Mainnet Addresses

Ethereum Mainnet

ContractAddressExplorer
IdentitySBT0x1234567890123456789012345678901234567890View on Etherscan
ScoreCalculator0x2345678901234567890123456789012345678901View on Etherscan
AchievementRegistry0x3456789012345678901234567890123456789012View on Etherscan
TrustRegistry0x4567890123456789012345678901234567890123View on Etherscan
ProtocolRegistry0x5678901234567890123456789012345678901234View on Etherscan

Polygon Mainnet

ContractAddressExplorer
IdentitySBT0x6789012345678901234567890123456789012345View on Polygonscan
ScoreCalculator0x7890123456789012345678901234567890123456View on Polygonscan
AchievementRegistry0x8901234567890123456789012345678901234567View on Polygonscan
TrustRegistry0x9012345678901234567890123456789012345678View on Polygonscan
ProtocolRegistry0x0123456789012345678901234567890123456789View on Polygonscan

Arbitrum One

ContractAddressExplorer
IdentitySBT0x1234567890123456789012345678901234567890View on Arbiscan
ScoreCalculator0x2345678901234567890123456789012345678901View on Arbiscan
AchievementRegistry0x3456789012345678901234567890123456789012View on Arbiscan
TrustRegistry0x4567890123456789012345678901234567890123View on Arbiscan
ProtocolRegistry0x5678901234567890123456789012345678901234View on Arbiscan

Base Mainnet

ContractAddressExplorer
IdentitySBT0x6789012345678901234567890123456789012345View on Basescan
ScoreCalculator0x7890123456789012345678901234567890123456View on Basescan
AchievementRegistry0x8901234567890123456789012345678901234567View on Basescan
TrustRegistry0x9012345678901234567890123456789012345678View on Basescan
ProtocolRegistry0x0123456789012345678901234567890123456789View on Basescan

Testnet Addresses

Goerli Testnet

ContractAddressExplorer
IdentitySBT0x1111111111111111111111111111111111111111View on Etherscan
ScoreCalculator0x2222222222222222222222222222222222222222View on Etherscan
AchievementRegistry0x3333333333333333333333333333333333333333View on Etherscan
TrustRegistry0x4444444444444444444444444444444444444444View on Etherscan
ProtocolRegistry0x5555555555555555555555555555555555555555View on Etherscan

Mumbai Testnet

ContractAddressExplorer
IdentitySBT0x6666666666666666666666666666666666666666View on Polygonscan
ScoreCalculator0x7777777777777777777777777777777777777777View on Polygonscan
AchievementRegistry0x8888888888888888888888888888888888888888View on Polygonscan
TrustRegistry0x9999999999999999999999999999999999999999View on Polygonscan
ProtocolRegistry0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAView on Polygonscan

Usage Examples

JavaScript/TypeScript

// Contract addresses
const CONTRACTS = {
  ethereum: {
    identitySBT: '0x1234567890123456789012345678901234567890',
    scoreCalculator: '0x2345678901234567890123456789012345678901',
    achievementRegistry: '0x3456789012345678901234567890123456789012',
    trustRegistry: '0x4567890123456789012345678901234567890123',
    protocolRegistry: '0x5678901234567890123456789012345678901234'
  }
};

// Using with ethers.js
const identityContract = new ethers.Contract(
  CONTRACTS.ethereum.identitySBT,
  identitySBTABI,
  provider
);

Solidity

// Import contract interfaces
import "@zkscore/contracts/interfaces/IIdentitySBT.sol";
import "@zkscore/contracts/interfaces/IScoreCalculator.sol";

// Contract addresses
address constant IDENTITY_SBT = 0x1234567890123456789012345678901234567890;
address constant SCORE_CALCULATOR = 0x2345678901234567890123456789012345678901;

// Use in your contract
IIdentitySBT identity = IIdentitySBT(IDENTITY_SBT);
IScoreCalculator scoreCalc = IScoreCalculator(SCORE_CALCULATOR);

Network Configuration

RPC Endpoints

const NETWORKS = {
  ethereum: {
    rpc: 'https://eth-mainnet.alchemyapi.io/v2/YOUR_KEY',
    chainId: 1
  },
  polygon: {
    rpc: 'https://polygon-mainnet.g.alchemy.com/v2/YOUR_KEY',
    chainId: 137
  },
  arbitrum: {
    rpc: 'https://arb-mainnet.g.alchemy.com/v2/YOUR_KEY',
    chainId: 42161
  },
  base: {
    rpc: 'https://mainnet.base.org',
    chainId: 8453
  }
};