
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@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 11 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.