Skip to content
This repository was archived by the owner on Mar 19, 2026. It is now read-only.

threshold-network/tbtc-crosschain-relayer

Repository files navigation

Threshold Network | tBTC Cross-Chain Relayer

Based on L2 tBTC SDK Relayer Implementation

Table of Contents

Project Overview

This project is built with NodeJS and includes a variety of libraries to facilitate development. The project is configured to use Docker for easy setup and deployment.

Docker Setup

To run the project using Docker, follow these steps:

  1. Edit docker-compose.dev.yml with your customizations:

    • PRIVATE_KEY: The wallet private key you will use in your application.
    • L1_RPC: URL for the Layer 1 RPC (e.g., Ethereum)
    • L2_RPC: URL for the Layer 2 RPC (e.g., Arbitrum, Base, Optimism)
  2. Run the following command to start the project:

    docker compose -f docker-compose.dev.yml up

Libraries Used

Dependencies

  • @ethersproject/experimental: ^5.7.0
  • axios: ^1.7.2
  • bitcoinjs-lib: ^6.0.1
  • compression: ^1.7.4
  • cors: ^2.8.5
  • eth-crypto: ^2.6.0
  • ethers: ^5.7.2
  • express: ^4.18.2
  • helmet: ^6.1.4
  • node-cron: ^3.0.3
  • rimraf: ^6.0.1

DevDependencies

  • @types/axios: ^0.14.0
  • @types/compression: ^1.7.5
  • @types/express: ^4.17.21
  • @types/helmet: ^6.0.1
  • @types/node: ^20.1.4
  • @types/node-cron: ^3.0.11
  • ts-node: ^10.9.2
  • ts-node-dev: ^2.0.0
  • typescript: ^5.5.3

How to Start the Project (Local)

Development Mode

To start the application in development mode, run:

npm run dev

Project Scripts

The following npm scripts are avaliable:

-   `npm run dev`: Runs the application in development mode.
-   `npm start`: Runs the application in production mode

About

tBTC Crosschain Relayer Bot

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors