
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@walletconnect/channel-provider
Advanced tools
Channel Provider for WalletConnect
For more details, read the documentation
import * as connext from "@connext/client";
import WalletConnectChannelProvider from "@walletconnect/channel-provider";
/**
* Create WalletConnect Provider (qrcode modal will be displayed automatically)
*/
const channelProvider = new WalletConnectChannelProvider();
/**
* Create a channel
*/
const channel: Channel = await connext.connect({
channelProvider,
nodeUrl: "<INSERT_NODE_URL>",
store
});
/**
* Deposit
*/
channel.deposit({
amount: "0x3abc", // represented as bignumber
assetId: AddressZero // Use the AddressZero to srepresent ETH, or enter the token address
});
/**
* Exchange
*/
await channel.exchange({
amount: "0x3abc" // in Wei, represented as bignumber
toAssetId: "0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359" // Dai
fromAssetId: AddressZero // ETH
})
/**
* Transfer
*/
await channel.transfer({
recipient: "xpub1abcdef" //counterparty's xPub
meta: "Metadata for transfer"
amount: "0x3abc" // in Wei, represented as bignumber
assetId: AddressZero // represents ETH
})
/**
* Withdrawing
*/
await channel.withdraw({
recipient: // defaults to signer xpub but can be changed to withdraw to any recipient
amount: "0x3abc" // in Wei, represented as bignumber
assetId: AddressZero
})
FAQs
Channel Provider for WalletConnect
The npm package @walletconnect/channel-provider receives a total of 136 weekly downloads. As such, @walletconnect/channel-provider popularity was classified as not popular.
We found that @walletconnect/channel-provider demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.