RandyPen / DryRunTransactionBlockResponsePlus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DryRunTransactionBlockResponsePlus

Redesign DryRunTransactionBlockResponse interface, highlight SenderChange.

Install

npm install dryruntransactionblockresponseplus

Usage

import { type DryRunTransactionBlockResponsePlus, parseDryRunResult } from 'dryruntransactionblockresponseplus';
import { SuiClient } from "@mysten/sui.js/client";

const dataSentToFullnode = await txb.build({ client: client });
const res = await client.dryRunTransactionBlock({
  transactionBlock: dataSentToFullnode,
});
const resPlus: DryRunTransactionBlockResponsePlus = parseDryRunResult(res);

console.log(resPlus);

重新设计DryRunTransactionBlockResponse的数据接口,突出sender的交易变化。

About


Languages

Language:TypeScript 80.5%Language:Shell 19.5%