Skip to content

Add Satoshi API fee agent template#97

Open
Bortlesboat wants to merge 1 commit into
browserbase:devfrom
Bortlesboat:add-satoshi-api-fee-agent-template
Open

Add Satoshi API fee agent template#97
Bortlesboat wants to merge 1 commit into
browserbase:devfrom
Bortlesboat:add-satoshi-api-fee-agent-template

Conversation

@Bortlesboat
Copy link
Copy Markdown

@Bortlesboat Bortlesboat commented May 19, 2026

Summary

  • add a TypeScript Satoshi API fee-agent template
  • fetch the free Satoshi API /api/v1/fees/recommended endpoint before opening a Browserbase Stagehand session
  • document /api/v1/fees/now as the optional x402 paid first-call route
  • add the template to the README index so it can flow into browserbase.com/templates if accepted
  • related package path: companion community integration example Add Satoshi API community example integrations#74

Reviewer Packet

Verification

  • corepack pnpm run check:readme-template-index
  • corepack pnpm run build (from typescript/satoshi-api-fee-agent)
  • corepack pnpm exec eslint typescript/satoshi-api-fee-agent/index.ts
  • corepack pnpm exec prettier --check README.md typescript/satoshi-api-fee-agent/README.md typescript/satoshi-api-fee-agent/index.ts typescript/satoshi-api-fee-agent/package.json typescript/satoshi-api-fee-agent/tsconfig.json
  • curl.exe -i https://bitcoinsapi.com/api/v1/fees/recommended returned HTTP 200

Notes

Repo-wide lint currently exits 0 with two existing warnings outside this template. Repo-wide format:check reports existing formatting warnings across many files on dev, so I verified Prettier on the touched files directly.

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit f5a7126. Configure here.

Comment thread typescript/satoshi-api-fee-agent/index.ts Outdated
@Bortlesboat
Copy link
Copy Markdown
Author

Related context for reviewers: I also submitted the Browserbase partner/integration form with the public reviewer packet, and opened the companion community integration example in browserbase/integrations#74. This PR is the Browserbase templates path for the same Satoshi API fee-intelligence workflow.

@Bortlesboat Bortlesboat force-pushed the add-satoshi-api-fee-agent-template branch from f5a7126 to 3854b3a Compare May 19, 2026 02:21
@Bortlesboat
Copy link
Copy Markdown
Author

Addressed the Bugbot estimate-key concern in 3854b3a: the template now supports both numeric confirmation-target keys (the live /api/v1/fees/recommended response currently returns 1/3/6/25/144) and high/medium/low-style fallbacks, plus common top-level fee key variants. Re-ran template build, targeted ESLint, changed-file Prettier, and a live HTTP 200 check against the free fee endpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant