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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@moonbeam-network/mrl

v4.3.1

Published

Moonbeam Routed Liquidity

Readme

The Moonbeam MRL SDK enables developers to easily transfer liquidity into and across the Polkadot ecosystem from other ecosystems like Ethereum. With the SDK, you don't need to worry about setting up the different contract calls and extrinsics involved in the process of moving assets between the chains and ecosystems. It is an extension of the XCM SDK as it uses the same config and utils.

The MRL SDK offers helper functions that provide a very simple interface to execute transfers from parachains or contract calls from EVM chains. In addition, the MRL config package allows any external project to add their information in a standard way, allowing immediate support by the MRL SDK.

Documentation

You can find the documentation at https://moonbeam-foundation.github.io/xcm-sdk/latest/.

Installation

npm i @moonbeam-network/mrl

:warning: You need to have peer dependencies of SDK installed as well.

npm install @polkadot/api @polkadot/util-crypto

Usage

The following sections contain basic examples of how to work with the MRL SDK to build transfer data to transfer an asset from one chain to another and how to submit the transfer. For a detailed overview on how to use it, please refer to the XCM SDK docs.

Build MRL Transfer Data

import { Mrl } from '@moonbeam-network/mrl';

const fromEvm = async () => {
  const transferData = await Mrl()
    .setSource(ethereum)
    .setDestination(moonbeam)
    .setAsset(eth)
    .setIsAutomatic(false)
    .setAddresses({
      sourceAddress: "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
      destinationAddress: "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
    });
};

fromEvm();

Transfer

...

const hash = await transferData.transfer({
    amount: 0.1,
    isAutomatic: false,
    signers: { evmSigner: ethereumWalletClient }, // Ethereum Signer, for example created with wagmi
  });

Examples

git clone [email protected]:moonbeam-foundation/xcm-sdk.git
cd xcm-sdk
pnpm install
cd examples/mrl-simple

# edit index.ts by adding your accounts

pnpm run start

Contributing

First fork the repository and clone it.

git clone [email protected]:YOUR_GITHUB_USERNAME/xcm-sdk.git
pnpm install

Optionally, you can install the pre-commit hook to run the linter and tests before committing:

pnpm lefthook install

Tests

Unit tests

pnpm run test

Acceptance tests

pnpm run test:acc

Release

To create a dev version go to GitHub actions and run publish dev versions workflow.

To create a release version run:

pnpm run changeset

Testing the change in the SDK locally

Build the project:

pnpm run build

Link the SDK:

pnpm run clean && pnpm run build && pnpm run link

In your project where you would like to test the changes:

pnpm link @moonbeam-network/xcm-types @moonbeam-network/xcm-utils @moonbeam-network/xcm-builder @moonbeam-network/xcm-config @moonbeam-network/xcm-sdk @moonbeam-network/mrl

If you need you can link other packages too.

After testing is done, unlink the SDK:

pnpm unlink @moonbeam-network/xcm-types @moonbeam-network/xcm-utils @moonbeam-network/xcm-builder @moonbeam-network/xcm-config @moonbeam-network/xcm-sdk @moonbeam-network/mrl