
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@oko-wallet/ewallet-sdk-eth
Advanced tools
@oko-wallet/ewallet-sdk-core for Ethereum.@oko-wallet/ewallet-sdk-core.import { initKeplrEwallet } from "@oko-wallet/ewallet-sdk-core";
import { initEthEWallet } from "@oko-wallet/ewallet-sdk-eth";
const eWallet = await initKeplrEwallet({
element_id: "oko-wallet",
});
const ethEWallet = await initEthEWallet({
eWallet,
});
const provider = await ethEWallet.getEthereumProvider();
const chainId = await provider.request({
method: "eth_chainId",
});
const account = await toViemAccount(eWallet);
import { createPublicClient, createWalletClient, custom } from "viem";
const provider = await ethEWallet.getEthereumProvider();
const publicClient = createPublicClient({
chain: sepolia,
transport: custom(provider),
});
const walletClient = createWalletClient({
account: (
await provider.request({
method: "eth_accounts",
})
)[0],
chain: sepolia,
transport: custom(provider),
});
import { BrowserProvider } from "ethers";
const provider = new BrowserProvider(await ethEWallet.getEthereumProvider());
const blockNumber = await provider.getBlockNumber();
const signer = await provider.getSigner();
const signature = await signer.signMessage("Hello, world!");
import { initEWalletEIP1193Provider } from "@oko-wallet/ewallet-sdk-eth";
const provider = await initEWalletEIP1193Provider({
id: "oko-wallet",
});
or create a provider manually
import { initEWalletEIP1193Provider } from "@oko-wallet/ewallet-sdk-eth";
const provider = new EWalletEIP1193Provider({
id: `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`,
chains: [
{
chainId: "0x1",
chainName: "Ethereum Mainnet",
nativeCurrency: {
name: "Ether",
symbol: "ETH",
decimals: 18,
},
rpcUrls: ["https://mainnet.infura.io/v3/YOUR_INFURA_PROJECT_ID"],
blockExplorerUrls: ["https://etherscan.io"],
},
],
});
$ yarn test
$ yarn test:debug
$ yarn test:watch
$ yarn test:coverage
FAQs
Unknown package
We found that @oko-wallet/ewallet-sdk-eth demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.