Uphantom API
API Welcome

Welcome to Uphantom API

Uphantom is the next generation to blockchain, based on a decentralized invisible database network. Below is call for investors and explanations how to use the API prototype. This API prototype explorer comes in addition to our pitch deck and white paper document.


First look of the API

Using the Uphantom API is as simple as browsing a web page! The following API query makes a call to the API to get my account balance. Try it!

https://api.Uphantom.com/api.php?Uphantom_action=account&Uphantom_subaction=balance&Uphantom_uid=PVACGQ91b3fbe66aec2f31b7469dd33073650f16472092343735060001700185&Uphantom_key=ZZDEAX5f122cb2e53dd6054cf904b7f7f6522516472092343732927126451395

click it and see what you get. It may look com;licated, but in fact, it is pretty simple: it just tells Uphantom - "tell me the ccount balance of account XXX with key YYY". Let's break it to pieces and see what we mean:

https://api.Uphantom.com/api.php?Uphantom_action=account&Uphantom_subaction=balance&Uphantom_uid=...&Uphantom_key=...

Notice that all variables begin with the word "Uphantom", this is so the Uphantom engine will distinguish them from other variables. If we simplify it completely we get:

call api.Uphantom.com with action=account and subaction=balance and uid=... and key=...

Business Plan Highlights

At the moment we are not structured yet and looking to register a holding company in New Zealand.

We are looking to raise $200,000US based on $2,000,000 valuation meaning that for every $50k we will give 2.5% of the company


How to use the prototype API

Background

The prototype API is representing one node in the network. It is allowing to register a new account, save data into the network, transfer money to another account and retreive information about nodes and accounts.

The API following some basic architecture principles:
* Simplicity: all queries are GET queries i.e. can be done via the browser URL.
* Invisibility: non members that query a node, get a blank response.
* Hidden layer: the API can be embedded in an existing website without destrupting its functionality.

API Structure

Uphantom can accept only 7 variables, these are:
Uphantom_uid: account UID (Unique Identifier)
Uphantom_key: account key
Five variables: Uphantom_var1 , Uphantom_var2 , Uphantom_var3 , Uphantom_var4 , Uphantom_var5

There are two important points to understand:
- not every call requires all variables, for instance - the above account balance API requires just the UID and KEY.
- variables play different roles for different calls. For instance - for the API call "Account Status", Uphantom_var1 is "the UID of the account you query" (could be yours, or someone else), but the same variable Uphantom_var1 is "from which time" when you query "money history".
Note: all variables roles are described in the API explorer

Example - pay someone

Lets assume that you own a Uphantom account, and you want to pay a friend that gave you his "account UID".

Step 1: check your balance:
https://api.Uphantom.com/api.php?Uphantom_action=account&Uphantom_subaction=balance&Uphantom_uid=PVACGQ91b3fbe66aec2f31b7469dd33073650f16472092343735060001700185&Uphantom_key=ZZDEAX5f122cb2e53dd6054cf904b7f7f6522516472092343732927126451395

Step 2: check if your friend account exists:
https://api.Uphantom.com/api.php?Uphantom_action=account&Uphantom_subaction=status&Uphantom_uid=PVACGQ91b3fbe66aec2f31b7469dd33073650f16472092343735060001700185&Uphantom_key=ZZDEAX5f122cb2e53dd6054cf904b7f7f6522516472092343732927126451395&Uphantom_var1=LMCDQB1bb58dff32d0565ff9aee42a1312d2e216472138328739134664572775
(We bold the friend account UID)

Step 3: pay $20 to your friend:
https://api.Uphantom.com/api.php?Uphantom_action=money&Uphantom_subaction=pay&Uphantom_uid=PVACGQ91b3fbe66aec2f31b7469dd33073650f16472092343735060001700185&Uphantom_key=ZZDEAX5f122cb2e53dd6054cf904b7f7f6522516472092343732927126451395&Uphantom_var1=20&Uphantom_var2=LMCDQB1bb58dff32d0565ff9aee42a1312d2e216472138328739134664572775

Step 4: check your account balance again:
https://api.Uphantom.com/api.php?Uphantom_action=account&Uphantom_subaction=balance&Uphantom_uid=PVACGQ91b3fbe66aec2f31b7469dd33073650f16472092343735060001700185&Uphantom_key=ZZDEAX5f122cb2e53dd6054cf904b7f7f6522516472092343732927126451395

Step 5: Get all your account transactions:
https://api.Uphantom.com/api.php?Uphantom_action=money&Uphantom_subaction=history&Uphantom_uid=PVACGQ91b3fbe66aec2f31b7469dd33073650f16472092343735060001700185&Uphantom_key=ZZDEAX5f122cb2e53dd6054cf904b7f7f6522516472092343732927126451395&Uphantom_var1=0&Uphantom_var2=0&Uphantom_var3=100