- If you have any questions please ask in the Development channel of the Discord.
- You can also read our Commercial Best Practices document if you are looking to build an app of business on top of P3C.
- Developers are also encouraged to use the P3C Pure interface (https://p3c.io/pure.html) which allows for direct connection between wallet and smart contract. Learn more about the Pure UI.
We also give airdrops to developers who are interested in building on P3C.
This returns the current supply of P3C, the USD Price, the ETC Price, the ETC Market cap, the ETC market cap, and ETC price in USD.
Historical Price Information (for making charts)
This returns an array of the open, high, low, and close of the P3C token, denominated in USD. Measurements are made daily.
This returns the prices over the past N Days - you can replace 90 with whatever day amount you would like.
This returns a list of all of the created crops.
Crop Value over time.
Can be called on any crop. Returns the growth in ETC/USD over a 1 day, 7 day, and 30 day period.
Returns prices information for all crops.
Returns sponsor information as raw HTML. This can be loaded into page with
<div class="ui horizontal segment"> <div id="sponsor" class="sponsor"></div> <span class="ui text blue small" style="float: right"><a href="https://p3c.io/sponsor.html" target="_blank">Buy this sponsorship instantly with ETC!</a> </span> </div>
Referral Bonus from Community Fee
If a user goes to
The crop address in the URL receieves 33% of the 10% community fee (3% of funds spent to purchase new P3C). This can be used by anyone building something that links to P3C. Keep in mind, this does not affect how much P3C the user gets back, only how much goes to the community fee.
The link can be created via the Pure interface, and requires 1 P3C to be held in the pure account to be active. All bonuses from purchases through the link appear as dividends on the pure interface.
DappDirect.net Ethereum Classic Smart Contract Digest
Returns a JSON array of all of the contracts, along with their 72 hour volume, balance, and unique users.
Returns a Coordiante for a random palce on earth based on the seed of the Address. Can be used to create country games or used as an account system. Callable from Web3.js
P3C.tv Get Current channel
Returns a JSON object with the current youtube livestream id, the tip amount in USD cents, and the crop to send it to.
P3C.tv Change current channel
This sets the channel, tip destination, and tip amount in USD for when a user pays for a tip. Call this to change where the channel is pointing.
- Would set the current channel on https://p3c.tv/ to the livestream ID of
- Every tip is
- When user pays tip, ETC from their wallet is converted into p3c and 50% is sent to
0x5136958e5D57fa1E282fA976a3985Ca5B395132Aand 50% is sent back ot them.
You can get the livestream ID from any youtube livestream URL by taking it off of the end https://www.youtube.com/watch?v=qK9OLRbAW30
P3C.tv - Create a Tippable Link
This creates a link which will override the server set channel when a user clicks on it. This link can be created manually and there are no checks performed when a user accesses and tips through the link. Funds from tips will be sent directly to the Crop Address in the URL. Follows the same economic parameters as the server-based link.
A user can create a tippable link by: