Class SmartContractResource

java.lang.Object
dev.getelements.elements.rest.blockchain.SmartContractResource

@Path("blockchain/omni/smart_contract") public class SmartContractResource extends Object
  • Constructor Details

    • SmartContractResource

      public SmartContractResource()
  • Method Details

    • getSmartContracts

      @GET @Produces("application/json") public Pagination<SmartContract> getSmartContracts(@QueryParam("offset") @DefaultValue("0") int offset, @QueryParam("count") @DefaultValue("20") int count, @QueryParam("api") BlockchainApi api, @QueryParam("network") List<BlockchainNetwork> network)
    • getSmartContract

      @GET @Path("{contractId}") @Produces("application/json") public SmartContract getSmartContract(@PathParam("contractId") String contractId)
    • createSmartContract

      @POST @Produces("application/json") public SmartContract createSmartContract(CreateSmartContractRequest createSmartContractRequest)
    • updateSmartContract

      @PUT @Path("{contractId}") @Produces("application/json") public SmartContract updateSmartContract(@PathParam("contractId") String contractId, UpdateSmartContractRequest updateSmartContractRequest)
    • deleteContract

      @DELETE @Path("{contractId}") @Produces("application/json") public void deleteContract(@PathParam("contractId") String contractId)
    • getSmartContractService

      public SmartContractService getSmartContractService()
    • setSmartContractService

      @Inject public void setSmartContractService(SmartContractService bscSmartContractService)