UNPKG

@btc-vision/transaction

Version:

OPNet transaction library allows you to create and sign transactions for the OPNet network.

5 lines 192 B
import { fromHex } from '@btc-vision/bitcoin'; export function stringToBuffer(str) { return fromHex(str.startsWith('0x') ? str.slice(2) : str); } //# sourceMappingURL=StringToBuffer.js.map