@Test public void testLimitOrderCreateTransaction(){ ECKey privateKey = new BrainKey(BILTHON_7_BRAIN_KEY, 0).getPrivateKey(); expiration = (System.currentTimeMillis() / 1000) + 60 * 60; LimitOrderCreateOperation operation = new LimitOrderCreateOperation(seller, amountToSell, minToReceive, (int) expiration, false); operation.setFee(new AssetAmount(UnsignedLong.valueOf(2), CORE_ASSET)); ArrayList<BaseOperation> operationList = new ArrayList<>(); operationList.add(operation); broadcastTransaction(privateKey, operationList, listener, null); }
public ECKey getPrivateKey(){ return this.privateKey; }
Transaction implements ByteSerializable, JsonSerializable { public ECKey getPrivateKey(){ return this.privateKey; } }
Transaction implements ByteSerializable, JsonSerializable { public ECKey getPrivateKey(){ return this.privateKey; } Transaction(byte[] chainId, ECKey privateKey, BlockData blockData, List<BaseOperation> operations);  Transaction(ECKey privateKey, BlockData blockData, List<BaseOperation> operationList);  Transaction(String wif, BlockData block_data, List<BaseOperation> operation_list);  Transaction(BlockData blockData, List<BaseOperation> operationList); }
Transaction implements ByteSerializable, JsonSerializable { public ECKey getPrivateKey(){ return this.privateKey; } Transaction(byte[] chainId, ECKey privateKey, BlockData blockData, List<BaseOperation> operations);  Transaction(ECKey privateKey, BlockData blockData, List<BaseOperation> operationList);  Transaction(String wif, BlockData block_data, List<BaseOperation> operation_list);  Transaction(BlockData blockData, List<BaseOperation> operationList); void setBlockData(BlockData blockData); BlockData getBlockData(); void setFees(List<AssetAmount> fees); ECKey getPrivateKey(); List<BaseOperation> getOperations(); boolean hasPrivateKey(); byte[] getGrapheneSignature(); void setChainId(String chainId); void setChainId(byte[] chainId); byte[] getChainId(); byte[] toBytes(); @Override String toJsonString(); @Override JsonObject toJsonObject(); }
Transaction implements ByteSerializable, JsonSerializable { public ECKey getPrivateKey(){ return this.privateKey; } Transaction(byte[] chainId, ECKey privateKey, BlockData blockData, List<BaseOperation> operations);  Transaction(ECKey privateKey, BlockData blockData, List<BaseOperation> operationList);  Transaction(String wif, BlockData block_data, List<BaseOperation> operation_list);  Transaction(BlockData blockData, List<BaseOperation> operationList); void setBlockData(BlockData blockData); BlockData getBlockData(); void setFees(List<AssetAmount> fees); ECKey getPrivateKey(); List<BaseOperation> getOperations(); boolean hasPrivateKey(); byte[] getGrapheneSignature(); void setChainId(String chainId); void setChainId(byte[] chainId); byte[] getChainId(); byte[] toBytes(); @Override String toJsonString(); @Override JsonObject toJsonObject(); static final int DEFAULT_EXPIRATION_TIME; static final String KEY_EXPIRATION; static final String KEY_SIGNATURES; static final String KEY_OPERATIONS; static final String KEY_EXTENSIONS; static final String KEY_REF_BLOCK_NUM; static final String KEY_REF_BLOCK_PREFIX; }