记录类信息

获取某个具体交易信息

Node.JS Example

var Remote = require('jingtum-lib').Remote;
var remote = new Remote({server: 'ws://ts5.jingtum.com:5020', local_sign:true});
remote.connect(function (err, result) {
    if(err) return console.log('err: ', err);
    var req = remote.requestTx({hash: '084C7823...9A3B13485B1EF2A4313'});
    req.submit(function(err, result) {
        if(err) {return console.log('err:',err);}
        console.log('get transaction details:', result);
    });
});

C# Example

var remote = new Remote(@"ws://ts5.jingtum.com:5020", true);
remote.Connect(result =>
{
  if (result.Exception != null)
  {
    Console.Write(result.Exception.Message);
  }
  else
  {
    var req = remote.RequestTx(new TxOptions {
      Hash = "BDE5FAA4F287353E65B3AC603F538DE091F1D8F4723A120BD7D930C5C4668FE2"});
    req.Submit(reqResult =>
    {
      Console.Write(reqResult.Message);
      // get result from reqResult.Result
    });
  }
});

获得某账号的交易历史

Node.JS Example

var Remote = require('jingtum-lib').Remote;
var Remote = new Remote({server: 'ws://ts5.jingtum.com:5020', local_sign:true});
remote.connect(function (err, result) {
    if(err) return console.log('err: ', err);
    var options = {account: 'JB7r...Y2xLZ'};
    req.submit(function(err, result) {
        if(err) {return console.log('err:',err);}
        console.log('get acount transactions:', result);
    });
});

C# Example

var remote = new Remote(@"ws://ts5.jingtum.com:5020", true);
remote.Connect(result =>
{
  if (result.Exception != null)
  {
    Console.Write(result.Exception.Message);
  }
  else
  {
    var req = remote.RequestAccountTx(new AccountTxOptions
    {
      Account = "j9FGhAW9dSzL3RjbXkyW6Z6bHGxFk8cmB1"
    });
    req.Submit(reqResult =>
    {
      Console.Write(reqResult.Message);
      // get result from reqResult.Result
    });
  }
});