Skip to content
This repository was archived by the owner on Feb 17, 2026. It is now read-only.

Latest commit

 

History

History
52 lines (36 loc) · 2.14 KB

File metadata and controls

52 lines (36 loc) · 2.14 KB

ProofApi

All URIs are relative to https://api.originstamp.com

Method HTTP request Description
getProof POST /v3/timestamp/proof/url Proof

getProof

DefaultOfDownloadLinkResponse getProof(authorization, proofRequestUrl)

Proof

Generates the download URL for Proof (Seed / Merkle Tree). This interface must be used to obtain the proof or certificate of your tamper-proof timestamp. The parameters are as follows: Cryptocurrency (e.g., Bitcoin, Ethereum,..), type of evidence (e.g., certificate, merkle tree) and the associated hash. The entries are analyzed, e.g., whether a valid timestamp exists for the hash. Then the URL and the filename are returned, with which your proof can be saved. Please note that the download link is only valid for 5 minutes. When using cURL to fetch the proof with the download link make sure to specify "application/octet-stream" in the "Accept" header.

Example

// Import classes:
//import com.originstamp.api.client.ApiException;
//import com.originstamp.api.ProofApi;

ProofApi apiInstance = new ProofApi();
String authorization = "authorization_example"; // String | A valid API key is essential for authorization to handle the request.
ProofRequest proofRequestUrl = new ProofRequest(); // ProofRequest | Information needed to return the proof.
try {
    DefaultOfDownloadLinkResponse result = apiInstance.getProof(authorization, proofRequestUrl);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling ProofApi#getProof");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
authorization String A valid API key is essential for authorization to handle the request.
proofRequestUrl ProofRequest Information needed to return the proof.

Return type

DefaultOfDownloadLinkResponse

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json