All Downloads are FREE. Search and download functionalities are using the official Maven repository.

elrond.AccountOnNetwork Maven / Gradle / Ivy

There is a newer version: 1.0.4
Show newest version
package elrond;

import java.math.BigInteger;

import elrond.ProxyProvider.PayloadOfGetAccount;

public class AccountOnNetwork {
    private long nonce = 0;
    private BigInteger balance = BigInteger.valueOf(0);

    public static AccountOnNetwork fromProviderPayload(PayloadOfGetAccount response) {
        AccountOnNetwork account = new AccountOnNetwork();
        account.nonce = response.nonce;
        account.balance = response.balance;
        return account;
    }

    public long getNonce() {
        return nonce;
    }

    public BigInteger getBalance() {
        return balance;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy