Sha256: a10bebfb2c0f63a34aba9b2ff58339c84f1b8ea5530673e40347a31e4fb87b35

Contents?: true

Size: 289 Bytes

Versions: 1

Compression:

Stored size: 289 Bytes

Contents

import { base16Decode, base58Encode } from '@waves/ts-lib-crypto';
export default function ethTxId2waves(ethTxId) {
    let id = ethTxId;
    if (ethTxId.startsWith('0x'))
        id = ethTxId.slice(2);
    return base58Encode(base16Decode(id));
}
//# sourceMappingURL=ethTxId2waves.js.map

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
waves_lib-0.1.0 js/node_modules/@waves/node-api-js/es/tools/transactions/ethTxId2waves.js