Public API's For TCC ( The Champcoin ) :

 

1. Liverate API : 

Info : This API Will Provide you Live Buy and Sell Rate of TCC .

URL : http://liverate.thechampcoin.com/marketapi/coinapi.aspx?method=getrates

Response : Json

Response Example :

{"BTC":{"CHAMPC":{"BuyRate":"0.00005491","SellRate":"0.00005570"}}}

- BuyRate : Live Rate of Buy TCC
- SellRate : Live Rate of Sell TCC

 


 

2. TCC Current Coins Supply API :

Info : This API Will Provide You Current Supply of TCC.

URL : http://tccsupply.thechampcoin.com/marketapi/coinapi.aspx?method=getsupply

Reponse : Json

Response Example :

{"BTC":{"CHAMPC":{"supply":"218000000"}}}

- supply : Total Coins in Supply Right Now.

 


 

3. TCC Live Market API :

Info : This API Will Provide Live Market Pricing Like. 24 Hour High and Low, Total BTC Volume, Total TCC Volume, etc.

URL : http://livemarket.tccexchange.org/marketapi/market.aspx

Reponse : Json

Response Example :

{"BTC":{"BTC_TCC":{"id":"1","last":"0.00005179","lowestAsk":"0.00005174","highestBid":"0.00003179","percentChange":"-1.50990878","baseVolume":"100.80665398","quoteVolume":"6040643.70989708","isFrozen":"0","high24hr":"0.00005340","low24hr":"0.00005170"}}}

 

- baseVolume= Btc trade volume

- quoteVolume = Tcc trade volume
- low24hr = 24 hour low
- high24hr = 24 hour high
- last = current rate
- percentChange = percentage change in rate.


 

 

4. TCC BlockChain Explorer :

A.) TCC Blockchain Explorer:

URL : http://blockchain.thechampcoin.com/marketapi/coinapi.aspx?method=blockexplorer

Response : Json

Reponse Example :

{
"BTC":
{"CHAMPC":
{
"amount":"2000.00000",
"date":"21-07-2017 02:52:00 AM",
"hash_id":"846ba02424e3db642fab5ebaac8b2897056a2cc1",
"receiver":"65F3E40B8BBE3AACC50F060C5886FB",
"sender":"AA93FB77E4DCA204F3FDE2315494DF"
}

{
"amount":"7200.00000",
"date":"21-07-2017 02:52:00 AM",
"hash_id":"846ba02424e3db642fab5ebc8b2897056a2cc1",
"receiver":"65F3E40B8BBE3AACC395060C5886FB",
"sender":"AA93FB77E4DCA204C4F3F2315494DF"
}

{
"amount":"2000.00000",
"date":"21-07-2017 02:52:00 AM",
"hash_id":"846ba02424e3db642fab5baac8b2897056a21",
"receiver":"65F3E40B8BBE3AACC3950F060C5886FB",
"sender":"AA93FB77E4DCA204C4FFDE2315494DF"
}

{
"amount":"7000.00000",
"date":"21-07-2017 02:52:00 AM",
"hash_id":"846ba02424e3db642fab5ebaac8b28970a2cc1",
"receiver":"65F3E40B8BBE3AACC3950F065886FB",
"sender":"AA93FB77E4DCA204C4F3FDE15494DF"
}

......
}
}

- amount : TCC Amount
- date : Transaction Date
- receiver : Receiver Address
- sender : Sender Address
- hash_id : HASH ID to Search

 

B.) TCC Blockchain Search any Transaction By HashID :

URL : http://blockchain.thechampcoin.com/marketapi/coinapi.aspx?method=blockexplorer&hash_id=HASHID

Response : Json

Reponse Example :

{
"BTC":
{"CHAMPC":
{
"amount":"2000.00000",
"date":"21-07-2017 02:52:00 AM",
"hash_id":"846ba02424e3db642fab5ebaac8b2897056a2c",
"receiver":"65F3E40B8BBE3AACC3950F060C5886",
"sender":"AA93FB77E4DCA204C4F3FDE231549"
}
}
}

- amount : TCC Amount
- date : Transaction Date
- receiver : Receiver Address
- sender : Sender Address
- hash_id : HASH ID to Search

 

 


 

5. Receiving TCC With API and Getting Report With Sub_ID :

 

If You Want to Pass any SubID while sending TCC to anyone then you can Pass it through Folling Method. In Part A. We will Teach You How to Create a Smart QR Code In which You can Pass SubID's .

A.) Creating Smart QR Code to Receive TCC and Pass SubID's : In New Version on TCC Exchange App you can Scan Smart QR Code to Pass SubID's and Other Things . Here is the Example which teaches you how you can Create Smart QR Code to Send TCC From TCC App:

 

Example Link : 

 

http://chart.apis.google.com/chart?cht=qr&chs=300x300&chl=walletaddress={YourWalletAddress}|amount={TCCAmount}|remark={YouRemarks}|subid1={xxsub1}|subid2={xxsub2}|subid3={xxsub3}|subid4={xxsub4}

 

When You Hit above API You will get a QR Code and That QR Code can Be Scanned by Your Customer for sending you TCC. All Parameters are Separated by "|" (Pipe Symbol) Where :

 

chs=Size of QR Code ( You can Change Size accordingly)

walletaddress = Your Walet Address Where you want to Receive TCC

amount = Amount of TCC you want to receive, Eg : 10 .

remark : You can Write any remark here for your referance.

subid1 - subid4 : You can Pass any SubID like Username , Name , mobileno. etc of User so that you can know which user sent you TCC.

 

Note : All Parameter are separated by | (Pipe) and Dont Change Format of URL for generating QR Code.

 

As You Generate QR Code with Above parameter user Opens TCC Exchange app and Clicks on Send TCC. When User Scan Your Smart QR Code then his all textboxes Will get Autofilled and he cant edit them. As he send you TCC You can Track him With Following report which we are giving you in Section B.

 

B.) Generating Report of Receiving TCC From anyone : If your Customer Sent you TCC with Scanning Smart QR Code or with Simple QR code then you can Generate the jSon or XML Report to view the transactions which you received.

 

API Example For Json Result: 

 

http://liverate.tccexchange.org/marketapi/coinapi.aspx?method=getMarketTransaction&userid={YourUserID}&password={YourLoginPassword}&response=json

 

API Example For XML Result: 

 

http://liverate.tccexchange.org/marketapi/coinapi.aspx?method=getMarketTransaction&userid={YourUserID}&password={YourLoginPassword}&date=YYYY-MM-DD&response=xml

 

Where ,

 

userid = Your Userid which you uses to login in TCC Exchange.

password = Your Login Password

response = Tyoe od response you need , xml or json.

date = Date of Trsnsactions you need . It is must you provide date in YYYY-MM-DD format.

 

Response Example :

 

<paymenthistory>
<nam>vishnu</nam>
<referid>1000212121</referid>
<before_balance>727.23011180</before_balance>
<amount>11.00000</amount>
<after_balance>716.21911180</after_balance>
<pay_mode>sent</pay_mode>
<date>14-08-2017 03:04:30 AM</date>
<tid>CWID50709066</tid>
<wallet_address>0A5CB62DCBB6DC326D47BE55</wallet_address>
<status>
Approved Hash ID : c58315c063fe44184bf3f042737c004b32
</status>
<desc>
TCC amount 11.000000 sent to vishnu successfully./User Comment : Hi there how are you. /Transaction Charges deducted : 0.01100000
</desc>
<sub1>xxsub1</sub1>
<sub2>xxsub2</sub2>
<sub3>xxsub3</sub3>
<sub4>sub4</sub4>
<sub5/>
</paymenthistory>
 
 
Where ,
 
nam = Name of Sender
referid = Your UserID
before_balance = Your Before transacrtion Balance
after_balance = Your After Transaction balance
amount = TCC Amount send by User.
pay_mode = send (default)
date = Trancstion Date
tid = transaction ID
wallet_address = Wallet address of Sender.
status = Hashid