Skip to content

Repository files navigation

Pactus Wallet

A modern, secure cryptocurrency wallet for the Pactus blockchain.

Project Overview

Pactus Wallet is a cross-platform wallet solution for managing digital assets on the Pactus blockchain. Built with security and usability in mind, it provides a seamless experience for users to create wallets, manage accounts, and perform transactions.

Project Structure

This repository contains the web wallet application (Next.js):

pactus-wallet/
├── public/                  # Static assets
├── src/                     # Application source code
└── docs/                    # Project documentation

The core wallet functionality lives in the Pactus JS SDK and is consumed as the @pactus/sdk npm package.

Key Technologies

Core

  • TypeScript: Statically typed JavaScript for safer code.
  • npm: Node.js package manager.
  • Jest - For unit and integration testing

Web Application

  • Next.js: React framework with SSR and static generation.
  • Tailwind CSS: Utility-first CSS for fast UI development.
  • next-themes: Theme and dark mode management for Next.js.

Wallet Core

Getting Started

Installation

Clone the repository and install the dependencies:

git clone https://github.com/pactus-project/pactus-wallet.git
cd pactus-wallet
npm install

Running the Web Wallet

# Start the development server
npm run dev

# Or create a production build
npm run build

Network Support

Pactus Wallet supports both Mainnet and Testnet networks, allowing you to choose the appropriate network for your needs.

Switching Networks

You can switch between Mainnet and Testnet using a keyboard shortcut:

  • Mac: Cmd + Shift + N
  • Windows/Linux: Ctrl + Shift + N

The network preference is automatically saved to your browser's local storage and will persist across sessions.

Network Features

  • Mainnet: Production network for real transactions

    • RPC Endpoints: bootstrap1-4.pactus.org/jsonrpc
    • Coin Type: 21888
    • Block Explorer: PactusScan
  • Testnet: Development and testing network

    • RPC Endpoints: testnet1-4.pactus.org/jsonrpc
    • Coin Type: 21777
    • Block Explorer: PactusScan Testnet

Network Indicators

When using Testnet, a visual indicator badge is displayed in the sidebar to help you distinguish between networks and prevent accidental transactions on the wrong network.

Creating Wallets

When creating a new wallet, you can specify the network type:

  • Wallets created on Mainnet can only be used with Mainnet
  • Wallets created on Testnet can only be used with Testnet
  • Each network uses different address derivation paths and coin types

Contributing

Contributions are most welcome! Whether it's code, documentation, or ideas, every contribution makes a difference. Please read the Contributing guide to get started.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Releases

Packages

Used by

Contributors

Languages