@lincolnprotocol/sdk
v0.1.0
Published
Private balances on Robinhood Chain for agents and apps: Lincoln privacy pool SDK for Node.
Maintainers
Readme
@lincolnprotocol/sdk
TypeScript SDK (Node 20+) for Lincoln, a privacy pool on Robinhood Chain. It gives an agent or app a private balance of ETH, dollars and tokenized stocks. Zero-knowledge proofs are generated locally and a relayer submits them.
import { Lincoln } from '@lincolnprotocol/sdk';
const agent = await Lincoln.open(); // reads ~/.lincoln, unlocks with LINCOLN_PASSPHRASE
console.log(await agent.balances());
const q = await agent.quoteSwap({ from: 'usdg', to: 'nvda', amount: '100' });
const r = await agent.execute(q.id); // { txHash, jobId, explorer, message }Pool profiles, swap routes and circuit pins ship with the package, so a relay can't redirect funds. Create the wallet with npx @lincolnprotocol/cli init.
Docs: https://docs.lincolnprotocol.com/developers/agents · Source: https://github.com/LincolnProtocol-com/sdk · Terms: https://docs.lincolnprotocol.com/legal/terms
