use of io.bisq.api.model.BtcWalletAddress in project bisq-api by mrosseel.
the class BtcWalletResource method getOrCreateBtcWalletAddresses.
@ApiOperation("Get or create wallet addresses")
@POST
@Path("/addresses")
public BtcWalletAddress getOrCreateBtcWalletAddresses(@Valid CreateBtcWalletAddress payload) {
final AddressEntry addressEntry = bisqProxy.getOrCreateBtcWalletAddresses(payload.context, payload.unused);
final BtcWalletAddress btcWalletAddress = new BtcWalletAddress();
btcWalletAddress.address = addressEntry.getAddressString();
return btcWalletAddress;
}
Aggregations