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

org.arkecosystem.client.api.two.Transactions 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 Transactions {
    Client client;

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

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

    public LinkedTreeMap create(Map transactions) throws IOException {
        return this.client.post("transactions", transactions);
    }

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

    public LinkedTreeMap allUnconfirmed() throws IOException {
        return this.client.get("transactions/unconfirmed");
    }

    public LinkedTreeMap showUnconfirmed(String id) throws IOException {
        return this.client.get("transactions/unconfirmed/" + id);
    }

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy