UNPKG

@broxus/tvm-connect

Version:

TypeScript SDK for connecting to Nekoton-compatible wallets using a unified interface.

17 lines (16 loc) 437 B
export function toChainParams(networkConfig) { return { config: { explorerBaseUrl: networkConfig.explorer.baseUrl, symbol: networkConfig.currency.symbol, }, connection: { data: { endpoint: networkConfig.rpcUrl, }, type: 'proto', }, name: networkConfig.name, networkId: Number(networkConfig.chainId), }; }