A Kernel account on Ethereum and Base. The Kernel is a smart contract that holds the assets. Connect the wallet that owns it. The assets are not in that wallet.
The wallet you connect is the owner, and the only key. Each chain has its own Kernel, its own balance, and its own deployment. The address matches on Ethereum and Base when both use this page's factory. If a row shows another address, pay that one on that chain. Anyone can send to the address shown for a chain before you create the Kernel there. Create once on a chain to send from it. The owner wallet pays that transaction.
Blacksmith V1 is this Kernel. Connect the same wallet and the balances on that chain are here. This page never has the key. If the wallet is lost, the account cannot be recovered here.
This page is HTML stored in a contract, at one address on Ethereum and Base. It reads the Kernel and sends from it. Open the contract, or save the file and open the file.
A contract that holds the assets. That contract is a Kernel, a smart contract account. The wallet you connect is the owner, a different address, and the only key. This page reads the Kernel and sends from it. The assets stay in the Kernel. This page never sees the key.
A usual Ethereum account is an address controlled by one key. Account abstraction makes the account a contract. That contract holds the assets. The key stays in the owner wallet, a different address. ERC-4337 is the Ethereum standard for this. The contract here is a Kernel. A send is a UserOp. The owner signs it, and the EntryPoint (v0.6), a shared contract, checks the signature and runs the send.
A wallet already installed in this browser. Connect asks that wallet for its address. This page does not create a wallet and does not ask for a seed phrase. If nothing answers, unlock or install a wallet and refresh. The header chooses Ethereum or Base. Those are the only networks here.
You see the Kernel for that owner on the chain selected in the header. Each chain shows whether its Kernel is created, how much ETH it holds, and the address when that address differs. Tokens and activity follow the header. If it already has code, you can send. If it does not, Create Kernel deploys it. That is a normal transaction from the owner wallet, and that wallet pays the network fee. Funds already at the address shown for this chain are already in that Kernel. Create Kernel stays off when the owner wallet has no ETH on this chain, when a transaction is still confirming, or when the factory for new accounts is not on this chain yet. A Kernel that already exists still opens.
The address at the top of the asset list, on the chain selected in the header. That is the Kernel on this chain. Copy that one. If the other chain's row shows a different address, pay that address on that chain. The address on the header chip is the owner wallet. A payment to the owner wallet does not arrive in this account.
No. ETH on Ethereum stays on Ethereum. Each chain has its own balance and its own deployment. The address matches when both chains use this page's factory. If a row shows another address, that is the account on that chain. The header switch opens that chain's tokens and activity. It does not move funds. Create once on each chain you want to send from.
Yes, if you connect the same owner wallet. Same Kernel address, and the same balances on that chain. There is no second signer. If that wallet is lost, this page cannot recover the account.
ETH in the owner wallet, on this chain, for its network fee. The Kernel also needs ETH, or a Deposit, so the send itself can run. Deposit is ETH the Kernel already holds on a shared contract, the EntryPoint (v0.6). Tokens pay neither. Max leaves that fee in place, so it will not offer the whole ETH or Deposit balance. The owner wallet asks you to approve the send, then to confirm its transaction.
The list checks common tokens first, then incoming transfers from newer blocks backward. Many public nodes cannot serve old blocks. Paste the token contract under Custom token, or set Custom RPC in the header to a node that has the history. An Alchemy API key in the header uses Alchemy for the list and shows a dollar value. Hide dust then hides unpriced and sub-$1 tokens until you turn it off.
No. This page does not swap, bridge, or act as a wallet other apps can connect to. WalletConnect and a browser wallet connect the owner, so those apps see the owner address and cannot spend the Kernel. Send from this page to move assets. Share the Kernel address only when someone is paying this account.
This page cannot recover the Kernel. There is no backup here and no second key. Disconnect only leaves the page. The Kernel stays on the chain. Connect the same owner wallet again, on a browser where that wallet is installed, and the account is the same one.
Save this page stores v1.html. Open that file in any browser. When you open the page from its contract, the card above shows that contract and the Ethereum, Base, and web3:// links. The command in the card reads the same HTML from the contract. The contract address is the same on both chains.
Yes. github.com/eevisceral/blacksmith-wallet is the public source of this page, the account lookup, the send, and the contracts. Read it before you connect. Connect and Send talk to Ethereum or Base. They do not call a private server. The contract stores a copy of this HTML.
Reading this Kernel’s history…
Connect the owner wallet to fill its address and the Kernel address. Until then those lines stay as placeholders.
--- name: blacksmith-v1-wallet description: 'Create or operate a Kernel 0.2.4 account with EOA EntryPoint.handleOps. Reusable operator manual for a contract-hosted wallet. Use when sending from this Kernel, reconnecting ECDSA-sudo, creating the index-0 Kernel, or submitting UserOps without a bundler or project ID. Kernel v3 and EntryPoint 0.7 miss this account.' --- # Blacksmith V1 wallet The questions on the landing explain the account in ordinary words. This file is the operator manual: the exact path a human or an agent follows to encode the same account. There is no server and no custodian. The manual is inlined into the page so a copy read from the contract still teaches the same path. Resolve this Kernel from the owner EOA (index 0, the only index this page uses). Reconnect if that address already has Kernel 0.2.x code this page can send with. New accounts are created on this page’s factory (no owner, no allowlist) with the 0.2.4 implementation. Then send with empty `initCode`. Do not add a bundler, a paymaster, or a hosted Kernel SDK. Do not deploy Kernel v3 or EntryPoint 0.7. If `onchain-ui/kernel.mjs` is in this repo, use it for encoding. Humans: open this page, connect the owner wallet, create the Kernel on this chain if it has no code, use the Kernel address to receive, pick assets, and Send. ## Account - Owner EOA (must sign): YOUR_EOA_ADDRESS - Kernel: YOUR_SMART_ACCOUNT_ADDRESS - Chains: Ethereum (1) and/or Base (8453). Separate state per chain. Create once per chain. The address matches when both chains use this page's factory. If the other chain's row shows a different address, pay that address on that chain. One page lists both. Each line is that chain's deployment, ETH, and address when it differs. Tokens, activity, and Send follow the header chain. Create on the other line switches the owner wallet to that chain, then deploys. The switch does not move funds. - EntryPoint v0.6: `0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789` - This page’s factory (create): `0xC1df2Df0C959FE14c453de649591Ac9AD6262Dbf` - Legacy factory (existing accounts): `0x5de4839a76cf55d0c90e2061ef4386d962E15ae3` - Implementation (new creates): `0xd3082872F8B06073A021b4602e022d5A070d7cfC` - Older 0.2.x implementations at the legacy factory still send (`execute` `51945447`). 0.2.1 has no `executeBatch`, so it sends one asset at a time and a session enable installs `execute` only. 0.2.2, 0.2.3, and 0.2.4 install `execute` and then `executeBatch`. Submit the execute enable and wait for it to land before the executeBatch enable. The second one uses the next session nonce. A limited session selector is 4 bytes. The on-chain checker reads `data[0:4]` and reverts on shorter calldata, so an ETH send with empty calldata stays on the owner key. New accounts are created on 0.2.4. Kernel 0.3 uses a different encoding and is not this account. - ECDSA validator: `0xd9AB5096a832b9ce79914329DAEE236f8Eea0390` This page never holds keys. Recovery is reconnecting this EOA. Agent signing lives in the local MCP (Agent install below): an encrypted owner keystore or Kernel session keys on the operator's machine. The passphrase belongs in a mode-0600 file, not in chat and not in the MCP config JSON. Secrets never go in tool arguments. UserOps: empty `initCode`, empty `paymasterAndData`. Create is a separate EOA tx to a factory, not a UserOp. A signed transaction does not contain the private key. Do not put a key on a command line or in an RPC body. Sign locally from a keystore. A public node can still see the from address. **Resolve:** if the legacy factory `getAccountAddress` (initialize ECDSA + owner, index 0) has Kernel 0.2.x code this page can send with, use it. Else if this page’s factory is on this chain and its `getAccountAddress(owner, 0)` has code, use that. Else if the legacy address has ETH or an EntryPoint deposit and no code, create there so those funds can be used. Else create on this page’s factory. Do not use the legacy factory as the happy path — it has an owner who can disable new creates. If this page’s account is already live and the legacy address still has ETH or a deposit and no code, create that older account too so those funds can be used (you may then have two accounts). When both already have code, keep the one with more ETH+deposit; a tie uses the legacy address. Name the other address; do not switch in the send path. **Done when:** the resolved address has Kernel 0.2.x code this page can send with (reconnect) or 0.2.4 (create), and a send is an EOA tx to EntryPoint — not v3, not 0.7. ## Send 1. Resolve as above. If `getCode` is empty: this page’s factory → EOA sends `createAccount(owner, 0)`. Rescue → EOA sends legacy `createAccount(implementation, initialize(ECDSA, owner), 0)` only if that factory still allows this implementation; otherwise stop and say the older factory no longer allows this implementation. Re-read code. Abort on address mismatch. 2. Read balances: Kernel ETH, ERC-20 `balanceOf(account)`, EntryPoint deposit (`balanceOf(account)` on EntryPoint). Always read Kernel ETH and the deposit before a send — token-only still needs prefund. 3. Build a UserOp v0.6. `callData` is Kernel `execute` / `executeBatch` (selector `0x51945447` / `0x34fcd5be`, operation `0`). Token out is ERC-20 `transfer`. Native ETH is `execute(dest, value, 0x)`. Deposit out is `execute(EntryPoint, 0, withdrawTo(dest, amount))`. 4. Use the amounts entered. Several assets → one `executeBatch` UserOp; one asset → `execute`. Kernel 0.2.1 has no `executeBatch` — send one asset at a time. 5. Prefund: `(callGas + verificationGas + preVerificationGas) * maxFeePerGas`. The priority fee is 1 gwei when the base fee is at least 0.05 gwei, and otherwise tracks the base fee, so a small Base balance is not reserved for an Ethereum tip. EntryPoint takes the prefund from the deposit first, then Kernel ETH (`missingAccountFunds`). After that, native value cannot exceed remaining Kernel ETH minus a buffer. The buffer is 10% of the prefund on Ethereum and on Base. Deposit out cannot exceed deposit minus prefund. Token-only still needs `Kernel ETH + deposit >= prefund`. Never send the full Kernel ETH or full deposit. Deposit does not pay `execute` value. ETH and a deposit withdrawal to an account whose code starts with `0xef0100` run that account's delegated code, the same as a call to any other contract. The page says so under To. The send is not refused. Calldata to that account is a call you asked for. A session enable calls its permission target with the 4-byte selector, including when that target delegates. That is the same call a later session send makes. 6. Hash the UserOp locally. The EntryPoint v0.6 hash is keccak of the packed fields (sender, nonce, initCode hash, callData hash, gas, fees, paymaster hash), then keccak with the EntryPoint address and this chain id. The signature is not part of the hash. Ask the owner wallet to sign only when EntryPoint `getUserOpHash` returns that same hash. If the node disagrees, do not sign. Sign with the EOA (`personal_sign`). `eth_call` `handleOps` from the EOA before paying for the tx. `handleOps` catches a revert inside the call and still charges gas, so also `eth_call` the UserOp `callData` to the Kernel from the EntryPoint. A revert there means the send would land and fail. Do not sign it. On AA24 / invalid signature, retry `eth_sign` and simulate again. On AA21, the Kernel cannot cover the prefund. Add ETH to the Kernel. An existing Deposit is spent first. The Deposit row withdraws that prepaid ETH. It does not add to it. AA23 is a validation revert — do not treat it as a signature miss. Signature = `0x00000000` ‖ 65-byte ECDSA. 7. EOA sends `handleOps([op], beneficiary=EOA)` to EntryPoint. The EOA needs ETH for that tx even if the Kernel is rich. Activity: EntryPoint `UserOperationEvent` (sender = Kernel), ERC-20 `Transfer` to/from the Kernel, EntryPoint `Withdrawn`, Kernel `Received` (plain ETH in). Newest first, cap 256. ETH out and ETH in with calldata have no log. Discovery: token holdings are state, not history — probe the chain's pinned high-cap token list with `balanceOf(account)` at head first, then add whatever inbound `Transfer` logs reveal. History scans newest-block-down in spans and caches a frontier, so old activity resumes where it stopped instead of restarting. Many nodes prune receipts; a "history is available from block N" error is a floor to clamp to, not a failure — say how far back the node goes and that an archive RPC reaches older blocks. ## RPC If no user RPC is set, use a public snapshot. Dated 2026-09-17 from `https://chainlist.org/rpcs.json` (do not fetch that file from the page), each probed live for 2023-era receipts: Ethereum `https://gateway.tenderly.co/public/mainnet`, then `https://ethereum-public.nodies.app`, `https://ethereum.public.blockpi.network/v1/rpc/public`, `https://mainnet.rpc.sentio.xyz`, `https://eth.api.pocket.network`. Base `https://base.rpc.sentio.xyz`, then `https://base-public.nodies.app`, `https://base-mainnet.public.blastapi.io`, `https://mainnet.base.org`, `https://gateway.tenderly.co/public/base`. Walk the list in order. A URL must answer `eth_chainId`, `eth_getBalance`, and a one-block unaddressed `eth_getLogs` — do not keep a node that only answers chainId. Prefer nodes that also serve a 2023 block's unaddressed Transfer logs (deep receipts); a node returning zero logs there is lying about pruning. A stall, timeout, or transient relay error skips to the next URL; if every public node stalls, say so and point at the page’s Custom RPC. If a pasted RPC is set, use only that URL — do not fall through to a public node (a dead local fork must not land on live L1). Live `handleOps` from the MCP needs that exclusive URL (or Alchemy), not the public snapshot. If that URL fails, they paste another or you may recommend a few reputable public options from Chainlist. An Alchemy API key (header) is first-class: it becomes the exclusive JSON-RPC URL for this chain (`eth-mainnet` / `base-mainnet` `g.alchemy.com/v2`) and is used for Portfolio token balances+USD and `alchemy_getAssetTransfers` history — no SDK. A custom RPC still wins over Alchemy so a local fork cannot race onto live L1. If every reachable node still refuses old blocks, keep a recent window and say so. Token discovery is its own walk, not the Activity window: probe the chain's pinned majors with `balanceOf` at head first, then page ERC-20 `Transfer` logs to the account down toward block 0, newest span first (10000-block spans), on a soft budget. Transfers from before the account had code are in that range. Persist the discovered contract addresses and how far the walk got, then resume from there next time. If the walk stops early, every node refuses the old ranges, or the node is not deep, say older tokens may need a pasted contract address or a custom/archive RPC. Never report an empty token list off a clipped scan or a node that failed the 2023-log probe. ## Selectors `execute` `51945447` · `executeBatch` `34fcd5be` · `transfer` `a9059cbb` · `withdrawTo` `205c2878` · `getNonce` `35567e1a` · `balanceOf` `70a08231` · `initialize` `d1f57894` · legacy `getAccountAddress` `4d6cb700` · legacy `createAccount` `296601cd` · factory `getAccountAddress` `0d253d76` · factory `createAccount` `5fbfb9cf` · `getUserOpHash` `a6193531` · `handleOps` `1fad948c` ## Agent install Agents (Cursor, Claude, any MCP client) use the stdio MCP in `mcp/` (zero extra npm deps, MIT, Node 20+ or bun): `node mcp/server.mjs` — config in `mcp/README.md`. Reads, dry-run UserOp drafts, and UserOp decode work without keys: `prepare_userop` builds asset sends (eth/token/deposit) or arbitrary `calls` (`to`/`value`/`data`; multi-call is Kernel `executeBatch`), and `resolve_account` reports deployed / nonce / deposit / validators. `sign_userop` refuses the signature unless `policy.json` allows that call. A limited session key signs `execute` and `executeBatch` with a permission proof. On 0.2.2 and later the owner enables `execute`, waits for that UserOp to land, then enables `executeBatch`. On 0.2.1 the enable is `execute` only. An unrestricted session is owner-equivalent on-chain. With a local encrypted keystore (`node mcp/keystore-cli.mjs import`) and `~/.blacksmith/policy.json`, the MCP can **sign UserOps and submit `EntryPoint.handleOps`** (`submit_userop` stays dry-run unless `live: true`, and live needs an exclusive RPC). Kernel v2 session keys are the preferred agent signer; owner ECDSA-sudo is the fallback. Private keys never appear in tool results. The signature stays in the MCP process. Unlock with `BLACKSMITH_KEYSTORE_PASS_FILE` (mode 0600), or on a Mac the login keychain item `blacksmith-v1-keystore` / `owner`. `BLACKSMITH_KEYSTORE_PASS` is ignored. Do not pass a secret as a chat argument. Humans connect on this page. Creation of the Kernel is still an owner transaction to the factory.