API for making transactions on Bitcore blockchain ?
is there a publicly available API for making transactions to the Bitcore blockchain, similar to the (coincidentally named) bitcore-lib library (by BitPay) used for making transactions to the Bitcoin blockchain?
i'd like to be able to write a third party application which lets users make payments in bitcore and in return receive an email which contains the information i am selling. i can explain more once i get the idea more fleshed out and once my software is done. (i have written some software which gathers info and classifies it in a particular way). the general idea is that i would sell an initial document, in pdf form, on
www.createspace.com, which is owned by Amazon. I would then write a browser plugin. If the user wants an update to the pdf after buying the document from amazon, he would download the plugin for free. The plugin would detect when the document was loaded in the browser (i would put some special data in the pdf that the plugin could detect), and allow the user to enter his bitcore address to buy the update, along with his email address. The plugin would then make the necessary calls to the API to transfer the funds into my own bitcore address, and then send me an email which would include among other things the encrypted transaction id of the purchase together with the user's email. An application on my server would then parse the email and verify that the transaction id was valid and had X number of confirmations, and also that i had not yet encountered it. If that checked out then i would create an update of the data in whatever format the initial document was in (again, probably a pdf), which would then update the "special data" in the document that the plugin could detect, and would then email that to the user. This would allow the user to, in the future, request yet another update of the data, etc., without conflicting with his previous update, and each time i would get paid into my bitcore account.
this application (browser plug in) would be general purpose so that anyone that wants to publish a document which can be updated in the future for a price could use it. the only currency it would accept would be bitcore.
this would encourage authors of updateable documents (maybe a document that is being created in installments over time) to get bitcore accounts. It would also encourage readers of updateable documents who wanted to update those documents over time to get bitcore accounts and to fund them.
maybe after messing with it for a while i could get it to work, or maybe not. i've been writing software for a long time and sometimes my ideas aren't feasible, but i usually can't tell until i just plunk down and try to write it. So far the utility i wrote to extract the data is working, and i am getting all the kinks out over time and making it more accurate, but i want to go ahead and start thinking about that browser plugin. As it is now, i could sell the document on createspace.com (owned by amazon) just as a regular book, and get paid a percentage of each sale in dollars, but the data printed in that book would be out of date after just a few months. What i would really like to do is upload the pdf onto createspace and start selling it, but then allow each individual reader to individually request an update directly from me. so i would be getting paid by amazon in dollars while simultaneously getting paid in bitcore by individuals for updates. Each time i get a request for an update, i just rerun my utility with a particular option set, and it re-reads the latest data and analyzes it and creates a new pdf, which i then send off - and that pdf, since it would have the encrypted data within it particular to that person's transaction id, would be unique to that individual. If that individual then tried to sell the document himself, not knowing about the transaction id embedded within it, i could maybe in the future detect that and (attempt to) stop him from selling it - or at least, if i found pirated copies of my document, i could tell who the original buyer was (because of the encrypted transaction id within it), and assume that person had either himself sold it on, or had given a copy to a friend who had then tried to sell it. so it would double as a form of copyright protection.
i looked around for a Bitcore API (for the BITCORE blockchain not the slow slow bitcoin blockchain) but didn't find one. is there one available which i just haven't found ?
- I can start playing.