id | title |
---|---|
api-documentation |
API Documentation |
public Client(String host, String version)
Create a new Client class instance.
Type | Name | Required | Description |
---|---|---|---|
String | host | Yes | Node url |
String | version | Yes | Version to use |
public LinkedTreeMap<String, Object> get(String url, Map<String, Object> params)
Send a GET request with query parameters.
Type | Name | Required | Description |
---|---|---|---|
String | url | Yes | Endpoint |
Map | params | No | Query parameters |
LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> get(String url)
Send a GET request without query parameters.
Type | Name | Required | Description |
---|---|---|---|
String | url | Yes | Endpoint |
LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> post(String url, Map payload)
Send a POST request with JSON-encoded parameters.
Type | Name | Required | Description |
---|---|---|---|
String | url | Yes | Endpoint |
Map | payload | Yes | Transaction(s) to post |
LinkedTreeMap<String, Object>
public OkHttpClient getClient()
Get Client instance.
OkHttpClient
public void setClient(OkHttpClient client)
Set client instance.
Type | Name | Required | Description |
---|---|---|---|
OkHttpClient | client | Yes | Client |
LinkedTreeMap<String, Object>
public Connection(Map<String, Object> config)
Connection class constructor.
Type | Name | Required | Description |
---|---|---|---|
Map | config | Yes | Configuration |
public T api()
Instantiate new Api.
Type | Name | Required | Description |
---|---|---|---|
Map | config | Yes | Configuration |
T
public ConnectionManager()
ConnectionManager class constructor.
public String getDefaultConnection()
Get the default connection name.
String
public void setDefaultConnection(String name)
Set the default connection.
Type | Name | Required | Description |
---|---|---|---|
String | name | Yes | Connection name |
void
public Map<String, Connection<? extends AbstractAPI>> getConnections()
Get a map of connections.
Map<String, Connection<? extends AbstractAPI>>
public <T extends AbstractAPI> Connection<T> connect(Map config, String name)
Connect to the given connection.
Type | Name | Required | Description |
---|---|---|---|
Map | config | Yes | Configuration |
String | name | Yes | Connection name |
<T extends AbstractAPI>
public <T extends AbstractAPI> Connection<T> connect(Map config)
Connect to the given connection.
Type | Name | Required | Description |
---|---|---|---|
Map | config | Yes | Configuration |
<T extends AbstractAPI>
public void disconnect(String name)
Disconnect from given connection.
Type | Name | Required | Description |
---|---|---|---|
String | name | Yes | Connection name |
void
public void disconnect()
Disconnect from given connection.
public <T extends AbstractAPI> Connection<T> connection(String name)
Get a connection instance.
Type | Name | Required | Description |
---|---|---|---|
String | name | Yes | Connection name |
<T extends AbstractAPI>
public Connection connection()
Get a connection instance.
Connection
public AbstractAPI(Client client) {
Create a new API class instance.
Type | Name | Required | Description |
---|---|---|---|
Client | client | Yes | Client |
public Blockchain(Client client)
Blockchain class constructor.
Type | Name | Required | Description |
---|---|---|---|
Client | client | Yes | Client |
public Blocks(Client client)
Blocks class constructor.
Type | Name | Required | Description |
---|---|---|---|
Client | client | Yes | Client |
public LinkedTreeMap<String, Object> all()
Get all blocks.
LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> show(String id)
Get a block by the given id.
Type | Name | Required | Description |
---|---|---|---|
String | id | Yes | Block ID |
LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> transactions(String id)
Get all transactions by the given block.
Type | Name | Required | Description |
---|---|---|---|
String | id | Yes | Block ID |
LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> search(Map<String, Object> parameters)
Filter all blocks by the given parameters.
Type | Name | Required | Description |
---|---|---|---|
Map | parameters | Yes | Query parameters |
LinkedTreeMap<String, Object>
public Bridgechians(Client client)
Bridgechains class constructor.
Type | Name | Required | Description |
---|---|---|---|
Client | client | Yes | Client |
public LinkedTreeMap<String, Object> all()
Get all bridgechains.
LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> show(String id)
Get a bridgechain by genesis hash.
Type | Name | Required | Description |
---|---|---|---|
String | id | Yes | Bridgechain identifier |
LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> search(Map<String, Object> parameters)
Filter all bridgechains by the given parameters.
Type | Name | Required | Description |
---|---|---|---|
Map | parameters | Yes | Query parameters |
public Businesses(Client client)
Businesses class constructor.
Type | Name | Required | Description |
---|---|---|---|
Client | client | Yes | Client |
public LinkedTreeMap<String, Object> all()
Get all business wallets.
LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> show(String id)
Get a business by wallet address.
Type | Name | Required | Description |
---|---|---|---|
String | id | Yes | Business identifier |
public LinkedTreeMap<String, Object> showBridgechains(String id)
Get all bridgechains of a wallet.
Type | Name | Required | Description |
---|---|---|---|
String | id | Yes | Business identifier |
public LinkedTreeMap<String, Object> search(Map<String, Object> parameters)
Filter all businesses by the given parameters.
Type | Name | Required | Description |
---|---|---|---|
Map | parameters | Yes | Query parameters |
public Delegates(Client client)
Delegates class constructor.
Type | Name | Required | Description |
---|---|---|---|
Client | client | Yes | Client |
public LinkedTreeMap<String, Object> all()
Get all accounts.
LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> show(String id)
Get a delegate by the given id.
Type | Name | Required | Description |
---|---|---|---|
String | id | Yes | Delegate identifier |
LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> blocks(String id)
Get all blocks for the given delegate.
Type | Name | Required | Description |
---|---|---|---|
String | id | Yes | Delegate identifier |
LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> voters(String id)
Get all voters for the given delegate.
Type | Name | Required | Description |
---|---|---|---|
String | id | Yes | Delegate identifier |
LinkedTreeMap<String, Object>
public Locks(Client client)
Locks class constructor.
Type | Name | Required | Description |
---|---|---|---|
Client | client | Yes | Client |
public LinkedTreeMap<String, Object> all()
Get all locks.
LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> show(String id)
Return all locks by a given wallet address.
Type | Name | Required | Description |
---|---|---|---|
String | id | Yes | Wallet address |
public LinkedTreeMap<String, Object> search(Map<String, Object> parameters)
Filter all locks by the given parameters.
Type | Name | Required | Description |
---|---|---|---|
Map | parameters | Yes | Query parameters |
public LinkedTreeMap<String, Object> searchUnlocked(Map<String, Object> parameters)
Filter all unlocked locks by the given parameters.
Type | Name | Required | Description |
---|---|---|---|
Map | parameters | Yes | Query parameters |
public Node(Client client)
Node class constructor.
Type | Name | Required | Description |
---|---|---|---|
Client | client | Yes | Client |
public LinkedTreeMap<String, Object> configuration()
Get the node configuration.
LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> status()
Get the node status.
LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> syncing()
Get the node syncing status.
LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> fees(Integer... days)
Get fees by days.
LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> debug()
LinkedTreeMap<String, Object>
public Peers(Client client)
Peers class constructor.
Type | Name | Required | Description |
---|---|---|---|
Client | client | Yes | Client |
public LinkedTreeMap<String, Object> all()
Get all peers.
public LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> show(String ip)
Get a peer by the given IP address.
Type | Name | Required | Description |
---|---|---|---|
String | ip | Yes | IP address |
public LinkedTreeMap<String, Object>
public Rounds(Client client)
Rounds class constructor.
Type | Name | Required | Description |
---|---|---|---|
Client | client | Yes | Client |
public LinkedTreeMap<String, Object> delegates(int id)
Returns delegates by given round.
Type | Name | Required | Description |
---|---|---|---|
String | id | Yes | Round identifier |
public Transactions(Client client)
Transactions class constructor.
Type | Name | Required | Description |
---|---|---|---|
Client | client | Yes | Client |
public LinkedTreeMap<String, Object> create(List<HashMap> transactions)
Create a new transaction.
Type | Name | Required | Description |
---|---|---|---|
List | transactions | Yes | Transaction(s) to broadcast |
LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> show(String id)
Get a transaction by the given id.
Type | Name | Required | Description |
---|---|---|---|
String | id | Yes | Transaction ID |
LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> all()
Get all transactions.
LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> allUnconfirmed()
Get all unconfirmed transactions.
LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> showUnconfirmed(String id)
Get an unconfirmed transaction by the given id.
Type | Name | Required | Description |
---|---|---|---|
String | id | No | Unconfirmed transaction ID |
LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> search(Map<String, Object> parameters)
Filter all transactions by the given parameters.
Type | Name | Required | Description |
---|---|---|---|
Map | parameters | Yes | Query parameters |
LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> types()
Get a list of valid transaction types.
LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> schemas()
Get a list of transactions schemas.
LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> fees()
Get a list of transactions fees.
LinkedTreeMap<String, Object>
public Votes(Client client)
Votes class constructor.
Type | Name | Required | Description |
---|---|---|---|
Client | client | Yes | Client |
public LinkedTreeMap<String, Object> all()
Get all votes.
LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> show(String id)
Get a vote by the given id.
Type | Name | Required | Description |
---|---|---|---|
String | id | Yes | Vote identifier |
LinkedTreeMap<String, Object>
public Wallets(Client client)
Wallets class constructor.
Type | Name | Required | Description |
---|---|---|---|
Client | client | Yes | Client |
public LinkedTreeMap<String, Object> all()
Get all wallets.
LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> show(String id)
Get a wallet by the given id.
Type | Name | Required | Description |
---|---|---|---|
String | id | Yes | Wallet identifier |
LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> transactions(String id)
Get all transactions for the given wallet.
Type | Name | Required | Description |
---|---|---|---|
String | id | Yes | Wallet identifier |
LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> receivedTransactions(String id)
Get all transactions received by the given wallet.
Type | Name | Required | Description |
---|---|---|---|
String | id | Yes | Wallet identifier |
LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> sentTransactions(String id)
Get all transactions sent by the given wallet.
Type | Name | Required | Description |
---|---|---|---|
String | id | Yes | Wallet identifier |
LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> votes(String id)
Get all votes by the given wallet.
Type | Name | Required | Description |
---|---|---|---|
String | id | Yes | Wallet identifier |
LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> top()
Get all wallets sorted by balance in descending order.
LinkedTreeMap<String, Object>
public LinkedTreeMap<String, Object> search(Map<String, Object> parameters)
Filter all wallets by the given parameters.
Type | Name | Required | Description |
---|---|---|---|
Map | parameters | Yes | Search query parameters |
LinkedTreeMap<String, Object>