Documentchain® Webserver Json API
Blockchain info:
https://api.documentchain.org/?api=getinfo
Auditing - search document:
https://api.documentchain.org/?api=audit&file=hash&raw=bool
https://api.documentchain.org/?api=audit&tx=txid&raw=bool
https://api.documentchain.org/?api=getrawtransaction&tx=txid&verbose=bool
Store document hashes:
https://api.documentchain.org/?api=post&ver=0001&app=1005&guid=guid&file=hash&attr=hash&owner=hash
Optional param for all functions:
&id=yourid
: to verify the response, will be returned in json
&testnet=bool
: set to 1 or true to use the testnet
How to use this API in your own web service
JavaScript example
using the public API server.
Try it now in testnet - Search for file and post new file
This is free of charge in testnet, but also only suitable for testing. Click on the following button to select the document file.
Development log
- 26 Jun 2020 (hk): Revision v2
- 24 Jun 2020 (wb): Summary of all Explorer and Web API functions in one source file
- 12 May 2020 (hk): Office Manager API
- 05 May 2020 (wb): logo, api example links
- 04 May 2020 (hk): json api "getrawtransaction"
- 03 May 2020 (hk): json api "getinfo", param "id" for all functions
- 02 May 2020 (wb): api help
- 02 May 2020 (hk): json api "post", move code to api object
- 30 Apr 2020 (hk): json api "doc"
- 29 Apr 2020 (hk): first json api request "search"
- 28 Apr 2020 (wb): guid
- 26 Apr 2020 (hk): php post file to testnet
- 24 Apr 2020 (hk): javascript select file, calc hash. php search on blockchain (testnet, ui html)