Comment on page
Helpers
- Get Block Time by given block height.
Using this function, user can get block time by given block height
<number>
- block height
Promise<undefined | string>
- Block time
const blockHeight = 2341;
// Get block time at Block #2341
const blockTime = await helpers.getBlockTime(blockHeight);
- Get Transaction List by given transaction data response.
Using this function, user can Get Transaction List by given transaction data response
<TxListDataResult>
- transaction data response
Promise<null | TxInfo[]>
- transaction list
const address = "fra12dsfew";
const type = "to";
const dataResult = await Network.getTxList(address, type);
// Get tx list
const txList = await helpers.getTxListFromResponse();
- Get Operation List by given parsed transaction
Using this function, user can Get Transaction List by given parsed transaction
<ParsedTx>
- parsed tx info
TxOperation[]>
- transaction operation list
const address = "fra12dsfew";
const type = "to";
const dataResult = await Network.getTxList(address, type);
// Get tx list
const txList = await helpers.getTxListFromResponse();
// Get one parsed tx
parsedTx = JSON.parse(Base64.decode(txList[0].tx));
// Get operation Lsit
opList = helpers.getTxOperationsList(parsedTx);
Last modified 1yr ago