DocsAPI reference

API reference

The HTTP API behind the card site and the X extension. Everything here is public: reading needs no key, and anything that changes state is authorised by a wallet signature.

Basics

  • Base URL. The API is served by the site itself: https://jebi-app.onrender.com. Every path below is relative to it.
  • Format. JSON in and out (Content-Type: application/json), except image uploads. Errors are { "error": "…" } with a 4xx or 5xx status; messages are written to be shown to people.
  • CORS. JSON endpoints answer any origin (Access-Control-Allow-Origin: *, methods GET, POST, OPTIONS, header Content-Type). No cookies or credentials are used. Image uploads are same-origin only.
  • Limits. Rate limits are per IP (and per wallet for writes), in memory per server instance; a 429 carries Retry-After. JSON bodies above 32 KB are refused with 413.
  • Chain. GIWA Sepolia, chain id 91342. Amounts in wei travel as decimal strings.
  • Configuration. Sponsored gas, the paymaster and the bundler exist only when this server is configured for them; GET /api/health lists which are on.

Cards

Read a card, build its transaction, list cards. These are what a renderer (the card page, the X extension) uses.

GET/api/calls/{shortId}#

Card metadata

Everything needed to render a card: title, picture, the current step's action and inputs, every stage, trust and commission.

Parameters

NameInMeaning
shortIdpathThe card id, the last part of its /b/ link.
stagequery, 0–99Which stage of a chain call to render. Omitted means 0.

Example

curl
curl "https://jebi-app.onrender.com/api/calls/psept68e?stage=1"
Response
{
  "icon": "https://jebi-app.onrender.com/card-icon.png",
  "title": "Wrap, then tip (batch kcsg)",
  "description": "Wrap a little ETH, then send a tip. Both on GIWA Sepolia.",
  "label": "Stage 2/2 — Send",
  "links": {
    "calls": [{
      "href": "https://jebi-app.onrender.com/api/calls/psept68e?stage=1&amount={amount}",
      "label": "Stage 2/2 — Send",
      "parameters": [{ "name": "amount", "label": "Amount (ETH)", "required": true }]
    }]
  },
  "creator": {
    "address": "0x0a1301df431cC9B855620149B865a3aC62d35A75",
    "dojang": { "verified": false, "source": null },
    "signed": false
  },
  "stages": [
    { "index": 0, "total": 2, "blockId": "giwa.weth.wrap", "blockName": "Wrap ETH into WETH",
      "projectName": "GIWA", "projectVerified": true, "chainId": 91342, "label": "Wrap ETH",
      "routed": false, "target": "0x4200000000000000000000000000000000000006",
      "onchain": { "registered": true, "status": "verified", "registrant": "0x3dac…a00d", "specHashMatches": true } },
    { "index": 1, "total": 2, "blockId": "jebi.eth.transfer", "blockName": "Send ETH", "…": "…" }
  ],
  "stage": 1,
  "chainId": 91342,
  "trust": { "dojang": { "verified": false, "source": null }, "blocksVerified": true },
  "commission": { "bps": 100, "router": "0x7E05B723abf92141474b7cF6d54c4447828c6f65" }
}
  • links.calls[0].href is what you POST, after replacing each {name} with the URL-encoded input.
  • creator.dojang is the creator's GIWA Dojang status, checked on chain; it is only reported for cards the creator signed.
  • stages[].onchain is present when the server reads JebiRegistry; commission only when the current stage goes through JebiRouter.
GET /api/calls/{shortId}

Errors

StatusWhen
400invalid stage
404not found (no card with that id)
500this card cannot be shown (its stored definition is broken)

Rate limit: 120 per minute per IP.

POST/api/calls/{shortId}#

Unsigned transaction

Builds the transaction for one stage of the card for a given account. Nothing is signed or sent by the server; the wallet does that.

Parameters

NameInMeaning
shortIdpathThe card id.
stage, {inputs}queryThe href from GET with every {name} filled in, e.g. ?stage=1&amount=0.001.

Body

FieldTypeMeaning
accountaddressThe wallet that will sign. Required.

Example

curl
curl -X POST "https://jebi-app.onrender.com/api/calls/ymk0q5t9?stage=1&amount=0.001" \
  -H 'Content-Type: application/json' \
  -d '{"account":"0x664bB672e306DC304ADAE5F0d0663844fEB74984"}'
Response
{
  "transaction": {
    "to": "0x7E05B723abf92141474b7cF6d54c4447828c6f65",
    "data": "0xe6874937000000000000000000000000a189fb3b…0064",
    "value": "1010000000000000",
    "chainId": 91342
  },
  "message": "Sending 0.001 ETH to 0xa189…838b. Includes a 1% JEBI commission: 0.00001 ETH on top of 0.001 ETH (0.00101 ETH total).",
  "commission": { "bps": 100, "router": "0x7E05…6f65", "fee": "10000000000000", "amount": "1000000000000000", "total": "1010000000000000" },
  "review": {
    "summary": "Call JEBI router → JEBI (0x7e05…6f65) sending 0.00101 ETH.",
    "approvals": [],
    "target": "0x7e05b723abf92141474b7cf6d54c4447828c6f65",
    "targetName": "JEBI router → JEBI",
    "value": "0.00101"
  }
}
  • value is wei as a decimal string; convert it to hex for eth_sendTransaction.
  • next: { href } is present when another stage follows; GET it after this transaction confirms.
  • A stage whose ERC-20 must be approved first lists the spender in review.approvals.

Errors

StatusWhen
400invalid account, invalid stage, or a bad input ("invalid amount: abc")
404not found
500this card cannot be built

Rate limit: 120 per minute per IP.

GET/api/cards#

List cards

Published cards, newest first, with how many verified runs each has had.

Parameters

NameInMeaning
qquerySearch in title and description (first 80 characters used).
creatorquery, addressOnly this creator's cards.
limitquery, 1–50Page size. Default 20; larger values are capped at 50.
cursorquerynextCursor from the previous page.

Example

curl
curl "https://jebi-app.onrender.com/api/cards?limit=1"
Response
{
  "items": [{
    "shortId": "hzsymyn8",
    "url": "https://jebi-app.onrender.com/b/hzsymyn8",
    "title": "Lacquer chain call",
    "description": "Two blocks, one card, an uploaded picture.",
    "icon": "https://jebi-app.onrender.com/api/images/ytw66rZRYGaRjwoq",
    "creator": "0x6698eeF92c642a7057935e3A5566a287132D4bB0",
    "template": "chain",
    "stages": [{ "index": 0, "total": 1, "blockId": "jebi.nft.mint", "blockName": "Mint GOURD NFT", "…": "…" }],
    "createdAt": "2026-11-29T15:24:12.036Z",
    "executions": 0
  }],
  "nextCursor": "hzsymyn8"
}
  • executions counts verified runs: one per confirmed transaction credited with points.
  • nextCursor is null on the last page.
GET /api/cards?limit=2

Errors

StatusWhen
400invalid limit, invalid creator, invalid cursor

Rate limit: 120 per minute per IP.

Publishing

Cards are published by their creator's signature. Publishing costs no gas and needs no account: the EIP-712 PublishCard signature is the authorisation.

POST/api/blinks#

Publish a card

Stores a card composed from registry blocks, signed by its creator, and returns its link.

Body

FieldTypeMeaning
template"chain"Only registry cards can be published.
creatoraddressThe signer. Earns the creator share and points.
titlestring ≤ 80Sent trimmed.
descriptionstring ≤ 280Sent trimmed.
iconURL, optionalA preset (/img/cards/<name>.jpg) or an upload (/api/images/<id>) of this site; leave out for the default.
paramsobject{ stages: [{ blockId, params?, label? }] }, 1–5 stages; params are the block's creator inputs as strings; label ≤ 40 characters.
issuedAtintegerUnix seconds when signed; accepted from 15 minutes before to 5 minutes after the server's clock.
signaturehexThe creator's PublishCard signature (see Typed data).

Example

curl
curl -X POST https://jebi-app.onrender.com/api/blinks -H 'Content-Type: application/json' -d '{
  "template": "chain",
  "creator": "0x664bB672e306DC304ADAE5F0d0663844fEB74984",
  "title": "Mint a GOURD",
  "description": "One free GOURD NFT on GIWA Sepolia.",
  "params": { "stages": [{ "blockId": "jebi.nft.mint" }] },
  "issuedAt": 1796000000,
  "signature": "0x…"
}'
Response
{
  "shortId": "k3v9x2qa",
  "url": "https://jebi-app.onrender.com/b/k3v9x2qa",
  "points": { "account": "0x664b…4984", "awarded": 0, "onFirstRun": 20 }
}
  • Publishing awards nothing by itself; the creator's bonus is credited on the card's first verified run by someone else.

Errors

StatusWhen
400bad creator, unknown field …, "stage 2: missing recipient (…)", picture not found, legacy templates
401the signature has expired: sign the card again / the signature is not the creator's
409this signed card was already published
413request body larger than the limit

Rate limit: 20 per minute per IP, and 10 per minute per wallet.

GET/api/blinks/{shortId}/sign#

Content of a legacy card

For a card published before signing was required: the exact stored content its creator has to sign.

Parameters

NameInMeaning
shortIdpathA legacy (unsigned) card.

Example

curl
curl https://jebi-app.onrender.com/api/blinks/nz7bk81t/sign
Response
{
  "content": {
    "template": "chain",
    "creator": "0x664bB672e306DC304ADAE5F0d0663844fEB74984",
    "title": "Mint (proof)",
    "description": "contracts v2 proof",
    "params": { "stages": [{ "blockId": "jebi.nft.mint", "params": {} }] }
  }
}

Errors

StatusWhen
404card not found
409this card is already signed
410this card cannot be signed

Rate limit: 120 per minute per IP.

POST/api/blinks/{shortId}/sign#

Sign a legacy card

The stored creator signs the card in place, with the same PublishCard signature as publishing. The content cannot change and the link stays the same.

Body

FieldTypeMeaning
issuedAtintegerUnix seconds, within the same window as publishing.
signaturehexPublishCard over the content from GET plus issuedAt.

Example

curl
curl -X POST https://jebi-app.onrender.com/api/blinks/nz7bk81t/sign -H 'Content-Type: application/json' \
  -d '{"issuedAt":1796000000,"signature":"0x…"}'
Response
{ "shortId": "nz7bk81t", "signed": true }

Errors

StatusWhen
400issuedAt must be a unix time in seconds / signature must be hex
401expired, or not the stored creator's signature
404card not found
409this card is already signed

Rate limit: 20 per minute per IP.

Registry

The blocks cards are composed from. Proposals for new blocks are not served by this API: they live on JebiRegistry and are read from the contract (propose, openProposals); see the block registry page.

GET/api/registry#

Registry blocks

Every registered block with its inputs, and its JebiRegistry record when the server reads the chain.

Parameters

NameInMeaning
qqueryWords that must all appear in the id, name, description, category or project.
categoryquerytransfer, mint, swap, bridge, stake, identity, attest or other.
projectqueryProject id, e.g. jebi, giwa, ammora.

Example

curl
curl "https://jebi-app.onrender.com/api/registry?project=jebi"
Response
{
  "blocks": [{
    "id": "jebi.nft.mint",
    "project": { "id": "jebi", "name": "JEBI", "verified": true },
    "name": "Mint GOURD NFT",
    "description": "Mint one free JEBI GOURD NFT to the executing wallet.",
    "category": "mint",
    "chainId": 91342,
    "target": "0xf91DF55310F03943E5aE8737D0F68Fe137819692",
    "abi": "function mint(address to) returns (uint256)",
    "args": [{ "source": "account", "name": "to" }],
    "routable": true,
    "sponsorable": true,
    "label": "Mint NFT",
    "message": "Minting 1 GOURD",
    "creatorParams": [],
    "userParams": [],
    "onchain": { "registered": true, "status": "verified", "registrant": "0x3dac…a00d", "specHashMatches": true }
  }, "…"],
  "categories": ["transfer", "mint", "swap", "bridge", "stake", "identity", "attest", "other"],
  "onchainRegistry": "0x4668a1dd990041Bc187ac50cb788B0882c3B7f12"
}
  • creatorParams are filled in when composing; userParams are asked of the person running the card.
GET /api/registry?project=jebi

Errors

StatusWhen
400unknown category …

Rate limit: 120 per minute per IP.

GET/api/registry/{blockId}#

One block, as hashed on chain

A block's definition with its canonical JSON and spec hash, so anyone can check it against the JebiRegistry entry.

Parameters

NameInMeaning
blockIdpathe.g. jebi.nft.mint

Example

curl
curl https://jebi-app.onrender.com/api/registry/jebi.nft.mint
Response
{
  "blockId": "0x94a998a1617a3da4a405a6e804345ed94852387259a692a625b4b6693b5a2c58",
  "specHash": "0x9d00679e0a4014dc18af565f5cec751ae02669ec4e0e3d5fb1febaadab0873c3",
  "canonical": "{\"abi\":\"function mint(address to) returns (uint256)\",\"args\":[…],…}",
  "block": { "id": "jebi.nft.mint", "…": "…" }
}
  • specHash = keccak256 of the UTF-8 canonical JSON (sorted keys, no whitespace).
GET /api/registry/jebi.nft.mint

Errors

StatusWhen
404unknown block

Rate limit: No per-request limit.

Points

MOI points: +10 to the wallet that runs a card, +5 to its creator for each run by someone else, +20 to the creator on the card's first such run. Daily limits apply per wallet and per card.

GET/api/points#

A wallet's points

Total MOI points of one wallet and its most recent point events.

Parameters

NameInMeaning
accountquery, addressRequired.
limitquery, 1–100Events to return. Default 20.

Example

curl
curl "https://jebi-app.onrender.com/api/points?account=0x664bB672e306DC304ADAE5F0d0663844fEB74984&limit=2"
Response
{
  "account": "0x664bb672e306dc304adae5f0d0663844feb74984",
  "total": 215,
  "eventCount": 16,
  "events": [
    { "reason": "card_create", "points": 20, "txHash": null, "shortId": "7k0q4qqn", "stage": null, "chainId": null, "createdAt": "2026-11-29T15:05:20.813Z" },
    { "reason": "creator_execute", "points": 5, "txHash": "0x49e9…914e", "shortId": "6dnbhgg3", "stage": 0, "chainId": 91342, "createdAt": "2026-11-29T15:05:10.592Z" }
  ]
}
GET /api/points?account=0x664bB672e306DC304ADAE5F0d0663844fEB74984&limit=2

Errors

StatusWhen
400invalid account / invalid limit

Rate limit: 120 per minute per IP.

GET/api/points/leaderboard#

Leaderboard

Wallets ranked by total MOI points.

Parameters

NameInMeaning
limitquery, 1–100Default 20.

Example

curl
curl "https://jebi-app.onrender.com/api/points/leaderboard?limit=3"
Response
{
  "leaderboard": [
    { "rank": 1, "account": "0x0a1301df431cc9b855620149b865a3ac62d35a75", "points": 335 },
    { "rank": 2, "account": "0x664bb672e306dc304adae5f0d0663844feb74984", "points": 215 }
  ]
}
GET /api/points/leaderboard?limit=5

Errors

StatusWhen
400invalid limit

Rate limit: 120 per minute per IP.

POST/api/points/claim#

Claim points for a run

Verifies a confirmed transaction of the card on chain and credits the runner and the creator. One transaction credits one card, once.

Body

FieldTypeMeaning
shortIdstringThe card that was run.
txHashhex 32 bytesThe confirmed transaction.
stageinteger, optionalWhich stage it ran.
stagesinteger[], optionalA batched run (EIP-5792): every stage one transaction ran; each is credited only with its own evidence in the receipt.

Example

curl
curl -X POST https://jebi-app.onrender.com/api/points/claim -H 'Content-Type: application/json' \
  -d '{"shortId":"6dnbhgg3","txHash":"0x49e927d36a088706d17266293ad80f3a8cc301c640750f198c3c807bd770914e"}'
Response
{
  "txHash": "0x49e927d36a088706d17266293ad80f3a8cc301c640750f198c3c807bd770914e",
  "alreadyClaimed": true,
  "credited": [
    { "account": "0x0a1301df431cc9b855620149b865a3ac62d35a75", "reason": "execute", "points": 10 },
    { "account": "0x664bb672e306dc304adae5f0d0663844feb74984", "reason": "creator_execute", "points": 5 }
  ]
}
  • A first claim also returns executor, stage, chainId, routed and capped (limits that reduced the credit). A repeat returns alreadyClaimed: true and what was credited.

Errors

StatusWhen
400invalid body, invalid shortId, invalid txHash, invalid stage(s); transaction reverted or does not match this card
404not found
409already credited to another card; receipt not available yet (retry shortly)
502the chain could not be read

Rate limit: 20 per minute per IP.

Sponsored gas

JEBI can pay the gas of some steps (blocks marked sponsorable, such as the GOURD mint) for Dojang-verified wallets, within daily limits. Two routes exist: the JEBI relayer sends a call the user signed, or a wallet uses the ERC-7677 paymaster. Each is switched on by the server's configuration; GET /api/health says which are on.

GET/api/sponsor/eligibility#

Sponsorship eligibility

Whether the relayer would pay the gas for this wallet on this step, and the call it would sign for.

Relayer sponsorship is on when the server has a relayer key. When it is off the answer is { eligible: false, reason: "sponsorship is not enabled" }.

Parameters

NameInMeaning
accountquery, addressThe wallet.
shortIdqueryThe card.
stagequeryDefault 0.
{inputs}queryThe step's inputs, as for POST /api/calls.

Example

curl
curl "https://jebi-app.onrender.com/api/sponsor/eligibility?account=0x664bB672e306DC304ADAE5F0d0663844fEB74984&shortId=nz7bk81t&stage=0"
Response
{
  "eligible": true,
  "remaining": 3,
  "call": {
    "target": "0xf91df55310f03943e5ae8737d0f68fe137819692",
    "dataHash": "0x…",
    "salt": "0x…"
  }
}
  • When not eligible: { eligible: false, reason, remaining } with a reason written to be shown, e.g. "Sponsored gas is for DOJANG-verified wallets."
  • call.salt is this deployment's EIP-712 domain salt for SponsoredCall.
GET /api/sponsor/eligibility?account=0x664bB672e306DC304ADAE5F0d0663844fEB74984&shortId={shortId}&stage=0

Errors

StatusWhen
400invalid stage, invalid params
404not found

Rate limit: 120 per minute per IP, and 10 per minute per wallet.

POST/api/paymaster#

ERC-7677 paymaster

JSON-RPC paymaster service for JEBI's verifying paymaster on EntryPoint v0.8, for wallets that support EIP-5792 paymasterService.

Off (404 { error: "paymaster is not enabled" }) unless the paymaster address and signer key are configured.

Body

FieldTypeMeaning
methodstringpm_getPaymasterStubData or pm_getPaymasterData.
paramsarray[userOp, entryPoint, chainId, context] with context { card: "<shortId>", stage: <n> }.

Example

curl
curl -X POST https://jebi-app.onrender.com/api/paymaster -H 'Content-Type: application/json' -d '{
  "jsonrpc": "2.0", "id": 1, "method": "pm_getPaymasterStubData",
  "params": [{ "sender": "0x…", "nonce": "0x0", "callData": "0x…", "…": "…" },
             "0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108", "0x164ce",
             { "card": "nz7bk81t", "stage": 0 }]
}'
Response
{
  "jsonrpc": "2.0", "id": 1,
  "result": {
    "paymaster": "0x3bbd9429295340fE252F9ceAD9aAFa4763da144a",
    "paymasterData": "0x…",
    "paymasterVerificationGasLimit": "0x…",
    "paymasterPostOpGasLimit": "0x…"
  }
}
  • The sender must be an EIP-7702 account delegated to Simple7702Account, and callData exactly execute() of a sponsorable block for that card step.
  • Refusals are JSON-RPC errors: -32000 "not sponsored: …", -32602 invalid params, -32601 unknown method.

Errors

StatusWhen
200JSON-RPC error object (see above)
404paymaster is not enabled
429rate limited (-32005)

Rate limit: 20 per minute per IP, and 10 per minute per sender. Daily per-wallet and global caps on signed operations.

POST/api/bundler#

Private bundler

A restricted JSON-RPC bundler that relays only operations this server's paymaster signed for a card step.

Off (404 { error: "bundler is not enabled" }) unless the paymaster and the relayer are both configured and the bundler is not turned off.

Body

FieldTypeMeaning
methodstringeth_chainId, eth_supportedEntryPoints, eth_estimateUserOperationGas, eth_sendUserOperation, eth_getUserOperationReceipt.
paramsarrayAs in ERC-4337.

Example

curl
curl -X POST https://jebi-app.onrender.com/api/bundler -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_chainId","params":[]}'
Response
{ "jsonrpc": "2.0", "id": 1, "result": "0x164ce" }

Errors

StatusWhen
200JSON-RPC error object, e.g. -32602 "this private bundler only relays operations sponsored by the JEBI paymaster"
404bundler is not enabled
429rate limited (-32005)

Rate limit: eth_chainId, eth_supportedEntryPoints and receipts: 120 per minute per IP; estimates and sends: 20 per minute per IP.

Images

Card pictures: the five presets always work; creators may upload their own. Uploads are signed by a wallet image session, not by an account.

GET/api/images/config#

Upload limits

Whether uploads are on, and how many a wallet has left today (UTC).

Parameters

NameInMeaning
addressquery, optionalThe wallet whose remaining uploads to count.

Example

curl
curl "https://jebi-app.onrender.com/api/images/config?address=0x664bB672e306DC304ADAE5F0d0663844fEB74984"
Response
{ "uploads": true, "perWallet": 10, "remaining": 10, "globalRemaining": 494 }
GET /api/images/config?address=0x664bB672e306DC304ADAE5F0d0663844fEB74984

Errors

StatusWhen
503{ uploads: false, …, error: "unavailable" } when the count cannot be read

Rate limit: No per-request limit.

POST/api/images#

Upload a picture

Stores a card picture. The body is the raw image bytes; the type is read from the bytes, not from Content-Type.

Same origin only (no CORS). On unless uploads are turned off (404 disabled).

Body

FieldTypeMeaning
(body)bytesJPEG, PNG or WebP, at most 400 KB; each side 64–4096 px, aspect ratio at most 4:1; no animation, no embedded markup.
X-Jebi-Image-Sessionheaderbase64url(JSON { message, signature }): the wallet's image session (see Typed data).

Example

curl
curl -X POST https://jebi-app.onrender.com/api/images \
  -H "X-Jebi-Image-Session: $SESSION" \
  --data-binary @picture.webp
Response
{
  "id": "L-_7El9sgyFAmgHj",
  "url": "https://jebi-app.onrender.com/api/images/L-_7El9sgyFAmgHj",
  "mime": "image/webp", "size": 19614, "width": 1024, "height": 768,
  "perWallet": 10, "remaining": 9
}
  • Errors carry { error, code } with code session, disabled, too_large, invalid, wallet_cap, global_cap or cooldown; 429s also send Retry-After.

Errors

StatusWhen
401session: "Sign the image session with your wallet first."
404disabled
413too_large
415invalid (not an accepted image)
429wallet_cap, global_cap, cooldown

Rate limit: Uploads per wallet and overall per UTC day, and a short cool-down between two uploads from one wallet (see GET /api/images/config).

GET/api/images/{id}#

Get a picture

The stored picture, cacheable forever, with open CORS. A picture taken down by an operator answers 410 and cards fall back to their call-type photograph.

Parameters

NameInMeaning
idpath16 characters, from the upload.

Example

curl
curl -I https://jebi-app.onrender.com/api/images/L-_7El9sgyFAmgHj
Response
HTTP/1.1 200 OK
content-type: image/webp
content-length: 19614
cache-control: public, max-age=31536000, immutable
etag: "L-_7El9sgyFAmgHj"
access-control-allow-origin: *
content-security-policy: default-src 'none'

Errors

StatusWhen
304If-None-Match matches
404Not found.
410This picture was removed.

Rate limit: No per-request limit.

Service

For uptime monitors and operators. Taking a picture down (DELETE /api/images/{id}) needs an operator token and is not part of the public API.

GET/api/health#

Health

Which features are on, configuration problems (names only), and coarse bands for the relayer and paymaster balances. Never amounts or secrets.

Example

curl
curl https://jebi-app.onrender.com/api/health
Response
{
  "ok": true,
  "features": { "router": true, "registry": true, "sponsorship": false, "paymaster": false, "bundler": false, "rateLimit": true, "rpcFallback": false },
  "problems": [],
  "database": "ok",
  "relayer": { "balance": "off", "queue": "off", "pending": null, "oldestPendingSeconds": null },
  "paymaster": { "deposit": "off" },
  "sponsorship": "off"
}
  • Bands: ok, low, paused, unknown, off. Cached for 15 seconds.
GET /api/health

Errors

StatusWhen
429too many requests

Rate limit: 30 requests per minute per IP.

Typed data

What a client asks the wallet to sign. None of these is a transaction and none costs gas.

PublishCard (EIP-712)

Signed by the creator to publish a card (POST /api/blinks) or to sign a legacy card. issuedAt must be within 15 minutes before and 5minutes after the server's clock. Smart accounts are checked on chain (ERC-1271).

eth_signTypedData_v4
{
  "domain": {
    "name": "JEBI cards",
    "version": "1",
    "chainId": 91342
  },
  "primaryType": "PublishCard",
  "types": {
    "PublishCard": [
      {
        "name": "notice",
        "type": "string"
      },
      {
        "name": "title",
        "type": "string"
      },
      {
        "name": "creator",
        "type": "address"
      },
      {
        "name": "contentHash",
        "type": "bytes32"
      },
      {
        "name": "issuedAt",
        "type": "uint256"
      }
    ]
  },
  "message": {
    "notice": "Sign to publish. No gas.",
    "title": "<title>",
    "creator": "<creator, checksummed>",
    "contentHash": "<keccak256 of the canonical content>",
    "issuedAt": "<unix seconds>"
  }
}
contentHash
contentHash = keccak256(utf8(canonicalJson({
  template, creator: creator.toLowerCase(), title, description,
  icon: icon ?? null, params, issuedAt
})))
// canonicalJson: keys sorted, no whitespace, undefined fields dropped

SponsoredCall (EIP-712)

Signed by the runner for POST /api/sponsor. The domain is bound to this deployment by its salt, which the eligibility answer returns; dataHash is keccak256 of the calldata the relayer will send.

eth_signTypedData_v4
{
  "domain": {
    "name": "JEBI",
    "version": "2",
    "chainId": 91342,
    "verifyingContract": "0x7E05B723abf92141474b7cF6d54c4447828c6f65",
    "salt": "<call.salt from /api/sponsor/eligibility>"
  },
  "primaryType": "SponsoredCall",
  "types": {
    "SponsoredCall": [
      {
        "name": "card",
        "type": "string"
      },
      {
        "name": "stage",
        "type": "uint256"
      },
      {
        "name": "account",
        "type": "address"
      },
      {
        "name": "target",
        "type": "address"
      },
      {
        "name": "dataHash",
        "type": "bytes32"
      },
      {
        "name": "nonce",
        "type": "uint256"
      },
      {
        "name": "deadline",
        "type": "uint256"
      }
    ]
  },
  "message": {
    "card": "<shortId>",
    "stage": 0,
    "account": "<signer>",
    "target": "<call.target>",
    "dataHash": "<call.dataHash>",
    "nonce": "<random uint64>",
    "deadline": "<unix seconds>"
  }
}

Image session (EIP-191)

A personal_sign over this exact text lets a wallet upload pictures for 24 hours. Send it with each upload as X-Jebi-Image-Session: base64url(JSON { message, signature }).

message
JEBI image session

Sign to let https://jebi-app.onrender.com upload card pictures from this wallet for 24 hours. This is not a transaction and costs nothing.

Origin: https://jebi-app.onrender.com
Wallet: <checksummed address>
Expires: <ISO-8601 UTC, at most 24 hours ahead>
Nonce: <32 hex characters>

Connect a wallet

No wallet found in this browser. JEBI cards are signed with a browser wallet: install one, then come back to this page.

One-confirmation chain calls need a wallet with smart-account batching. Wallets in Docs

Add GIWA Sepolia

Cards run on GIWA Sepolia. One click adds the network to your wallet and switches to it.

Network name
GIWA Sepolia
RPC URL
https://sepolia-rpc.giwa.io
Chain ID
91342 (0x164ce)
Currency
ETH
Explorer
https://sepolia-explorer.giwa.io

Need test ETH? GIWA faucet or Lambda256 faucet.