Blockchain

Algorand
Testnet โ€ข Fast finality โ€ข Low fees

Encryption

Quantum-Resistant
Post-quantum cryptography ready

Verification

On-Chain
Trustless permission validation

โ›“๏ธ Blockchain Architecture

๐Ÿ” Token Minting

Permissions encoded as Algorand Standard Assets (ASA). Each token is a unique NFT with embedded smart contract logic.

๐Ÿ”— Session Binding

Tokens cryptographically bound to specific agent session IDs. Stolen tokens are useless to other agents.

โœ… Dual Verification

Permissions verified both on-chain AND at the endpoint. If they don't match, access denied.

๐Ÿ”ฅ Instant Revocation

Burn the token on-chain and access is immediately terminated. No delays, no cache issues.

๐Ÿ“ก Live API Endpoints

POST /verify Verify token on-chain LIVE
POST /check-action Check if action is allowed LIVE
GET /token/:id Get token details LIVE
GET /health API health check LIVE

๐Ÿ’ป Integration Example

Verify Token & Check Permissions
// Verify agent token before granting access
const response = await fetch('https://tokenform-verify.jbinder.workers.dev/check-action', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    asset_id: 756335543,        // Token ID on Algorand
    agent_id: 'my-agent-001',  // Bound agent session
    action: 'create',           // Requested action
    resource_type: 'posts'     // Resource being accessed
  })
});

const result = await response.json();

if (result.allowed) {
  // โœ… Action permitted โ€” proceed
  console.log('Access granted:', result.constraints);
} else {
  // โŒ Action denied โ€” block request
  console.log('Access denied:', result.error);
}
โž• Create Test Token ๐Ÿ“ก Check API Status ๐Ÿ”— Algorand Explorer