November's Paddleball Marathon

    @waves/marshall
    TypeScript icon, indicating that this package has built-in type declarations

    0.15.0-beta.1 • Public • Published

    @waves/marshall

    Marshall can serialize and parse Waves blockchain data structures

    Includes:

    • Serialization primitives
    • Parsing primitives
    • Binary to js converters
    • Js to binary converters
    • JSON to js converters
    • Js to JSON converters

    Usage:

    import { binary, json } from 'parse-serialize'
    
    const tx = {
      type: 10,
      version: 2,
      fee: 100000,
      senderPublicKey: '7GGPvAPV3Gmxo4eswmBRLb6bXXEhAovPinfcwVkA2LJh',
      timestamp: 1542539421565,
      id: '1bVuFdMbDAk6dhcQFfJFxpDjmm8DdFnnKesQ3wpxj7P',
      proofs:
        ['5cW1Ej6wFRK1XpMm3daCWjiSXaKGYfL7bmspZjzATXrNYjRVxZJQVJsDU7ZVcxNXcKJ39fhjxv3rSu4ovPT3Fau8'],
      alias: 'MyTestAlias'
    };
    
    // Binary converter
    const bytes = binary.serializeTx(tx);
    
    const txb = binary.parseTx(bytes)
    
    // json converted
    const jsonString = json.stringifyTx(tx)
    
    const txj = json.parseTx(jsonString)

    Keywords

    none

    Install

    npm i @waves/marshall

    DownloadsWeekly Downloads

    2,764

    Version

    0.15.0-beta.1

    License

    MIT

    Unpacked Size

    200 kB

    Total Files

    48

    Last publish

    Collaborators

    • vsuharnikov
    • gakhramanov
    • tsigel
    • ebceu4
    • vba2000
    • msmolyakov-waves
    • wavesadmin
    • dvshur
    • jlewka
    • kozhevnikov.peter
    • axepuff
    • okanishcheva
    • vladislav.petushkov
    • d.lobanov
    • emera1d