All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.arkecosystem.client.api.two.Wallets Maven / Gradle / Ivy

The newest version!
package org.arkecosystem.client.api.two;

import com.google.gson.internal.LinkedTreeMap;
import org.arkecosystem.client.http.Client;

import java.io.IOException;
import java.util.Map;

public class Wallets {
    Client client;

    public Wallets(Client client) {
        this.client = client;
    }

    public LinkedTreeMap all() throws IOException {
        return this.client.get("wallets");
    }

    public LinkedTreeMap show(String ip) throws IOException {
        return this.client.get("wallets/" + ip);
    }

    public LinkedTreeMap transactions(String ip) throws IOException {
        return this.client.get("wallets/" + ip + "/transactions");
    }

    public LinkedTreeMap sentTransactions(String ip) throws IOException {
        return this.client.get("wallets/" + ip + "/transactions/sent");
    }

    public LinkedTreeMap receivedTransactions(String ip) throws IOException {
        return this.client.get("wallets/" + ip + "/transactions/received");
    }

    public LinkedTreeMap votes(String ip) throws IOException {
        return this.client.get("wallets/" + ip + "/votes");
    }

    public LinkedTreeMap search(Map parameters) throws IOException {
        return this.client.post("wallets/search", parameters);
    }

    public LinkedTreeMap top() throws IOException {
        return this.client.get("wallets/top");
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy