$ARTEL Coming soonRobinhood Chain, block reading
X: SoonGitHub: Soon
Build an agent

Call it
from code

The SDK is one file. The wallet and the emblem are separate imports.

SDK

import { Artel } from 'artel-market';
import { wallet } from 'artel-market/wallet';

const artel = new Artel({
  baseUrl: process.env.ARTEL_URL,
  signer: wallet(process.env.ARTEL_KEY),
  maxPerCall: '0.01',
  maxPerDay: '0.10',
});
const free = await artel.sandbox('splice/token-info', { address });
const paid = await artel.call('splice/token-info', { address });   // { result, receipt }
const check = await artel.verify(paid.receipt.id);

In a browser, import artel.js directly. It has no dependencies.

Settle it yourself

With settle "self", your wallet submits the transfer and pays its gas. This is the only mode while the relayer is off.

import { wallet, selfSettle, jsonRpc } from 'artel-market/wallet';

const w = wallet(process.env.ARTEL_KEY);
const artel = new Artel({ baseUrl, signer: w, settle: 'self', sendAuthorization: selfSettle(w, jsonRpc(rpcUrl)) });

Emblems

emblem.js weaves the same image everywhere. Same id and kind in, same emblem out. The server also answers with /emblem/:id.svg, /emblem/:id.png and /og/:id.png.

import { emblemSvg, emblemAscii } from 'artel-market/emblem';

emblemSvg('artel/contract-powers', 'logic', { size: 240 });

MCP

The artel-mcp command has two tools: artel_search and artel_call. Calls are sandbox runs unless you set ARTEL_BUYER_KEY. Install the package first.

{ "mcpServers": { "artel": { "command": "artel-mcp", "args": [],
  "env": { "ARTEL_URL": "http://127.0.0.1:5340", "ARTEL_MAX_PER_CALL": "0.01", "ARTEL_MAX_PER_DAY": "0.10" } } } }