Developers Forum for XinFin XDC Network

ruslan wing
ruslan wing

Posted on

How to Send Offline Transactions on XDC Network Using MyCrypto Wallet

Introduction

Sending offline transactions on the XDC Network enhances security by allowing users to sign transactions in an isolated environment before broadcasting them. This guide will walk you through the step-by-step process of executing offline transactions using MyCrypto Wallet, ensuring that your private keys remain secure and never touch an online device.

Prerequisites

● MyCrypto Wallet: Download from https://download.mycrypto.com/ according to your operating system.
● Offline Machine: A computer with no internet connection to securely store and sign transactions.
● Online Machine: A separate device to broadcast the signed transaction.
XDC Public RPC Endpoint: Required for setting up the XDC Network on MyCrypto.

Step 1: Setting Up MyCrypto on the Offline Machine

1.Transfer MyCrypto to Offline Machine:
○ Download MyCrypto .exe from https://download.mycrypto.com/ on your online machine.
○ Use a USB drive or other secure methods to transfer the file to the offline machine.

Image description

  1. Install MyCrypto: ○ Run the .exe file and install it on the offline device.

Image description

  1. Add XDC Network to MyCrypto: ○ Open MyCrypto and navigate to "Change Network". ○ Click on "Add Custom Node".

Image description

○ Enter the following details:
Node Name: XDC Network RPC Node
Network: Custom
Network Name: XDC Network
Chain ID: 50
Public RPC Endpoint: (Use the official XDC RPC URL)

Image description

○ Click Save. XDC Network is now added to MyCrypto.

Image description

Step 2: Creating a Wallet on MyCrypto

  1. Go to "Create a New Wallet".
  2. Select "Generate a Wallet".

  3. Choose "Keystore File" (MyCrypto only supports Keystore for XDC Network).

  4. Set a Password:
    ○ Enter a strong password and write it down in a secure location.

  5. Download the Keystore File:
    ○ Click on "Create a Wallet".
    ○ Download the Keystore File and store it securely.

  6. Save the Private Key:
    ○ Click "Continue" and save the private key.
    Print and store the paper wallet securely.
    Take multiple backups on offline storage.

Step 3: Accessing the Wallet (Offline)

  1. Go to "View & Send".
  2. Select "Private Key".
  3. Enter Your Private Key.
  4. Access the Wallet. ○ Note: Since this is an offline machine, you will not see the account balance.

Image description

Step 4: Preparing and Signing a Transaction (Offline)

1. Prepare Transaction Details:
To Address: Enter the recipient's address.
Amount: Enter the number of tokens to send.
Gas Price (Gwei): 20
Gas Limit: 21,000
Nonce:
■ Check the last used nonce at https://xdcscan.com by viewing the last transaction.
Verify all details.

Image description

2. Sign the Transaction:
○ Click "Sign Transaction".
○ MyCrypto will generate:
Raw Transaction: Contains all transaction details.
Signed Transaction: The transaction signed using your private key.

Image description

3. Copy the Signed Transaction:
○ Save it on a USB drive or note it down securely.

Step 5: Broadcasting the Transaction (Online)

  1. Transfer the Signed Transaction to an Online Machine.
  2. Open the XDC Broadcast Tool: ○ Go to https://broadcast.xinfin.network/build/raw-tx.
  3. Paste the Signed Transaction.
  4. Verify Transaction Details: ○ Chain ID, From Address, To Address, Value, Nonce, Current Nonce, Balance, Gas Price, Gas Limit.

Image description

  1. Click "Publish".
  2. Receive the Transaction Hash: ○ After submission, you will receive a Transaction Hash confirming the transaction.

Image description

Conclusion

By following this guide, you have successfully executed an offline transaction on the XDC Network using MyCrypto. This method ensures maximum security by keeping your private key isolated from the internet while allowing transactions to be signed and broadcasted securely. Always ensure you store your private key and Keystore file safely and verify all transaction details before broadcasting.

Additional Resources and Tools

For further assistance and alternative methods for conducting offline transactions on the XDC Network, consider exploring the following resources:

D'CENT Wallet: A hardware wallet offering biometric security features, compatible with the XDC Network. Learn more

Send-Offline Helper for XDC Network: A tool designed to facilitate offline transactions on the XDC Network, providing a user-friendly interface for preparing and broadcasting transactions securely. Read more

Step-by-Step Guide: A detailed article on sending offline transactions securely on the XDC Network. Check it out

Video Guide: A tutorial on setting up and using the D'CENT Wallet for secure transactions. Watch here

For more information about the XDC Network and its features, visit the official website: XDC Network

If you have any questions or need further assistance, please feel free to post in the comments below.

Discussion (0)