-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Secondary token #211
Closed
Closed
Secondary token #211
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Open
squashed all commits from this branch and push new new branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Creation of FT
Creating a fungible token (FT) involves using the RBT. Users need to provide a name for the FT (FTName), decide how many FTs will be created (FTCount), and specify how much RBT will be used in the process (RBTAmount). Once all details are submitted, the node will create the new tokens and allow users to trade their new fungible tokens. Token value of each FT is calculated by dividing the RBT amount by the number of FTs created (Eg : If 10 FTs are created with 1 RBT, each FT Token value is 0.1).
API endpoint : api/create-ft
In this API, the data is passed as JSON input, and the keys used are:
CLI command: createft
Flags:
Eg: rubixgoplatform.exe createft -ftName rubix -ftCount 10 -did bafybmieyom4y2kcngxmfy4a6ud5zx2jv5xudxeh4t4m34po2bh5eocqp6a -rbtAmount 1 -port 20050
NOTE:
Transfer of FT
FTs can be transferred from one DID to another. The user must provide details such as the sender and receiver addresses, the name and count of FTs to be transferred, and the DID of the user. The quorum consensus for FT transfers is similar to that of RBT transfers. Specifically, each quorum must hold at least 1/5 of the total token value of the FTs being transferred.
API endpoint : api/transfer-ft
In this API, the data is passed as JSON input, and the keys used are: