Exemplo n.º 1
0
 public Types.Header?GetHeaderByNumber(UInt64 number)
 {
     string[] methodParams = { Hex.UInt64ToHex(number) };
     return(Call <Types.Header>("get_header_by_number", methodParams));
 }
Exemplo n.º 2
0
 public Types.Block?GetBlockByNumber(UInt64 num)
 {
     string[] methodParams = { Hex.UInt64ToHex(num) };
     return(Call <Types.Block>("get_block_by_number", methodParams));
 }
Exemplo n.º 3
0
 public Types.EpochView?GetEpochByNumber(UInt64 epochNumber)
 {
     string[] methodParams = { Hex.UInt64ToHex(epochNumber) };
     return(Call <Types.EpochView>("get_epoch_by_number", methodParams));
 }
Exemplo n.º 4
0
 /// <summary>
 /// get a live cell entity
 /// </summary>
 /// <param name="txhash"></param>
 /// <param name="index"></param>
 /// <returns></returns>
 public Types.LiveCell?GetLiveCell(string txhash, ulong index)
 {
     object[] methodParams = { new { index = Hex.UInt64ToHex(index), tx_hash = txhash }, true };
     return(Call <Types.LiveCell>("get_live_cell", methodParams));
 }