创建请求

这个过程分为两步,先创建ContractService对象,再指定之前构造的交易体调用相应的服务接口,示例如下:

  1. ContractService contractService = ServiceManager.getContractService(providerManager);
  2. Request<TxHashResponse> contractRequest = contractService.deploy(transaction);