Factom PRO API
- API version: 1.5.0
- Build date: 2021-07-30T15:28:24.262574+02:00[Europe/Madrid]
Factom PRO is a cloud blockchain gateway for securing your business data. Store data on the Bitcoin and Ethereum blockchains at a low fixed price of $0.01 per write. No cryptocurrency. No nodes.
For more information, please visit https://factom.pro
Automatically generated by the Swagger Codegen
Building the API client library requires:
- Java 1.7+
- Maven/Gradle
To install the API client library to your local Maven repository, simply execute:
mvn clean install
To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
mvn clean deploy
Refer to the OSSRH Guide for more information.
Add this dependency to your project's POM:
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-java-client</artifactId>
<version>1.0.0</version>
<scope>compile</scope>
</dependency>
Add this dependency to your project's build file:
compile "io.swagger:swagger-java-client:1.0.0"
At first generate the JAR by executing:
mvn clean package
Then manually install the following JARs:
target/swagger-java-client-1.0.0.jar
target/lib/*.jar
Please follow the installation instruction and execute the following Java code:
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApiApi;
import java.io.File;
import java.util.*;
public class ApiApiExample {
public static void main(String[] args) {
ApiApi apiInstance = new ApiApi();
try {
InlineResponse200 result = apiInstance.getAPIInfo();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ApiApi#getAPIInfo");
e.printStackTrace();
}
}
}
All URIs are relative to https://api.factom.pro/v1
Class | Method | HTTP request | Description |
---|---|---|---|
ApiApi | getAPIInfo | GET / | Get API info |
ChainsApi | createChain | POST /chains | Create chain |
ChainsApi | getChain | GET /chains/{chainId} | Get chain |
ChainsApi | getChainEntries | GET /chains/{chainId}/entries | Get chain entries |
ChainsApi | getChainFirstEntry | GET /chains/{chainId}/entries/first | Get first entry of the chain |
ChainsApi | getChainLastEntry | GET /chains/{chainId}/entries/last | Get last entry of the chain |
ChainsApi | getUserChains | GET /chains | Get user's chains |
ChainsApi | searchChainEntries | POST /chains/{chainId}/entries/search | Search chain entries |
ChainsApi | searchUserChains | POST /chains/search | Search user's chains |
EntriesApi | createEntry | POST /entries | Create entry |
EntriesApi | getEntry | GET /entries/{entryHash} | Get entry |
UserApi | getUser | GET /user | Get user info |
- Chain
- ChainLinks
- CreatedChain
- CreatedChainLinks
- Entry
- ExtIds
- InlineResponse200
- InlineResponse2001
- InlineResponse2002
- InlineResponse2003
- InlineResponse2004
- InlineResponse2005
- InlineResponse2006
- InlineResponse200Result
- InlineResponse400
- InlineResponse401
- InlineResponse500
- Link
- NewChain
- NewEntry
- SearchExtIds
- SortParams
- StatusParams
- User
Authentication schemes defined for the API:
It's recommended to create an instance of ApiClient
per thread in a multithreaded environment to avoid any potential issues.