Knowledge Base
  • πŸ’‘Welcome To PointPay
  • πŸ“ƒWhitePapper v 1.0
    • Disclaimer
    • Market Overview
      • Overview of 2018-2023
      • Evolution and Statement
      • Challenges and Opportunities
    • PointPay 2.0
      • Ecosystem Overview
      • Services Synergy
    • Crypto Exchange
      • Main Benefits
      • Security Measures
      • Customer Support
    • Digital Vault
      • Role in Ecosystem
      • Features and Benefits
      • Integration with other Services
    • PointPay Token
      • Token Info
      • Utility and Benefits
    • Project Future
      • Project Vision
      • Upcoming Features
    • Conclusion
  • πŸ“ˆTokenomics
  • βš–οΈToken Swap Flow
  • πŸ”—Network
    • Mainnet&TestNet
    • Smart contracts
      • Contract Deployment
      • Deploy with Remix IDE
      • Deploy with Thirdweb
    • Explorer API
    • RPC API
  • Exchange API Documentation
    • Public endpoints | HTTP
      • Pairs List
      • Pairs Stats
      • Specific Pair Stats
      • Order Book Data
      • Market History
      • Market History Data
      • Products
      • Symbols
      • Depth List
      • Chart Data KLine
    • Private endpoints | HTTP
      • Authentication and API Keys
      • Create Limit Order
      • Cancel Order
      • My Active Orders
      • All My Trade Balances
      • My Specific Trade Balance
      • My Order Info
      • My Trades Info
      • My Order History
      • My Order History List
    • Basic structure | WEBSOKET
    • Public methods | WEBSOKET
      • Ping-Pong
      • System Time
      • KLine methods
      • Market Price methods
      • Market Status methods
      • Deals methods
      • Depth methods
    • Private methods | WEBSOKET
      • Authorization
      • My Assets methods
      • My Orders methods
Powered by GitBook
On this page
  • Deploying Your ERC-20 Token on the PointPay Network with Thirdweb πŸš€
  • Final Thoughts 🌟
  1. Network
  2. Smart contracts

Deploy with Thirdweb

PreviousDeploy with Remix IDENextExchange API Documentation

Last updated 5 months ago

Deploying Your ERC-20 Token on the PointPay Network with Thirdweb πŸš€

Thirdweb offers an easy way to deploy your ERC-20 token contract on the PointPay network. Here's how to create and deploy your token "Your Token Name" (YTN) using their tools.


Step 1: Set Up Your Environment πŸ› οΈ

  1. Install Tools:

    • Start with the Thirdweb SDK using npm:

      npm install @thirdweb-dev/sdk ethers
  2. Configure Your Wallet: Use or a compatible wallet and connect it to the PointPay network:

    • For Mainnet, use https://rpc-mainnet.pointpay.io as the RPC endpoint and 5511 as the Chain ID.

    • For TestNet, use https://rpc-testnet.pointpay.io as the RPC endpoint and 5511555 as the Chain ID.

    • Set PXP as the currency symbol in both cases.

  3. Fund Your Wallet: Ensure your wallet has enough PXP tokens for gas fees. For testing, you can use the .


Step 2: Write the Token Contract πŸ–‹οΈ

Create a basic ERC-20 token contract using OpenZeppelin's templates. Here’s an example for "Your Token Name" (YTN):

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

contract YourTokenName is ERC20 {
    constructor() ERC20("Your Token Name", "YTN") {
        _mint(msg.sender, 1000000 * 10 ** decimals());
    }
}

Save this file as YourTokenName.sol.


Step 3: Deploy Your Contract with Thirdweb βš™οΈ

  1. Select the PointPay Network: Choose Mainnet or TestNet, depending on your deployment target.

  2. Upload and Deploy the Contract:

    • Click "Deploy Contract."

    • Upload the YourTokenName.sol file.

    • Enter the following parameters:

      • Token Name: Your Token Name

      • Symbol: YTN

      • Total Supply: 1,000,000 tokens.

    • Confirm the transaction in your wallet.

  3. Verify Deployment:


Step 4: Manage and Interact with Your Token 🎯

After deployment, use the Thirdweb SDK to interact with your contract:

import { ThirdwebSDK } from "@thirdweb-dev/sdk";
import { ethers } from "ethers";

const sdk = new ThirdwebSDK(
    new ethers.Wallet(
        "YOUR_PRIVATE_KEY", // Replace with your private key
        ethers.getDefaultProvider("https://rpc-mainnet.pointpay.io") // For Mainnet; replace with TestNet URL if needed
    )
);

const contract = await sdk.getContract("YOUR_CONTRACT_ADDRESS");
console.log(await contract.call("name")); // Outputs: Your Token Name

Final Thoughts 🌟

With Thirdweb, deploying your ERC-20 token on the PointPay network is quick and straightforward. By following this guide, you’ll have "Your Token Name" (YTN) live and ready to integrate into your applications or share with your community. πŸš€

Go to Thirdweb Dashboard: Open the and connect your wallet.

For Mainnet, use to view your deployed contract.

For TestNet, check the deployment on .

πŸ”—
MetaMask
PointPay TestNet Faucet
Thirdweb Dashboard
https://explorer.pointpay.io
https://testnet.pointpay.io