Class SmartContractResource
java.lang.Object
dev.getelements.elements.rest.blockchain.SmartContractResource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSmartContract
(CreateSmartContractRequest createSmartContractRequest) void
deleteContract
(String contractId) getSmartContract
(String contractId) getSmartContracts
(int offset, int count, BlockchainApi api, List<BlockchainNetwork> network) void
setSmartContractService
(SmartContractService bscSmartContractService) updateSmartContract
(String contractId, UpdateSmartContractRequest updateSmartContractRequest)
-
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
-
setSmartContractService
-