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

com.yanxisir.neb.service.INebApiAdminService Maven / Gradle / Ivy

There is a newer version: 0.0.6
Show newest version
package com.yanxisir.neb.service;

import com.yanxisir.neb.bean.*;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import rx.Observable;

/**
 * https://github.com/nebulasio/wiki/blob/master/rpc_admin.md
 *
 * @author YanxiSir
 * @since 2018/5/19
 */
public interface INebApiAdminService {

    @GET("/v1/admin/nodeinfo")
    Observable> nodeInfo();

    @GET("/v1/admin/accounts")
    Observable> accounts();

    @POST("/v1/admin/account/new")
    Observable> newAccount(@Body NewAccountReq req);

    @POST("/v1/admin/account/unlock")
    Observable> unLockAccount(@Body UnLockAccountReq req);

    @POST("/v1/admin/account/lock")
    Observable> lockAccount(@Body LockAccountReq req);

    @POST("/v1/admin/sign")
    Observable> signTxWithPhrase(@Body SignTxWithPhraseReq req);

    @POST("/v1/admin/transactionWithPassphrase")
    Observable> sendTxWithPhrase(@Body SendTxWithPhraseReq req);

    @POST("/v1/admin/transaction")
    Observable> sendTransaction(@Body SendTransactionReq req);

    @POST("/v1/admin/sign/hash")
    Observable> signHash(@Body SignHashReq req);

    @POST("/v1/admin/pprof")
    Observable> startPprof(@Body StartPprofReq req);

    @GET("/v1/admin/getConfig")
    Observable> nebConfig();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy