Вызываемые методы

public static DAPDatumTx fromJson(String json) {

public DAPDatumTx signDatumTx(DAPDatumTx datumTx)

public static DAPWallet fromFile(File file) public static DAPWallet fromFile(File file, String password)

public static DAPWallet create(Path path, String name, DAPWalletType signType, String seed, String password) public static DAPWallet create(Path path, String name, DAPWalletType signType) public static DAPWallet create(Path path, String name, DAPWalletType signType, String password)

public DAPWalletAddress getAddress(DAPNetID netId)

public int getCertsNumber()

public DAPEncKey getEncKey() public static DAPEncKey fromNativeHandle(long nativeHandle) { return new DAPEncKey(nativeHandle); }

public String toJson() public static DAPDatumTx fromJson(String json)

DAPWallet WAL = DAPWallet.create(Paths.get(“./”), “wallettest”, DAPWalletType.SIG_DIL, “12345”);

    DAPNetID networkID  = DAPNetID.fromHex("0x0404202200000000");

    DAPWalletAddress getAddr = WAL.getAddress(networkID);

    System.out.printf(getAddr.toString());

    try {
        Path path = Paths.get("jsonin(1).txt");

        String jsonIN = Files.readString(path);
        System.out.println(jsonIN);
        DAPDatumTx TX = DAPDatumTx.fromJson(jsonIN);

    DAPEncKey key = WAL.getEncKey();

    DAPSigner  signer = new DAPSigner(key);

    DAPDatumTx signedTX = signer.signDatumTx(TX);

    System.out.println(signedTX.toJson());

    }catch (IOException e) { e.printStackTrace();}