Skip to content

EpixFrame API reference

The EpixFrame API is the set of commands a xite page can send to EpixNet: read and write files, query the database, sign and publish content, work with the visitor's xID identity, show dialogs, and more. This page explains how commands travel, how to call them, what answers and errors look like, which messages arrive without being asked for, and how permissions limit the command set. It ends with an index of every command. It is written for xite developers. A xite is a site published on EpixNet; see the glossary for other terms.

If you have not built a xite yet, start with the quickstart and Xite anatomy, then come back here when you need the details of a command.

Two layers of commands

Your page never talks to the node directly. It runs in an iframe inside the wrapper, the trusted page the node serves around every xite. The page posts messages to the wrapper with postMessage, and the wrapper decides what happens next.

Layer Handled by Examples Reference
Wrapper commands JavaScript in the wrapper page, inside the browser. Nothing is sent to the node, except where a command says so. wrapperNotification, wrapperConfirm, wrapperPushState, wrapperGetLocalStorage Wrapper commands
Node commands The EpixNet node. The wrapper forwards the message unchanged over its WebSocket and relays the answer back. siteInfo, fileGet, dbQuery, sitePublish Every other page of this reference

Three consequences are worth keeping in mind:

  • One connection is shared. The wrapper and your page use the same WebSocket to the node. Event subscriptions the wrapper makes on that connection also deliver events to your page.
  • The connection is bound to one xite. Node commands act on the xite the wrapper was opened for. A few commands accept another address, and say what permission that needs.
  • A page cannot bypass the wrapper. The node refuses WebSocket connections opened from xite content, and the secret that gives the wrapper its authority is never given to the page. See The wrapper sandbox.

Calling a command

The examples in this reference use EpixFrame, the official JavaScript library, loaded from a local copy in the xite with a script tag. That build defines window.epixFrame, a shared instance that is created the first time you read it. If you import the ES module build, its epixFrame export is the same shared instance. (In EpixFrame 1.0.x the module export is a function: call epixFrame() to get the instance.)

index.html
<script src="js/lib/epixframe.min.js"></script>
<script src="js/app.js"></script>

Wait for the openWebsocket event before sending node commands. It fires when the wrapper's connection to the node is ready, and again after every reconnect.

js/app.js
epixFrame.on("openWebsocket", async function () {
  var info = await epixFrame.cmd("siteInfo");
  document.querySelector("h1").textContent = info.content.title;
});

Promises and callbacks

cmd(name, params, callback) has two styles, and they treat errors differently.

Leave out the callback and cmd returns a Promise. A result that carries an error field rejects it.

try {
  var rows = await epixFrame.cmd("dbQuery", ["SELECT * FROM topic LIMIT 10"]);
  render(rows);
} catch (result) {
  epixFrame.cmd("wrapperNotification", ["error", result.error]);
}

Pass a function as the last argument. It receives the result as is, so you check for the error yourself.

epixFrame.cmd("dbQuery", ["SELECT * FROM topic LIMIT 10"], function (rows) {
  if (rows && rows.error) {
    epixFrame.cmd("wrapperNotification", ["error", rows.error]);
    return;
  }
  render(rows);
});

Some commands never answer

Several wrapper commands send no response (for example wrapperNotification and wrapperSetTitle), and a dialog the visitor dismisses never answers either. A Promise for such a command stays pending forever. Do not await a command that the reference marks as "no response", and do not make your page's progress depend on a dialog being answered. (The EpixFrame 1.1.0 helpers for these commands, such as notify() and setTitle(), resolve at once. cmd does not.)

Convenience methods

EpixFrame wraps the most common commands in named methods, for example epixFrame.siteInfo(), epixFrame.fileGet(path), epixFrame.dbQuery(sql, params) and epixFrame.notify(type, message). Each command in this reference names its helper when one exists. Every helper returns a Promise and sends exactly one command, so cmd and the helpers can be mixed freely.

EpixFrame 1.0.x sends some parameters in a different shape than the node reads (for example for wrapperSetLocalStorage, wrapperPrompt, wrapperPermissionAdd and dirList). 1.1.0 matches the node; see Upgrading from 1.0.x. The full list of helpers is in the EpixFrame library guide.

Parameter forms

params can be an array, an object, a single string or a number, depending on the command.

  • Wrapper commands read their parameters exactly as documented, most often as an array.
  • Node commands usually accept both a positional array and an object with named keys. ["content.json", true] and {"inner_path": "content.json", "required": true} are typically equivalent. The parameter tables in this reference give the name of each parameter and, where the handler reads one, its position in the array form.
  • Some options are read only from the object form. The reference says so in the parameter's description.
  • A bare value (a string or a number, not an array or object) stands for the first parameter. For example, cmd("identitySelect", "epix1...") sets auth_address and cmd("vrfGetBeacon", 123456) sets the height. Every other parameter takes its default. On EpixNet v0.6.8 a bare string is read as every string parameter of the command at once (so ecdsaSign uses the data as the key, and optionalFileDelete reads the path as another xite's address), and identitySelect and vrfGetBeacon do not read a bare value at all. Send an array or an object if your xite must work there.

When you call cmd with no parameters, EpixFrame sends an empty object.

Messages on the wire

You do not need this section to use EpixFrame, but it helps when you debug with the browser console or write your own transport.

Request, posted by the page to window.parent:

{ "cmd": "fileGet", "params": { "inner_path": "data/data.json" }, "id": 7, "wrapper_nonce": "<nonce from the page URL>" }
Field Meaning
cmd The command name. Names are case sensitive.
params The parameters, in the form the command expects.
id A number you choose, counting up from 1. The answer refers to it. Numbers from 1000000 up are reserved for the wrapper's own commands, and the wrapper does not forward a page message that uses one.
wrapper_nonce The value of the wrapper_nonce parameter in the page URL. The wrapper requires it only when the xite sets postmessage_nonce_security in content.json. EpixFrame always sends it.

Response, posted back to the page:

{ "cmd": "response", "to": 7, "result": "{\"posts\": []}" }

to repeats the request id. result is whatever the command returns: a string such as "ok", a number, an object, an array or null.

Error, which is an ordinary response whose result is an object with an error string:

{ "cmd": "response", "to": 7, "result": { "error": "You don't have permission to run siteList" } }

Rules that follow from this shape:

  • Errors are results. There is no separate error channel. Some commands also return {"error": "..."} as a normal outcome, for example when a name is not found. To your code both look the same.
  • An unknown command returns null. The node logs the name and answers null instead of failing, so a misspelled command looks like an empty result. Check the spelling first when a command "returns nothing".
  • A command of a disabled plugin returns null in the same way. serverInfo().plugins lists the plugins that are enabled.
  • Each command runs on its own task. A slow command, such as one waiting for a file or for the visitor to answer a dialog, does not hold up the commands you send after it. Answers can arrive in a different order than the requests.

Events pushed to the page

Besides answers, your page receives messages it did not ask for. EpixFrame delivers the connection messages through onOpenWebsocket() and onCloseWebsocket() (events openWebsocket and closeWebsocket), and everything else through onRequest(cmd, message) (event request), where the payload is message.params.

Message Sent by Meaning Details
wrapperOpenedWebsocket Wrapper The connection to the node is open. Sent once per page load and again after a reconnect. Messages from the wrapper
wrapperClosedWebsocket Wrapper The connection to the node was lost. Messages from the wrapper
wrapperPopState Wrapper The visitor used the browser's back or forward button. Messages from the wrapper
webNotificationClick, webNotificationClose Wrapper The visitor clicked or closed a notification raised with wrapperWebNotification. wrapperWebNotification
setSiteInfo Node Something about a xite changed: a file arrived, peers were found, content was signed, the identity changed. Events pushed to the page
setServerInfo Node Node state changed. Events pushed to the page
setAnnouncerInfo Node Tracker announce progress changed. Needs the announcerChanged channel. Events pushed to the page
setServerErrors Node The node logged an error. Meant for the Dashboard; other xites can ignore it. Events pushed to the page
epixFrame.on("request", function (cmd, message) {
  if (cmd === "setSiteInfo" && message.params.event && message.params.event[0] === "file_done") {
    reloadData(message.params.event[1]);
  }
});

Other commands push their own messages once you use them, such as channelEvent after channelSubscribe (Messaging commands) and logLineAdd after consoleLogStream (Admin commands). The wrapper forwards any pushed message it does not handle itself to your page.

Some pushed messages are consumed by the wrapper and never reach the page: node notifications, progress toasts, confirmation and prompt dialogs raised by the node, and redirects. The node accepts an answer to one of its dialogs only from the wrapper, so a page cannot confirm a dialog on the visitor's behalf.

Permissions in brief

A xite starts with no permissions. What a command needs is stated on its Permission line.

Permission line Meaning
none Any page can call it. Node commands act on the page's own xite.
none, with a condition No permission to request, but something must be true: the visitor confirms a dialog, an xID identity is selected, or the node holds the xite's key.
ADMIN Node administration. Refused with You don't have permission to run <command> unless the visitor granted the xite ADMIN. The Dashboard is the xite that normally holds it.
Merger:<type>, CHANNELS, Channels:<app>, LOCAL_PROFILE A specific permission the visitor grants to the xite.
wrapper only Sent by the wrapper itself after the visitor acted in a wrapper dialog (or by the node operator's local admin socket). A page cannot run it, with or without ADMIN.

How a xite gets a permission:

  1. The page asks with wrapperPermissionAdd (or corsPermission for another xite's files).
  2. The wrapper shows a prompt that the page cannot script. Only a real click on Grant sends the grant to the node, from the wrapper's own command range.
  3. The node stores the permission, and it appears in siteInfo().settings.permissions.

On a public gateway (a node running in restricted mode, visible as serverInfo().ui_restrict) the rules are tighter: no permission can be granted, commands that write or sign need the gateway itself to own the xite, and only a read-only subset of the ADMIN commands answers.

The full model, including what the sandbox prevents and how origins work, is in The wrapper sandbox.

Naming

EpixNet calls a published site a xite, and these docs do too. The API keeps older names so existing xites continue to work:

  • Command names use site, as in siteInfo, sitePublish and mergerSiteAdd. So do pushed messages (setSiteInfo) and the siteChanged event channel.
  • Identity commands and fields use cert, as in certXid and cert_user_id. They refer to the visitor's xID identity. Provider-issued certificates no longer exist.
  • A few commands exist under two spellings (optionalHelp and OptionalHelp, for example). Both are listed in the index.

Use the names exactly as written in this reference.

Reference pages

  • Wrapper commands


    Notifications, dialogs, title, history, storage, permission requests and other commands the wrapper handles in the browser.

  • Xite and server commands


    siteInfo, serverInfo, updating, cloning, signing, publishing, and the events the node pushes.

  • File commands


    Reading, writing and listing files, optional files and big files.

  • Database commands


    Querying the SQL database the node builds from the xite's JSON files.

  • Identity and cryptography commands


    xID identities, name resolution, per-user settings, encryption, signatures and the chain randomness beacon.

  • Merger, feed and search commands


    Merger xites, newsfeed follows, derived feeds and notifications.

  • Messaging commands


    Channels for private messaging, and local profiles for public posts and private groups.

  • Admin commands


    Commands that need ADMIN or wrapper authority: node configuration, xite management, logs and more.

Command index

Every command, in alphabetical order. The Permission column is a summary; the linked entry has the exact rule.

Label Meaning
None No permission needed.
None (user confirms) The wrapper asks the visitor before anything happens.
None (signing key needed), None (identity needed), None (owner or valid signer) No permission to request, but the node needs a key or a selected xID identity to do the work.
None (browser permission) The browser asks the visitor for its own notification permission.
None for the bound xite Free for the page's own xite. Naming another xite needs ADMIN or the permission given in the entry.
ADMIN and other names in code style The visitor must have granted the xite that permission.
Wrapper only A page cannot run it.
Command Purpose Permission Reference
aesDecrypt Decrypt AES ciphertext. None Identity
aesEncrypt Encrypt text with AES. None Identity
announcerInfo Tracker announce statistics for the bound xite. None Xite
announcerStats Per-tracker announce status for the whole node. ADMIN Admin
as Run a command in the context of another xite. None for the bound xite Admin
avatarCacheGet Read the node's avatar thumbnail cache. Wrapper only Admin
avatarCachePut Store a processed avatar thumbnail. Wrapper only Admin
badCert Mark a certificate signature as bad. None Identity
bigfileUploadInit Start a big file upload and get the upload URL. None (owner or valid signer) Files
certAdd Deprecated; always returns an error. None Identity
certList Legacy: list identities as certificate rows. ADMIN Admin
certSelect Legacy entry point to the identity picker. None Identity
certSet Legacy: browse anonymously or inherit the default identity. ADMIN Admin
certXid Run the xID identity picker or select a named identity. None Identity
channelContacts List the peers the identity has threads with. CHANNELS or Channels:<app> Messaging
channelConversation Read the messages of one conversation. CHANNELS or Channels:<app> Messaging
channelDeleteLocal Delete a conversation from this node only. CHANNELS or Channels:<app> Messaging
channelIdentitySetEnabled Turn channels on or off for an identity. ADMIN Messaging
channelIdentitySetup Run the channel setup job for an identity. CHANNELS or Channels:<app> Messaging
channelIdentityStatus Read the channel status of the identity in scope. CHANNELS or Channels:<app> Messaging
channelJoin Subscribe the connection to pushed event channels. None Xite
channelJoinAllsite Subscribe to event channels for every xite. ADMIN Admin
channelKeyBundlePublish Build and publish the identity's channel key bundle. CHANNELS or Channels:<app> Messaging
channelKeyLookup Check whether xIDs have a usable published key bundle. CHANNELS or Channels:<app> Messaging
channelMarkRead Mark a conversation read or unread. CHANNELS or Channels:<app> Messaging
channelMigrateLegacy Import pre-channel Epix Mail messages. CHANNELS or Channels:<app> Messaging
channelRlnStatus Read the anonymous rate-limit status. CHANNELS or Channels:<app> Messaging
channelSearch Search the identity's private message index. CHANNELS or Channels:<app> Messaging
channelSend Seal and queue a private message. CHANNELS or Channels:<app> Messaging
channelSent List the identity's own sent messages. CHANNELS or Channels:<app> Messaging
channelSessionInfo Read the channel session state for the calling xite. CHANNELS or Channels:<app> Messaging
channelSetConvState Star or archive a conversation. CHANNELS or Channels:<app> Messaging
channelSubscribe Receive channelEvent pushes for the acting identity. CHANNELS or Channels:<app> Messaging
channelThreads List conversation threads. CHANNELS or Channels:<app> Messaging
chartDbQuery Query the node's network statistics database. ADMIN Admin
chartGetPeerLocations Geolocated peer positions for the world map. ADMIN Admin
configList List the editable node configuration keys. ADMIN Admin
configSet Change one node configuration value. ADMIN Admin
consoleLogRead Read recent formatted log lines. ADMIN Admin
consoleLogStream Open a live log stream. ADMIN Admin
consoleLogStreamRemove Close a live log stream. ADMIN Admin
corsPermission Ask the user for read access to another xite's files. None (user confirms) Files
dbQuery Run a read query against the xite's database. None Database
dbRebuild Rebuild a xite's database from its files. ADMIN Admin
dbReload Reload a xite's database schema. ADMIN Admin
dirList List one directory, optionally with size and type. None Files
eccPrivToPub Convert a private key to its public key. None Identity
eccPubToAddr Convert a public key to its epix1 address. None Identity
ecdsaSign Sign data with a given key or the xite identity key. None Identity
ecdsaVerify Verify a signature against an address. None Identity
eciesDecrypt Decrypt ECIES ciphertext with the user's per-xite key. None Identity
eciesEncrypt Encrypt text to a public key (ECIES). None Identity
evxGrant Record EVX consent or mint a run-once token. Wrapper only Admin
evxInspect Read the xite's EVX declaration and grant state without running anything. None Xite
evxJobPause Pause an EVX scheduled job. Wrapper only Admin
evxJobResume Resume an EVX scheduled job. Wrapper only Admin
evxRecoverWorkspace Reconcile interrupted EVX workspace writes. Wrapper only Admin
evxRequest Ask the user to enable EVX programs for the xite, or to run one once. None (user confirms) Wrapper
evxRevoke Disable a xite's EVX grant. Wrapper only Admin
evxRunJob Run an EVX job's current occurrence now. Wrapper only Admin
evxRunOnce Run one EVX program now. Wrapper only Admin
evxSetLimits Adjust the limits of an EVX grant. Wrapper only Admin
evxStatus Read the xite's EVX grant, recent runs, jobs and scheduler state. None Xite
feedFollow Save the xite's newsfeed queries. None Merger and feeds
feedGalleryRollup Read comment and reaction counts for many items at once. None Merger and feeds
feedItemQuery Read the records and reaction counts attached to a feed target. None Merger and feeds
feedListFollow Read the xite's saved newsfeed queries. None Merger and feeds
feedQuery Run every followed xite's feed queries. ADMIN Admin
feedSearch Search the feeds of every served xite. ADMIN Admin
feedSegmentSearch Search a derived feed's sealed segments. None Merger and feeds
fileDelete Delete a file. None Files
fileGet Read a file as text or base64. None Files
fileList Recursively list the files under a directory. None Files
fileNeed Download a required or optional file on demand. None Files
fileQuery Query rows from JSON files in a directory. None Files
fileRules Read the signing and size rules that apply to a path. None Files
fileTransferStats Live per-peer transfer statistics for a file being fetched. None Files
fileWrite Write a file from base64 content. None Files
fileWriteSign Atomically replace a file and sign its content.json. None (signing key needed) Files
FilterIncludeList Compatibility stub; always returns an empty array. None Identity
filterIncludeList Alias of FilterIncludeList. None Identity
getTrackers List the trackers the node announces to. None Xite
identityDiscover Find xID names the chain links to the user's addresses. None Identity
identityLinkComplete Record an identity once the chain shows it linked. None Identity
identityLinkStart Begin linking a new identity address to an xID name. None Identity
identityList List the linked xID identities and this xite's selection. None Identity
identityRemove Forget a linked identity. ADMIN Admin
identitySelect Choose the identity the xite acts as. None Identity
identitySetDefault Set the node-wide default identity. ADMIN Admin
innerLoaded Legacy name of wrapperInnerLoaded. None Wrapper
innerLoadState Internal: the node's waiting placeholder reports that the xite is still downloading. None Wrapper
innerReady Handshake that tells the wrapper the page's frame library is listening. None Wrapper
localProfileCreate Create or update the local profile. LOCAL_PROFILE Messaging
localProfileGroupCreate Create a private group. LOCAL_PROFILE Messaging
localProfileInfo Read the state of the xite's local profile. LOCAL_PROFILE Messaging
localProfileLinkXid Link the local profile to the selected xID identity. LOCAL_PROFILE Messaging
localProfileList List verified profiles, messages and groups. LOCAL_PROFILE Messaging
localProfileOpen Decrypt and verify one sealed envelope. LOCAL_PROFILE Messaging
localProfilePublicPost Publish a signed public message. LOCAL_PROFILE Messaging
localProfileSeal Encrypt and publish a private group message. LOCAL_PROFILE Messaging
localProfileVerify Verify one signed record. LOCAL_PROFILE Messaging
mergerSiteAdd Add xites to the node and merge them into this merger. Merger:<type> Merger and feeds
mergerSiteDelete Remove merged xites of the merger's own types from the node. Merger:<type> Merger and feeds
mergerSiteList List the xites merged into this merger xite. Merger:<type> Merger and feeds
muteAdd Add an author to the node-wide mute list. None (user confirms, unless ADMIN) Identity
muteList Read the node-wide list of muted authors. ADMIN Admin
muteRemove Remove an author from the node-wide mute list. None (user confirms, unless ADMIN) Identity
networkRetry Retry work that is waiting on the network. None for the bound xite Admin
notificationCount Aggregate unread notification total. ADMIN Admin
notificationDismiss Mark a notification of any xite as seen. ADMIN Admin
notificationDismissSelf Mark one of the xite's own notifications as seen. None Merger and feeds
notificationList Read the xite's saved notification queries. None Merger and feeds
notificationMute Mute or unmute notifications. ADMIN Admin
notificationMuteStatus Read the notification mute state. ADMIN Admin
notificationQuery Notification counts across subscribed xites. ADMIN Admin
notificationSubscribe Save the xite's notification queries. None Merger and feeds
optionalFileDelete Delete a downloaded optional file from local storage. None for the bound xite Files
optionalFileInfo Read the record of one optional file. None Files
optionalFileList List optional files with filters and ordering. None for the bound xite Files
optionalFilePin Pin optional files so cleanup never removes them. None for the bound xite Files
optionalFileUnpin Remove the pin from optional files. None for the bound xite Files
OptionalHelp Alias of optionalHelp. None for the bound xite Files
optionalHelp Help distribute the optional files under a directory. None for the bound xite Files
OptionalHelpAll Alias of optionalHelpAll. None for the bound xite Files
optionalHelpAll Turn automatic download of all new optional files on or off. None for the bound xite Files
OptionalHelpList Alias of optionalHelpList. None for the bound xite Files
optionalHelpList List the directories being helped. None for the bound xite Files
OptionalHelpRemove Alias of optionalHelpRemove. None for the bound xite Files
optionalHelpRemove Stop helping distribute a directory. None for the bound xite Files
optionalLimitSet Set the node-wide optional file storage cap. ADMIN Admin
optionalLimitStats Read node-wide optional file storage usage. ADMIN Admin
peerAdd Add a peer to a xite manually. ADMIN Admin
permissionAdd Grant a permission to the bound xite. Wrapper only Admin
permissionDetails Get the description shown in the permission prompt. ADMIN Admin
permissionRemove Revoke a permission from the bound xite. ADMIN Admin
ping Liveness check; returns "Pong!". None Xite
pluginConfigSet Enable or disable a plugin. ADMIN Admin
pluginList List plugins and their state. ADMIN Admin
recordSign Sign one merge-file record with the user's identity key. None (identity needed) Identity
resolveStatus Progress of an on-demand .epix name lookup. None Xite
response Reply frame; from a page it only answers the wrapper's ping probe. None Wrapper
serverErrors Read recent node log lines. ADMIN Admin
serverGetWrapperNonce Issue a single-use wrapper nonce. ADMIN Admin
serverInfo Node version, platform, network status, settings and chain endpoints. None Xite
serverPortcheck Check whether the file server port is reachable. ADMIN Admin
serverShowdirectory Open a data folder in the system file manager. ADMIN Admin
serverShutdown Stop or restart the node. ADMIN Admin
serverUpdate Explains that the node updates through its installer. ADMIN Admin
sidebarGetHtmlTag Render the sidebar panel for the bound xite. ADMIN Admin
sidebarGetPeers Peer positions for the sidebar globe. ADMIN Admin
siteAdd Start serving and downloading a xite by address. ADMIN Admin
siteBadFiles List files that are still missing or failed to download. None Xite
siteblockAdd Add a xite address to the blocklist. ADMIN Admin
siteblockGet Read the blocklist entry for one address. ADMIN Admin
siteblockIgnoreAddSite Unblock a xite address so it can be added. ADMIN Admin
siteblockList Read the xite blocklist. ADMIN Admin
siteblockRemove Remove a xite address from the blocklist. ADMIN Admin
siteClone Create a new xite from a served xite's template, or upgrade an existing clone. None Xite
siteDelete Remove a xite and delete its files. ADMIN Admin
siteDownloadOptionalPrevious Download the currently missing optional files once. ADMIN Admin
siteFavourite Mark a xite as a favourite. ADMIN Admin
siteInfo Everything the node knows about the bound xite, including the current identity. None Xite
siteList List every xite the node serves. ADMIN Admin
siteListModifiedFiles List files that differ from the signed content.json. None Xite
sitePause Pause a xite. ADMIN Admin
sitePublish Sign (optionally) and push a content.json to peers. None (signing key needed) Xite
siteRecoverPrivatekey Recover the xite's private key from the master seed. ADMIN Admin
siteReload Re-check the bound xite for a newer content.json. ADMIN Admin
siteResume Resume a paused xite. ADMIN Admin
siteSetAutodownloadBigfileLimit Set the largest big file downloaded automatically. ADMIN Admin
siteSetAutodownloadoptional Turn automatic download of new optional files on or off. ADMIN Admin
siteSetDownloadoptional Allow or disallow on-demand optional file fetching. ADMIN Admin
siteSetLimit Set the bound xite's size limit. ADMIN Admin
siteSetOwned Claim or relinquish ownership of the bound xite. ADMIN Admin
siteSetSettingsValue Set a whitelisted per-xite setting. ADMIN Admin
siteSign Sign the content.json that governs a path. None (signing key needed) Xite
siteSignMessage Sign a message with the xite's own key. ADMIN Admin
siteUnfavourite Clear a xite's favourite mark. ADMIN Admin
siteUpdate Start a background check for a newer version of a xite. None for the page's own xite, ADMIN for any other Xite
userGetGlobalSettings Read the user's node-wide UI settings. None Identity
userGetSettings Read the xite's private per-user settings. None Identity
userList List known users (Multiuser plugin). ADMIN Admin
userLogin Add or select a user from a master seed (Multiuser plugin). ADMIN Admin
userLogout Revert to the primary user (Multiuser plugin). ADMIN Admin
userPublickey Get the user's per-xite encryption public key. None Identity
userSet Switch the active user (Multiuser plugin). ADMIN Admin
userSetGlobalSettings Store the user's node-wide UI settings. ADMIN Admin
userSetSettings Store the xite's private per-user settings. None Identity
userSetSitePrivatekey Save a private key as the xite's signing key. ADMIN Admin
userShowMasterSeed Reveal the active user's master seed (Multiuser plugin). ADMIN Admin
vrfDeriveRandom Derive deterministic values from a beacon and a seed. None Identity and crypto
vrfGetBeacon Read the chain randomness beacon at a block height. None Identity and crypto
vrfInvalidateCache Compatibility no-op; returns "ok". None Identity and crypto
vrfLatestBeacon Read the randomness beacon one block below the latest height. None Identity and crypto
vrfMultiBlockBeacon Combine randomness over a window of blocks. None Identity and crypto
wrapperAvatarThumbnailVersion Detect the wrapper's avatar thumbnail service. None Wrapper
wrapperCloseWebNotification Close a notification opened with wrapperWebNotification. None Wrapper
wrapperConfirm Show a confirmation dialog and return the button the user chose. None Wrapper
wrapperGetAjaxKey Get the key that lets the sandboxed page fetch its own files. None Wrapper
wrapperGetAvatarThumbnail Get a cached thumbnail of a public avatar image. None Wrapper
wrapperGetLocalStorage Read the xite's per-identity storage kept by the wrapper. None Wrapper
wrapperGetState Read the current browser history state. None Wrapper
wrapperInnerLoaded Applies the wrapper URL's #hash to the page so anchors work. None Wrapper
wrapperNotification Show a notification toast in the wrapper. None Wrapper
wrapperOpenWindow Open a URL in a new browser window or tab. None Wrapper
wrapperPermissionAdd Ask the user to grant the xite a permission. None (user confirms) Wrapper
wrapperProgress Show or update a progress toast. None Wrapper
wrapperPrompt Show an input dialog and return the typed value. None Wrapper
wrapperPushState Push a browser history entry and update the address bar. None Wrapper
wrapperReload Reload the whole wrapper page. None Wrapper
wrapperReplaceState Replace the current browser history entry. None Wrapper
wrapperRequestFullscreen Put the xite frame in browser fullscreen. None Wrapper
wrapperSetLocalStorage Write the xite's per-identity storage kept by the wrapper. None Wrapper
wrapperSetTitle Set the browser tab title. None Wrapper
wrapperSetViewport Set the viewport meta tag of the top-level page. None Wrapper
wrapperWebNotification Show an operating system notification. None (browser permission) Wrapper
xidClearCache Clear every xID resolution cache. ADMIN Admin
xidInvalidateCache Drop the cached lookup for one address. None Identity
xidResolve Resolve an identity address or a name to its xID record. None Identity
xidResolveBatch Resolve up to 50 addresses or names in one call. None Identity
xidResolveIdentity Alias of xidResolve. None Identity
xidResolveName Resolve a chain name to its verified owner, identities and records. None Identity