Buying CloudCoin Services
Steps to buy CloudCoins
- LIST: The buyer will look at the coins that are for sale by calling the List Lockers For Sale command.
- Send BTC: The buyer then sends BTC to the RAIDA's wallet for the amount of the locker they will purchase.
- Wait: The buyer waits for the transaction to clear.
- BUY: The buyer sends the transaction id and their BTC address to the RAIDA using the "Buy" service.
- PEEK: The buyer now has the locker key with his coins. He calls the PEEK service.
- REMOVE: The buyer then calls the REMOVE service and then has his coins.
Commands
Command Code | Service | Description |
---|---|---|
🔴86 | LIST LOCKERS | Returns a list of lockers that are for sale. |
🔴110 | BUY LOCKER | Allows the buyer to put the CC he purchased into his locker. |
🔴111 | SEND CRYPTO | Allows the RAIDAs to tell the BTC RAIDA to send coins. |
LIST LOCKERS
This returns a list of For Sale lockers of the coin type (BTC, Monero, etc) specified. It returns the total coins in the locker and the price of the locker.
The list is ordered by price ascending. If there are more than one locker with the same price, it will show the lockers with the least amount of coins in them first.
Sample Request:
CH CH CH CH CH CH CH CH CH CH CH CH CH CH CH CH
CT CT CT // Coin Type such as BTC, XRM, ETC..
## // Number of records to return (up to 256)
3E 3E
Sample Response:
CT CT TC TC TC TC $$ $$ $$ $$ //Coin Type, Total coins in locker, price.
CT CT TC TC TC TC $$ $$ $$ $$
CT CT TC TC TC TC $$ $$ $$ $$
3E 3E
BUY LOCKER
Look at the Steps to buy CloudCoins
After receiving the BUY LOCKER command the RAIDA will:
- Check the Transaction Log to make sure this request has not been made before.
- Look at the senders Bitcoin address and transaction number and check the blockchain explorer to see if the transaction is there.
- Check to see if there is a For Sale Locker with the correct coin type, price and total coins.
- Make sure that the amount the buyer sent matches the amount in the locker (Ok to round up or down)
- Change the ANs of the coins in the For Sale Locker to the PN specified by the Buyer.
- Send a response back to the buyer.
- Calculate fees that the seller must pay.
- Order the Python server to send BTC minus the fee to CC Seller's crypto address.
- Record the transaction.
- Make a record of the fees collected.
- Figure out how to get the fees to the RAIDA Admins.
Note:
The RAIDA must use the CD CD CD, $$ $$ $$ $$ and TO TO TO TO to find the "For Sale Locker" that the buyer wants to buy.
Sample Request:
CH CH CH CH CH CH CH CH CH CH CH CH CH CH CH CH
PN PN PN PN PN PN PN PN PN PN PN PN FF FF FF FF //The locker key the buyer wants to use for their locker
CD CD CD //currency code to look out for. ASCII like BTC or XMR
$$ $$ $$ $$ TO TO TO TO // the per CC price in Bitcon or Monetor or other crypto. And the total coins to be purchased
AS // The Bitcoin Address that the buyer used to send BTC to the RAIDA.
AD AD AD AD AD AD AD AD AD AD AD AD AD AD AD AD // 32-35 bytes. Buyer's cryptocurrency address used to send
AD AD AD AD AD AD AD AD AD AD AD AD AD AD AD AD // Crypto to the RAIDA's bitcoin address
AD AD AD
ID ID ID ID ID ID ID ID ID ID ID ID ID ID ID ID //The buyers transaction ID created by sending BTC to the RAIDA.(32 bytes)
ID ID ID ID ID ID ID ID ID ID ID ID ID ID ID ID
ME ME ME ME ME ME ME ME ME ME ME ME ME ME ME ME //Memo should contain identifyable tansaction information
...
ME ME ME ME ME ME ME ME ME ME ME ME ME ME ME ME //Helps buyer recover coins if something goes wrong.
3E 3E //Not Encrypted
Sample Response:
3E 3E //Not Encrypted
Response Status Codes:
Response Status | Code |
---|---|
? | ? |
SEND CRYPTO
This is a service that exists on the BTC Raida. It allows all the other RAIDA to command it to send coins.
Sample Request:
CH CH CH CH CH CH CH CH CH CH CH CH CH CH CH CH
CT CT CT//Coin type
LG LG //Length of the private key part that is stored in the private key aarea below.
TX TX TX TX TX TX TX TX TX TX TX TX TX TX TX TX //Transaction number
TX TX TX TX TX TX TX TX TX TX TX TX TX TX TX TX
AM AM AM AM AM AM AM AM AM AM AM AM AM AM AM AM //The amount of BTC that is expected to fidd
AD AD AD AD AD AD AD AD AD AD AD AD AD AD AD AD // 32-35 bytes. seller's cryptocurrency address to send BTC to.
AD AD AD AD AD AD AD AD AD AD AD AD AD AD AD AD
KY KY KY KY KY KY KY KY KY KY KY KY KY KY KY KY // RAIDA's part of the private key. The size is 92 bytes fixed but the length of usable bytes is set by the (LG LG) above.
KY KY KY KY KY KY KY KY KY KY KY KY KY KY KY KY
KY KY KY KY KY KY KY KY KY KY KY KY KY KY KY KY
KY KY KY KY KY KY KY KY KY KY KY KY KY KY KY KY
ME ME ME ME ME ME ME ME ME ME ME ME ME ME ME ME //Memo - 80 Characcters fixed
ME ME ME ME ME ME ME ME ME ME ME ME ME ME ME ME
ME ME ME ME ME ME ME ME ME ME ME ME ME ME ME ME
ME ME ME ME ME ME ME ME ME ME ME ME ME ME ME ME
ME ME ME ME ME ME ME ME ME ME ME ME ME ME ME ME
3E 3E //Not Encrypted
Sample Response:
3E 3E //Not Encrypted
Response Status Codes:
Response Status | Code |
---|---|
? | Command received |