com.yanxisir.neb.service.INebApiAdminService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neb-call Show documentation
Show all versions of neb-call Show documentation
A http toolkit for nebulas
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