Skip to main content

15 posts tagged with "tutorial"

View All Tags

Cold Contract Replacement and Emergency Sweep Address Setup Guide

· 8 min read
Pay Protocol Support
Pay Protocol Support
Pay Protocol BD & Support Team

This guide is intended for merchant operations and fund security teams. It covers the full workflow for cold contract replacement, emergency sweep address setup, emergency withdrawal address setup, and high-risk fund handling.

You can execute the process in the following order:

  • Replace the cold contract (multisig)
  • Set the emergency sweep address (multisig)
  • Set the emergency withdrawal address (multisig)
  • Sweep and withdraw funds from blacklisted sub-contracts

Tutorial on Batch Creating Sub-Contracts for Payments

· 7 min read
Pay Protocol Support
Pay Protocol Support
Pay Protocol BD & Support Team

This document describes how to rapidly batch-create TRON sub-contracts for payment business. The core approach is: first activate TRX currency in the admin console, then generate sub-contract addresses by creating payment orders, and finally deploy the contracts by transferring a small amount of TRX (approximately 1.277 TRX, valued at around 0.5 USDT) to complete batch initialization at minimal cost.

Use Cases

  • Payment business based on the TRON (TRC20) network
  • Merchants need to pre-provision large quantities of payment-collection sub-contract wallets to handle high-concurrency payment demands
  • Desire to reduce batch sub-contract creation costs by paying gas fees in TRX

Cross-Chain Swap in Admin Console

· 5 min read
Pay Protocol Support
Pay Protocol Support
Pay Protocol BD & Support Team

1. Introduction to Cross-Chain Bridges

A cross-chain bridge is a protocol mechanism used to transfer assets between different blockchain networks. Because various public blockchains (such as TRON, Ethereum, BSC, etc.) are independent and use incompatible protocols, assets cannot be transferred directly. Cross-chain bridges enable equivalent circulation of the same asset across different chains through mechanisms like "lock → mint" or "swap → release".

Cross-Chain Capabilities of This Platform

This admin console already has built-in cross-chain swap functionality, allowing you to complete asset transfers between major blockchains without integrating an external bridge. It works similarly to "currency exchange": select the asset to sell, choose the destination chain for the asset to buy, enter the receiving address on the counterparty chain, and confirm to complete the cross-chain transfer.

FeatureDescription
Supported AssetsUSDT and other mainstream stablecoins, native coins
Supported ChainsTRON (TRC20)、Ethereum (ERC20)、BSC (BEP20), etc.
Fund SourceHot wallet (Finance) account balance
Settlement TimeTypically within minutes (subject to on-chain congestion)
FeesCharged by the cross-chain bridge at real-time rates (included in the swap rate)
Prerequisites
  • Available only for Standard and Lite merchant versions
  • Operator account must have "Treasurer" permissions
  • Hot wallet (Finance) must have sufficient available balance
  • Target chain receiving address must be prepared (verify carefully; incorrect addresses will result in irretrievable funds)

Emergency Sweep of Contaminated Sub-Contracts

· 2 min read
Pay Protocol Support
Pay Protocol Support
Pay Protocol BD & Support Team

A user's sub-contract can sometimes be contaminated by malicious transfers (e.g., receiving blacklisted USDT). If a normal sweep is performed, the blacklisted funds would be transferred into the cold contract, putting the merchant's main funds at risk. To prevent this, merchants should first blacklist the contaminated sub-contract to exclude it from the normal sweep flow, then use the emergency sweep feature to sweep the funds to a safe external address instead of the cold contract, achieving risk isolation.

The steps to use the emergency sweep feature are as follows:

Tag Address Usage Guide

· 4 min read
Pay Protocol Support
Pay Protocol Support
Pay Protocol BD & Support Team
Pay Protocol Dev
Pay Protocol Dev
Pay Protocol Development Team

1. Overview

Tag Address is used to categorize and manage wallet addresses. When creating a payment order, merchants can specify tagId so the system automatically assigns a receiving address from the corresponding tagged address pool.

Address allocation rules:

  • If an available address exists under the tag, the system prioritizes reusing it.
  • If all addresses under the tag are occupied, the system automatically creates a new address.
  • The newly created address is automatically assigned to the same tag.

This mechanism helps merchants achieve:

  • Address categorization
  • Address reuse
  • Automatic address expansion

This mechanism is ideal for merchant scenarios that require managing a large number of receiving addresses.

How to enable a new blockchain or token in Pay Protocol?

· 4 min read
Pay Protocol Support
Pay Protocol Support
Pay Protocol BD & Support Team

Documentation Overview

This guide helps merchant administrators complete the following configurations:

  • Enable new blockchain networks (such as ETH, BSC)
  • Add new cryptocurrencies (Tokens) on the blockchain
Example Note

This document demonstrates how to add the ETH chain for merchants who have already enabled the Tron chain. The operation process for BSC chain is exactly the same as ETH.

New Merchant Feature - Repair Abnormal Orders

· 2 min read
Pay Protocol Support
Pay Protocol Support
Pay Protocol BD & Support Team

This tutorial will guide you on how to repair orders where users have overpaid or underpaid through the backend management system.


Prerequisites

Before starting to repair orders, please ensure you have the following information:

  1. Order Number: The order number or payment number that needs to be repaired.
  2. Transaction Hash: The transaction hash of the user's payment (can be obtained through a blockchain explorer or payment platform).

Buy Energy on Telegram

· 3 min read
Pay Protocol Support
Pay Protocol Support
Pay Protocol BD & Support Team

This tutorial will guide you on how to buy energy through the TG mini program to reduce transaction fees when performing functions such as sweeping and rebalancing on the Tron network.

Tutorial on Replacing Financial Address with Batch Transfer Contract Address

· 3 min read
Pay Protocol Support
Pay Protocol Support
Pay Protocol BD & Support Team
info

This feature is only available for standard merchants.

The example addresses and accounts in the tutorial are for reference only. Please use your contract address and owner address for actual operations.

This tutorial will guide you on how to replace the batch transfer contract address and display the balance information of the address in the admin console. After the replacement, any administrator can perform the transfer-in operation, while only the owner of the batch transfer contract has the authority to perform the transfer-out operation.