1. Setup a MasterNode * Prerequisite
Operating System : Ubuntu 16.04 64-bit or higher. Should be facing internet directly with public IP & without NAT
Tools: Git, Docker, Docker Compose
Following network ports need to be open for the nodes to communicate.
How to Setup Masternode ?
0. Install Git
Check whether git is preinstalled.
If present, output will be something like
git version 2.17.1. in this case, go to step a.
Otherwise follow the below steps.
sudo apt updatesudo apt install gitgit --version
git config --global user.name "Your Name"git config --global user.email "email@example.com"
a. Clone repository
Run the following commands on your terminal.
git clone [https://github.com/XinFinOrg/XinFin-Node.git](https://github.com/XinFinOrg/XinFin-Node.git)cd XinFin-Node
The git clone command will create a new folder XinFin-Node. cd XinFin-Node command changes the current directory to XinFin-Node
b. Install docker & docker-compose
The above command will install docker and docker-compose for you.
c. Update .env file with details
Copy a env.example file from XinFin-Node directory and name it as a .env
Open .env file and edit values for following
INSTANCE_NAME : A Display name of your masternodeCONTACT_DETAILS : Your Email ID
d. Start your Node
sudo docker-compose -f docker-services.yml up -d
This will start a Masternode and connect to a XinFin Testnet.
You should be able to see your node listed on this page: http://Xinfin.Network (Make sure, you are connected to XinFin Testnet. If not, switch to Testnet on top right corner.)
Your coinbase address can be found in xdcchain/coinbase.txt file.
2. Stake XDC
1. Create XDC Wallet
b. You can create use a web wallet or download eWallet app from Google Play Store.
c. Create an account
d. Store your private key at a safe place (Hardware wallet is recommended)_
2. Buy XDC
a. Get your free XDC to use on XinFin Testnet_
c. Add your wallet address created in step 2.b and request XDC._
3. Upload KYC
b. Upload a notarized kyc_
4. Become a Candidate
Add your account address and click on ‘Become a Candidate’ to become a masternode. You must have minimum 10 Million XDC in your account. Once your candidature is accepted your stake of 10 Million XDC is locked._
3. Factoring Process
In a typical factoring on infactor.io, there are 3 parties involved. Supplier, Buyer, and Financier. Supplier is a starting point. Supplier uploads Invoice, Buyer validates invoice, and Financier factors on invoice.
Register on http://infactor.io.
Choose your role(Supplier, Buyer, Financier)_
On successful registration, a wallet account is automatically created for you._
Note : To register, you must have uploaded KYC, staked XDC and you are a part of XDC Network by running a masternode. In case of any malicious activity, the staked XDC will be frozen.
Supplier uploads invoice details and related documents.
Buyer verifies invoice authenticity and approves/rejects invoice.
Supplier selects an approved invoice for factoring. All financiers on the platform receive new factoring notification.
Financer sends a factoring proposal along with related documents to supplier. The proposal includes interest rate/month and the upfront payment percent of total invoice amount.
Supplier approves the factoring proposal and the notification is sent to selected financier.
Financier pays first payment to supplier as per factoring criteria.
Note : To transfer amount, a user has to load the amount into a wallet. A deposit functionality is present in user profile section.
Buyer pays invoice amount to financier.
A financier pays final payment(by deducting fees) to supplier.
Fee calculation is done on the basis of Interest Rate (As per factoring criteria) and payout date. If Buyer pays invoice amount earlier to financier, fees will be less and vice versa. The fees calculation is done on the smart contract.
Financier and Supplier can rate each other.