-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathExample.java
33 lines (24 loc) · 978 Bytes
/
Example.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.samourai.boltzmann;
import com.samourai.boltzmann.beans.BoltzmannResult;
import com.samourai.boltzmann.beans.BoltzmannSettings;
import com.samourai.boltzmann.beans.Txos;
/** Example of Boltzmann usage. */
public class Example {
public static void main(String[] args) {
// configure and initialize Boltzmann
BoltzmannSettings settings = new BoltzmannSettings();
// settings.setXXX()
// initialize Boltzmann
Boltzmann bolzmann = new Boltzmann(settings);
// configure TXOS to process
Txos txos = new Txos();
txos.getInputs().put("1KHWnqHHx3fQuRwPmwhZGbSYzDbN3SdhoR", 4900000000L);
txos.getInputs().put("15Z5YJaaNSxeynvr6uW6jQZLwq3n1Hu6RX", 100000000L);
txos.getOutputs().put("1NKToQ48X5qaMo1ndexWmHKnn6FNNViivq", 4900000000L);
txos.getOutputs().put("15Z5YJaaNSxeynvr6uW6jQZLwq3n1Hu6RX", 100000000L);
// process
BoltzmannResult result = bolzmann.process(txos);
// get results
// result.getXXX
}
}