0.1.10 • Published 4 years ago

ton-event-details v0.1.10

Weekly downloads
26
License
-
Repository
-
Last release
4 years ago

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);
}
0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago