Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Vibenet dataplane API and RPC (public URLs, safe to expose to the client).
NEXT_PUBLIC_VIBENET_API_BASE_URL=https://vibes.base.org
NEXT_PUBLIC_VIBENET_API_BASE_URL=https://api.vibes.base.org
NEXT_PUBLIC_VIBENET_RPC_URL=https://rpc.vibes.base.org

# Snapshots: Cloudflare R2 credentials, read server-side by /api/snapshots.
Expand Down
12 changes: 6 additions & 6 deletions app/vibenet/demos/account/build/build-with-viem-eip8130.SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ sponsorship. The tooling lives in viem's `experimental/eip8130` module.
- Public execution RPC — `https://rpc.vibes.base.org`. This **is** 8130-capable
(`AA_TX_TYPE` / `0x79`); use it for reads, estimates, and broadcasts from
Node/scripts.
- Browser proxy — `https://vibes.base.org/api/vibenet/account/rpc`. Same
- Browser proxy — `https://api.vibes.base.org/api/vibenet/account/rpc`. Same
upstream chain, exposed as a same-origin Next.js proxy so the web UI can
call `eth_*` without CORS. Prefer this from the browser; from Node either
URL works.
- Hosted payer — `https://vibes.base.org/api/vibenet/account/payer`.
- Faucet — `POST https://vibes.base.org/api/vibenet/faucet/drip`
- Hosted payer — `https://api.vibes.base.org/api/vibenet/account/payer`.
- Faucet — `POST https://api.vibes.base.org/api/vibenet/faucet/drip`
with `{ "address": "0x…" }`.
- **Base Sepolia** — `https://sepolia.base.org`, chain id `84532`.

Expand Down Expand Up @@ -95,7 +95,7 @@ const chain = {
rpcUrls: { default: { http: [RPC_URL] } },
};
const client = createPublicClient({ chain, transport: http(RPC_URL) });
// Browser apps: use https://vibes.base.org/api/vibenet/account/rpc instead
// Browser apps: use https://api.vibes.base.org/api/vibenet/account/rpc instead
// (same chain, CORS-safe proxy).

// 1) Signer = LocalAccount (NOT key.k1 — that builds an actor identity).
Expand All @@ -110,7 +110,7 @@ const signer = privateKeyToAccount(generatePrivateKey());
// the primary actor — you only call key.* when authorizing extra actors.

// 3) Fund account.address (faucet), then estimate + send.
await fetch("https://vibes.base.org/api/vibenet/faucet/drip", {
await fetch("https://api.vibes.base.org/api/vibenet/faucet/drip", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({ address: account.address }),
Expand Down Expand Up @@ -241,7 +241,7 @@ import { createPayerClient, sendSponsoredCalls } from "viem/experimental/eip8168
import { waitForTransactionReceipt8130 } from "viem/experimental/eip8130";

const payerClient = createPayerClient({
url: "https://vibes.base.org/api/vibenet/account/payer",
url: "https://api.vibes.base.org/api/vibenet/account/payer",
});

// Default mode:"send" — payer co-signs and broadcasts.
Expand Down
2 changes: 1 addition & 1 deletion app/vibenet/demos/account/library/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { isAddress } from "../../../library/format";
* address does not match the sender".
*
* Rather than re-hardcode after every reset, the demo resolves these at runtime
* from https://vibes.base.org/api/vibenet/contracts via {@link deploymentFromContracts}.
* from https://api.vibes.base.org/api/vibenet/contracts via {@link deploymentFromContracts}.
* This constant is used only until that fetch lands (or if it fails). The K1
* authenticator (ecrecover precompile) and p256/webAuthn/alwaysValid
* authenticators are deterministic across resets; `accounts.upgradeable`/
Expand Down
2 changes: 1 addition & 1 deletion app/vibenet/library/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import type {
VibesRecentResponse,
} from './api-types';

const DEFAULT_BASE_URL = 'https://vibes.base.org';
const DEFAULT_BASE_URL = 'https://api.vibes.base.org';

// An unset OR empty env var falls back to the default. Trailing slash trimmed
// so `${BASE}${path}` never doubles up.
Expand Down