For the complete documentation index, see llms.txt. This page is also available as Markdown.

Transaction Parsing

The MNEE SDK provides methods to parse and analyze MNEE transactions, extracting detailed information about inputs, outputs, and validation status.

Parse Transaction by ID

The parseTx method parses a transaction using its transaction ID.

Usage

const parsed = await mnee.parseTx('txid-here');
console.log('Parsed TX:', parsed);

With Extended Data

// Include raw transaction details
const parsed = await mnee.parseTx('txid-here', { includeRaw: true });
console.log('Raw data:', parsed.raw);

Parse Transaction from Raw Hex

The parseTxFromRawTx method parses a transaction from its raw hexadecimal representation.

Usage

const parsed = await mnee.parseTxFromRawTx('raw-tx-hex-here');
console.log('Parsed TX:', parsed);

With Extended Data

Parameters

parseTx

  • txid: Transaction ID to parse

  • options (optional): ParseOptions object

    • includeRaw: Include detailed raw transaction data

parseTxFromRawTx

  • rawTxHex: Raw transaction in hexadecimal format

  • options (optional): Same as above

Response

Returns a ParseTxResponse or ParseTxExtendedResponse object.

Basic Response

Extended Response (with includeRaw)

Includes all basic fields plus:

Response Properties

Basic Properties

  • txid: Transaction identifier

  • environment: "production" or "sandbox"

  • type: Operation type ("transfer", "burn", etc.)

  • inputs: Array of input addresses and amounts

  • outputs: Array of output addresses and amounts

  • isValid: Whether the transaction is valid

  • inputTotal: Total input amount (string)

  • outputTotal: Total output amount (string)

Extended Properties (raw)

  • txHex: Complete raw transaction hex

  • inputs: Detailed input information

  • outputs: Detailed output information

  • version: Transaction version

  • lockTime: Transaction lock time

  • size: Transaction size in bytes

  • hash: Transaction hash

Common Use Cases

Transaction Analysis

Verify Transaction Before Acceptance

Debug Failed Transactions

Track Transaction Flow

Export Transaction Details

Validate Complex Transactions

Important Notes

  • Transaction parsing includes automatic validation

  • Amounts in the response are in atomic units

  • The isValid flag indicates if the transaction follows MNEE protocol rules

  • Extended data (includeRaw: true) provides blockchain-level details

  • Input/output totals are provided as strings to preserve precision

See Also

Last updated