public Types.Header?GetHeaderByNumber(UInt64 number) { string[] methodParams = { Hex.UInt64ToHex(number) }; return(Call <Types.Header>("get_header_by_number", methodParams)); }
public Types.Block?GetBlockByNumber(UInt64 num) { string[] methodParams = { Hex.UInt64ToHex(num) }; return(Call <Types.Block>("get_block_by_number", methodParams)); }
public Types.EpochView?GetEpochByNumber(UInt64 epochNumber) { string[] methodParams = { Hex.UInt64ToHex(epochNumber) }; return(Call <Types.EpochView>("get_epoch_by_number", methodParams)); }
/// <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)); }