# Baas.sh Docs

## Docs

- [Welcome to BaaS](https://docs.baas.sh/readme.md): The backend platform for blockchain apps, with auth, networks, and more for your EVM project.
- [BaaS MCP](https://docs.baas.sh/ai-tools/mcp.md): Connect your AI coding agent to your BaaS project.
- [Set up your MCP client](https://docs.baas.sh/ai-tools/mcp/setup.md): Add the BaaS MCP server to Codex, Claude Code, or another MCP client, and sign in.
- [MCP server capabilities](https://docs.baas.sh/ai-tools/mcp/capabilities.md): The tools the BaaS MCP server exposes, what it never does, and how your role on the project decides what an agent sees.
- [Example prompts](https://docs.baas.sh/ai-tools/mcp/example-prompts.md): Prompts to try with your agent once the BaaS MCP server is connected.
- [Troubleshooting](https://docs.baas.sh/ai-tools/mcp/troubleshooting.md): What to do when the BaaS MCP server doesn't connect or doesn't behave as expected.
- [Introduction](https://docs.baas.sh/baas-sdk/sdk.md): A browser SDK that authenticates the end-users of your BaaS project, with passkeys or external wallets.
- [Quickstart](https://docs.baas.sh/baas-sdk/quickstart.md): Install the SDK, configure your project, and sign in your first user.
- [Authentication](https://docs.baas.sh/baas-sdk/authentication.md): Sign users in with a passkey or an external wallet, and pick the right entry point for your UI.
- [Passkeys](https://docs.baas.sh/baas-sdk/authentication/passkeys.md): Sign up a new user with a passkey, and sign in returning users.
- [External wallet](https://docs.baas.sh/baas-sdk/authentication/external-wallet.md): Sign users in with MetaMask, Rainbow, Coinbase Wallet, or any EIP-1193 wallet.
- [Sessions](https://docs.baas.sh/baas-sdk/authentication/sessions.md): Read the current session, react to auth changes, refresh tokens, and sign out.
- [Blockchain interactions](https://docs.baas.sh/baas-sdk/blockchain.md): Call smart contracts, send transactions, sign messages, convert amounts, and pick the active network from the BaaS SDK.
- [Smart contracts](https://docs.baas.sh/baas-sdk/blockchain/smart-contracts.md): Call your registered smart contracts to read data, send transactions, simulate, and estimate gas.
- [Event history](https://docs.baas.sh/baas-sdk/blockchain/events.md): Find contract events by amount, sender or date, using JSON filters or SDK helpers.
- [Wallet operations](https://docs.baas.sh/baas-sdk/blockchain/wallet.md): Send transactions, sign messages, and read balances using the wallet the user signed in with.
- [Networks](https://docs.baas.sh/baas-sdk/blockchain/networks.md): List your project's supported networks and pick the active one, for passkey or external-wallet sessions.
- [Smart units](https://docs.baas.sh/baas-sdk/blockchain/smart-units.md): Express amounts in the token's unit or in native currency, and read them back formatted. BaaS converts them to and from base units.
- [Manage user](https://docs.baas.sh/baas-sdk/manage-user.md): Manage the signed-in user's profile and find their contract events with filters.
- [Integration guides](https://docs.baas.sh/baas-sdk/integrations.md): Integrate the BaaS SDK into your stack, with framework guides and environment setup.
- [Use with React](https://docs.baas.sh/baas-sdk/integrations/react.md): Connect the SDK to React with a shared client and a session hook.
- [Complete example](https://docs.baas.sh/baas-sdk/integrations/react-app-example.md): A full React pattern for an app with several sign-in methods and protected routes.
- [TanStack Query recipe](https://docs.baas.sh/baas-sdk/integrations/react-query.md): Read and write on-chain data with TanStack Query on top of the BaaS SDK.
- [Push notifications](https://docs.baas.sh/baas-sdk/integrations/push-notifications.md): Set up Firebase Web Push so your BaaS automations can send notifications to your users.
- [Troubleshooting](https://docs.baas.sh/baas-sdk/troubleshooting.md): Common BaaS SDK pitfalls and how to resolve them.
- [Resources](https://docs.baas.sh/baas-sdk/resources.md): Complete reference for the BaaS SDK API, types, and error codes.
- [Changelog](https://docs.baas.sh/baas-sdk/resources/changelog.md)
- [API reference](https://docs.baas.sh/baas-sdk/resources/api-reference.md): Every method, option, type, and error in the BaaS SDK, in one place.
- [Exported types](https://docs.baas.sh/baas-sdk/resources/exported-types.md): TypeScript types and classes exported by the BaaS SDK.
- [Error handling](https://docs.baas.sh/baas-sdk/resources/error-handling.md): The typed error hierarchy and how to handle each case cleanly.
- [Introduction](https://docs.baas.sh/baas-cli/cli.md): Deploy smart contracts and register them with BaaS from your terminal.
- [Quickstart](https://docs.baas.sh/baas-cli/quickstart.md): Install the CLI and deploy your first contract to BaaS.
- [Authentication](https://docs.baas.sh/baas-cli/authentication.md): Sign in to BaaS from the terminal, or sign out.
- [Projects](https://docs.baas.sh/baas-cli/projects.md): Choose the BaaS project your contracts are registered in.
- [Deploy a contract](https://docs.baas.sh/baas-cli/deploy.md): Deploy a contract with a key from your Vault, and shape how BaaS reads it with mappings and units.
- [Advanced](https://docs.baas.sh/baas-cli/advanced.md): Everything Forge can do, through baas.
- [Deploy with Forge](https://docs.baas.sh/baas-cli/advanced/deployment.md): Deploy with forge create or a Foundry script, and let BaaS register the result.
- [Foundry commands](https://docs.baas.sh/baas-cli/advanced/foundry.md): Use baas as a drop-in for forge.
- [Troubleshooting](https://docs.baas.sh/baas-cli/troubleshooting.md): What to do when a command doesn't go through.
- [Command reference](https://docs.baas.sh/baas-cli/reference.md): Every BaaS command and its options.
- [Configuration](https://docs.baas.sh/baas-cli/reference/configuration.md): Update or remove the CLI, and keep your credentials and keys in the right place.
- [Introduction](https://docs.baas.sh/baas-console/console.md): The web console for your BaaS project, where you build automations and manage contracts, users, and settings.
- [Automations](https://docs.baas.sh/baas-console/automations.md): Orchestrate sequential actions triggered by events, straight from the Console.
- [Create an automation](https://docs.baas.sh/baas-console/automations/create-an-automation.md): Create an automation in the Console, configure its trigger, add your first actions, and activate it.
- [Triggers](https://docs.baas.sh/baas-console/automations/triggers.md): Choose how an automation starts, whether from an HTTP call, a time-based schedule, or an on-chain event.
- [Webhook](https://docs.baas.sh/baas-console/automations/triggers/webhook.md): Start an automation from any external system by sending a POST to its unique URL.
- [Cron](https://docs.baas.sh/baas-console/automations/triggers/cron.md): Run an automation on a schedule with a standard CRON expression and a timezone.
- [Monitor](https://docs.baas.sh/baas-console/automations/triggers/monitor.md): Trigger an automation when a contract emits a selected blockchain event.
- [Actions](https://docs.baas.sh/baas-console/automations/actions.md): Choose what each step of the pipeline does, such as calling an API, sending an email, running code, notifying users, or submitting a transaction.
- [API](https://docs.baas.sh/baas-console/automations/actions/api.md): Send an HTTP request to a public HTTPS URL and hand the response to the next step.
- [Email](https://docs.baas.sh/baas-console/automations/actions/email.md): Send an email through your project's own SMTP transport.
- [Function](https://docs.baas.sh/baas-console/automations/actions/function.md): Run your own JavaScript in a sandbox as a step of the pipeline.
- [Notification](https://docs.baas.sh/baas-console/automations/actions/notification.md): Send a push notification to your users' devices through Firebase Cloud Messaging.
- [Stellar](https://docs.baas.sh/baas-console/automations/actions/stellar.md): Send payments and call Soroban contracts on Stellar from your automations.
- [Transaction](https://docs.baas.sh/baas-console/automations/actions/transaction.md): Call a write function on one of your deployed contracts, sent on-chain with a key from your Vault.
- [Batch mode](https://docs.baas.sh/baas-console/automations/batch.md): Repeat an action for matching users, with fixed filters and a shared time budget.
- [Runs and logs](https://docs.baas.sh/baas-console/automations/runs-and-logs.md): Follow every run of an automation in the Runs tab, read its logs inline, and download them as NDJSON.
- [Manage an automation](https://docs.baas.sh/baas-console/automations/manage-an-automation.md): Activate or deactivate an automation, edit its name and description, and delete it safely.
- [Reference](https://docs.baas.sh/baas-console/automations/reference.md): The data a run exposes to your actions, including the trigger's payload, the run context, and the plugins object for Function code.
- [Trigger object](https://docs.baas.sh/baas-console/automations/reference/trigger.md): What each trigger type delivers under trigger.\*, field by field.
- [Context object](https://docs.baas.sh/baas-console/automations/reference/context.md): The run's own variables, including the previous step's result, the run's identifiers, and the Function time budget.
- [Plugins object](https://docs.baas.sh/baas-console/automations/reference/plugins.md): The four methods Function code can call for HTTP requests, email, push notifications, and message signing.
- [Contracts](https://docs.baas.sh/baas-console/contracts.md): Register your smart contracts, call and explore them from the Console, and see how each ABI version carries its own mappings and units.
- [Register a contract](https://docs.baas.sh/baas-console/contracts/register-a-contract.md): Register a deployed contract from the Add Contract panel, including new classes, extra deployments, and new ABI versions.
- [Read and write functions](https://docs.baas.sh/baas-console/contracts/read-and-write.md): Call any function of a registered deployment, with inline results for reads and transactions sent with a key from your Vault for writes.
- [Explorer](https://docs.baas.sh/baas-console/contracts/explorer.md): Explore a contract's transactions, decoded events, and stored values.
- [Mappings](https://docs.baas.sh/baas-console/contracts/mappings.md): Read your contracts' on-chain values from BaaS, refreshed as their events arrive.
- [Automatic mappings](https://docs.baas.sh/baas-console/contracts/mappings/automatic-mappings.md): The mappings BaaS sets up on its own for ERC-20, ERC-721, and ERC-1155 contracts.
- [Custom mappings](https://docs.baas.sh/baas-console/contracts/mappings/custom-mappings.md): Declare the mappings of an ABI version yourself, as a JSON template that replaces the automatic set.
- [Units](https://docs.baas.sh/baas-console/contracts/units.md): The decimals that turn your contracts' raw integers into amounts you can read.
- [Automatic units](https://docs.baas.sh/baas-console/contracts/units/automatic-units.md): The units BaaS sets up on its own for ERC-20, ERC-4626, and ERC-6909 tokens.
- [Custom units](https://docs.baas.sh/baas-console/contracts/units/custom-units.md): Declare the units of an ABI version yourself, as a JSON template that replaces the detected set.
- [Versions and rollback](https://docs.baas.sh/baas-console/contracts/versions-and-rollback.md): Browse the versions of a contract class, open any ABI inline, and roll the latest one back.
- [Users](https://docs.baas.sh/baas-console/users.md): Browse your app's users, each one a wallet address, with their email, values, and events.
- [Explorer](https://docs.baas.sh/baas-console/users/explorer.md): Browse the values BaaS keeps for one user, and every event they appear in.
- [Filters](https://docs.baas.sh/baas-console/filters.md): Filter users and event histories, choose monitor events, and select batch users with the same rules.
- [Vault](https://docs.baas.sh/baas-console/vault.md): See your project's keys, choose the networks each one can be used on, and follow their balance and activity.
- [API Settings](https://docs.baas.sh/baas-console/api-settings.md): Configure allowed browser domains and manage server-side API keys.
- [Allowed Domains](https://docs.baas.sh/baas-console/api-settings/domain-protection.md): Choose which websites can call your API from a browser.
- [API Keys](https://docs.baas.sh/baas-console/api-settings/secret-keys.md): Create the server-side keys your backend calls the API with, and restrict each one by IP.
- [Manage a key](https://docs.baas.sh/baas-console/api-settings/secret-keys/manage-a-key.md): Activate or deactivate a secret key, edit its allowed IP ranges and name, and revoke it.
- [Wallet Settings](https://docs.baas.sh/baas-console/wallet-settings.md): Choose which chains your users can reach from the SDK, with an external wallet or a passkey wallet, and set the domain new passkeys are created under.
- [Plugin Settings](https://docs.baas.sh/baas-console/action-plugins.md): Activate and configure the plugins automation actions use, including the SMTP transport, Firebase credentials, and per-plugin defaults.
- [Vault](https://docs.baas.sh/dashboard/vault.md): Add and manage the keys your project uses to send transactions.
- [Blockchain settings](https://docs.baas.sh/dashboard/blockchain-settings.md): Configure your blockchain's execution settings and consensus keys.
- [RPC access](https://docs.baas.sh/dashboard/rpc-access.md): Choose who can read your blockchain through its RPC, and understand why writes still need a signature.
