INNER CODE UNIT · JavaScript

XActions

nirholas/XActions · packages/xactions-edge/index.js:308

export class XActions {
  /**
   * @param {ConstructorParameters<typeof McpClient>[0]} [options]
   */
  constructor(options = {}) {
    this.mcp = new McpClient(options);
  }

  /**
   * Public profile for an account.
   * @param {string} handle Handle, @handle, or profile URL.
   * @returns {Promise<object>}
   */
  async profile(handle, options) {
    return (await this.mcp.call('x_profile', { handle }, options)).profile;
  }

  /**

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…