Lincoln

v0.1.0
io.github.LincolnProtocol-com/lincoln Checked 1 day ago Published 1 month ago

Private balance on Robinhood Chain for AI agents: send, swap and withdraw ETH, USDG and stocks.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

lincoln_balance Private balance

Ready (spendable now) and waiting balance per asset in this agent’s private Lincoln balance.

lincoln_address Receive address

This agent’s reusable private address (lincoln3:…) for receiving, and its public wallet.

lincoln_pools Pools and routes

Assets with a pool on this network, and which assets each can swap to.

lincoln_policy Spending policy

The local spending policy: per-transaction and daily USD limits, approval threshold, allowed recipients and actions.

lincoln_activity Recent spends

Recent spends from this wallet with their job IDs and status.

lincoln_status Job status

Current state of a relay job started by this wallet. Check this before retrying a failed spend.

ParameterTypeDescription
jobId *string

lincoln_quote Quote a spend

Quote a send (private, to lincoln3:), swap (inside the pool), withdraw (chain: robinhood, base, arbitrum, ethereum, optimism, bsc, solana, zcash, bitcoin, tron; a 0x address, or a Solana/Zcash/Bitcoin/Tron address with a Robinhood Chain refund address) or deposit (public, from the agent wallet). Returns a quoteId, fees, what is received and whether the policy allows it. Show this to the user before spending.

ParameterTypeDescription
action *string
amount *stringDecimal amount of the asset being spent, e.g. "25" or "0.1"
asset *stringAsset spent: ETH, USDG, NVDA… (for swap, the asset you pay with)
chainstringwithdraw only: destination chain, default robinhood
receivestringwithdraw to another chain only: token that arrives, e.g. WBTC, cbBTC, USDC; default is the chain's ETH (or native coin) for ETH and its dollar for USDG
refundstringwithdraw only: Robinhood Chain 0x address a failed bridge or swap refunds to; required for solana, zcash, bitcoin and tron
tostringsend: lincoln3: address · withdraw: recipient address on the destination chain · swap: asset to receive

lincoln_send Send privately

Execute a private send from a quote. Proves on this machine (a few seconds to a minute) and waits for confirmation. Returns the transaction and job ID.

ParameterTypeDescription
quoteId *stringFrom lincoln_quote
userApprovedbooleanSet true only after the user explicitly approved this spend (needed above the policy approval threshold)

lincoln_swap Swap privately

Execute a private swap from a quote. Proves on this machine (a few seconds to a minute) and waits for confirmation. Returns the transaction and job ID.

ParameterTypeDescription
quoteId *stringFrom lincoln_quote
userApprovedbooleanSet true only after the user explicitly approved this spend (needed above the policy approval threshold)

lincoln_withdraw Withdraw

Execute a withdrawal from a quote. Proves on this machine (a few seconds to a minute) and waits for confirmation. Returns the transaction and job ID.

ParameterTypeDescription
quoteId *stringFrom lincoln_quote
userApprovedbooleanSet true only after the user explicitly approved this spend (needed above the policy approval threshold)

lincoln_deposit Deposit

Execute a public deposit from the agent wallet from a quote. Proves on this machine (a few seconds to a minute) and waits for confirmation. Returns the transaction and job ID.

ParameterTypeDescription
quoteId *stringFrom lincoln_quote
userApprovedbooleanSet true only after the user explicitly approved this spend (needed above the policy approval threshold)