com.yanxisir.neb.service.INebApiUserService Maven / Gradle / Ivy
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.md
*
* @author YanxiSir
* @since 2018/5/18
*/
public interface INebApiUserService {
@GET("/v1/user/nebstate")
Observable> nebState();
@POST("/v1/user/accountstate")
Observable> accountState(@Body AccountStateReq req);
@GET("/v1/user/lib")
Observable> lib();
@POST("/v1/user/call")
Observable call(@Body CallReq req);
@POST("/v1/user/rawtransaction")
Observable> rawTransaction(@Body RawTransactionReq req);
@POST("/v1/user/getBlockByHash")
Observable> blockByHash(@Body BlockByHashReq req);
@POST("/v1/user/getBlockByHeight")
Observable> blockByHeight(@Body BlockByHeightReq req);
@POST("/v1/user/getTransactionReceipt")
Observable> transactionReceipt(@Body TransactionReceiptReq req);
@POST("/v1/user/getTransactionByContract")
Observable> transactionByContract(@Body TransactionByContractReq req);
@GET("/v1/user/getGasPrice")
Observable> gasPrice();
@POST("/v1/user/estimateGas")
Observable estimateGas(@Body EstimateGasReq req);
@POST("/v1/user/getEventsByHash")
Observable> eventsByHash(@Body EventsByHashReq req);
@POST("/v1/user/dynasty")
Observable> dynasty(@Body DynastyReq req);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy