npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@openzeppelin/relayer-sdk

v1.8.0

Published

OpenZeppelin Relayer SDK

Readme

OpenZeppelin Relayer SDK

NPM Package OpenSSF Scorecard Scorecard supply-chain security CI

The OpenZeppelin Relayer SDK provides a TypeScript/JavaScript client for interacting with the OpenZeppelin Relayer service. This SDK allows developers to easily integrate relayer functionality into their applications for various blockchain networks.

Requirements

  • Node.js 22.14.0 or higher
  • Package manager: pnpm 9.0.0 or higher
  • JDK 21 or higher

Installation

npm install @openzeppelin/relayer-sdk
# or
yarn add @openzeppelin/relayer-sdk
# or
pnpm add @openzeppelin/relayer-sdk

Features

  • Easy integration with OpenZeppelin Relayer services
  • Support for multiple blockchain networks (EVM, Solana)
  • TypeScript typings for better development experience
  • Built-in configuration management

Architecture

The SDK is built on top of an OpenAPI-generated TypeScript client that communicates with the OpenZeppelin Relayer API. It uses Axios for HTTP requests and provides type-safe interfaces for all API operations.

Usage Examples

The SDK includes various examples demonstrating how to interact with relayers:

EVM Networks

See the examples/evm directory for EVM-specific examples.

Solana

See the examples/solana directory for Solana-specific examples.

Common Operations

Get Relayer

import { Configuration, RelayersApi } from '@openzeppelin/relayer-sdk';

const config = new Configuration({
  basePath: 'https://your-path.com',
  accessToken: '',
});

const relayersApi = new RelayersApi(config);

const relayer = await api.getRelayer('relayer-id');
console.log(relayer);

For more examples, check the examples directory.

API Documentation

The SDK is built on top of an OpenAPI specification which can be found in the openapi.json file.

For detailed API documentation, please refer to the API Reference in the docs folder. This documentation provides comprehensive information about all available endpoints, request parameters, and response types.

To generate docs from the OpenAPI specification, you can use the following command:

pnpm generate:docs

Note: You will need java runtime installed to generate the documentation.

Development

Setup

# Install dependencies
pnpm install

# Build the SDK
pnpm generate

Generating a New Client

The SDK client is generated from an OpenAPI specification file. To generate a new client:

  1. Create or update the openapi.json file in the root directory if it doesn't exist.
  2. Run the generation command:
pnpm run generate

This command performs the following steps:

  • Cleans the existing source files
  • Generates a TypeScript Axios client from the OpenAPI specification
  • Runs post-generation scripts to customize the output
  • Builds the final client

Testing

pnpm test

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to this project.

License

This project is licensed under the AGPL-3.0-or-later license. See the LICENSE file for more details.


Release Workflow

Release workflow