ton-event-details
v0.1.10
Published
<div align="center"> <h1>TON Event Details</h1> <strong>WASM library to extract event details on the client</strong> </div>
Downloads
9
Readme
Usage
npm install --save ton-explorer-event-details
Example
import * as addon from 'ton-explorer-event-details';
const TON_EVENT = '...base64 encoded account state...';
const ETH_ABI = `{
"name": "TONStateChange",
"inputs": [{"name":"state","type":"uint256"}],
"outputs": []
}`;
try {
const details = addon.getDetails(TON_EVENT);
console.log(details);
const payload = addon.encodePayload(details, ETH_ABI);
console.log(payload);
} catch (e) {
console.error(e);
}