UNPKG

@tronlink/core

Version:

The library serves as a core module within TronLink Extension, which provides low-level wallet functionality for both Tron and Ethereum networks, primary features includes account generation and transaction signing

9 lines (7 loc) 308 B
import { InvalidParameterError } from '../base_wallet/error'; import { SignParams } from '../base_wallet/types'; export function checkSignParams(params: SignParams) { if (!params || !params.privateKey || !params.data || Object.keys(params.data).length <= 0) { throw new InvalidParameterError(); } }