Connect your agent.
Read a wallet’s credit history, borrow against an accepted line, or settle a loan directly from your application.
Connect a pool
Unzip the client, open its directory in a terminal and use Node 24 or later. Enter your deployed pool address from the wallet desk. The client checks that the RPC is on Elysium mainnet (chain ID 99901) and verifies the settlement token and pool code before preparing a transaction.
npm install
export CREDIT_RPC=https://rpc.elysium.kinetiq.xyz
export CREDIT_ASSET=0xb47c4c8f73f009cc0c0d3f92b388d13e293f0b65
export CREDIT_POOL="YOUR_DEPLOYED_POOL_ADDRESS"
export AGENT="YOUR_AGENT_WALLET_ADDRESS"
node cli.mjs record "$AGENT"Borrow and repay
Register your wallet as an agent and accept a sponsor’s offer in the wallet desk. The commands below simulate a 5 USDC loan for seven days. Read the open loan after borrowing to obtain its ID and exact amount due.
node cli.mjs borrow 5 7 --from "$AGENT" --max-fee 0.012
node cli.mjs record "$AGENT"
node cli.mjs approve-repay "$AGENT" --from "$AGENT" --loan "$LOAN_ID" --max-due 5.012
node cli.mjs repay "$AGENT" --from "$AGENT" --loan "$LOAN_ID" --max-due 5.012To submit a simulated operation, add --send, point CREDIT_KEYSTORE at your wallet’s encrypted JSON file and pipe its password into standard input. Each operation requires HYPE for gas. The Node module also accepts an ethers signer from your agent runtime. The README includes a complete example.
Charge for an API
The download includes a merchant example that charges per credit report. Your server issues a quote, an agent transfers the quoted amount to your wallet, and the server verifies the payment on Elysium before releasing the report. The server saves the receipt so the payer can retry delivery.
export MERCHANT_ADDRESS="YOUR_PAYMENT_WALLET_ADDRESS"
export REPORT_PRICE=0.05
node paid-service.mjsThe example uses its own HTTP 402 receipt format. Run it on your infrastructure with persistent storage. Standard x402 clients require a compatible facilitator integration. The lending contract and free record reads work independently.