package org.bdware.sc;

import org.junit.Test;

public class LedgerUtilTest {

    @Test
    public void query(){
//        String str = "0828c62576606e27ef8d079dea60cadd6eb03351";
//        Client c = new Client("022.node.internetapi.cn",21121);
//        QueryProto.GetTransactionByHashResponse syncResult = c.getTransactionByHashSync("default", "5c79fb8d71771615a5c8173b8089cd4841c3adfb");
//        System.out.println(new String(syncResult.getTransaction().getData().toByteArray()));
//        System.out.println(syncResult.getTransaction().getData().toByteArray().length);
       // 092：47.107.94.135
       // 093：120.79.215.187
//        QueryOuterClass.GetTransactionByHashResponse hash = c.getTransactionByHashSync("test", str);
//        String str2 =  hash.getTransaction().getFrom().toStringUtf8();
//        System.out.println("===="+str2);
    }
}
