Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH 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 7 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.