Exemple #1
0
    //example address "0x00426144802b6F195c551b97b3b6950AaA012d35"

    // Use this for initialization
    void Start()
    {
        StartCoroutine(ManageAccount.getAccountBalance("0x00426144802b6F195c551b97b3b6950AaA012d35", (balance) => {
            Debug.Log(balance);
        }));

        // Password to encrypt the new account and a callback
        //CreateAccount("strong_password", (address, encryptedJson) => {
        //    // We just print the address and the encrypted json we just created
        //    Debug.Log(address);
        //    Debug.Log(encryptedJson);

        //    // Then we check the balance like before but in this case using the new account
        //    StartCoroutine(getAccountBalance(address, (balance) => {
        //        Debug.Log(balance);
        //    }));
        //});
    }