Now everyone can integrate this blockchain to their application/website.
Api is located here: http://cryptotrends.info/api/
Here's an example of use:
Code:
http://cryptotrends.info/api/index.php?coin=DUCK&user=a&pass=b&method=getinfo¶m1=null
Parameters:
- coin
- user
- pass
- method
- param1
Details:
- coin
- chose what block chain you want to access
- user & pass
- currently aren't used, but plan to use them for some other api calls (online wallet, etc...)
- method
- method being called
- param1
- additional parameter used in some calls
- available methods
Code:
getinfo - show info about the coin
getnetworkhashps - shows total network hashrate (H/s)
getrawtransaction - show details about a transaction ( requires param1 to be transaction hash )
getblock - show details about the block ( requires param1 to be block hash )
getblockhash - show details about the block ( requires param1 to be block index)
validateaddress - validates if address is correct format ( requires param1 to be address )
Output will be in a JSON forma, easily readable to anybody.
Code:
{"version":80600,"protocolversion":70001,"walletversion":60000,"balance":0,"blocks":1470,"timeoffset":-1,"connections":17,"proxy":"","difficulty":8.95398695,"testnet":false,"keypoololdest":1392116887,"keypoolsize":101,"paytxfee":0,"errors":""}
This API is free for use, and if you need any help about setting it up, or have suggestions on what to add, send me a PM.
Any tips are welcome:
BTC: 1B6LErbRd3VVk7wUWKMe7K3sKfaj7PnQer
DUCK: dbTmfJnH7fVPUgEQgLpnFn5fHtqyE51Zfv