WalletConnect Channel Provider
Channel Provider for WalletConnect
For more details, read the documentation
Example
import * as connext from "@connext/client";
import WalletConnectChannelProvider from "@walletconnect/channel-provider";
const channelProvider = new WalletConnectChannelProvider();
const channel: Channel = await connext.connect({
channelProvider,
nodeUrl: "<INSERT_NODE_URL>",
store
});
channel.deposit({
amount: "0x3abc",
assetId: AddressZero
});
await channel.exchange({
amount: "0x3abc"
toAssetId: "0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359"
fromAssetId: AddressZero
})
await channel.transfer({
recipient: "xpub1abcdef"
meta: "Metadata for transfer"
amount: "0x3abc"
assetId: AddressZero
})
await channel.withdraw({
recipient:
amount: "0x3abc"
assetId: AddressZero
})