# Create a workspace API key Source: https://blockops-3855c227.mintlify.app/api-reference/api-keys/create-a-workspace-api-key /api-reference/openapi.yaml post /api/v1/workspaces/{workspace_id}/api-keys Admin-only route. Creates a DB-backed scoped API key. The `api_secret` is returned only in this create response. # List workspace API keys Source: https://blockops-3855c227.mintlify.app/api-reference/api-keys/list-workspace-api-keys /api-reference/openapi.yaml get /api/v1/workspaces/{workspace_id}/api-keys Admin-only route. Returns scoped DB-backed API keys for a workspace without exposing their signing secrets. # Revoke a workspace API key Source: https://blockops-3855c227.mintlify.app/api-reference/api-keys/revoke-a-workspace-api-key /api-reference/openapi.yaml delete /api/v1/workspaces/{workspace_id}/api-keys/{api_key} Admin-only route. Revokes a DB-backed scoped API key. # List workspace audit events Source: https://blockops-3855c227.mintlify.app/api-reference/audit/list-workspace-audit-events /api-reference/openapi.yaml get /api/v1/workspaces/{workspace_id}/audit-logs Admin-only read surface for audit events. This route reads durable audit event state; producers for sensitive actions are added as each governance and custody mutation is audited. # Get wallet balance for one asset Source: https://blockops-3855c227.mintlify.app/api-reference/balances/get-wallet-balance-for-one-asset /api-reference/openapi.yaml get /api/v1/wallets/{wallet_id}/balance/{asset_id} # Get wallet balance overview Source: https://blockops-3855c227.mintlify.app/api-reference/balances/get-wallet-balance-overview /api-reference/openapi.yaml get /api/v1/wallets/{wallet_id}/overview # Get supported network detail Source: https://blockops-3855c227.mintlify.app/api-reference/catalog/get-supported-network-detail /api-reference/openapi.yaml get /api/v1/networks/{network_id} Returns one network catalog entry. # List supported assets Source: https://blockops-3855c227.mintlify.app/api-reference/catalog/list-supported-assets /api-reference/openapi.yaml get /api/v1/assets Asset IDs are catalog UUIDs. They are not token contract addresses. # List supported networks Source: https://blockops-3855c227.mintlify.app/api-reference/catalog/list-supported-networks /api-reference/openapi.yaml get /api/v1/networks Returns the network catalog. # Wallet API Source: https://blockops-3855c227.mintlify.app/api-reference/introduction Base URL, authentication and conventions for the Blockops Wallet API. The Wallet API is the programmatic interface to MPC Wallet Infrastructure: create wallets, attach assets, read addresses and balances, request withdrawals and signatures, and manage webhooks and API keys. The endpoint pages in this section are generated from the API's OpenAPI description. ## Base URL | Environment | Base URL | | :---------- | :---------------------------------------- | | Sandbox | `https://wallet-sandbox.blockops.network` | | Production | Issued with your production credentials. | All paths below are relative to the base URL and begin with `/api/v1`. ## Authentication Every request is signed with an API key. Three headers are required: | Header | Value | | :----------------- | :--------------------------------------------------------------------------------------------------------------- | | `ACCESS-API-KEY` | The key identifier. | | `ACCESS-TIMESTAMP` | Unix time in seconds when the request was signed. Requests more than five minutes from server time are rejected. | | `ACCESS-SIGN` | HMAC-SHA256 of the canonical string, using the key secret, hex-encoded. | The canonical string is: ```text theme={null} method=&path=×tamp=&body= ``` `` is the request path including the query string; `` is the exact request body, or empty for requests without one. Each key carries a set of scopes and may be bound to specific wallets and IP ranges; see [Access control](/security/access-control). ## Conventions * **Envelope.** Responses have the shape `{ "success": bool, "message": string, "code": string, "data": … }`. Errors use the same envelope with `success: false`. * **Idempotency.** Send `X-Idempotency-Key` on write requests; a repeated key returns the original result rather than creating a second operation. * **Asynchronous creation.** `POST /api/v1/wallets` returns `202 Accepted`; poll the creation-status endpoint until the wallet is ready. * **Frozen workspace.** While withdrawals are frozen, withdrawal and signing requests return `423 Locked`. For the concepts behind these endpoints, start with the [Wallets & signing overview](/wallets/overview). # Create a constrained generic signing request Source: https://blockops-3855c227.mintlify.app/api-reference/signing/create-a-constrained-generic-signing-request /api-reference/openapi.yaml post /api/v1/web3/transaction/{wallet_id}/signRaw SDK-compatible raw signing boundary for prebuilt 32-byte digests. The route is and signing is explicitly enabled. It persists an operation_type=generic signing request. It does not construct transactions or bypass future policy/session governance. Workspaces with active approval policies must use /api/v1/web3/transaction/{wallet_id}/signTyped instead. # Create a constrained generic signing request Source: https://blockops-3855c227.mintlify.app/api-reference/signing/create-a-constrained-generic-signing-request-1 /api-reference/openapi.yaml post /api/v1/web3/{wallet_id}/sign Compatibility alias for SDK requestSign calls. Semantics match /api/v1/web3/transaction/{wallet_id}/signRaw and it is deprecated for policy-governed tenants in favor of /api/v1/web3/transaction/{wallet_id}/signTyped. # Create a typed signing request Source: https://blockops-3855c227.mintlify.app/api-reference/signing/create-a-typed-signing-request /api-reference/openapi.yaml post /api/v1/web3/transaction/{wallet_id}/signTyped Policy-evaluable signing route for enterprise tenants. The request must include recipient, amount, asset, and chain semantics in addition to the signing digest. Matching approval policies create a pending approval request instead of publishing immediately. # Get generic signing status Source: https://blockops-3855c227.mintlify.app/api-reference/signing/get-generic-signing-status /api-reference/openapi.yaml get /api/v1/web3/{wallet_id}/sign/{transaction_id} Reads only generic signing requests for the wallet-bound caller. # Export transaction activity for a workspace Source: https://blockops-3855c227.mintlify.app/api-reference/transactions/export-transaction-activity-for-a-workspace /api-reference/openapi.yaml get /api/v1/workspaces/{workspace_id}/transactions/export CSV export of the same withdrawal and deposit activity returned by the workspace transaction list. # Get SDK transaction status Source: https://blockops-3855c227.mintlify.app/api-reference/transactions/get-sdk-transaction-status /api-reference/openapi.yaml get /api/v1/web3/transaction/{wallet_id}/{transaction_id} Compatibility alias for transaction status calls; backed by the withdrawal record. # Get transaction detail for a workspace Source: https://blockops-3855c227.mintlify.app/api-reference/transactions/get-transaction-detail-for-a-workspace /api-reference/openapi.yaml get /api/v1/workspaces/{workspace_id}/transaction-details/{transaction_id} Resolves transaction detail by transaction id, row id, or transaction hash across withdrawals and persisted deposits. # List transaction activity for a wallet Source: https://blockops-3855c227.mintlify.app/api-reference/transactions/list-transaction-activity-for-a-wallet /api-reference/openapi.yaml get /api/v1/wallets/{wallet_id}/transactions Returns withdrawal activity and deposit activity from the transaction ledger. # List transaction activity for a workspace Source: https://blockops-3855c227.mintlify.app/api-reference/transactions/list-transaction-activity-for-a-workspace /api-reference/openapi.yaml get /api/v1/workspaces/{workspace_id}/transactions Returns withdrawal activity and deposit activity from the transaction ledger. # Attach an asset and derive a deposit address Source: https://blockops-3855c227.mintlify.app/api-reference/wallets/attach-an-asset-and-derive-a-deposit-address /api-reference/openapi.yaml put /api/v1/wallets/{wallet_id}/asset/{asset_id} Attaches a catalog asset to an MPC wallet. The service derives the address from stored wallet public-key metadata, the configured chain code, and a server-selected derivation path. Client-provided derivation paths are not accepted. # Create an MPC wallet Source: https://blockops-3855c227.mintlify.app/api-reference/wallets/create-an-mpc-wallet /api-reference/openapi.yaml post /api/v1/wallets Starts asynchronous wallet creation. In dry-run mode this only persists operation state and validates the key-generation request. In keygen mode it publishes an key-generation request and the operation is later completed by the keygen result consumer. Stale keygen requests can be failed by operator-configured timeout without allowing late success results to overwrite that terminal state. # Get a wallet address by address type Source: https://blockops-3855c227.mintlify.app/api-reference/wallets/get-a-wallet-address-by-address-type /api-reference/openapi.yaml get /api/v1/wallets/{wallet_id}/address Compatibility alias for address-by-type callers; returns the same deposit-address state. # Get a wallet deposit address Source: https://blockops-3855c227.mintlify.app/api-reference/wallets/get-a-wallet-deposit-address /api-reference/openapi.yaml get /api/v1/wallets/{wallet_id}/deposit-address # Get wallet creation status Source: https://blockops-3855c227.mintlify.app/api-reference/wallets/get-wallet-creation-status /api-reference/openapi.yaml get /api/v1/wallets/creation-status/{wallet_id} # Get wallet detail Source: https://blockops-3855c227.mintlify.app/api-reference/wallets/get-wallet-detail /api-reference/openapi.yaml get /api/v1/wallets/{wallet_id} Returns wallet detail. # Get wallet detail through SDK web3 alias Source: https://blockops-3855c227.mintlify.app/api-reference/wallets/get-wallet-detail-through-sdk-web3-alias /api-reference/openapi.yaml get /api/v1/web3/wallet-detail/{wallet_id} Compatibility alias for wallet-detail calls. # List wallet assets Source: https://blockops-3855c227.mintlify.app/api-reference/wallets/list-wallet-assets /api-reference/openapi.yaml get /api/v1/wallets/{wallet_id}/assets Lists assets attached to a wallet. # List wallets for a workspace Source: https://blockops-3855c227.mintlify.app/api-reference/wallets/list-wallets-for-a-workspace /api-reference/openapi.yaml get /api/v1/workspaces/{workspace_id}/wallets # Create a workspace webhook Source: https://blockops-3855c227.mintlify.app/api-reference/webhooks/create-a-workspace-webhook /api-reference/openapi.yaml post /api/v1/workspaces/{workspace_id}/webhooks # Delete a workspace webhook Source: https://blockops-3855c227.mintlify.app/api-reference/webhooks/delete-a-workspace-webhook /api-reference/openapi.yaml delete /api/v1/workspaces/{workspace_id}/webhooks/{webhook_id} # Get webhook delivery stats Source: https://blockops-3855c227.mintlify.app/api-reference/webhooks/get-webhook-delivery-stats /api-reference/openapi.yaml get /api/v1/workspaces/{workspace_id}/webhook-stats # Get webhook verification public key Source: https://blockops-3855c227.mintlify.app/api-reference/webhooks/get-webhook-verification-public-key /api-reference/openapi.yaml get /api/v1/workspaces/{workspace_id}/webhook-verification-key Returns the base64-encoded Ed25519 public key used by integrators to verify signed Blockops webhook payloads. # List webhook delivery logs Source: https://blockops-3855c227.mintlify.app/api-reference/webhooks/list-webhook-delivery-logs /api-reference/openapi.yaml get /api/v1/workspaces/{workspace_id}/webhook-logs # List workspace webhooks Source: https://blockops-3855c227.mintlify.app/api-reference/webhooks/list-workspace-webhooks /api-reference/openapi.yaml get /api/v1/workspaces/{workspace_id}/webhooks # Requeue a webhook delivery Source: https://blockops-3855c227.mintlify.app/api-reference/webhooks/requeue-a-webhook-delivery /api-reference/openapi.yaml post /api/v1/workspaces/{workspace_id}/webhook-logs/{delivery_id}/resend # Update a workspace webhook Source: https://blockops-3855c227.mintlify.app/api-reference/webhooks/update-a-workspace-webhook /api-reference/openapi.yaml put /api/v1/workspaces/{workspace_id}/webhooks/{webhook_id} # Count withdrawals for a wallet Source: https://blockops-3855c227.mintlify.app/api-reference/withdrawals/count-withdrawals-for-a-wallet /api-reference/openapi.yaml get /api/v1/wallets/{wallet_id}/withdrawals/count # Count withdrawals for a workspace Source: https://blockops-3855c227.mintlify.app/api-reference/withdrawals/count-withdrawals-for-a-workspace /api-reference/openapi.yaml get /api/v1/workspaces/{workspace_id}/withdrawals/count # Get withdrawal detail Source: https://blockops-3855c227.mintlify.app/api-reference/withdrawals/get-withdrawal-detail /api-reference/openapi.yaml get /api/v1/withdrawals/{withdrawal_id} # List withdrawals for a wallet Source: https://blockops-3855c227.mintlify.app/api-reference/withdrawals/list-withdrawals-for-a-wallet /api-reference/openapi.yaml get /api/v1/wallets/{wallet_id}/withdrawals # List withdrawals for a workspace Source: https://blockops-3855c227.mintlify.app/api-reference/withdrawals/list-withdrawals-for-a-workspace /api-reference/openapi.yaml get /api/v1/workspaces/{workspace_id}/withdrawals # Request a withdrawal Source: https://blockops-3855c227.mintlify.app/api-reference/withdrawals/request-a-withdrawal /api-reference/openapi.yaml post /api/v1/wallets/{wallet_id}/request-withdrawal Provider automation path for withdrawals. With signing disabled this creates an idempotent dry-run operation. With signing enabled it plans a native EVM transaction from trusted wallet metadata and persists a signing request. Signing, signing result persistence, EVM broadcast, and receipt reconciliation are opt-in operational paths. Stale signing requests can be failed by operator-configured timeout without allowing late success results to overwrite that terminal state. Receipt reconciliation can wait for an operator-configured minimum confirmation depth before finalizing submitted withdrawals, and can optionally rebroadcast stored signed transactions or fail old submitted transactions whose receipts never appear. Gas-bumped replacement transaction handling is the next implementation milestone. # Endpoints, keys & authentication Source: https://blockops-3855c227.mintlify.app/blockchain-infrastructure/blockchain-api/endpoints-and-authentication Generate HTTP and WebSocket endpoints, authenticate with your API key, and rotate it. **Accessing Endpoints** 1. **Select Project:** Choose your project from the top dropdown (e.g., "Default Project"). 2. **Select Network:** Use the network selector to switch between chains (e.g., **Lisk** vs **Ethereum**) and environments (**Mainnet** vs **Testnet**). Network Selector **RPC Endpoints** Once a network is selected, your unique **HTTP** and **WSS** (WebSocket) endpoints are automatically generated. * **HTTP Endpoint:** Use this for standard JSON-RPC requests (e.g., fetching block data). * **WSS Endpoint:** Use this for real-time subscriptions and events. You can view your full **API Key** on the right side of the dashboard. RPC Endpoints **Authentication** You can connect to the network using WebSocket or HTTP with your API key in two ways: * Adding the API key as a query string `?api_key=${APIKEY}` * Or the request header `-H 'authorization: APIKEY ${APIKEY}'` **Integration Helper** The dashboard includes a built-in integration helper. Select a method (e.g., `eth_getBlockByNumber`) and a language (e.g., `bash`, `js`, `python`) to generate a ready-to-use code snippet tailored to your API key. Integration Helper ### Rotate API Key Rotating API keys is important when an unauthorized third party has access to your API key. You have the option to reset it by using the Rotate Key button located in the project dashboard. # Base Source: https://blockops-3855c227.mintlify.app/blockchain-infrastructure/blockchain-api/networks/base Endpoints and example requests for Base Mainnet and Base Sepolia. Base is a secure, low-cost, builder-friendly Ethereum L2 built to bring the next billion users onchain. ### How to Connect to Base You can connect to Base using Blockops private API endpoints. Secure your data, speed up your queries, and take control of your API usage with our RPC API endpoint and personalized API keys. [Sign up now](https://app.blockops.network) to get your own API key. ### Base Mainnet To get your API key, create a project using a unique Identifier as the project name and select Base from the network options. Open the project to view your api key and rpc endpoints. ### Base Sepolia To get your API key, create a project using a unique Identifier as the project name and select Base Sepolia from the network options. Open the project to view your api key and rpc endpoints. #### Send requests All requests are `POST` requests. For Base Mainnet ```bash theme={null} https://base.blockops.network/?api_key=************ ``` For Base Sepolia ```bash theme={null} https://base-sepolia-rpc.blockops.network?api_key=************ ``` For Base Mainnet ```bash theme={null} wss://base.blockops.network?api_key=************ ``` For Base Sepolia ```bash theme={null} wss://base-sepolia-ws.blockops.network?api_key=************ ``` **Connect via Command Line** You can connect to the network using websocket or HTTP with your API key in two ways: * Adding the API key as a query string `?api_key=${APIKEY}` * Or the request header `-H 'authorization: APIKEY ${APIKEY}'` **Curl** For example, the following CURL command can be used to get a block number. ### Base Mainnet ```bash theme={null} curl -H "Content-Type: application/json" -H 'authorization: APIKEY xxxx' -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' https://base.blockops.network ``` ### Base Sepolia ```bash theme={null} curl -H "Content-Type: application/json" -H 'authorization: APIKEY xxxx' -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' https://base-sepolia-rpc.blockops.network ``` Here is the response you will receive back. ```bash theme={null} {"jsonrpc":"2.0","id":1,"result":"0x10666b"} ``` **Wscat** If you want to send data requests with WebSockets, you can use several libraries or wscat. You can install and use wscat as follows: * Download wscat from [https://www.npmjs.com/package/wscat](https://www.npmjs.com/package/wscat) * Install wscat by running the following command: `npm install -g wscat` You can connect to the network with wscat using two options by adding the API key as a query string. ### Base Mainnet ```bash theme={null} wscat -c 'wss://base.blockops.network?api_key=*********************' ``` Or the request header. ```bash theme={null} wscat -c 'wss://base.blockops.network' --header 'authorization: APIKEY xxxx' ``` ### Base Sepolia ```bash theme={null} wscat -c 'wss://base-sepolia-rpc.blockops.network?api_key=*********************' ``` Or the request header. ```bash theme={null} wscat -c 'wss://base-sepolia-ws.blockops.network' --header 'authorization: APIKEY xxxx' ``` After executing the command, the terminal will display a message indicating that the connection has been enabled successfully. ```bash theme={null} Connected (press CTRL+C to quit) > ``` Then, you can send the following request: ``` {"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1} ``` For more information on the Base network, please see the official [Base developer documentation](https://docs.base.org/). Login or set up an account [here](https://app.blockops.network) to get started! #### ***Quick Links*** [Website](https://www.base.org/) [Github](https://github.com/base-org) # Ethereum Source: https://blockops-3855c227.mintlify.app/blockchain-infrastructure/blockchain-api/networks/ethereum Endpoints and example requests for Ethereum Mainnet and Sepolia. Ethereum is the community-run technology powering the cryptocurrency ether (ETH) and thousands of decentralized applications. ### How to Connect to Ethereum You can connect to Ethereum using Blockops private API endpoints. Secure your data, speed up your queries, and take control of your API usage with our RPC API endpoint and personalized API keys. [Sign up now](https://app.blockops.network) to get your own API key. ### Ethereum Mainnet To get your API key, create a project using a unique Identifier as the project name and select Ethereum from the network options. Open the project to view your api key and rpc endpoints. ### Ethereum Sepolia To get your API key, create a project using a unique Identifier as the project name and select Ethereum Sepolia from the network options. Open the project to view your api key and rpc endpoints. #### Send requests All requests are `POST` requests. For Ethereum Mainnet ```bash theme={null} https://ethereum-rpc.blockops.network/?api_key=************ ``` For Ethereum Sepolia ```bash theme={null} https://ethereum-sepolia-rpc.blockops.network?api_key=************ ``` For Ethereum Mainnet ```bash theme={null} wss://ethereum-ws.blockops.network?api_key=************ ``` For Ethereum Sepolia ```bash theme={null} wss://ethereum-sepolia-ws.blockops.network?api_key=************ ``` **Connect via Command Line** You can connect to the network using websocket or HTTP with your API key in two ways: * Adding the API key as a query string `?api_key=${APIKEY}` * Or the request header `-H 'authorization: APIKEY ${APIKEY}'` **Curl** For example, the following CURL command can be used to get a block number. ### Ethereum Mainnet ```bash theme={null} curl -H "Content-Type: application/json" -H 'authorization: APIKEY xxxx' -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' https://ethereum-rpc.blockops.network ``` ### Ethereum Sepolia ```bash theme={null} curl -H "Content-Type: application/json" -H 'authorization: APIKEY xxxx' -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' https://ethereum-sepolia-rpc.blockops.network ``` Here is the response you will receive back. ```bash theme={null} {"jsonrpc":"2.0","id":1,"result":"0x10666b"} ``` **Wscat** If you want to send data requests with WebSockets, you can use several libraries or wscat. You can install and use wscat as follows: * Download wscat from [https://www.npmjs.com/package/wscat](https://www.npmjs.com/package/wscat) * Install wscat by running the following command: `npm install -g wscat` You can connect to the network with wscat using two options by adding the API key as a query string. ### Ethereum Mainnet ```bash theme={null} wscat -c 'wss://ethereum-ws.blockops.network?api_key=*********************' ``` Or the request header. ```bash theme={null} wscat -c 'wss://ethereum-ws.blockops.network' --header 'authorization: APIKEY xxxx' ``` ### Ethereum Sepolia ```bash theme={null} wscat -c 'wss://ethereum-sepolia-ws.blockops.network?api_key=*********************' ``` Or the request header. ```bash theme={null} wscat -c 'wss://ethereum-sepolia-ws.blockops.network' --header 'authorization: APIKEY xxxx' ``` After executing the command, the terminal will display a message indicating that the connection has been enabled successfully. ```bash theme={null} Connected (press CTRL+C to quit) > ``` Then, you can send the following request: ``` {"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1} ``` For more information on the Ethereum network, please see the official [Ethereum developer documentation](https://ethereum.org/developers). Login or set up an account [here](https://app.blockops.network) to get started! #### ***Quick Links*** [Website](https://ethereum.org) [Github](https://github.com/ethereum/) # Gargantua Source: https://blockops-3855c227.mintlify.app/blockchain-infrastructure/blockchain-api/networks/gargantua Endpoints and example requests for Gargantua, the Hyperbridge test network. Hyperbridge (short for hyper-scalable bridge) is innovated as a cross-chain solution built as an interoperability coprocessor. Hyperbridge is crafted to scale cryptographically secure, consensus, and state-proof-based interoperability across all blockchains. ### How to Connect to Gargantua #### Using Private Endpoint Using API keys on an RPC node provides better tracking and monitoring of API usage. Secure your data, speed up your queries, and take control of your API usage with our RPC API endpoint and personalized API keys. [Sign up now](https://app.blockops.network) to get your own API key. To get your API key, create a project using a unique Identifier as the project name and select Gargantua from the network options. Open the project to view your api key and rpc endpoints. #### Send requests All requests are `POST` requests. **Connect via Command Line** You can connect to the network using websocket or HTTP with your API key in two ways: * Adding the API key as a query string `?api_key=${APIKEY}` * Or the request header `-H 'authorization: APIKEY ${APIKEY}'` **Curl** For example, the following CURL command can be used to get header and body of a relay chain block. ```bash theme={null} curl -H "Content-Type: application/json" -H 'authorization: APIKEY xxxx' -d '{"id":1, "jsonrpc":"2.0", "method": "chain_getBlock"}' https://gargantua-rpc.blockops.network/rpc ``` Here is the response you will receive back. ```bash theme={null} {"jsonrpc":"2.0","result":{"block":{"header":{"parentHash":"0x381dd358f0b1e328e861822b2a51a72e8dc064803a5c7ccc96277da3b16d7667","number":"0xe07a1d","stateRoot":"0xa2aacd7ef5d7ff66da1df6643b3e1c13975d210363c568f1bed51bad56cf40db","extrinsicsRoot":"0x00bc7f1504c9a07364835d80d2114ca3d4e7ad774453198b119bea9be2a1f7c1","digest":{"logs":["0x0642414245b50103d8000000d17aae1000000000768dc1931ba697bb9ab4a08debf5d710bd1f55e6325d65315161c2340cc0217170dfe2df24a3680c8ff48868ac665f4b34ebefa4bc844d510c848d9fc99252035db579a0acbf52cded336d6daf6ab7fdb1d1eee0d480e6388c2a12785d4de809"]},"justifications":null},"id":1} ``` **Wscat** If you want to send data requests with WebSockets, you can use several libraries or wscat. You can install and use wscat as follows: * Download wscat from [https://www.npmjs.com/package/wscat](https://www.npmjs.com/package/wscat) * Install wscat by running the following command: `npm install -g wscat` You can connect to the network with wscat using two options by adding the API key as a query string. ```bash theme={null} wscat -c 'wss://gargantua-rpc.blockops.network/ws?api_key=*********************' ``` Or the request header. ```bash theme={null} wscat -c 'wss://gargantua-rpc.blockops.network/ws' --header 'authorization: APIKEY xxxx' ``` After executing the command, the terminal will display a message indicating that the connection has been enabled successfully. ```bash theme={null} Connected (press CTRL+C to quit) > ``` Then, you can send the following request: ``` {"id":1, "jsonrpc":"2.0", "method": "chain_getBlock"} ``` For more information on the Gargantua network, please see the official [Hyperbridge documentation](https://docs.hyperbridge.network/). Login or set up an account [here](https://app.blockops.network) to get started! #### ***Quick Links*** [Website](https://research.polytope.technology/) [Github](https://github.com/polytope-labs/hyperbridge) # Kusama Source: https://blockops-3855c227.mintlify.app/blockchain-infrastructure/blockchain-api/networks/kusama Public and private endpoints and example requests for Kusama. Kusama is a blockchain network designed as a "canary network" for Polkadot, aimed at testing and experimenting with new features before deploying them on Polkadot. Kusama has its own community and governance, with a focus on innovation and risk-taking. ### How to Connect to Kusama #### Using Public Endpoint You can connect to kusama using Blockops public API endpoints. These endpoints are only suitable for testing. Public RPC endpoints are not intended for dApp building. (Throughput rate limited to 50 rps). We have different rate limits set for private API endpoints (e.g. ones with API keys attached) - Read more below To avoid rate limiting and service interruption, [sign up now](https://app.blockops.network) to get your own API key. ```bash theme={null} https://kusama-public-rpc.blockops.network/rpc ``` ```bash theme={null} wss://kusama-public-rpc.blockops.network/ws ``` The below example uses the public API endpoint to make a request using curl ``` curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "chain_getBlock"}' 'https://kusama-public-rpc.blockops.network/rpc' ``` #### Using Private Endpoint Using API keys on an RPC node provides better tracking and monitoring of API usage. Secure your data, speed up your queries, and take control of your API usage with our RPC API endpoint and personalized API keys. [Sign up now](https://app.blockops.network) to get your own API key. To get your API key, create a project using a unique Identifier as the project name and select Kusama from the network options. Open the project to view your api key and rpc endpoints. #### Send requests All requests are `POST` requests. **Connect via Command Line** You can connect to the network using websocket or HTTP with your API key in two ways: * Adding the API key as a query string `?api_key=${APIKEY}` * Or the request header `-H 'authorization: APIKEY ${APIKEY}'` **Curl** For example, the following CURL command can be used to get header and body of a relay chain block. ```bash theme={null} curl -H "Content-Type: application/json" -H 'authorization: APIKEY xxxx' -d '{"id":1, "jsonrpc":"2.0", "method": "chain_getBlock"}' https://kusama-rpc.blockops.network/rpc ``` Here is the response you will receive back. ```bash theme={null} {"jsonrpc":"2.0","result":{"block":{"header":{"parentHash":"0x381dd358f0b1e328e861822b2a51a72e8dc064803a5c7ccc96277da3b16d7667","number":"0xe07a1d","stateRoot":"0xa2aacd7ef5d7ff66da1df6643b3e1c13975d210363c568f1bed51bad56cf40db","extrinsicsRoot":"0x00bc7f1504c9a07364835d80d2114ca3d4e7ad774453198b119bea9be2a1f7c1","digest":{"logs":["0x0642414245b50103d8000000d17aae1000000000768dc1931ba697bb9ab4a08debf5d710bd1f55e6325d65315161c2340cc0217170dfe2df24a3680c8ff48868ac665f4b34ebefa4bc844d510c848d9fc99252035db579a0acbf52cded336d6daf6ab7fdb1d1eee0d480e6388c2a12785d4de809"]},"justifications":null},"id":1} ``` **Wscat** If you want to send data requests with WebSockets, you can use several libraries or wscat. You can install and use wscat as follows: * Download wscat from [https://www.npmjs.com/package/wscat](https://www.npmjs.com/package/wscat) * Install wscat by running the following command: `npm install -g wscat` You can connect to the network with wscat using two options by adding the API key as a query string. ```bash theme={null} wscat -c 'wss://kusama-rpc.blockops.network/ws?api_key=*********************' ``` Or the request header. ```bash theme={null} wscat -c 'wss://kusama-rpc.blockops.network/ws' --header 'authorization: APIKEY xxxx' ``` After executing the command, the terminal will display a message indicating that the connection has been enabled successfully. ```bash theme={null} Connected (press CTRL+C to quit) > ``` Then, you can send the following request: ``` {"id":1, "jsonrpc":"2.0", "method": "chain_getBlock"} ``` For more information on the Kusama network, please see the official [Kusama developer documentation](https://guide.kusama.network/docs/kusama-getting-started/). Login or set up an account [here](https://app.blockops.network) to get started! #### ***Quick Links*** [Website](https://guide.kusama.network/docs/kusama-index/) [Github](https://github.com/paritytech/) # Optimism Source: https://blockops-3855c227.mintlify.app/blockchain-infrastructure/blockchain-api/networks/optimism Endpoints and example requests for Optimism Mainnet and Optimism Sepolia. Optimism is an EVM equivalent Layer 2 blockchain connected to Ethereum. The Optimism Stack is the standardized, shared, and open-source development stack that makes it easy to spin up your own production-ready Layer 2 blockchain just like Optimism. ### How to Connect to Optimism You can connect to Optimism using Blockops private API endpoints. Secure your data, speed up your queries, and take control of your API usage with our RPC API endpoint and personalized API keys. [Sign up now](https://app.blockops.network) to get your own API key. ### Optimism Mainnet To get your API key, create a project using a unique Identifier as the project name and select Optimism from the network options. Open the project to view your api key and rpc endpoints. ### Optimism Sepolia To get your API key, create a project using a unique Identifier as the project name and select Optimism Sepolia from the network options. Open the project to view your api key and rpc endpoints. #### Send requests All requests are `POST` requests. For Optimism Mainnet ```bash theme={null} https://optimism-rpc.blockops.network/?api_key=************ ``` For Optimism Sepolia ```bash theme={null} https://optimism-sepolia-rpc.blockops.network?api_key=************ ``` For Optimism Mainnet ```bash theme={null} wss://optimism-ws.blockops.network?api_key=************ ``` For Optimism Sepolia ```bash theme={null} wss://optimism-sepolia-ws.blockops.network?api_key=************ ``` **Connect via Command Line** You can connect to the network using websocket or HTTP with your API key in two ways: * Adding the API key as a query string `?api_key=${APIKEY}` * Or the request header `-H 'authorization: APIKEY ${APIKEY}'` **Curl** For example, the following CURL command can be used to get a block number. ### Optimism Mainnet ```bash theme={null} curl -H "Content-Type: application/json" -H 'authorization: APIKEY xxxx' -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' https://optimism-rpc.blockops.network ``` ### Optimism Sepolia ```bash theme={null} curl -H "Content-Type: application/json" -H 'authorization: APIKEY xxxx' -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' https://optimism-sepolia-rpc.blockops.network ``` Here is the response you will receive back. ```bash theme={null} {"jsonrpc":"2.0","id":1,"result":"0x10666b"} ``` **Wscat** If you want to send data requests with WebSockets, you can use several libraries or wscat. You can install and use wscat as follows: * Download wscat from [https://www.npmjs.com/package/wscat](https://www.npmjs.com/package/wscat) * Install wscat by running the following command: `npm install -g wscat` You can connect to the network with wscat using two options by adding the API key as a query string. ### Optimism Mainnet ```bash theme={null} wscat -c 'wss://optimism-ws.blockops.network?api_key=*********************' ``` Or the request header. ```bash theme={null} wscat -c 'wss://optimism-ws.blockops.network' --header 'authorization: APIKEY xxxx' ``` ### Optimism Sepolia ```bash theme={null} wscat -c 'wss://optimism-sepolia-ws.blockops.network?api_key=*********************' ``` Or the request header. ```bash theme={null} wscat -c 'wss://optimism-sepolia-ws.blockops.network' --header 'authorization: APIKEY xxxx' ``` After executing the command, the terminal will display a message indicating that the connection has been enabled successfully. ```bash theme={null} Connected (press CTRL+C to quit) > ``` Then, you can send the following request: ``` {"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1} ``` For more information on the Optimism network, please see the official [Optimism website](https://www.optimism.io/). Login or set up an account [here](https://app.blockops.network) to get started! #### ***Quick Links*** [Website](https://www.optimism.io/) [Github](https://github.com/ethereum-optimism) # Polkadot Source: https://blockops-3855c227.mintlify.app/blockchain-infrastructure/blockchain-api/networks/polkadot Public and private endpoints and example requests for Polkadot. Polkadot is a blockchain platform that enables the creation of a network of interoperable and secure specialized blockchains called parachains. It addresses scalability, interoperability and governance by letting parachains communicate with each other under shared security. ### How to Connect to Polkadot #### Using Public Endpoint You can connect to polkadot using Blockops public API endpoints. These endpoints are only suitable for testing. Public RPC endpoints are not intended for dApp building. (Throughput rate limited to 50 rps). We have different rate limits set for private API endpoints (e.g. ones with API keys attached) - Read more below To avoid rate limiting and service interruption, [sign up now](https://app.blockops.network) to get your own API key. For Polkadot Mainnet ```bash theme={null} https://polkadot-public-rpc.blockops.network/rpc ``` For Polkadot Westend ```bash theme={null} https://westend-rpc.blockops.network/rpc ``` For Polkadot Mainnet ```bash theme={null} wss://polkadot-public-rpc.blockops.network/ws ``` For Polkadot Westend ``` wss://westend-rpc.blockops.network/ws ``` The below example uses the public API endpoint to make a request on the terminal Using curl ``` curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "chain_getBlock"}' 'https://polkadot-public-rpc.blockops.network/rpc' ``` Using wscat * Download wscat from [https://www.npmjs.com/package/wscat](https://www.npmjs.com/package/wscat) * Install wscat by running the following command: `npm install -g wscat` ``` wscat -c 'wss://polkadot-rpc.blockops.network/ws' --header 'authorization: APIKEY xxxx' ``` #### Using Private Endpoint Using API keys on an RPC node provides better tracking and monitoring of API usage. Secure your data, speed up your queries, and take control of your API usage with our RPC API endpoint and personalized API keys. [Sign up now](https://app.blockops.network) to get your own API key. To get your API key, create a project using a unique Identifier as the project name and select Polkadot from the network options. Open the project to view your api key and rpc endpoints. #### Send requests All requests are `POST` requests. **Connect via Command Line** You can connect to the network using websocket or HTTP with your API key in two ways: * Adding the API key as a query string `?api_key=${APIKEY}` * Or the request header `-H 'authorization: APIKEY ${APIKEY}'` **Curl** For example, the following CURL command can be used to get header and body of a relay chain block. ```bash theme={null} curl -H "Content-Type: application/json" -H 'authorization: APIKEY xxxx' -d '{"id":1, "jsonrpc":"2.0", "method": "chain_getBlock"}' https://polkadot-rpc.blockops.network/rpc ``` Here is the response you will receive back. ```bash theme={null} {"jsonrpc":"2.0","result":{"block":{"header":{"parentHash":"0x381dd358f0b1e328e861822b2a51a72e8dc064803a5c7ccc96277da3b16d7667","number":"0xe07a1d","stateRoot":"0xa2aacd7ef5d7ff66da1df6643b3e1c13975d210363c568f1bed51bad56cf40db","extrinsicsRoot":"0x00bc7f1504c9a07364835d80d2114ca3d4e7ad774453198b119bea9be2a1f7c1","digest":{"logs":["0x0642414245b50103d8000000d17aae1000000000768dc1931ba697bb9ab4a08debf5d710bd1f55e6325d65315161c2340cc0217170dfe2df24a3680c8ff48868ac665f4b34ebefa4bc844d510c848d9fc99252035db579a0acbf52cded336d6daf6ab7fdb1d1eee0d480e6388c2a12785d4de809"]},"justifications":null},"id":1} ``` **Wscat** If you want to send data requests with WebSockets, you can use several libraries or wscat. You can install and use wscat as follows: * Download wscat from [https://www.npmjs.com/package/wscat](https://www.npmjs.com/package/wscat) * Install wscat by running the following command: `npm install -g wscat` You can connect to the network with wscat using two options by adding the API key as a query string. ```bash theme={null} wscat -c 'wss://polkadot-rpc.blockops.network/ws?api_key=*********************' ``` Or the request header. ```bash theme={null} wscat -c 'wss://polkadot-rpc.blockops.network/ws' --header 'authorization: APIKEY xxxx' ``` After executing the command, the terminal will display a message indicating that the connection has been enabled successfully. ```bash theme={null} Connected (press CTRL+C to quit) > ``` Then, you can send the following request: ``` {"id":1, "jsonrpc":"2.0", "method": "chain_getBlock"} ``` For more information on the Polkadot network, please see the official [Polkadot developer documentation](https://wiki.polkadot.network/docs/getting-started). Login or set up an account [here](https://app.blockops.network) to get started! #### ***Quick Links*** [Website](https://polkadot.network) [Github](https://github.com/paritytech/polkadot) # Westend Source: https://blockops-3855c227.mintlify.app/blockchain-infrastructure/blockchain-api/networks/westend Endpoints and example requests for the Westend test network. Westend is the primary test network of Polkadot. The tokens on this network are called *Westies* (WND) and they purposefully hold no economic value. ### How to Connect to Westend You can connect to Westend using Blockops private API endpoints. Secure your data, speed up your queries, and take control of your API usage with our RPC API endpoint and personalized API keys. [Sign up now](https://app.blockops.network) to get your own API key. To get your API key, create a project using a unique Identifier as the project name and select Westend from the network options. Open the project to view your api key and rpc endpoints. #### Send requests All requests are `POST` requests. **Connect via Command Line** You can connect to the network using websocket or HTTP with your API key in two ways: * Adding the API key as a query string `?api_key=${APIKEY}` * Or the request header `-H 'authorization: APIKEY ${APIKEY}'` **Curl** For example, the following CURL command can be used to get header and body of a relay chain block. ```bash theme={null} curl -H "Content-Type: application/json" -H 'authorization: APIKEY xxxx' -d '{"id":1, "jsonrpc":"2.0", "method": "chain_getBlock"}' https://westend.blockops.network/rpc ``` Here is the response you will receive back. ```bash theme={null} {"jsonrpc":"2.0","result":{"block":{"header":{"parentHash":"0x381dd358f0b1e328e861822b2a51a72e8dc064803a5c7ccc96277da3b16d7667","number":"0xe07a1d","stateRoot":"0xa2aacd7ef5d7ff66da1df6643b3e1c13975d210363c568f1bed51bad56cf40db","extrinsicsRoot":"0x00bc7f1504c9a07364835d80d2114ca3d4e7ad774453198b119bea9be2a1f7c1","digest":{"logs":["0x0642414245b50103d8000000d17aae1000000000768dc1931ba697bb9ab4a08debf5d710bd1f55e6325d65315161c2340cc0217170dfe2df24a3680c8ff48868ac665f4b34ebefa4bc844d510c848d9fc99252035db579a0acbf52cded336d6daf6ab7fdb1d1eee0d480e6388c2a12785d4de809"]},"justifications":null},"id":1} ``` **Wscat** If you want to send data requests with WebSockets, you can use several libraries or wscat. You can install and use wscat as follows: * Download wscat from [https://www.npmjs.com/package/wscat](https://www.npmjs.com/package/wscat) * Install wscat by running the following command: `npm install -g wscat` You can connect to the network with wscat using two options by adding the API key as a query string. ```bash theme={null} wscat -c 'wss://westend.blockops.network/ws?api_key=*********************' ``` Or the request header. ```bash theme={null} wscat -c 'wss://westend.blockops.network/ws' --header 'authorization: APIKEY xxxx' ``` After executing the command, the terminal will display a message indicating that the connection has been enabled successfully. ```bash theme={null} Connected (press CTRL+C to quit) > ``` Then, you can send the following request: ``` {"id":1, "jsonrpc":"2.0", "method": "chain_getBlock"} ``` For more information on the Westend network, please see the official[ ](https://wiki.polkadot.network/docs/maintain-networks?ref=cms.polkadot.network#westend-test-network)[Westend developer documentation](https://wiki.polkadot.network/docs/maintain-networks#westend-test-network). Login or set up an account [here](https://app.blockops.network) to get started! #### ***Quick Links*** [Github](https://github.com/paritytech/) # Blockchain API Source: https://blockops-3855c227.mintlify.app/blockchain-infrastructure/blockchain-api/overview JSON-RPC endpoints over HTTP and WebSocket for 28 networks, with per-project API keys. **What is Blockchain API?** The Blockops Blockchain API provides developers with instant, high-performance Remote Procedure Call (RPC) endpoints via HTTP and WebSockets (WSS). It acts as the critical communication bridge between your decentralized application (dApp) and the blockchain, handling node operations and syncing behind the scenes. **The Problem It Solves** Running your own blockchain nodes requires massive storage, constant updates, and 24/7 monitoring. The Blockchain API eliminates this infrastructure burden. You simply use our API endpoint to get reliable read/write access to the network, allowing you to focus entirely on building your application. **Dashboard** The dashboard gives access to all the available features on Blockops and provides a side navigation for easy navigation. To get started, visit [blockops.network](https://www.blockops.network) and navigate to the Blockchain API page on the dashboard. This allows you to connect to a network which generates your API keys. ### Supported Networks The Blockchain API supports: * [Ethereum](/blockchain-infrastructure/blockchain-api/networks/ethereum) * [Polkadot](/blockchain-infrastructure/blockchain-api/networks/polkadot) * Gnosis * Cronos * Polygon * Lisk * Assethub * Arbitrum * Zora * Celo * BSC * [Optimism](/blockchain-infrastructure/blockchain-api/networks/optimism) * Soneium * Starknet * Unichain * Solana * Fantom * Sonic * Zksync * Blast * Linea * Berachain * Mantle * Scroll * [Hyperbridge](/blockchain-infrastructure/blockchain-api/networks/gargantua) * Avalanche * Monad and * [Base](/blockchain-infrastructure/blockchain-api/networks/base), all easily accessible from the dashboard. ### In this section * [Endpoints, keys & authentication](/blockchain-infrastructure/blockchain-api/endpoints-and-authentication) * [Rate limits & error codes](/blockchain-infrastructure/blockchain-api/rate-limits-and-errors) * [Common RPC methods & examples](/blockchain-infrastructure/blockchain-api/rpc-methods-and-examples) * Network guides: [Ethereum](/blockchain-infrastructure/blockchain-api/networks/ethereum), [Base](/blockchain-infrastructure/blockchain-api/networks/base), [Optimism](/blockchain-infrastructure/blockchain-api/networks/optimism), [Polkadot](/blockchain-infrastructure/blockchain-api/networks/polkadot), [Kusama](/blockchain-infrastructure/blockchain-api/networks/kusama), [Westend](/blockchain-infrastructure/blockchain-api/networks/westend), [Hyperbridge (Gargantua testnet)](/blockchain-infrastructure/blockchain-api/networks/gargantua) **Conclusion** Blockops Blockchain API is a gateway to accessing your endpoint with ease and securely. [**Follow us on Twitter**](https://twitter.com/blockopsnetwork) **for more information on upcoming protocols and developments.** # Rate limits & error codes Source: https://blockops-3855c227.mintlify.app/blockchain-infrastructure/blockchain-api/rate-limits-and-errors Requests-per-second limits for public and private endpoints, and the error codes the API returns. ### Blockchain API Rate Limiting **What is Rate Limiting?** Rate limiting is a mechanism that controls the number of API requests your application can make to the Blockops RPC nodes within a specific time frame (usually measured in Requests Per Second, or RPS). ### Request limits The Blockchain API has a limit on the number of requests that can be made to each API endpoint. The limit depends on whether you are using the public rpc endpoint or an API key. The number of requests you can make before reaching the limit or being rate-limited will vary based on your chosen method of access. * Public API endpoint - 50 requests/second * Private API endpoint - 1000 requests/second Typically only aggressive use should experience rate limiting. Customers running into rate limits are encouraged to [contact us](/get-started/support). We'll work with you to determine how best to avoid rate limits. *(Note: You can monitor your real-time request volume and remaining limits directly from your Project Dashboard.).* **API Error Codes** The following error codes are frequently returned by our Blockchain API. However, it's important to note that this list doesn't include errors related to network-specific business logic. | Code | Message | Explanation | | ---- | --------------------- | ------------------------------------------------------------------------ | | 401 | Unauthorized Access | Invalid API key or no API key found in request | | 404 | No route matched | This indicates the specific page you are trying to visit is non-existent | | 429 | Too Many Requests | You have exceeded your request limit. | | 500 | Internal Server Error | Something went wrong inside our servers. Contact support. | # Common RPC methods & examples Source: https://blockops-3855c227.mintlify.app/blockchain-infrastructure/blockchain-api/rpc-methods-and-examples Common JSON-RPC methods, with cURL, wscat and @polkadot/api examples. ### Common EVM RPC Methods Once your endpoints are generated, you can interact with the network using standard JSON-RPC methods. Here is a quick reference for the most common methods you will use when building your project: | Category | Method | Description | | :----------------------- | :-------------------------- | :----------------------------------------------------------------------------------------- | | **Account Info** | `eth_getBalance` | Returns the native token balance of an address (e.g., LSK or ETH). | | | `eth_getTransactionCount` | Returns the nonce of an account (essential for sending transactions). | | **Chain State** | `eth_chainId` | Returns the specific Chain ID (e.g., Lisk Mainnet is 1135). | | | `eth_gasPrice` | Returns the current price of gas on the network in wei. | | **Transaction Info** | `eth_getTransactionByHash` | Gets the full details of a transaction using its unique hash. | | | `eth_getTransactionReceipt` | Gets the receipt (status, logs, gas used) of a transaction. | | **Contract Interaction** | `eth_call` | Executes a "read-only" call to a smart contract (costs zero gas). | | | `eth_estimateGas` | Estimates how much gas a transaction will cost before you send it. | | **Events & Logs** | `eth_getLogs` | Returns an array of all logs matching a specific filter (highly useful for indexing data). | ### Practical Examples **Connect via a command line** You can connect to the network using WebSocket or HTTP with your API key in two ways: * Adding the API key as a query string `?api_key=${APIKEY}` * Or the request header `-H 'authorization: APIKEY ${APIKEY}'` **cURL** For example, the following cURL command can be used to get the header and body of a block. `curl -H "Content-Type: application/json" -H "authorization: APIKEY xxxx" -d '{"id":1, "jsonrpc":"2.0", "method": "eth_getBlockByNumber", "params": ["latest", true]}' https://lisk.rpc.blockops.network/rpc` **What Success Looks Like:** Here is the successful JSON response you will receive back, proving your app is communicating with the chain: `{"jsonrpc":"2.0","result":{"hash":"0x381dd358f0b1e328e861822b2a51a72e8dc064803a5c7ccc96277da3b16d7667","number":"0xe07a1d", "timestamp": "0x65123abc"},"id":1}` **wscat** If you want to send data requests with WebSockets, you can use several libraries or wscat. You can install and use wscat as follows: * Download wscat from [https://www.npmjs.com/package/wscat](https://www.npmjs.com/package/wscat) * Install wscat by running the following command: `npm install -g wscat` You can connect to the network with wscat using two options. With the request header: `wscat -c 'wss://lisk.rpc.blockops.network/ws' --header 'authorization: APIKEY xxxx'` Or by adding the API key as a query string: `wscat -c 'wss://lisk.rpc.blockops.network/ws?api_key=**********************'` After executing the command, the terminal will display a message indicating that the connection has been enabled successfully: `Connected (press CTRL+C to quit)` Then, you can send the following request into the open terminal: `> {"id":1, "jsonrpc":"2.0", "method": "eth_blockNumber"}` ### Connect via Polkadot JS API If you are building on Polkadot or any Substrate-based chain, you can connect your application using the official `@polkadot/api` library. First, install the library in your project repository: ```bash theme={null} npm install @polkadot/api ``` Then, instantiate the `WsProvider` using your Blockops WSS endpoint. The most reliable way to authenticate is by appending your API key as a query parameter in the URL. ```javascript theme={null} import { ApiPromise, WsProvider } from "@polkadot/api"; async function connectToBlockops() { const WSS_URL = "wss://polkadot.rpc.blockops.network/ws?api_key=YOUR_API_KEY"; const wsProvider = new WsProvider(WSS_URL); try { const api = await ApiPromise.create({ provider: wsProvider }); const chain = await api.rpc.system.chain(); const lastHeader = await api.rpc.chain.getHeader(); console.log(`Successfully connected to ${chain}!`); console.log(`Latest Block Number: ${lastHeader.number.toHuman()}`); } catch (error) { console.error("Connection failed:", error); } } connectToBlockops(); ``` # Pulsar Source: https://blockops-3855c227.mintlify.app/blockchain-infrastructure/indexing Managed SubQuery and The Graph indexers with GraphQL endpoints. ## What is Pulsar? Pulsar is Blockops' managed indexing service designed to eliminate the complexity of running blockchain data infrastructure. It allows developers to deploy **SubQuery** or **The Graph** indexers to query blockchain data via high-performance GraphQL endpoints. Think of Pulsar as your dedicated indexing infrastructure team. Instead of spending weeks setting up servers, configuring databases, and managing RPC connections, you can deploy a production-ready indexer in minutes. Pulsar handles all the underlying infrastructure, including: * Server provisioning and scaling * Database management and optimization * RPC endpoint allocation and rate limiting protection * Indexer synchronization and health monitoring * High-availability GraphQL endpoint delivery Whether you're building a DeFi dashboard, an NFT marketplace, or a blockchain analytics platform, Pulsar provides the data layer you need without the operational overhead. *** ## The Problem Pulsar Solves Building applications on blockchain requires access to indexed data. Without an indexer, your application would need to scan every block on the blockchain to find relevant events - an approach that is slow, expensive, and impractical for most use cases. ### The Traditional Challenges Before managed indexing services like Pulsar, developers faced significant hurdles: | Challenge | Description | | ------------------------ | ------------------------------------------------------------------------------------------------------------- | | **Infrastructure Setup** | Setting up servers, databases, and RPC connections requires DevOps expertise and significant time investment. | | **RPC Rate Limiting** | Shared RPC endpoints often hit rate limits during heavy sync operations, causing indexing failures. | | **Scaling Complexity** | As data volume grows, manually scaling infrastructure becomes complex and error-prone. | | **Monitoring Overhead** | Building and maintaining monitoring systems for indexer health requires ongoing effort. | | **High Availability** | Ensuring indexer uptime with failover and redundancy is challenging to implement correctly. | ### How Pulsar Addresses These Challenges Pulsar eliminates these pain points by providing: 1. **One-Click Deployment**: Deploy indexers in minutes, not weeks. No server configuration or DevOps expertise required. 2. **Dedicated RPC Allocation**: Every indexer gets its own RPC endpoint, eliminating rate limiting issues during sync. 3. **Automatic Scaling**: Infrastructure scales automatically based on your indexer's needs. 4. **Built-in Monitoring**: Real-time sync status, health metrics, and log access from a unified dashboard. 5. **Production-Ready Endpoints**: High-availability GraphQL endpoints with automatic failover. *** ## Getting Started This section walks you through deploying your first indexer on Pulsar. By the end, you'll have a fully operational indexer syncing blockchain data and serving GraphQL queries. ### Step 1: Accessing the Pulsar Dashboard To begin, navigate to your Blockops project dashboard. In the left sidebar, you'll see the **Pulsar** option under the Products section. Click on it to access the Pulsar dashboard. > If this is your first time using Pulsar, you'll see an empty state dashboard with a prominent "Create Indexer" button. If you have existing indexers, you'll see them listed with their current status. Pulsar Dashboard ### Step 2: Creating Your First Indexer Click the **Create Indexer** button to begin the deployment process. You'll be presented with two distinct deployment paths: Deployment Paths #### Option A: Deploy a Community Indexer (Recommended) Community Indexers are pre-configured, verified indexers maintained by Blockops. This is the fastest way to get started with popular blockchain protocols. Select this option if you want to index standard data like token transfers, DEX trades, or NFT events without writing custom indexing logic. #### Option B: Import a Project If you have a custom Subgraph or SubQuery project, select this option to import it via an IPFS hash. This is ideal if you've developed custom indexing logic for your specific use case. > Custom project imports are currently handled through our Concierge service to ensure optimal resource allocation and compatibility. After selecting this option, you'll be prompted to contact our team for assistance. Import Concierge ### Step 3: Configuring Your Indexer After selecting "Deploy a Community Indexer," you'll enter the configuration wizard. This process has two main stages: #### 3.1 Protocol Configuration First, you'll configure the blockchain protocol and indexing framework: | Field | Description | | ------------ | -------------------------------------------------------------------------------------------------- | | **Provider** | Choose between SubQuery or The Graph indexing frameworks. | | **Network** | Select the blockchain protocol (e.g., Ethereum, BSC, Avalanche) and environment (Mainnet/Testnet). | Protocol Selection Protocol Selection The **Provider** selection determines which indexing framework your indexer will use. Both SubQuery and The Graph are industry-standard frameworks with extensive documentation and community support. The **Network** selection specifies which blockchain your indexer will monitor. Pulsar supports a range of EVM-compatible chains including Ethereum, BSC and Avalanche. #### 3.2 Infrastructure Settings Next, you'll configure the infrastructure for your indexer: **RPC Endpoint:** Pulsar automatically assigns a dedicated Blockops RPC endpoint to your indexer. This ensures your indexer never gets rate-limited during heavy synchronization operations. The RPC endpoint is exclusively allocated to your indexer and is not shared with other users. **Database:** Choose between two database options: * **Shared Database**: Best for testing, development, and low-volume production queries. Resources are shared across multiple indexers, making this a cost-effective option for getting started. * **Dedicated Database**: Recommended for production applications requiring high IOPS, consistent performance, and exclusive resources. Your database runs on isolated infrastructure with guaranteed performance. Infrastructure Settings ### Step 4: Deploying Your Indexer After configuring your settings, click the **Deploy** button to initiate deployment. The deployment process typically takes 2-5 minutes, during which Pulsar: 1. **Infrastructure Provisioning**: Pulsar allocates the necessary compute resources for your indexer. 2. **Database and RPC Setup**: Configures the database and establishes dedicated RPC connections. 3. **Code Deployment**: Deploys your subgraph or SubQuery project code to the infrastructure. 4. **Sync Initiation**: Begins indexing blockchain data from the starting block. Once deployment is complete, your indexer will appear in the Pulsar dashboard with a **Ready** status. Congratulations - your indexer is now live and syncing blockchain data! Infrastructure Settings *** ## Understanding Your Deployed Indexer After deployment, clicking on your indexer name opens the detailed indexer view. This section explains what you'll see and how to interpret the information. ### Indexer Overview Panel The top section displays essential information about your indexer: | Field | Description | | ----------------- | ---------------------------------------------------------------------------------- | | **Name** | The unique identifier for your indexer (e.g., ethereum-mainnet-indexer-swirrigol). | | **Framework** | The indexing framework being used (thegraph or subquery). | | **Subgraph** | The subgraph or project being indexed (e.g., chainrails/mainnet). | | **Version** | The version of the subgraph code (e.g., 0.0.1). | | **Updated** | When the indexer configuration was last modified. | | **Deployment ID** | The IPFS hash of the deployed subgraph code (Qm...). | Infrastructure Settings ### Indexer Status and Health Monitoring The Status section provides real-time visibility into your indexer's synchronization progress: | Metric | Description | | ------------------------ | ------------------------------------------------------------------------------------------ | | **Sync Status** | Percentage of blockchain history that has been indexed (0-100%). | | **Deployment Status** | Current state of the indexer (Active, Syncing, Error, etc.). | | **Chain Headblock** | The latest block number on the blockchain network. | | **Deployment Headblock** | The latest block your indexer has processed. | | **Blocks Behind** | How many blocks behind the chain head your indexer is (should be low for synced indexers). | Infrastructure Settings When your indexer first deploys, the Sync Status will show a percentage as it catches up to the latest blockchain block. For established chains like Ethereum Mainnet, initial sync can take several minutes depending on the subgraph complexity. Once synced, your indexer will maintain real-time synchronization with new blocks. ### Available Actions The Actions panel provides three management options: * **Restart:** Restarts your indexer process. This is useful if you notice your indexer has stopped syncing or is experiencing issues. The restart process preserves your indexed data and resumes synchronization from where it left off. * **Update Version:** Allows you to update your indexer to a new version of the subgraph or SubQuery project. When a new version is published to IPFS, you can use this action to deploy the updated code to your indexer. * **Update RPC:** Changes the RPC endpoint assigned to your indexer. This can be useful if you're experiencing RPC-related issues or want to switch to a different region for lower latency. Infrastructure Settings ### Logs and Troubleshooting The Logs section provides access to your indexer's runtime logs. You can filter logs by level: * **All:** Shows all log entries * **Info:** Informational messages about normal operation * **Warn:** Warning messages indicating potential issues * **Error:** Error messages requiring attention * **Fatal:** Critical errors that may have caused the indexer to stop Infrastructure Settings You can also adjust the time range to view logs from the last 15 minutes, 1 hour, or 24 hours. If your indexer shows "No Logs Available," it typically means the indexer is running normally without generating log output. ### Managing Your Indexers As your project grows, you may deploy multiple indexers for different protocols or use cases. The Pulsar dashboard provides a unified view of all your indexers. #### Dashboard Overview The main Pulsar dashboard displays a list of all your indexers when clicked on displays key information at a glance: * **Indexer Name:** Click to view detailed information * **Status:** Ready, Syncing, Error, or Stopped * **Framework:** The Graph or SubQuery * **Graph Node Endpoint:** The GraphQL endpoint URL for queries * **Created Date:** When the indexer was deployed ### Querying Your Indexer Once your indexer is synced, you can query it using the GraphQL endpoint URL displayed in the dashboard. This endpoint supports standard GraphQL queries and subscriptions. Example query structure for The Graph indexers: ```graphql theme={null} query { transfers(first: 5) { id from to value } } ``` You can test queries directly in your browser using the GraphQL playground by appending `/graphql` to your endpoint URL. ### Best Practices Following these best practices will help you get the most out of Pulsar and ensure your indexers run smoothly. **Choosing the Right Database** * Use Shared Database for development, testing, and low-traffic production applications * Use Dedicated Database for high-traffic production applications or when consistent performance is critical * Monitor your database performance and upgrade if you notice query latency increasing **Indexer Monitoring** * Regularly check the Sync Status to ensure your indexer is keeping up with the blockchain * Set up alerts for when "Blocks Behind" exceeds a threshold (e.g., 100 blocks) * Review logs periodically for warnings or errors * Monitor your GraphQL endpoint response times **Performance Optimization** * Design efficient subgraph schemas to minimize indexing time * Use appropriate entity relationships to avoid excessive database queries * Consider using time-series patterns for high-volume event data * Test your indexer on a testnet before deploying to mainnet **Security Considerations** * Keep your GraphQL endpoint URL confidential - it provides direct access to your indexed data * Implement authentication in your application layer if sensitive data is being indexed * Regularly update your indexer to the latest subgraph versions for security patches ### Troubleshooting Common Issues This section helps you diagnose and resolve common issues you might encounter. **Indexer Not Syncing** * **Symptoms:** Sync Status stays at 0% or doesn't increase over time. * **Possible Causes and Solutions:** * **RPC Connection Issues:** Check the Logs for RPC-related errors. Try updating to a different RPC endpoint using the Update RPC action. * **Subgraph Configuration Error:** Verify your subgraph manifest and schema are correctly configured. Check logs for parsing errors. * **Network Congestion:** During high network activity, sync may be slower than usual. Monitor the Blocks Behind metric. **High Blocks Behind Count** * **Symptoms:** The "Blocks Behind" metric shows a high number and keeps increasing. * **Possible Causes and Solutions:** * **Insufficient Resources:** Consider upgrading to a Dedicated Database for better performance. * **Complex Indexing Logic:** Optimize your subgraph handlers to process events more efficiently. * **RPC Rate Limiting:** Even with dedicated RPC, extreme load can cause delays. Contact support if this persists. **GraphQL Endpoint Not Responding** * **Symptoms:** Queries to your endpoint timeout or return errors. * **Possible Causes and Solutions:** * **Indexer Not Fully Synced:** Wait for sync to complete before querying. Partial data may be available but inconsistent. * **Database Overload:** High query volume can overwhelm shared databases. Consider upgrading or implementing caching. * **Network Connectivity:** Verify your application can reach the endpoint URL. Check for firewall or DNS issues. ### Getting Help If you encounter issues not covered here: * Check the Logs section for specific error messages * Contact Blockops Support with your indexer name and error details * Join the Blockops community Discord for peer support [**Follow us on Twitter**](https://twitter.com/blockopsnetwork) **for more information on upcoming protocols and developments.** # Telescope Source: https://blockops-3855c227.mintlify.app/blockchain-infrastructure/monitoring-and-alerting Metrics, logs, uptime checks and alerts for deployed nodes. To observe a deployed node, Telescope helps you achieve this through metrics, logs, uptime and alerts. The dashboard gives you a overview of these functionalities and quick actions. #### Metrics Dashboard and Logs The metrics dashboard enables you to monitor both your node health and network dashboard. #### Node Health Dashboard Setting up the Node health dashboard requires a project name and the selection of either a push or pull scrape method. If you select Push as your scrape method, we'll expose an endpoint for you. If you select Pull, you'll be expected to provide your own datasource URL; if your datasource is protected, toggle on the Basic Auth button to provide the username and password. Installation instructions are on the right side of the dashboard. #### Enable Logs The option to enable logs creates a logs dashboard alongside the metrics dashboard being set up. #### Network Dashboard On monitoring a network, the first step is to select a network to monitor. After a network has been selected, at least one dashboard trigger is required to proceed. This overview displays the metrics dashboard set up and running. #### Alerts Two alert directory for easy navigation, alert dashboard for monitoring metrics and logs, contact points for up time. #### Dashboard alert and Uptime alert On creating a dashboard alert for metrics or uptime, the auto generated alert name can be maintained or edited to suit a users preference. A contact point can either be created at this point if no contact points have been created and the final field is to select an existing project to receive alerts on with selected triggers. #### Uptime To set up uptime, the available monitor type is HTTPS and you are required to name the monitor to be created alongside provide the URL of the deployed node to monitor. To connect to your HTTPS monitor, you have the option of selecting between a GET or POST method and provide your preferred request interval and timeout. An option exist to enable monitoring for domain name expiry. # Node Deployment Source: https://blockops-3855c227.mintlify.app/blockchain-infrastructure/node-operations/deploy-a-node Deploy a node with Mission Control on GCP, AWS, Cherry Servers or bare metal. You can find Blockops quick start guides here: [Getting Started with Blockops](/get-started/overview) ### Create a Node Click `Connect` to select SSV on Blockops and select the network you want to create a node on Mission Control. Three networks exist to deploy the SSV protocol on: 1. Mainnet 2. Holesky - One of two testnet environments for the testing and validation of new features and changes before deployment on the mainnet 3. Sepolia - One of two testnet environments for the testing and validation of new features and changes before deployment on the mainnet ### Platform Config To create a node, the system suggests a `Project Name` which can be customised by editing the project name field. Blockops supports both self managed cloud providers and dedicated VPS platforms. ### GCP Deploying a node using the GCP platform, a service file is required to provide a secure means of authorisation in connecting to an existing GCP service account. The GCP project ID is extracted from the uploaded service file and displayed. To proceed, region selection is required. ### Instructions for generating service file **Instructions for generating service file** 1. Setup required variable that will be used throughout the process `MY_GCP_PROJECT_ID=` 2. Create service account ```bash theme={null} gcloud iam service-accounts create nodes-access \ --project=$MY_GCP_PROJECT_ID \ --description="Blockops network access to create and manage blockchain nodes." \ --display-name="nodes-access" ``` 3. Grant permissions to the service account ```bash theme={null} gcloud projects add-iam-policy-binding $MY_GCP_PROJECT_ID \ --member="serviceAccount:nodes-access@$MY_GCP_PROJECT_ID.iam.gserviceaccount.com" \ --role="roles/compute.instanceAdmin.v1" ``` Repeat the binding for each of the required roles listed below. 4. Required roles `roles/compute.instanceAdmin.v1 roles/compute.loadBalancerAdmin roles/compute.networkAdmin roles/compute.securityAdmin roles/iam.serviceAccountAdmin roles/iam.serviceAccountUser roles/resourcemanager.projectIamAdmin` ### Snapshot Config ### AWS Deploying a node using the AWS platform, an account access key ID and an account secret key is required to provide a secure means of authorisation in connecting to an existing AWS account. To proceed, region selection is required. ### Instructions for generating access keys 1. Install AWS CLI If you haven’t already installed the AWS CLI, follow the official installation guide for your operating system [here](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html) 2. Run the following command to create a new IAM user: `aws iam create-user --user-name your_new_user` 3. Attach the AdminstratorAccess policy to this user `aws iam attach-user-policy --user-name your_new_user --policy-arn arn:aws:iam::aws:policy/AdministratorAccess` 4. Create an access key for your newly created IAM user: `aws iam create-access-key --user-name your_new_user` 5. Save the Access Key ID and Secret Access Key The output will include the new Access Key ID and Secret Access Key. It’s important to copy these immediately as the secret access key won’t be displayed again. Immediately save the Access Key ID and Secret Access Key to a secure location or a password manager. ### Configure self managed platforms, AWS and GCP Two configuration options exists to set your needed resources; 1: Default - the default configuration is a recommended setting taking into account the minimum needed resources to spin up a node. 2: Custom - This configuration enables you to customise your resources. ### Cherry Servers To connect to Cherry Servers, an API key and project ID is required **Instructions for generating a Cherry Servers API key** * Log in to the Cherry Servers client portal at[https://portal.cherryservers.com/](https://portal.cherryservers.com/) * Navigate to the API section under user profile. * Select API key and customise a label * Generate a new API token. **Instructions for generating a Cherry Servers project ID** * Log in to the Cherry Servers client portal at [https://portal.cherryservers.com/](https://portal.cherryservers.com/). * Navigate to the "Projects" section on the dashboard. * Click on the "Create Project" button. * Provide a name for your new project and any other required details. * After creating the project, you'll be able to see its Project ID. If you already have existing projects: * Go to the "Projects" section in the dashboard. * Select the project you want to use. * The Project ID will be displayed in the project details. ### SSH Key To `add` a new SSH public key, provide a key identifier and generate a public SSH key. Instructions on generating an SSH key pair Run this command on your own machine: ``` ssh-keygen -t rsa -b 4096 -C "your_email@example.com" ``` When prompted, press Enter to save to the default path (`~/.ssh/id_rsa`) and press Enter again to create a key without a passphrase. Blockops does not support passphrased private keys. After generating your key pair, copy the contents of `~/.ssh/id_rsa.pub` (the public key) and paste it into the required field to create an SSH key on Blockops. From the dropdown menu, select your newly created public SSH key and upload your private SSH key to proceed. Choose a region and select a corresponding plan that aligns with your resource requirements. ### Bare Metal You are required to provide a username, hostname, port number and password, you have the option of authenticating via SSH by uploading a private SSH Key. Recommended instance size for Bare metal > CPU: Dual-core processor (4 cores recommended)\ > RAM: 16 GB (32 GB recommended)\ > Storage: 1 TB SSD (2 TB NVMe SSD recommended)\ > Bandwidth: 10 Mbps stable connection (25 Mbps recommended) ### Configure Container To configure a container, you need to provide a container name, select a restart policy, and choose whether to run as privileged, allocate a buffer for STDIN, or allocate a pseudo-TTY. You also have the option to set commands, arguments, and environment variables. ### Network Config > **Deployment strategy** * Monolithic deployment: This strategy deploys the created node entirely on Blockops server. * Distributed deployment: This strategy requires an execution and consensus URL to facilitate deployment on Blockops servers. **How to access an execution and consensus url** To deploy using the distributed deployment, you need to provide a working RPC Endpoint URL and a Beacon API Endpoint URL. You can find a Beacon API Endpoint [**here**](https://ethereum-beacon-api.publicnode.com/). To configure the SSV network, the selection of an image version is required alongside providing an operator ID > **DKG credentials** For operators to properly participate in the SSV protocol's DKG process, certain credentials and data are needed: • Encrypted private key: The private key of the operator, kept in a file encrypted with a password as a .json file. • Operator password: The operator's password uploaded as a text file. > **Clients and Image versions** **Execution client:** To create a node on the SSV network using Blockops servers, you must set up an execution client. This process allows you to select your preferred client and a preferred image version. **Consensus client:** To create a node on the SSV network using Blockops servers, you must set up a consensus client. This process allows you to select your preferred client and a preferred image version. **MEV-Boost** Connect to multiple relays to increase diversity and enhance network security from the list of MEV-boost providers. ### Launch Config Before deploying your configured node, you can review the configuration settings and enable monitoring by activating the Telescope feature. ### Deployed Node Once a node is deployed successfully, the resource utilisation can be tracked on the dashboard alongside enabled containers. ### Support Support can be accessed via the support icon at the bottom right of the dashboard or contact us at [hello@blockops.network](mailto:hello@blockops.network) [**Follow us on Twitter**](https://twitter.com/blockopsnetwork) **for more information on upcoming protocols and developments.** # Private Servers Deployment Source: https://blockops-3855c227.mintlify.app/blockchain-infrastructure/node-operations/deploy-to-your-own-servers Connect a server you operate to Blockops over an SSH tunnel and deploy a node to it. ### Prerequisites * Ensure that **SSH server** is running on your device. * If your SSH server runs on a non-default port (not 22), update the SSH port in the Blockops UI to match. * Ensure your deployment user does **not require a password for sudo** commands. * You have two options: 1. **Create a dedicated passwordless user** for Blockops. 2. **Allow passwordless sudo** for your user by editing the sudoers file: ```bash theme={null} sudo visudo ``` Add this line (replace `youruser` with your actual username): ```bash theme={null} youruser ALL=(ALL) NOPASSWD:ALL ``` ### Authentication Methods 1. Password-Based SSH Authentication: you'll need: 1. username: the username on your device 2. password: the password for that user 3. port: the SSH port (default: 22) \\ 2. Private Key Authentication Blockops does not support passphrased private keys. 1. Create a new SSH key pair: run this command on your terminal\\ ``` ssh-keygen -t rsa -b 4096 -C "your_email@example.com" ``` 2. When prompted: 1. File path: Press Enter to save to default (\~/.ssh/id\_rsa) 2. Passphrase: Press Enter to create a key without a passphrase\\ 3. Add the public key\ Copy the contents of `~/.ssh/id_rsa.pub` into `~/.ssh/authorized_keys` ### Connecting Your Private Server to Blockops **Log in** * Go to [app.blockops.network](https://app.blockops.network) * Sign in or create an account #### Select deployment options 1. Choose the network you want to deploy 2. Select Baremetal as the cloud provider 3. In the Authentication section, check the private server field and follow the on-screen instructions. #### Install Autossh On your private server, install autossh: ```bash theme={null} brew install autossh ``` ```bash theme={null} sudo apt update && sudo apt install -y autossh ``` #### Establish the SSH Tunnel Run this command once (to add blockops.sh:7777 to known\_hosts): You can find this command in the **Authentication** section after selecting the **Private Server** option. ```bash theme={null} sudo autossh -M 0 -R example71:22:localhost:22 blockops.sh -p 7777 ``` Then, re-run the same command to establish the persistent connection ```bash theme={null} sudo autossh -M 0 -R example71:22:localhost:22 blockops.sh -p 7777 ``` This creates a private, secure tunnel between your server and Blockops. #### Deploy Your Node Return to the Blockops UI and click Continue to finalize the connection and deploy your node. # Mission Control Source: https://blockops-3855c227.mintlify.app/blockchain-infrastructure/node-operations/overview Deploy and manage blockchain nodes across cloud providers and your own servers. Mission Control deploys and manages blockchain nodes from the Blockops dashboard. You choose the network, where the node runs, and how it is configured; Mission Control provisions it and reports its status and resource usage back to the dashboard. ## Where nodes can run | Platform | What you provide | | :-------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **Google Cloud** | A service-account file for the project the node runs in, and a region. | | **AWS** | An access key ID and secret access key for the account, and a region. | | **Cherry Servers** | A Cherry Servers API key and project ID. | | **Bare metal** | A server you already operate: hostname, port, username, and a password or SSH key. | | **Your own private server** | An SSH tunnel from the server to Blockops, so no inbound access is needed. See [Deploy to your own servers](/blockchain-infrastructure/node-operations/deploy-to-your-own-servers). | Resource sizing on cloud platforms is either the **Default** profile, which is the minimum recommended for the node, or **Custom**. ## How a deployment is configured 1. **Network**: the protocol and environment (mainnet or a testnet). The list of networks Mission Control supports is on [Supported networks & assets](/overview/supported-networks). 2. **Platform**: one of the options above, with its credentials. 3. **Container**: name, restart policy, and optional commands, arguments and environment variables. 4. **Network configuration**: a **monolithic** deployment runs the whole node on the provisioned server; a **distributed** deployment points the node at an execution RPC endpoint and a Beacon API endpoint you supply. For Ethereum-based networks you also select execution and consensus clients, their image versions, and MEV-Boost relays. 5. **Launch**: review the configuration and, optionally, enable Telescope monitoring for the node before deploying. Once the node is running, the dashboard shows its containers and resource utilisation. Health, logs, uptime checks and alerts are covered by [Monitoring & alerting](/blockchain-infrastructure/monitoring-and-alerting). ## Guides Step by step through the dashboard, including credential setup for each platform. Connect a server you operate over an SSH tunnel and deploy to it. # Blockchain Infrastructure Source: https://blockops-3855c227.mintlify.app/blockchain-infrastructure/overview The infrastructure services under the wallet platform: RPC endpoints, node operations, monitoring, indexing and dedicated rollups. The wallet platform runs on blockchain infrastructure that Blockops also offers directly: reliable access to networks, nodes you can deploy and operate, observability for them, indexed data, and dedicated Layer 2 chains. Each service works on its own and with the rest. JSON-RPC endpoints over HTTP and WebSocket for 28 networks, with per-project API keys, rate limits and error codes. Mission Control: deploy and manage nodes on Google Cloud, AWS, Cherry Servers, bare metal or your own private servers. Telescope: metrics, logs, uptime checks and alerts for deployed nodes. Pulsar: managed SubQuery and The Graph indexers with GraphQL endpoints. Dedicated OP Stack rollups that settle to Ethereum, self-serve on testnet. The networks each service supports, with a connection guide for each. ## How these relate to the wallet platform | Service | Role under MPC Wallet Infrastructure | | :------------------------ | :-------------------------------------------------------------------------------------------------------------------------- | | **Blockchain API** | The RPC access the wallet platform uses to plan transactions, broadcast them, and observe deposits and confirmations. | | **Node operations** | Where an institution's own nodes (including signing nodes in hybrid and self-hosted deployments) are deployed and operated. | | **Monitoring & alerting** | Health, logs and uptime for those nodes. | | **Indexing** | Indexed on-chain data for applications built alongside the wallet platform. | | **Rollups** | Dedicated execution environments for applications that need their own chain. | Start with [Getting started](/get-started/overview) for an account and a first request, or go straight to a service above. # Rollup Deployment Source: https://blockops-3855c227.mintlify.app/blockchain-infrastructure/rollups Deploy a dedicated OP Stack rollup that settles to Ethereum. Blockops Rollups is a managed infrastructure service that enables developers to deploy dedicated Layer 2 (L2) blockchains using the Optimism (OP) Stack. Unlike shared public chains where your application competes for blockspace with thousands of others, a Blockops Rollup provides an isolated, high-performance execution environment with predictable gas costs, customizable throughput, and complete control, with its state settled to Ethereum. Think of Blockops Rollups as your dedicated blockchain infrastructure team. Instead of spending months deploying smart contracts, configuring sequencers, operating provers, and managing fault-proof systems, you can launch a production-ready L2 chain in approximately 15 minutes. Blockops handles all underlying infrastructure, including: * L1 smart contract deployment and verification * Sequencer, prover, and node provisioning * RPC endpoint allocation and load balancing * Block explorer configuration * Genesis state and chain configuration * Automatic scaling and high-availability guarantees Whether you're building a DeFi protocol requiring guaranteed throughput, an NFT platform needing predictable minting costs, or an enterprise application requiring dedicated blockspace, Blockops Rollups provides the execution layer you need without the operational overhead. ### The Problem Rollups Solve Building applications on shared Layer 1 or Layer 2 blockchains introduces significant constraints that limit user experience and business model viability. **The Traditional Challenges** Before dedicated rollup infrastructure like Blockops, developers faced fundamental hurdles: | Challenge | Description | | :---------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **Gas Price Volatility** | On shared chains, gas prices spike during network congestion. A simple transaction can cost \$50+ during peak periods, making applications economically unusable. | | **Throughput Bottlenecks** | Your application competes for limited blockspace. When popular NFTs drop or DeFi protocols launch, other applications slow to a crawl or become unusable. | | **Infrastructure Complexity** | Operating your own rollup requires deploying 40+ L1 smart contracts, running sequencers and provers, maintaining fault-proof systems, and managing upgrades. | | **Unpredictable Costs** | Variable gas costs make it impossible to predict operational expenses or build sustainable business models. | | **Limited Customization** | Shared chains enforce universal parameters. You cannot optimize block time, gas limits, or precompiles for your specific use case. | **How Blockops Rollups Addresses These Challenges** Blockops eliminates these pain points by providing: * **Dedicated Blockspace:** Your application never competes for gas. Fixed, predictable costs regardless of external network activity. * **One-Click Deployment:** Deploy a complete L2 chain in \~15 minutes. No smart contract deployment, node configuration, or DevOps expertise required. * **Ethereum-Grade Security:** All state roots settle to Ethereum L1. Your rollup inherits Ethereum's security guarantees and censorship resistance. * **Managed Infrastructure:** We operate sequencers, provers, and RPC nodes. You focus on building your application. * **Instant Tooling:** Dedicated block explorer, JSON-RPC endpoints, and WebSocket connections provisioned automatically. * **Clear Upgrade Path:** Start free on testnet. Scale to mainnet with our team's support when ready for production. *** ### Getting Started This section walks you through deploying your first rollup on Blockops. By the end, you'll have a fully operational Layer 2 blockchain syncing with Ethereum and serving RPC requests. **Step 1: Accessing the Rollup Dashboard** Navigate to your Blockops project dashboard. In the left sidebar, locate the Products section and click Rollup to access the Rollup dashboard. If this is your first time using Rollups, you'll see an empty state dashboard with a prominent "Create Rollup" button and the message "You don't have any rollups yet." Rollup Dashboard Empty State If you have existing rollups, you'll see them listed in a table with columns for Name, Status, RPC, Date Created, and Actions. **Step 2: Creating Your Rollup** Click the "Create Rollup" button to launch the deployment wizard. You'll be guided through a four-step configuration process. **2.1 Chain Identity** First, assign a unique name to your rollup. This identifier serves multiple purposes: * Appears in your Blockops dashboard * Forms your RPC endpoint URL: `https://[chain-name].rollup.blockops.network` * Labels your dedicated block explorer * Identifies your chain in wallet configurations Enter your desired name in the Chain Name field. The system validates uniqueness in real-time. Infrastructure Settings Best Practices for Chain Names: * Use lowercase letters, numbers, and hyphens only * Include your project or organization name (e.g., acme-defi-testnet) * Add environment indicators for clarity (-testnet, -staging) * Keep it concise but descriptive (maximum 30 characters recommended) **2.2 Select Environment** Choose the network environment that matches your development stage: | Environment | Purpose | Cost | Deployment Speed | Access | | :---------- | :--------------------------------------------- | :------------------ | :----------------------- | :--------- | | **Testnet** | Development, testing, debugging, beta releases | Free (\$0.00/month) | Instant | Self-serve | | **Mainnet** | Production with real economic value | Contact Sales | Requires onboarding call | Gated | Infrastructure Settings **Testnet Details:** * Deploys to Ethereum Sepolia (settlement layer) * No real economic value, safe for experimentation * Identical architecture to mainnet * Perfect for smart contract testing and integration validation **Mainnet Details:** * Deploys to Ethereum Mainnet (settlement layer) * Real economic security and value * Requires security review and economic parameter configuration * Clicking Mainnet displays a confirmation modal requesting a meeting with our team *Important:* If you select Mainnet, a "Confirm request" modal appears explaining: "To move forward with deploying your chain, we'll need to discuss your specific requirements. Please schedule a meeting with our team to initiate the deployment request." Click "Request mainnet" to proceed with scheduling. Infrastructure Settings **2.3 Build Your Stack** Configure the core architectural components of your rollup. Blockops simplifies this by providing a pre-validated, production-ready Optimism (OP) Stack configuration. Infrastructure Settings **Configuration Details:** | Component | Selection | Description | Technical Details | | :-------------------- | :------------------ | :---------------------------------------------------------------------------------------------------------------------- | :---------------------------------------------------------------- | | **Framework** | Optimism (OP Stack) | Industry-leading L2 framework with extensive tooling, documentation, and ecosystem support | Bedrock release, Cannon fault proofs, Superchain compatible | | **Settlement Layer** | Ethereum | Your rollup's state roots and fault proofs are committed to Ethereum L1, inheriting its security | Sepolia for testnet, Mainnet for production | | **Data Availability** | Ethereum DA | Transaction data is posted to Ethereum using EIP-4844 blobs, ensuring data availability without extra trust assumptions | Blob transactions, 128KB max per block, automatic blob management | These defaults are optimized for: * **Security:** Ethereum-grade settlement and data availability * **Cost-efficiency:** Blob transactions reduce DA costs vs. calldata * **Compatibility:** Full EVM equivalence, existing tooling works out-of-the-box * **Future-proofing:** Superchain compatibility for interoperability *Note: Advanced users requiring custom configurations (alternative DA layers, custom gas tokens, or modified precompiles) should contact our team for dedicated deployment options.* **2.4 Review and Deploy** The Summary panel provides a final configuration review before deployment: Infrastructure Settings **Summary Contents:** | Item | Description | | :---------------------------- | :------------------------------------------------------------------ | | **What's Included** | Framework (OP), Settlement Layer (Ethereum), DA Layer (Ethereum DA) | | **Monthly Cost** | \$0.00 for Testnet (clearly labeled as estimate) | | **Estimated Deployment Time** | \~15 minutes (typical range: 10-30 minutes) | Click **Deploy** to initiate the automated provisioning process. The system will: * Compile and deploy 40+ smart contracts to Ethereum L1 (SystemConfig, OptimismPortal, L1StandardBridge, FaultDisputeGame, and proxy contracts) * Provision sequencer infrastructure with high-availability configuration * Configure prover systems for fault proof generation * Deploy RPC nodes with load balancing * Initialize block explorer with your chain's configuration * Generate genesis state and chain configuration files * Begin L2 block production once L1 contracts are confirmed **Step 3: Monitor Deployment** Immediately after clicking Deploy, you'll see deployment confirmation: Infrastructure Settings **During Deployment:** * Click "View rollup list" to monitor progress * Your rollup appears in the dashboard with "Deploying" status (orange badge) * RPC column shows `--------` (not yet available) * This process typically takes 10-30 minutes depending on L1 confirmation times Infrastructure Settings **Deployment Complete:** * Status changes to "Ready" (green badge) * RPC column remains `--------` (accessible in detail view) * Your chain is live and accepting transactions Infrastructure Settings **Step 4: Access Rollup Details and Configure Connections** Click your rollup's name to access the Detail View, which provides comprehensive information and management options. The detail view has two tabs: Overview and Configuration. **Overview Tab** The Overview tab displays real-time operational metrics for your chain. Infrastructure Settings **Header Information:** * **Chain Name:** Your rollup's identifier (e.g., ch-optimism-testnet-rollup-cboux2) * **Status:** Ready (green badge) indicates full operational status * **Metrics Panels:** | Panel | Description | Initial State | | :--------------- | :----------------------------------------------------- | :-------------------------- | | **Transaction** | Transaction count and volume over selected time period | "Metrics are not available" | | **Gas Used** | Total gas consumed by transactions | "Metrics are not available" | | **Block Height** | Current L2 block number | "Metrics are not available" | *Important:* These panels display "Metrics are not available" immediately after deployment. This is expected behavior. Metrics populate once your chain processes its first transactions. Each panel includes a "Contact us" button for support if metrics fail to appear after transaction activity. Time Range Selector: Each panel includes a "Last hour" dropdown to adjust the metrics time window (options typically include Last hour, Last 24 hours, Last 7 days, Last 30 days). **Configuration Tab** The Configuration tab contains all technical details required to integrate with your rollup. Infrastructure Settings **Indexer Information Section:** | Field | Example Value | Purpose | | :--------------- | :-------------------------------------------------------------------- | :-------------------------------------------------------------------------------- | | **ChainId** | 863048 | Unique network identifier. Required for wallet configuration and chain detection. | | **Framework** | OP Stack | Confirms Optimism compatibility for tooling. | | **Name** | ch-optimism-testnet-rollup-cboux2 | Full chain identifier. | | **Date** | February 25, 2026 | Deployment timestamp. | | **Explorer** | `https://ch-optimism-testnet-rollup-cboux2-explorer.blockops.network` | Dedicated block explorer URL. Copy button provided. | | **RPC** | `https://ch-optimism-testnet-rollup-cboux2.rollup.blockops.network` | JSON-RPC endpoint for all interactions. Copy button provided. | | **Genesis File** | JSON download | Genesis block configuration for local node synchronization. | | **Rollup File** | JSON download | Rollup-specific configuration for advanced debugging. | **Parent Chain Contracts Section:** This section lists all L1 (Ethereum) smart contracts deployed for your rollup. These contracts manage the bridge, settlement, and security of your L2 chain. **Contract Categories:** | Category | Contracts | Purpose | | :-------------------- | :--------------------------------------------------------------------------- | :-------------------------------------------- | | **Bridge Contracts** | L1StandardBridge, L1StandardBridgeProxy, L1ERC721Bridge, L1ERC721BridgeProxy | Token and NFT bridging between L1 and L2 | | **Portal Contracts** | OptimismPortal, OptimismPortalProxy, OptimismPortalInterop | Main entry/exit point for L1↔L2 communication | | **System Contracts** | SystemConfig, SystemConfigProxy, SuperchainConfig | Chain configuration and Superchain membership | | **Proof Contracts** | MipsImpl, FaultDisputeGame, DisputeGameFactory | Cannon fault proof system for security | | **Proxy Admin** | ProxyAdmin, SuperchainProxyAdmin | Upgrade mechanism management | | **Utility Contracts** | AddressManager, ProtocolVersions, AnchorStateRegistry | Supporting infrastructure | Each contract entry displays: * Contract Name (e.g., OptimismPortalImpl) * Ethereum Address (0x... format, truncated with full address on hover) * Copy Button (clipboard icon) - copies address to clipboard * External Link Button (arrow icon) - attempts to open in block explorer *Known Issue:* The external link button currently routes to a 404 error page. As a workaround, copy the address and manually search on Sepolia Etherscan for testnet contracts. **Step 5: Connect Your Application** With your rollup Ready, integrate it into your development workflow: **5.1 Add to MetaMask or Wallet** Use these parameters to add your chain to any EVM-compatible wallet: | Parameter | Value | Source | | :--------------------- | :----------------------------------------------- | :------------------------------ | | **Network Name** | \[Your Chain Name] | Configuration tab | | **RPC URL** | `https://[chain-name].rollup.blockops.network` | Configuration tab - copy button | | **Chain ID** | \[Numeric ID, e.g., 863048] | Configuration tab | | **Currency Symbol** | ETH | Standard for all rollups | | **Block Explorer URL** | `https://[chain-name]-explorer.blockops.network` | Configuration tab - copy button | **5.2 Configure Hardhat** ```javascript theme={null} // hardhat.config.js module.exports = { networks: { myRollup: { url: "https://ch-optimism-testnet-rollup-cboux2.rollup.blockops.network", chainId: 863048, accounts: [process.env.PRIVATE_KEY], }, }, }; ``` **5.3 Configure Foundry** ```bash theme={null} # .env RPC_URL=https://ch-optimism-testnet-rollup-cboux2.rollup.blockops.network CHAIN_ID=863048 ``` **5.4 Configure viem/wagmi** ```javascript theme={null} import { defineChain } from "viem"; const myRollup = defineChain({ id: 863048, name: "My Rollup", network: "my-rollup", nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, rpcUrls: { default: { http: [ "https://ch-optimism-testnet-rollup-cboux2.rollup.blockops.network", ], }, }, blockExplorers: { default: { name: "Blockops Explorer", url: "https://ch-optimism-testnet-rollup-cboux2-explorer.blockops.network", }, }, }); ``` **5.5 Verify Activity** Once you send your first transaction: * Return to the Overview tab * Metrics panels will populate with real data * Use your Block Explorer to view detailed transaction, block, and contract information *** ### Managing Your Rollups As your project grows, you may deploy multiple rollups for different environments or use cases. The Rollup dashboard provides unified management. **Dashboard Overview** The main Rollup dashboard displays all your rollups with key information: | Column | Description | | :--------------- | :----------------------------------------------------------------------------- | | **Name** | Click to view detailed information | | **Status** | Ready, Deploying, Error, or Stopped | | **RPC** | Endpoint availability (shows `--------` in list view, use detail view for URL) | | **Date Created** | Deployment timestamp | | **Actions** | Delete button (trash icon) - use with caution | **Available Actions** *Delete Rollup* The trash icon in the Actions column permanently deletes your rollup and all associated infrastructure. This action cannot be undone. *Warning:* Deleting a rollup removes all L2 state, RPC endpoints, and explorer data. L1 contracts remain deployed but become inaccessible. Ensure you have backups of any critical data before deleting. *** ### Best Practices Following these guidelines ensures optimal rollup performance and reliability. **Naming Conventions** * Environment indicators: Use -testnet, -staging, -prod suffixes * Project identification: Include organization or project name * Versioning: Add version numbers for iterative deployments (-v1, -v2) * Example: acme-defi-testnet-v1 **Deployment Strategy** | Stage | Environment | Purpose | When to Advance | | :-------------- | :---------- | :------------------------------------------------ | :-------------------------------------------------- | | **Development** | Testnet | Smart contract testing, integration development | Contracts compile and pass unit tests | | **Staging** | Testnet | End-to-end testing, load testing, security review | All tests pass, audit complete | | **Production** | Mainnet | Live user traffic, real economic value | Staging validation complete, team consultation done | **Security Considerations** * Keep RPC URLs confidential: They provide direct access to your chain * Implement access controls: Use application-layer authentication for sensitive operations * Monitor L1 contracts: Regularly verify contract states on Etherscan * Plan upgrade paths: Understand proxy contract upgrade mechanisms before mainnet deployment **Cost Management** * Testnet is free: Use extensively for development and testing * Mainnet requires planning: Contact sales early for production budgeting * Monitor resource usage: Track RPC call volume and explorer usage *** ### Troubleshooting Common Issues **Issue: Status Stuck on "Deploying"** * **Symptoms:** Rollup remains in "Deploying" status beyond 45 minutes. * **Possible Causes:** * L1 network congestion delaying contract deployments * Complex genesis configuration requiring additional validation * Infrastructure provisioning delays * **Solutions:** * Wait up to 60 minutes for L1 confirmations * Check Sepolia Etherscan for pending transactions from your deployer address * Contact support with your rollup name if exceeded 60 minutes **Issue: "Metrics are not available" Persists** * **Symptoms:** Overview tab shows "Metrics are not available" after transaction activity. * **Possible Causes:** * Indexing service lag * Metrics pipeline delay * No actual transaction activity confirmed * **Solutions:** * Verify transactions using your block explorer instead of dashboard metrics * Wait 5-10 minutes for metrics pipeline to process * Click "Contact us" in the metrics panel for support escalation **Issue: 404 Error on Contract Links** * **Symptoms:** Clicking external link on contract addresses shows "Error 404." * **Status:** Known issue under resolution. * **Workaround:** * Use the copy button (clipboard icon) next to the contract address * Navigate manually to Sepolia Etherscan (for testnet) * Paste the address in the search bar **Issue: RPC Connection Refused** * **Symptoms:** Cannot connect to RPC endpoint from wallet or application. * **Possible Causes:** * Endpoint still provisioning (status not yet "Ready") * Incorrect Chain ID in configuration * Network connectivity issues * **Solutions:** * Verify rollup status is "Ready" in dashboard * Double-check Chain ID matches Configuration tab exactly * Test RPC URL directly: `curl -X POST [RPC_URL] -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'` * Verify no firewall or VPN blocking HTTPS connections **Issue: High Gas Costs on L2** * **Symptoms:** L2 transactions more expensive than expected. * *Note:* This is uncommon on dedicated rollups, but possible if: * L1 blob fees are unusually high * Complex contract interactions consuming significant L2 gas * Misconfigured gas estimation in application * **Solutions:** * Check L1 blob base fee on Sepolia (testnet) or Etherscan (mainnet) * Optimize contract code to reduce gas consumption * Contact support for gas parameter review *** ### Getting Help If you encounter issues not covered here: | Resource | Access | | :-------------------- | :------------------------------------------------------ | | **Documentation** | docs.blockops.network | | **Email Support** | [hello@blockops.network](mailto:hello@blockops.network) | | **Community Discord** | Join Blockops Community | | **Dashboard Chat** | Blue chat icon (bottom right) | When contacting support, provide: * Rollup name (exactly as shown in dashboard) * Current status (Deploying, Ready, Error) * Specific error messages or screenshots * Steps already attempted *** Rollup terms are defined in the [Glossary](/overview/glossary#rollup-terms). [**Follow us on Twitter**](https://twitter.com/blockopsnetwork) **for more information on upcoming protocols and developments.** # How to create an account Source: https://blockops-3855c227.mintlify.app/get-started/create-your-account Sign up with Google, GitHub or an email address. Visit [Blockops dashboard here](https://app.blockops.network). ### Sign up to Blockops ### Google Auth Google auth is a one click signup method to Blockops which requires no further verification after Google has authorized Blockops to retrieve required information from your account. ### GitHub Auth GitHub auth is a one click signup method to Blockops which requires no further verification after GitHub has authorized Blockops to retrieve required information from your account. ### Email Signup To sign up for an account using an email address, the following information will be required from you: * Business name * First name * Last name * Email address * Password * Confirm password and click **Create my account**. To activate your account, verify your email address by clicking the link sent to your inbox. # Quickstart: first wallet and transaction Source: https://blockops-3855c227.mintlify.app/get-started/first-wallet-and-transaction Create an MPC wallet in the sandbox, receive test funds, and send a governed withdrawal. This guide creates a wallet whose key is generated as shares across the signing nodes, attaches an Ethereum Sepolia asset to it, and sends a small withdrawal through policy, threshold signing and broadcast. It takes about fifteen minutes; most of that is waiting for testnet confirmations. ## Before you start Email [hello@blockops.network](mailto:hello@blockops.network) with your company name and the address you will integrate from. You receive a **workspace ID**, an **API key** and an **API secret** for the sandbox at `https://wallet-sandbox.blockops.network`. The sandbox runs on Ethereum Sepolia; nothing you do in it touches real funds. You will need a small amount of Sepolia ETH in the wallet you create. Any public Sepolia faucet works. ## Sign every request Each request carries three headers: `ACCESS-API-KEY`, `ACCESS-TIMESTAMP` and `ACCESS-SIGN`. The signature is an HMAC-SHA256 over `method=&path=×tamp=&body=`, keyed with the API secret and hex-encoded. Timestamps older or newer than five minutes are rejected. Set `API_KEY`, `API_SECRET` and `WORKSPACE_ID` in your environment to the values you received. In cURL, each step computes the signature with `openssl` and passes it to a plain `curl` call. In TypeScript and Go, the `req` function below does the same and is used by every step. ```bash cURL theme={null} # Every call below follows this recipe: compute the signature, then send it. TS=$(date +%s) SIG=$(printf '%s' "method=&path=×tamp=$TS&body=" | openssl dgst -sha256 -hmac "$API_SECRET" | awk '{print $2}') curl -X https://wallet-sandbox.blockops.network \ -H "Content-Type: application/json" \ -H "ACCESS-API-KEY: $API_KEY" \ -H "ACCESS-TIMESTAMP: $TS" \ -H "ACCESS-SIGN: $SIG" \ -d '' ``` ```typescript TypeScript theme={null} import { createHmac } from "node:crypto"; const BASE = "https://wallet-sandbox.blockops.network"; const { API_KEY, API_SECRET, WORKSPACE_ID } = process.env; export async function req(method: string, path: string, body?: unknown, headers: Record = {}) { const raw = body === undefined ? "" : JSON.stringify(body); const ts = Math.floor(Date.now() / 1000).toString(); const sig = createHmac("sha256", API_SECRET!) .update(`method=${method}&path=${path}×tamp=${ts}&body=${raw}`) .digest("hex"); const res = await fetch(BASE + path, { method, headers: { "Content-Type": "application/json", "ACCESS-API-KEY": API_KEY!, "ACCESS-TIMESTAMP": ts, "ACCESS-SIGN": sig, ...headers }, body: raw || undefined, }); return res.json(); } ``` ```go Go theme={null} package main import ( "bytes" "crypto/hmac" "crypto/sha256" "encoding/hex" "fmt" "io" "net/http" "os" "strconv" "time" ) const base = "https://wallet-sandbox.blockops.network" func req(method, path string, body []byte, headers map[string]string) ([]byte, error) { ts := strconv.FormatInt(time.Now().Unix(), 10) mac := hmac.New(sha256.New, []byte(os.Getenv("API_SECRET"))) fmt.Fprintf(mac, "method=%s&path=%s×tamp=%s&body=%s", method, path, ts, body) r, _ := http.NewRequest(method, base+path, bytes.NewReader(body)) r.Header.Set("Content-Type", "application/json") r.Header.Set("ACCESS-API-KEY", os.Getenv("API_KEY")) r.Header.Set("ACCESS-TIMESTAMP", ts) r.Header.Set("ACCESS-SIGN", hex.EncodeToString(mac.Sum(nil))) for k, v := range headers { r.Header.Set(k, v) } res, err := http.DefaultClient.Do(r) if err != nil { return nil, err } defer res.Body.Close() return io.ReadAll(res.Body) } ``` For `GET` requests the body is empty, so the canonical string ends with `body=`. Every response uses the same envelope: `{ "success": true, "message": "...", "code": "...", "data": ... }`. When something is wrong, `success` is `false` and `message` says why. ## 1. Create a wallet Wallet creation is asynchronous: the API accepts the request, the signing nodes run distributed key generation, and the wallet becomes usable when they finish. Send an idempotency key so a retry cannot create a second wallet. ```bash cURL theme={null} TS=$(date +%s) IDEMPOTENCY_KEY=quickstart-wallet-1 # any unique value you choose per operation BODY='{"workspace_id":"'"$WORKSPACE_ID"'","name":"Quickstart treasury"}' SIG=$(printf '%s' "method=POST&path=/api/v1/wallets×tamp=$TS&body=$BODY" | openssl dgst -sha256 -hmac "$API_SECRET" | awk '{print $2}') curl -X POST https://wallet-sandbox.blockops.network/api/v1/wallets \ -H "Content-Type: application/json" \ -H "ACCESS-API-KEY: $API_KEY" \ -H "ACCESS-TIMESTAMP: $TS" \ -H "ACCESS-SIGN: $SIG" \ -H "X-Idempotency-Key: $IDEMPOTENCY_KEY" \ -d "$BODY" ``` ```typescript TypeScript theme={null} const created = await req("POST", "/api/v1/wallets", { workspace_id: WORKSPACE_ID, name: "Quickstart treasury" }, { "X-Idempotency-Key": "quickstart-wallet-1" }); const walletId = created.data.wallet_id; ``` ```go Go theme={null} body := []byte(fmt.Sprintf(`{"workspace_id":%q,"name":"Quickstart treasury"}`, os.Getenv("WORKSPACE_ID"))) out, err := req("POST", "/api/v1/wallets", body, map[string]string{"X-Idempotency-Key": "quickstart-wallet-1"}) ``` The response is `202 Accepted`: ```json theme={null} { "success": true, "message": "Wallet creation accepted", "code": "ACCEPTED", "data": { "id": "9c1f2f6a-…", "wallet_id": "5b7e0d3c-…", "workspace_id": "…", "name": "Quickstart treasury", "wallet_type": "mpc", "status": "pending", "created_at": "2026-08-29T10:14:02Z" } } ``` Keep `wallet_id`. Poll the creation status until it is `success`: ```bash cURL theme={null} TS=$(date +%s) SIG=$(printf '%s' "method=GET&path=/api/v1/wallets/creation-status/$WALLET_ID×tamp=$TS&body=" | openssl dgst -sha256 -hmac "$API_SECRET" | awk '{print $2}') curl -X GET https://wallet-sandbox.blockops.network/api/v1/wallets/creation-status/$WALLET_ID \ -H "Content-Type: application/json" \ -H "ACCESS-API-KEY: $API_KEY" \ -H "ACCESS-TIMESTAMP: $TS" \ -H "ACCESS-SIGN: $SIG" ``` ```typescript TypeScript theme={null} const status = await req("GET", `/api/v1/wallets/creation-status/${walletId}`); ``` ```go Go theme={null} out, err := req("GET", "/api/v1/wallets/creation-status/"+walletID, nil, nil) ``` Status moves `pending` → `submitted` → `success`. If it ends in `failed`, `status_reason` says why; a failed operation never leaves a partial wallet behind. Key generation typically takes a few seconds. In production, subscribe to the `wallet.created` webhook instead of polling; see [Webhooks & events](/wallets/webhooks-and-events). ## 2. Attach an asset and get a deposit address A wallet holds a key; an **asset** binds it to a network and token. Look up the Sepolia ETH asset in the catalog, then attach it. The platform derives the address server-side; you never supply a derivation path. ```bash cURL theme={null} # find the asset whose network is ETHER_SEPOLIA_TESTNET, then attach it: TS=$(date +%s) SIG=$(printf '%s' "method=GET&path=/api/v1/assets×tamp=$TS&body=" | openssl dgst -sha256 -hmac "$API_SECRET" | awk '{print $2}') curl -X GET https://wallet-sandbox.blockops.network/api/v1/assets \ -H "Content-Type: application/json" \ -H "ACCESS-API-KEY: $API_KEY" \ -H "ACCESS-TIMESTAMP: $TS" \ -H "ACCESS-SIGN: $SIG" TS=$(date +%s) SIG=$(printf '%s' "method=PUT&path=/api/v1/wallets/$WALLET_ID/asset/$ASSET_ID×tamp=$TS&body=" | openssl dgst -sha256 -hmac "$API_SECRET" | awk '{print $2}') curl -X PUT https://wallet-sandbox.blockops.network/api/v1/wallets/$WALLET_ID/asset/$ASSET_ID \ -H "Content-Type: application/json" \ -H "ACCESS-API-KEY: $API_KEY" \ -H "ACCESS-TIMESTAMP: $TS" \ -H "ACCESS-SIGN: $SIG" ``` ```typescript TypeScript theme={null} const assets = await req("GET", "/api/v1/assets"); // find the asset whose network is ETHER_SEPOLIA_TESTNET const attached = await req("PUT", `/api/v1/wallets/${walletId}/asset/${assetId}`); const address = attached.data.address; ``` ```go Go theme={null} out, err := req("GET", "/api/v1/assets", nil, nil) // find the asset whose network is ETHER_SEPOLIA_TESTNET out, err = req("PUT", "/api/v1/wallets/"+walletID+"/asset/"+assetID, nil, nil) ``` ```json theme={null} { "success": true, "message": "Asset attached", "code": "OK", "data": { "id": "…", "wallet_id": "5b7e0d3c-…", "asset_id": "…", "network_id": "…", "address_type": "evm", "address": "0x9aF3…c21D", "status": "active" } } ``` Send Sepolia ETH from the faucet to `address`. Deposits are detected by the platform's chain scanner: a `deposit.detected` webhook fires when the transfer is seen, and `balance.updated` when the balance changes. ```bash cURL theme={null} TS=$(date +%s) SIG=$(printf '%s' "method=GET&path=/api/v1/wallets/$WALLET_ID/balance/$ASSET_ID×tamp=$TS&body=" | openssl dgst -sha256 -hmac "$API_SECRET" | awk '{print $2}') curl -X GET https://wallet-sandbox.blockops.network/api/v1/wallets/$WALLET_ID/balance/$ASSET_ID \ -H "Content-Type: application/json" \ -H "ACCESS-API-KEY: $API_KEY" \ -H "ACCESS-TIMESTAMP: $TS" \ -H "ACCESS-SIGN: $SIG" ``` ```typescript TypeScript theme={null} const balance = await req("GET", `/api/v1/wallets/${walletId}/balance/${assetId}`); ``` ```go Go theme={null} out, err := req("GET", "/api/v1/wallets/"+walletID+"/balance/"+assetID, nil, nil) ``` ## 3. Request a withdrawal A withdrawal is a request, not an instruction. The platform validates it, evaluates the workspace's policies, holds the amount against the balance, plans the transaction, has the signing nodes produce a threshold signature, broadcasts, and confirms. ```bash cURL theme={null} TS=$(date +%s) IDEMPOTENCY_KEY=quickstart-withdrawal-1 BODY='{"asset_id":"'"$ASSET_ID"'","amount":"0.001","recipient_address":"0x1111111111111111111111111111111111111111"}' SIG=$(printf '%s' "method=POST&path=/api/v1/wallets/$WALLET_ID/request-withdrawal×tamp=$TS&body=$BODY" | openssl dgst -sha256 -hmac "$API_SECRET" | awk '{print $2}') curl -X POST https://wallet-sandbox.blockops.network/api/v1/wallets/$WALLET_ID/request-withdrawal \ -H "Content-Type: application/json" \ -H "ACCESS-API-KEY: $API_KEY" \ -H "ACCESS-TIMESTAMP: $TS" \ -H "ACCESS-SIGN: $SIG" \ -H "X-Idempotency-Key: $IDEMPOTENCY_KEY" \ -d "$BODY" ``` ```typescript TypeScript theme={null} const withdrawal = await req("POST", `/api/v1/wallets/${walletId}/request-withdrawal`, { asset_id: assetId, amount: "0.001", recipient_address: "0x1111111111111111111111111111111111111111" }, { "X-Idempotency-Key": "quickstart-withdrawal-1" }); const withdrawalId = withdrawal.data.withdrawal.withdrawal_id; ``` ```go Go theme={null} body := []byte(fmt.Sprintf(`{"asset_id":%q,"amount":"0.001","recipient_address":"0x1111111111111111111111111111111111111111"}`, assetID)) out, err := req("POST", "/api/v1/wallets/"+walletID+"/request-withdrawal", body, map[string]string{"X-Idempotency-Key": "quickstart-withdrawal-1"}) ``` ```json theme={null} { "success": true, "message": "Withdrawal accepted", "code": "ACCEPTED", "data": { "withdrawal": { "id": "…", "withdrawal_id": "d4a2…", "wallet_id": "5b7e0d3c-…", "asset_id": "…", "amount": "0.001", "recipient_address": "0x1111…1111", "status": "pending" }, "signing_request": { "id": "…", "status": "pending" } } } ``` A fresh sandbox workspace has no approval rules, so the request proceeds straight to signing. If a policy had required approval, `status` would stay `pending` until an approver acted in the console; the API call itself never bypasses that. Poll the withdrawal until it reaches a terminal status: ```bash cURL theme={null} TS=$(date +%s) SIG=$(printf '%s' "method=GET&path=/api/v1/withdrawals/$WITHDRAWAL_ID×tamp=$TS&body=" | openssl dgst -sha256 -hmac "$API_SECRET" | awk '{print $2}') curl -X GET https://wallet-sandbox.blockops.network/api/v1/withdrawals/$WITHDRAWAL_ID \ -H "Content-Type: application/json" \ -H "ACCESS-API-KEY: $API_KEY" \ -H "ACCESS-TIMESTAMP: $TS" \ -H "ACCESS-SIGN: $SIG" ``` ```typescript TypeScript theme={null} const w = await req("GET", `/api/v1/withdrawals/${withdrawalId}`); ``` ```go Go theme={null} out, err := req("GET", "/api/v1/withdrawals/"+withdrawalID, nil, nil) ``` `submitted` means the signed transaction is on the network; `success` means it has reached the configured confirmation depth, and `tx_hash`, `block_number` and `gas_used` are filled in. Look the hash up on a Sepolia explorer to see the transfer. ## What just happened * The wallet's private key never existed in one place. Each signing node holds a share, and signing needed a threshold of them to cooperate. * Your API key could only do what its scopes allow. The sandbox key you received carries `wallets:create`, `wallets:read`, `assets:attach`, `balances:read`, `withdrawals:create` and `withdrawals:read`. * Every step (creation, attachment, withdrawal request, signing, broadcast) is recorded and available through [Reporting & audit](/wallets/reporting-and-audit). ## Where to next Require approval above a threshold, whitelist destinations, set daily limits. Replace polling with signed event deliveries. Every endpoint, request and response. Choose managed, hybrid or self-hosted signing. # Getting started with the Blockchain API Source: https://blockops-3855c227.mintlify.app/get-started/overview Create an account, get an API key, and make your first JSON-RPC request. This guide takes you from a new account to your first JSON-RPC request in a few minutes. Everything happens in the [Blockops dashboard](https://app.blockops.network). For the wallet platform, start with [First wallet & transaction](/get-started/first-wallet-and-transaction) instead. Sign up with Google, GitHub, or an email address, then verify your email. See [Create your account](/get-started/create-your-account) for the details of each option. Open **Blockchain API** in the dashboard and create a project. Give it a unique name and select the network you want to connect to, for example Ethereum Mainnet or Ethereum Sepolia. Once a network is selected, the project shows an **HTTP** endpoint for standard JSON-RPC requests and a **WSS** endpoint for subscriptions. Your API key is shown on the right of the project page. Authenticate either with the header `authorization: APIKEY ` or with the query string `?api_key=`. Ask the network for its latest block number: ```bash theme={null} curl -H "Content-Type: application/json" \ -H "authorization: APIKEY " \ -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' \ https://ethereum-rpc.blockops.network ``` A successful response looks like this: ```json theme={null} {"jsonrpc":"2.0","id":1,"result":"0x10666b"} ``` Every request is a `POST`. Private endpoints allow 1000 requests per second; see [Rate limits & error codes](/blockchain-infrastructure/blockchain-api/rate-limits-and-errors) before you go to production. ## Keep your key safe Treat the API key as a secret. If it is exposed, rotate it from the project page with **Rotate Key**; the old key stops working immediately. See [Endpoints, keys & authentication](/blockchain-infrastructure/blockchain-api/endpoints-and-authentication). ## Where to next Endpoints and examples for each supported network. The methods most integrations use, with cURL, wscat and Polkadot JS examples. Run your own nodes with Mission Control on a cloud provider or your own servers. How to reach us when the documentation does not answer your question. # Support Source: https://blockops-3855c227.mintlify.app/get-started/support How to reach Blockops support and the community. ### Customer Support To learn more about Blockops and how it works, see our page on [Getting Started With Blockops](/get-started/overview). If you are having trouble with our website, please email us at [hello@blockops.network](mailto:hello@blockops.network) for assistance. ### Developer Support The answers to most questions can be found in the docs -- try using the search feature, or check out some of our most popular pages: * [Getting Started With Blockops](/get-started/overview) * If you can't find an answer to your question in the docs, check our [blog](https://medium.com/blockops) for tutorials on how to use our platform. * For general questions about using Blockops APIs, or help getting started with your integration, you can also ask the Blockops community on [Discord](https://discord.com/invite/nngqxkqdw8). ### Prospective Customer Support If you have a question about Blockops capabilities that isn't answered in the docs, or for details about pricing, contact Sales to learn more. ### Community and updates # Core concepts Source: https://blockops-3855c227.mintlify.app/overview/core-concepts The objects the platform works with (workspaces, wallets, assets, withdrawals, policies, approvals, API keys and webhooks) and how they relate. The same vocabulary is used in the console, in the API and throughout these docs. ## Workspace The unit of tenancy. A workspace owns its wallets, members, policies, API keys and webhooks. Every API route that reads or changes workspace state is scoped by `workspace_id`. A person can belong to several workspaces; a user's role is set per workspace. ## Wallet An MPC wallet is a key pair generated by the signing cluster, where the private key exists only as shares held by separate nodes. Creating a wallet is asynchronous: the API records the request, the cluster runs distributed key generation, and the wallet becomes **active** when its public key is stored. A wallet belongs to one workspace and is identified by `wallet_id`. ## Asset and wallet asset The **asset catalog** lists the networks and tokens the platform supports. Each catalog asset has a UUID, a network, a native-or-token flag, decimals, and for tokens a contract address. Catalog asset IDs are never contract addresses. A **wallet asset** is a catalog asset attached to a wallet. Attaching derives a deposit address for that wallet on that network from the wallet's public key. Balances, deposits and withdrawals are all per wallet asset. ## Deposit address The address derived for a wallet asset. Funds sent to it are observed by the chain scanner, credited once they reach the configured confirmation depth, and recorded as inbound transactions. ## Withdrawal and signing request A **withdrawal** is a request to send an amount of a wallet asset to a recipient. It is idempotent by request key, passes through policy evaluation, and (once cleared) produces exactly one **signing request** to the cluster and one broadcast. A withdrawal moves through states such as `pending`, `pending_approval`, `submitted`, `confirmed` and `failed`. A **signing request** is the cluster-side unit of work: the digest to sign, the wallet and derivation metadata, and, when complete, the signature. ## Transaction The workspace's activity record: withdrawals and observed deposits, each with direction, asset, amount, status and, once broadcast, the on-chain transaction hash. Transactions can be listed per wallet or per workspace and exported. ## Policy and policy rule A **policy** routes matching withdrawals to an approval group before they are signed. It has a name, a status, an approval group, and one or more **rules**: | Rule type | Matches when | | :------------------ | :---------------------------------------------------------------------------- | | `spend_limit` | The withdrawal exceeds a per-asset limit, set in the asset's units or in USD. | | `address_whitelist` | The recipient is not among the listed addresses or address-book entries. | ## Approval group and approval request An **approval group** is a named set of workspace members with a threshold: the number of approvals needed. When a policy or a workspace governance setting requires approval, the platform creates an **approval request**; members of the group approve or reject it in the console. The requester cannot approve their own request when dual control is enabled. ## Governance settings Workspace-wide controls that apply on top of policies: whether every withdrawal requires approval and above what amount, dual control, a destination whitelist with a hold period for new addresses, per-transaction and daily limits, and a **kill switch** that freezes all withdrawals in the workspace. See [Policies & approvals](/wallets/policies-and-approvals). ## API key A credential for server-to-server use. Requests are signed with HMAC-SHA256. Each key carries **scopes** (for example `wallets:read`, `withdrawals:create`), can be **bound to specific wallets**, can be limited to an **IP allowlist**, can **expire**, and can be **revoked**. The secret is shown once, at creation. ## Member and role A person in a workspace, with one of four roles: **owner**, **admin**, **member** or **viewer**. Roles decide who can change policies, groups, keys and webhooks, who can initiate withdrawals, and who can only read. Access can additionally be restricted per wallet. See [Access control](/security/access-control). ## Webhook An HTTPS endpoint you register to receive events: wallet created, deposit detected, withdrawal confirmed, and so on. Deliveries are signed with an Ed25519 key you can verify, retried with backoff, and logged so you can inspect and resend them. See [Webhooks & events](/wallets/webhooks-and-events). ## Audit event A durable record of who did what, to which resource, and when: for sign-ins, policy and group changes, key and webhook management, approvals and freezes. Available through the console and the API. See [Reporting & audit trail](/wallets/reporting-and-audit). # Deployment models Source: https://blockops-3855c227.mintlify.app/overview/deployment-models Managed, hybrid and self-hosted deployments, and who holds the key shares in each. The signing cluster is the custody boundary. Where its nodes run, and therefore who holds the key shares, is the choice that defines your deployment model. The API, the operation ledger and chain operations are the same in every model. | | **Managed** | **Hybrid** | **Self-hosted** | | :------------------------------ | :----------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------ | :----------------------------------------------------------------------------------------------------------------------------- | | **Who operates the MPC nodes** | Blockops operates all nodes. | Blockops operates the API and part of the cluster; your institution operates one or more nodes in its own infrastructure. | Your institution operates all nodes in infrastructure it controls. | | **Who holds the key shares** | Blockops. | Split. Neither Blockops nor the institution holds enough shares to reach the signing threshold alone. | Your institution. | | **Who can produce a signature** | The Blockops-operated cluster, only through the platform's policy and approval flow. | Only Blockops and the institution together. | Only the institution's cluster. | | **What you run** | Nothing. | One or more signing nodes, and the infrastructure under them. | The signing cluster and its supporting services. | | **What Blockops runs** | Everything. | The API, ledger, chain operations, and its share of the cluster. | The API, ledger and chain operations; deployment tooling, monitoring, upgrade and recovery workflows for your nodes. | | **Fits** | Teams that want the platform without operating signing infrastructure. | Institutions that want a cryptographic veto over every transaction while Blockops carries most of the operations. | Institutions with custody, regulatory or infrastructure-control requirements that put key material inside their own perimeter. | ## Managed Blockops operates a three-node signing cluster with a **two-of-three** threshold on independent infrastructure, so that no single machine, account or administrative domain holds enough to sign. Blockops also runs the observability, backup and recovery workflows for the cluster. You integrate with the API and the console; the cluster is not exposed to you directly. Three key shares, each on a different substrate: AWS Nitro Enclave, Google Cloud with AMD SEV, and Blockops Talos BMS, connected in a triangle. The three substrates are chosen to be different rather than identical, each with its own provider boundary, identity system, secret store and operations path. The aim is to remove correlated failure, so that compromising one provider, one identity system or one operations team never reaches the signing threshold. ## Hybrid Your institution runs one or more nodes of the cluster in infrastructure it owns (its own cloud account, Kubernetes cluster or data centre) and Blockops runs the rest. With a two-of-three threshold and one institution-held share, no transaction can be signed without your node taking part. Blockops provides the node runtime, the deployment automation, and the monitoring, upgrade and recovery workflows; your institution controls the substrate, the network policy, the secret store and access to the machine. ## Self-hosted All signing nodes run in your infrastructure. Blockops provides the same runtime, automation and operational workflows, and continues to operate the control plane your applications integrate with, but never holds a key share. This is the model for institutions whose policy requires key material to stay inside their own perimeter. In the hybrid and self-hosted models the institution can own: the cloud account or cluster, network policy and firewall rules, IAM and the secret store, storage and backup targets, the logging destination, upgrade approval, incident response, and the signing nodes themselves. ## Moving between models Because signing keys are held as shares, the cluster can be **reshared** to a new set of nodes, or a new threshold, without changing the wallet's public key or any address. That is how a deployment moves from managed to hybrid, or adds an institution-operated node, without migrating funds. Resharing is a governed operation, recorded in the audit trail. See [Continuity and recovery](/security/continuity-and-recovery). ## Related * [Who holds the keys](/security/who-holds-the-keys) * [Threshold signing with citadel-core](/security/threshold-signing) * [Platform architecture](/overview/platform-architecture) # Glossary Source: https://blockops-3855c227.mintlify.app/overview/glossary Terms used across the Blockops documentation. Here's a blockchain lingo guide to help you navigate the exciting frontier of Web3. ### Application A decentralized application is a program running on a distributed ledger system. ### Network The actual blockchain network that comprises [nodes](#node). ### Node Any computer connected to other computers as part of the network protocol. Nodes comprise a [network](#network). ### Project A project organizes your blockchain [networks](#network) and [nodes](#node). ### Rollup terms | Term | Definition | | :------------------------- | :---------------------------------------------------------------- | | **OP Stack** | Optimism's open-source software stack for building L2 blockchains | | **Settlement Layer** | L1 blockchain (Ethereum) where rollup state is finalized | | **Data Availability (DA)** | Guarantee that transaction data is available for verification | | **Sequencer** | Component that orders and executes L2 transactions | | **Prover** | System that generates cryptographic proofs of L2 state | | **Fault Proof** | Mechanism allowing challenges to invalid state transitions | | **Genesis** | Initial state of the blockchain at block 0 | | **Chain ID** | Unique numeric identifier for a blockchain network | | **RPC** | Remote Procedure Call - endpoint for blockchain interactions | | **Blob (EIP-4844)** | Temporary data storage on Ethereum for L2 data availability | # Platform architecture Source: https://blockops-3855c227.mintlify.app/overview/platform-architecture How the wallet API, the MPC signing cluster and the chain operations layer fit together, and where authority lives in each. Blockops MPC Wallet Infrastructure is built on one rule: **no single system can move funds on its own.** The API cannot sign. A signing node cannot sign alone. The database holds operational state, not key material. Each layer holds a different kind of authority, and a transaction has to pass through all of them. ## The layers The platform's layers from top to bottom: your systems, citadel-api (control plane), the operation ledger, the command and result plane, the citadel-core MPC signing cluster, and chain operations. The signing cluster is operated by Blockops, by you, or split. The platform's layers from top to bottom: your systems, citadel-api (control plane), the operation ledger, the command and result plane, the citadel-core MPC signing cluster, and chain operations. The signing cluster is operated by Blockops, by you, or split. | Layer | What it owns | What it cannot do | | :--------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------- | | **citadel-api** | Admits requests, authenticates them, enforces policy, records intent, and asks the signing cluster for cryptographic work. | Produce a signature. It never holds enough key material to sign. | | **Operation ledger** | Durable state for every wallet, withdrawal, signing request, approval and delivery. | Reconstruct a key. It stores operational truth, not signing secrets. | | **Command and result plane** | Durable delivery of keygen and signing commands to the cluster, and of results back, with correlation IDs and timeouts. | Alter a request. Commands are signed by a trusted initiator identity and verified by every node. | | **citadel-core** | Key shares and threshold signing. Each node holds one share of each wallet key in an encrypted local store. | Sign alone. A signature needs a threshold of nodes to take part in an interactive protocol. | | **Chain operations** | Turning a signature into a confirmed on-chain event: building the transaction, broadcasting it, reconciling receipts and confirmations, and observing deposits. | Authorise a spend. Signing proves authorisation; this layer proves what happened on chain. | ## How a transaction moves through the platform 1. **Request**: your system calls the API with a scoped, HMAC-signed request and an idempotency key. 2. **Authorisation**: the API checks the key's scopes and wallet binding, then evaluates workspace policy. A matching rule can require approval before anything else happens. 3. **Approval**: if required, the request waits for the approval group to decide. Approvers act in the console; an initiator cannot approve their own request when dual control is on. 4. **Planning**: the API builds the transaction from trusted server-side state: nonce, gas, chain ID and recipient are never taken from the client. 5. **Signing**: a durable signing command goes to the cluster. Nodes verify the initiator's signature, check readiness, and run the threshold protocol. The result is a signature; the private key is never assembled. 6. **Broadcast**: the API assembles the signed transaction, checks that its hash matches what was persisted, and submits it to the network. 7. **Confirmation**: the chain operations layer polls for the receipt and marks the withdrawal confirmed once it reaches the configured confirmation depth. 8. **Notification**: each state change is written to the ledger and delivered to your webhook endpoints as a signed event. citadel-api signs a command with the event-initiator key, optionally with authorizer co-signatures attached, and sends it over the mTLS message plane to the three citadel-core nodes, which verify the signatures, run the threshold protocol and return a signature, never the private key. citadel-api signs a command with the event-initiator key, optionally with authorizer co-signatures attached, and sends it over the mTLS message plane to the three citadel-core nodes, which verify the signatures, run the threshold protocol and return a signature, never the private key. Every step leaves durable state behind. If a command times out, the state says so. If a result arrives late, it cannot revive an operation that has already failed. If a worker restarts, it resumes from what was stored. ## Where things run The API, ledger and chain operations are operated by Blockops. The MPC signing cluster can run in Blockops-operated infrastructure, in yours, or split between the two; see [Deployment models](/overview/deployment-models). Whichever model you choose, the layering above is the same. ## Related * [Core concepts](/overview/core-concepts): the objects the API works with. * [How the platform is secured](/security/how-the-platform-is-secured): the trust boundaries in detail. * [Threshold signing with citadel-core](/security/threshold-signing): the cryptography. # Supported networks & assets Source: https://blockops-3855c227.mintlify.app/overview/supported-networks The networks each Blockops product supports, and guides for connecting to them. | Product | Supported Networks | | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **MPC Wallet Infrastructure** | Ethereum, Polygon, Base and BSC, all EVM networks (Ethereum Sepolia in the sandbox). | | **Blockchain API** | Ethereum, Polkadot, Gnosis, Cronos, Polygon, Lisk, Assethub, Arbitrum, Zora, Celo, BSC, Optimism, Soneium, Starknet, Unichain, Solana, Fantom, Sonic, Zksync (Era), Blast, Linea, Berachain, Mantle, Scroll, Hyperbridge, Avalanche, Monad, Base. | | **Mission Control** | Ethereum, Polygon, Base, Starknet, SSV, Obol, Paycrest, Polkadot, Substrate (Testnets: Holesky, Hoodi, Sepolia, Amoy). | | **Pulsar** | Ethereum, BSC, Avalanche | | **Rollup** | OP Stack (Optimism) settling on Ethereum Mainnet or Ethereum Sepolia(Testnet) | | **Telescope** | Ethereum, Polkadot, SSV | Network guides for the Blockchain API: [Ethereum](/blockchain-infrastructure/blockchain-api/networks/ethereum), [Base](/blockchain-infrastructure/blockchain-api/networks/base), [Optimism](/blockchain-infrastructure/blockchain-api/networks/optimism), [Polkadot](/blockchain-infrastructure/blockchain-api/networks/polkadot), [Kusama](/blockchain-infrastructure/blockchain-api/networks/kusama), [Westend](/blockchain-infrastructure/blockchain-api/networks/westend), [Hyperbridge (Gargantua testnet)](/blockchain-infrastructure/blockchain-api/networks/gargantua). # What is Blockops? Source: https://blockops-3855c227.mintlify.app/overview/what-is-blockops Core banking infrastructure for digital assets: what the platform is, how it secures keys, and why it is built the way it is. ## What is Blockops? Blockops is core banking infrastructure for digital assets. It gives financial institutions a single control plane for their digital asset operations: MPC-secured wallet infrastructure, governance policies and controls over every transaction, and a complete audit trail, delivered through one API and one console with institutional-grade security. At the core is threshold cryptography. A private key is never generated, stored or reconstructed as a whole. It exists only as shares held by independent signing nodes, and every signature requires a threshold of them to cooperate. That removes the single point of failure of a conventional private key, and it lets you decide where the shares live: with Blockops, in your own infrastructure, or split so that nothing moves without you. ## Your core banking layer A bank's core holds the accounts, settles every movement of money, enforces mandates on each transaction and keeps the books. Products are built on top of it. Blockops is that layer for digital assets. | In a bank | In Blockops | | :--------------------- | :---------------------------------------------------------------------------------------- | | Accounts and balances | Wallets and their assets | | Posting and settlement | Transaction orchestration: plan, threshold-sign, broadcast, confirm on chain | | Limits and mandates | Governance policies: spend limits, approved counterparties, approval groups, dual control | | The books | Audit log, transaction history and signed events | Your product, customers, pricing and business logic stay with you. Blockops carries the infrastructure and the cryptography, so you add onchain money movement, tokenization and yield without building any of it. * **Keys are never a single point of failure.** Each key is generated as shares and used without ever being assembled. * **Every transaction passes governance before it is signed.** Limits, whitelists, approvals and the freeze are enforced by the platform, not the caller. * **You control where custody sits.** The API, policies and audit trail are the same in every model. * **The infrastructure underneath is Blockops' too.** Signing, policy, orchestration, events and the node and RPC layer run as one platform. ## Why choose Blockops? * **Custody on your terms.** Choose who runs the signing nodes and holds the key shares, and change it later without moving funds: * **Managed**: Blockops operates every node and holds the shares. You integrate and govern. * **Hybrid**: you run one or more nodes in your own infrastructure. Nothing can be signed without your share. * **Self-hosted**: you run every node and hold every share. Blockops runs the control plane and never touches key material. See [Deployment models](/overview/deployment-models). * **Governance that cannot be bypassed.** Limits, whitelists and approvals are evaluated before any signature exists, and only a person in the console can approve. See [Policies & approvals](/wallets/policies-and-approvals). * **Evidence for your reviewers.** Every action is recorded with actor and time, every state change arrives as a signed event, and controls are mapped against CCSS, SOC 2 and ISO 27001. See [Compliance & assurance](/security/compliance-and-assurance). * **One platform down to the chain.** RPC access across 28 networks, node operations, monitoring and indexing, operated by Blockops. See [Blockchain Infrastructure](/blockchain-infrastructure/overview). ## Core concepts ### MPC-secured wallets A wallet is a key generated as shares across the signing cluster, never as a whole. Attaching an asset binds the wallet to a network and token and yields a server-derived deposit address; on EVM networks one address serves the native asset and its tokens. Wallets, assets, deposits and withdrawals are the objects everything else refers to. See [Wallets & accounts](/wallets/wallets-and-accounts). ### Governance policies and controls Every withdrawal passes through the workspace's governance before it reaches the signing cluster: spend limits per transaction and per day, destination whitelists with a hold on new addresses, approval groups with M-of-N thresholds, dual control on configuration changes, and an emergency freeze that fails every withdrawal closed. See [Policies & approvals](/wallets/policies-and-approvals). ### Users and permissions People hold workspace roles (owner, admin, member, viewer) and can be restricted to specific wallets. Systems hold scoped API keys, bound to wallets and IP ranges, with expiry and immediate revocation. Approval is a human action in the console; scopes are enforced on every request before policy runs. See [Access control](/security/access-control). ### Audit logs Sign-ins, policy and group changes, key and webhook management, approvals, rejections and freezes are recorded with actor and time, available in the console and through the API. Transaction history and CSV export cover every deposit and withdrawal, and Ed25519-signed webhooks deliver each state change to your systems. See [Reporting & audit](/wallets/reporting-and-audit). ## Get started Create a wallet in the sandbox and send a governed withdrawal. The layers, what each owns, and how a transaction moves through them. Managed, hybrid and self-hosted, and who holds the key shares in each. The trust boundaries and what a single failure cannot do. # Blog Source: https://blockops-3855c227.mintlify.app/resources/blog Product updates and partnership announcements from the Blockops blog. For more updates and insights, join our community on [Discord](https://discord.com/invite/nngqxkqdw8). # Frequently asked questions Source: https://blockops-3855c227.mintlify.app/resources/faq Answers to common questions about Blockops, the Blockchain API, Mission Control and Telescope. ## Blockops Blockops provides core banking infrastructure for digital assets: an MPC wallet platform built for financial institutions, and the blockchain infrastructure it runs on: RPC endpoints, managed nodes, indexing, monitoring and dedicated rollups. Follow [Getting started](/get-started/overview): create an account, create a project, and make your first request. Each product then has its own guide. Email [hello@blockops.network](mailto:hello@blockops.network), use the support icon at the bottom right of the dashboard, or ask the community on [Discord](https://discord.com/invite/nngqxkqdw8). See [Support](/get-started/support). ## Accounts and access With Google, GitHub, or an email address. Email sign-up asks for a business name, your name, an email address and a password, and requires email verification. See [Create your account](/get-started/create-your-account). Rotate it. Open the project in the dashboard and use **Rotate Key**; the old key stops working immediately. See [Endpoints, keys & authentication](/blockchain-infrastructure/blockchain-api/endpoints-and-authentication). ## Blockchain API The full list is on [Supported networks & assets](/overview/supported-networks), with a connection guide for each network that has one. With your project's API key, either in the `authorization: APIKEY ` header or as the `?api_key=` query string. Both HTTP and WebSocket endpoints accept either form. Public endpoints allow 50 requests per second and are intended for testing only. Private endpoints, which use your API key, allow 1000 requests per second. If you need more, contact support. See [Rate limits & error codes](/blockchain-infrastructure/blockchain-api/rate-limits-and-errors). The API returns standard HTTP status codes: `401` for a missing or invalid key, `404` for an unknown route, `429` when you exceed the request limit, and `500` for a server-side error. Network-specific errors come back in the JSON-RPC response body. See [Rate limits & error codes](/blockchain-infrastructure/blockchain-api/rate-limits-and-errors). ## Mission Control The Blockops service for deploying and managing blockchain nodes. Nodes can run on Google Cloud, AWS, Cherry Servers, bare metal, or a private server you connect over an SSH tunnel. See [Node operations](/blockchain-infrastructure/node-operations/overview). One. You can start with a single node and add more later. Yes. Bare-metal servers are reached over SSH; servers without inbound access are connected through an outbound SSH tunnel. See [Deploy to your own servers](/blockchain-infrastructure/node-operations/deploy-to-your-own-servers). ## Telescope Metrics, logs, uptime and alerts for deployed nodes, through a Node Health Dashboard for individual nodes and a Network Dashboard for a network. Metrics are collected by push, where Blockops exposes an endpoint for you, or by pull from a datasource you provide. See [Monitoring & alerting](/blockchain-infrastructure/monitoring-and-alerting). Alerts are created on a dashboard (metrics or logs) or on an uptime monitor and are delivered to the contact points you configure. Yes. Each node you deploy can be added to Telescope, and the Network Dashboard covers a network as a whole. ## Pulsar and Rollups A managed indexing service. You deploy SubQuery or The Graph indexers and query them through a GraphQL endpoint, without running the indexer infrastructure yourself. See [Indexing](/blockchain-infrastructure/indexing). A dedicated OP Stack Layer 2 chain that settles to Ethereum. Testnet rollups deploy to Ethereum Sepolia and are self-serve; mainnet rollups settle to Ethereum Mainnet and are set up with the Blockops team. See [Rollups](/blockchain-infrastructure/rollups). Still have a question? Email [hello@blockops.network](mailto:hello@blockops.network). # Access control Source: https://blockops-3855c227.mintlify.app/security/access-control Roles for people, scopes for API keys, and the approval controls that separate initiating a transaction from approving it. Access is controlled at three levels: **roles** for people in the console, **scopes** for API keys, and **approval controls** that decide when a person must sign off before a transaction proceeds. ## Roles Every member of a workspace has one role. | Role | Can | | :--------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **Owner** | Everything an admin can, plus ownership of the workspace. Always retains admin rights. | | **Admin** | Manage policies, approval groups, members and roles, API keys, webhooks, alert channels and governance settings, including the kill switch. Everything a member can. | | **Member** | Create wallets, attach assets, request withdrawals and signing, and read everything in the workspace. | | **Viewer** | Read-only. Cannot initiate or approve anything. | A role is set when a member is invited and can be changed by an admin. Members are invited by email; invitations can be revoked before they are accepted. ## Per-wallet access By default every wallet is open to all workspace members at their workspace role. An admin can restrict a wallet to named members, each with a role on that wallet. Once a wallet has an access list, only those members can operate it; workspace admins and the owner always keep access. Removing the last assigned member reopens the wallet to the workspace. ## API key scopes API keys are for applications, not people. Each key carries the scopes it may use: | Scope | Allows | | :---------------------------------------- | :--------------------------------------------------------------------- | | `wallets:read` · `wallets:create` | List and inspect wallets · create wallets | | `assets:read` · `assets:attach` | Read the asset catalog · attach assets to a wallet | | `balances:read` | Read balances and overviews | | `withdrawals:read` · `withdrawals:create` | Read withdrawals · request withdrawals | | `signing:read` · `signing:write` | Read signing status · request signing of a digest | | `webhooks:read` · `webhooks:manage` | Read webhooks and delivery logs · create, update and delete webhooks | | `admin:*` | Administrative routes, including API-key management and operator views | A key can also be **bound to specific wallets**, so that it cannot see or act on any other wallet; limited to an **IP allowlist**; given an **expiry**; and **revoked** at any time. Revocation takes effect immediately. No scope lets an API key change policy, approve a request, alter members or roles, or lift a freeze. Those actions belong to people acting in the console. ## Approval controls Approval is where initiating and authorising are separated. * **Require approval to withdraw**: every withdrawal, or every withdrawal above a threshold amount, is held for an approval group before signing. * **Policies**: rules that route matching withdrawals to an approval group: spend limits per asset, and destination whitelists. * **Approval groups**: named sets of members with a threshold: the number of approvals a request needs. * **Dual control**: the person who initiated a request cannot approve it. With dual control off, a single person can initiate and approve; the console warns that this is suitable for solo teams only. Approvals are recorded with the approver's identity, taken from their console session (never from the request body), and each decision is written to the audit trail. ## Sign-in security Console users sign in with email and password, Google, or a passkey, and can enable two-factor authentication with an authenticator app (TOTP) or a passkey. Sessions expire; a request with an expired session returns to sign-in. ## Related * [Policies & approvals](/wallets/policies-and-approvals) * [Endpoints, keys & authentication](/blockchain-infrastructure/blockchain-api/endpoints-and-authentication) for the Blockchain API's separate key model # Compliance & assurance Source: https://blockops-3855c227.mintlify.app/security/compliance-and-assurance The control framework behind the platform, what is mapped to which standard, and what is and is not certified. Institutions that adopt the platform need to know what controls exist, which standards they are measured against, and what evidence is available. This page states that plainly. ## Control framework The platform's controls are mapped against **CCSS**, **SOC 2** and **ISO 27001**; **no certification is held yet**. The mapping is a working document maintained by engineering: each control is tied to the standard's requirement, its implementation in the platform, and its current status. It is reviewed as controls are added. The mapping is organised in five areas: | Area | What it covers | | :---------------------------- | :------------------------------------------------------------------------------------------------------------------- | | **Keys** | Key generation, share storage and encryption, node identity, resharing, and backup and recovery of shares. | | **Transaction integrity** | Request validation, balance holds, transaction planning, signing authorisation, broadcast and confirmation tracking. | | **Ledger integrity** | Deposit detection, balance reconciliation against chain state, and the withdrawal record. | | **Policy and governance** | Roles, scoped API keys, spend limits, destination controls, approval groups, dual control and the withdrawal freeze. | | **Operations and monitoring** | Audit events, webhook delivery, node health, backups, and operational access to production. | How each area is implemented is described in [How the platform is secured](/security/how-the-platform-is-secured), [Who holds the keys](/security/who-holds-the-keys) and [Access control](/security/access-control). ## What we do not claim * No SOC 2 report, ISO 27001 certificate, CCSS attestation or third-party audit report exists today. Do not represent the platform as certified in your own compliance filings. * The platform does not perform AML or sanctions screening, KYT, or Travel Rule messaging. Institutions that need those controls apply them in their own systems before a withdrawal is requested, or hold withdrawals for approval and screen them there. * Regulatory status depends on how you deploy and operate the platform and on your own licences; Blockops does not provide legal or regulatory advice. ## Evidence for your review Compliance and security reviewers can request the current control mapping and the architecture material behind it from [hello@blockops.network](mailto:hello@blockops.network). For self-hosted deployments, the [security checklist](/self-hosted/security-checklist) lists the controls that fall to your operators. This page is updated when a certification is obtained or a standard is added to the mapping. # Continuity and recovery Source: https://blockops-3855c227.mintlify.app/security/continuity-and-recovery What is backed up, how a failed signing node is restored without exposing key material, and how the platform behaves during partial failure. The platform assumes that machines fail, networks partition, workers restart and receipts go missing. Each layer keeps enough durable state to recover without guessing, and no recovery step requires anyone to handle a complete private key. ## Losing a signing node A two-of-three cluster keeps signing with one node down; the loss is reduced redundancy, not an outage. Restoring the node: 1. Re-provision the machine or pod. 2. Restore the node's identity from the approved secret store. 3. Restore the encrypted share store from backup. 4. Supply the store's passphrase from the runtime secret store. 5. Start the node; it registers as ready and rejoins signing sessions. At no point is a share decrypted outside the node, and the person performing the recovery never sees key material. For **planned** replacement (retiring a machine, moving to a new substrate, or adding an institution-operated node) the cluster is reshared to the new set of nodes instead. Resharing preserves the wallet's public key and every address; nothing moves on chain. See [Threshold signing](/security/threshold-signing). ## What is backed up | Component | Backup | Notes | | :------------------------------------- | :------------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------- | | **Signing node share store** | Encrypted backups written on a schedule to storage appropriate to the node's substrate | Encrypted at the application layer before any storage-level encryption. A backup alone cannot sign or reconstruct a wallet. | | **Node identities and initiator keys** | Held in the secret store | Rotated under separate controls from the share stores. | | **Operation ledger (Postgres)** | Regular backups with point-in-time recovery | Contains no key material. | | **Messaging state** | Durable streams | If lost, in-flight operations are reconciled from the ledger and the chain before publishing resumes. | The chain code used for address derivation is never regenerated for existing wallets; derived addresses depend on it. ## Recovering the control plane The API is restored from the ledger backup and brought up with write paths disabled. Operators then review non-terminal operations (wallet creations, signing requests and withdrawals that were in flight) and reconcile any submitted withdrawal against the chain before re-enabling result consumption, broadcast and confirmation. Idempotency records are preserved: repeating a request with the same key returns the existing operation rather than creating a second one. ## Partial failure during normal operation | Situation | Behaviour | | :-------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------- | | A key-generation or signing request receives no result | It is marked failed after a configured timeout. A result that arrives later is ignored; it cannot revive a failed operation. | | A signed transaction was broadcast but no receipt appears | The withdrawal stays *submitted*. The same signed transaction can be rebroadcast; a receipt below the confirmation depth is never treated as final or as failed. | | The chain reorganises | Deposits in the affected blocks are marked failed, the scanner rewinds, and canonical blocks are rescanned. | | The messaging plane is unreachable | The API reports not-ready and refuses new commands rather than accepting work that cannot complete. | | The kill switch state cannot be read | Withdrawals are blocked. The check fails closed. | ## Operator visibility Operators can list stuck operations (stale key generations, signing requests and submitted withdrawals) through an admin-only view, and every operation carries the identifiers needed to trace it: request ID, workspace, wallet, withdrawal, signing request, cluster correlation ID and transaction hash. # How the platform is secured Source: https://blockops-3855c227.mintlify.app/security/how-the-platform-is-secured The trust boundaries of the wallet platform: what each one checks, and what a single failure can and cannot do. The platform is designed so that the public API, the database and any individual signing node are each insufficient on their own to move funds. Security comes from several independent boundaries, each of which has to be crossed for a transaction to happen. ## The boundaries | Boundary | What it decides | Mechanism | | :---------------- | :----------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **API request** | Whether the caller may ask for this operation at all. | HMAC-SHA256 signed requests bound to a timestamp; per-key scopes, wallet binding, IP allowlist, expiry and revocation. | | **Governance** | Whether this operation needs human approval, and whether it is allowed under workspace controls. | Policies, approval groups with thresholds, dual control, destination whitelist and hold period, per-transaction and daily limits, kill switch. | | **Command** | Whether the signing cluster will accept the work. | Every command to the cluster is signed by a trusted initiator identity; nodes verify it before opening a session. | | **Node identity** | Whether a node may take part in a session. | Each node has its own Ed25519 identity. Protocol messages are signed, and node-to-node messages are encrypted with keys derived from those identities. | | **Network** | Nothing on its own. | The network path is not trusted. Transport is mutually authenticated TLS; identity and message signatures are the boundary. | | **Secrets** | Whether stolen material is usable. | Each node's key shares live in an encrypted local store; the passphrase is held separately from the storage volume. Node identities and initiator keys are stored and rotated under separate controls. | | **Threshold** | Whether a signature can exist. | A signature requires a threshold of nodes to take part. One node, one machine, one account and one local store are each insufficient. | ## Threat model, plainly The wallet's private key is never stored as a whole. It is generated as separate shares by distributed key generation and used only through an interactive threshold protocol. * Compromise of one signing node, one cloud account, one Kubernetes namespace, one node identity or one local share store is **not enough** to sign. * Compromise of the API, or of the control-plane database, is **not enough** to sign: neither holds key material. * A stolen API key is limited to its scopes and bound wallets, and cannot change policy, approve its own requests, rotate secrets or disable controls. * An attacker who controls enough nodes to meet the threshold, or obtains enough encrypted shares together with their passphrases, has crossed the custody boundary. The design makes that require several independent failures across different systems and administrative domains, not one successful intrusion. Threshold cryptography does not remove operational risk; it changes what an attacker has to achieve. The controls around it (policy, approvals, limits, the kill switch and the audit trail) are what make the boundary usable day to day. ## Automation is separate from governance Server-to-server API keys are for the flows an application should run on its own: creating wallets, attaching assets, reading balances and history, requesting withdrawals within policy. Changing the rules is a different trust domain. Policy and approval-group changes, approving or rejecting a request, member and role changes, and freezing withdrawals are done by people in the console under their own session. A static credential cannot quietly become a superuser. ## Everything is written down first Before the platform publishes a key-generation request, it records the wallet operation. Before it publishes a signing request, it records the withdrawal and the signing request. Before it broadcasts, it records the signed transaction and its expected hash. Duplicate requests resolve to the existing operation, a late result cannot revive a failed one, and every state transition and sensitive action is available in the audit trail. An incident can be traced from request ID to wallet, withdrawal, signing request and transaction hash. ## Chain truth is reconciled, not assumed A withdrawal is not final because a transaction was broadcast. It becomes final when the receipt has reached the configured confirmation depth. Balances come from chain-observed state written by the scanner, which handles reorganisations by marking affected deposits failed and rescanning. A stale scanner never silently zeroes a balance. ## Emergency stop A workspace admin can freeze all withdrawals in the workspace from the console, with a reason recorded in the audit trail. While frozen, withdrawal requests are rejected. The check fails closed: if the platform cannot read the freeze state, it blocks the withdrawal. ## Related * [Who holds the keys](/security/who-holds-the-keys) * [Threshold signing with citadel-core](/security/threshold-signing) * [Access control](/security/access-control) * [Continuity and recovery](/security/continuity-and-recovery) # Threshold signing with citadel-core Source: https://blockops-3855c227.mintlify.app/security/threshold-signing How citadel-core generates keys as shares, signs with a threshold of nodes, protects the shares, and reshares them to a new set of nodes. `citadel-core` is the Blockops MPC node runtime. A cluster of nodes generates wallet keys as separate shares and produces signatures through a threshold protocol, so that the private key is never assembled on any machine. ## The threshold scheme A cluster has **n** nodes, each holding one share of every wallet key, and a threshold **t**: the number of nodes that must take part to produce a signature. The cluster enforces `t ≥ ⌊n/2⌋ + 1`, so a minority of nodes can never sign. The standard managed deployment is three nodes with a two-of-three threshold. | Operation | Nodes required | Result | | :----------------- | :-------------------------------- | :--------------------------------------------------------------------------------------- | | **Key generation** | All *n* nodes | Each node stores its own encrypted share; the wallet's public key is recorded. | | **Signing** | Any *t* nodes | A valid signature for the requested digest. | | **Resharing** | The old committee and the new one | Shares redistributed to a new set of nodes or a new threshold, with the same public key. | Signing needs only the threshold, so a two-of-three cluster keeps signing while one node is offline. Key generation needs every node, because each one must create its own share. ## Curves and chains The runtime signs with **ECDSA on secp256k1** (Ethereum and EVM-compatible networks, Bitcoin) and **EdDSA on Ed25519** (Solana, Polkadot and other Ed25519 networks). Which networks are available to wallets is a product matter, not a cryptographic one; see [Supported networks & assets](/overview/supported-networks). Child keys are derived deterministically from a wallet key using a cluster-wide chain code, so one wallet can hold addresses on several networks. For EVM networks the derivation path is fixed on the server; clients never supply one. ## Inside a node Each node runs the same runtime; there is no primary. On start, a node loads its identity, opens its encrypted share store, connects to the messaging plane, and registers as ready. It then consumes key-generation and signing commands, takes part in sessions, and publishes results. If any critical configuration is missing or inconsistent, the node refuses to start rather than run half-configured. **Identity and messages.** Every node has an Ed25519 identity. All protocol messages are signed and verified. Messages sent directly between two nodes are encrypted with keys derived from the two identities, so the messaging layer never sees plaintext protocol state. Transport to the messaging plane is mutually authenticated TLS. **Command authorisation.** Commands to generate a key, sign, or reshare must be signed by a trusted initiator identity configured on every node. Unsigned or wrongly signed commands are rejected before a session opens. Clusters can additionally require signatures from a set of named authorisers on every command. **Share storage.** Shares live in an embedded database encrypted with AES-256. The node will not start without the encryption passphrase, which is supplied at runtime and kept separately from the storage volume. Backups are encrypted with the same key before any storage-level encryption applies. **Readiness.** A node advertises readiness; the cluster checks that enough nodes are ready before it starts a session, so that work which cannot complete is refused rather than left hanging. ## Resharing Resharing moves a wallet's shares to a new set of nodes, or changes the threshold, while preserving the wallet's public key and therefore every address derived from it. It is how a node is replaced, how an institution-operated node is added to a hybrid deployment, and how a deployment moves between models without migrating funds. Because it changes who can sign, it is treated as a governed operation with an audit record, not a routine API call. ## What the API adds around the runtime The runtime provides distributed key generation, threshold signing and resharing. Everything that makes those usable for an institution (authentication, policies and approvals, the operation ledger, transaction planning and broadcast, reconciliation, webhooks, audit and recovery) is provided by `citadel-api` and the chain operations layer. See [Platform architecture](/overview/platform-architecture). # Who holds the keys Source: https://blockops-3855c227.mintlify.app/security/who-holds-the-keys Where wallet key shares live under each deployment model, and what Blockops can and cannot do with them. A wallet's private key never exists in one place. It is created as shares, one per signing node, and used only when a threshold of nodes cooperates. So the question "who holds the keys" has a precise answer: **whoever operates the signing nodes holds the shares, and no party holding fewer shares than the threshold can sign.** | Deployment model | Shares held by | Can Blockops sign alone? | Can the institution sign alone? | | :--------------- | :------------------------------------------------------------- | :---------------------------------------------------------------------------------- | :------------------------------ | | **Managed** | Blockops, across independently operated nodes | Yes, through the platform's policy and approval flow, never by an individual system | No | | **Hybrid** | Split between Blockops-operated and institution-operated nodes | No | No | | **Self-hosted** | The institution | No | Yes | ## What the platform never does * **Assemble the private key.** Key generation produces shares directly; signing produces a signature. There is no step at which the full key exists on any machine. * **Sign outside the flow.** Every signing command must be signed by the trusted initiator identity and must have passed authentication, policy and, where required, approval. The signing cluster rejects anything else. * **Let an API key change the rules.** Scoped keys can request operations within policy; they cannot alter policy, approve requests, or disable controls. ## What you control in every model * **Who can initiate and who can approve**, through roles, approval groups and dual control. * **Where funds may go**, through destination whitelists and the hold period for new addresses. * **How much can move**, through per-transaction and daily limits. * **Whether anything moves at all**, through the kill switch. * **What happened**, through the audit trail and signed webhook events. ## Choosing a model If your policy requires key material inside your own perimeter, choose **self-hosted**. If you want a cryptographic veto without operating everything, choose **hybrid**: your node is required for every signature. If you want the platform without running signing infrastructure, choose **managed**. Wallets can move between models by resharing, without changing addresses. See [Deployment models](/overview/deployment-models). # Configuration reference Source: https://blockops-3855c227.mintlify.app/self-hosted/configuration Every citadel-core configuration key, environment override, command-line flag and CLI command. citadel-core reads a YAML configuration file, accepts environment-variable overrides for connection details, and takes a small set of command-line flags at start-up. Secrets (the share-store password and identity password) are supplied through files or prompts, never through the configuration file in production. ## `config.yaml` ### Cluster | Key | Required | Description | | :-------------------------- | :------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `mpc_threshold` | yes | Signing threshold `t`. Must satisfy `t ≥ ⌊n/2⌋ + 1` for `n` nodes; `2` for a three-node cluster. | | `environment` | yes | `development` or `production`. In `production`, NATS connections require TLS client certificates and credentials. | | `chain_code` | yes | 32 bytes as 64 hexadecimal characters, generated once with `openssl rand -hex 32`. Used for hierarchical key derivation; **must be identical on every node**. The node refuses to start without it. | | `event_initiator_pubkey` | yes | Hex public key of the event initiator (citadel-api). Requests not signed by this key are rejected. | | `event_initiator_algorithm` | no | `ed25519` (default) or `p256`. | | `session_warm_up_delay_ms` | no | Delay before a signing session starts, to let peers settle. Production template sets `100`. | | `max_concurrent_keygen` | no | Key-generation sessions the node runs at once. Default `2`. | | `max_concurrent_signing` | no | Signing sessions the node runs at once. Default `10`. | ### Storage and backups | Key | Required | Description | | :---------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------- | | `badger_password` | yes | Encryption password for the share store (AES-256). **Do not set this in the file in production**, use `--password-file` or `--prompt-credentials`. | | `db_path` | no | Directory holding the share store; the node's name is appended. Default `./db`. | | `backup_enabled` | no | Periodic encrypted backups of the share store. Default `true`. | | `backup_period_seconds` | no | Interval between backups. Default `300`. | | `backup_dir` | no | Where backups are written. Default `./backups`. Backups are encrypted with the share-store password. | ### Messaging and discovery | Key | Required | Description | | :---------------------------------------------------------------- | :--------- | :-------------------------------------------------------------------------------------------------- | | `nats.url` | yes | NATS server URL, `tls://…` in production. May be left empty and supplied as `NATS_URL`. | | `nats.username`, `nats.password` | production | NATS credentials. | | `nats.tls.client_cert`, `nats.tls.client_key`, `nats.tls.ca_cert` | production | Paths to the client certificate, key and CA. If omitted in production the node looks in `./certs/`. | | `consul.address` | yes | Consul address. May be left empty and supplied as `CONSUL_ADDRESS`. | | `consul.username`, `consul.password`, `consul.token` | no | Consul credentials or ACL token. | ### Health and authorisation | Key | Required | Description | | :---------------------------------------------------------------------- | :----------------- | :---------------------------------------------------------------------------------------------------------------------- | | `healthcheck.enabled` | no | Serve `GET /health`. Default `false`; enable for container platforms. | | `healthcheck.address` | no | Listen address. Default `0.0.0.0:8080`; use `0.0.0.0` (not `localhost`) inside containers. | | `authorization.enabled` | no | Require additional named authorizers to co-sign every keygen, signing and reshare request. | | `authorization.required_authorizers` | with authorization | Names of the authorizers whose signatures must be present. | | `authorization.authorizer_public_keys..public_key` / `.algorithm` | with authorization | Each authorizer's public key and algorithm (`ed25519` or `p256`). Generate with `citadel-core-cli generate-authorizer`. | ## Environment variables | Variable | Effect | | :----------------------- | :----------------------------------------------------------- | | `NATS_URL` | Overrides `nats.url`. | | `CONSUL_ADDRESS` | Overrides `consul.address`. | | `ENVIRONMENT` | Default for `citadel-core-cli register-peers --environment`. | | `CITADEL_CORE_NODE_NAME` | Used by the systemd unit to pass `--name`. | ## `citadel-core start` ```bash theme={null} citadel-core start --name [flags] ``` | Flag | Description | | :------------------------------- | :--------------------------------------------------------------------------- | | `--name`, `-n` | **Required.** The node's name as it appears in `peers.json`. | | `--config`, `-c` | Path to `config.yaml`. | | `--peers` | Path to `peers.json`; new entries are synced into Consul at start-up. | | `--password-file`, `-f` | File containing the share-store password. | | `--identity-password-file`, `-k` | File containing the password for the node's `age`-encrypted private key. | | `--decrypt-private-key`, `-d` | The node's private key is encrypted; decrypt it at start-up. | | `--prompt-credentials`, `-p` | Prompt for the share-store password interactively instead of reading a file. | | `--debug` | Debug logging. | `citadel-core version` prints the version. ## `citadel-core-cli` | Command | Purpose | | :---------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------ | | `generate-peers -n [-o peers.json]` | Create the peer registry. | | `register-peers [-p peers.json] [-e ] --config ` | Write the registry into Consul. | | `generate-identity --node [-p peers.json] [-o identity] [--encrypt] [--overwrite]` | Create a node's Ed25519 identity, optionally with the private key encrypted by `age`. | | `generate-initiator [-n event_initiator] [-o .] [--encrypt] [-a ed25519\|p256]` | Create the event initiator's key pair. | | `generate-authorizer --name [-o .] [--encrypt] [-a ed25519\|p256]` | Create an authorizer key pair for the optional authorization layer. | | `recover --backup-dir --recovery-path [--force]` | Rebuild a share store from encrypted backups. | | `version` | Print the CLI version. | ## Files a node uses | File | Content | Sensitivity | | :------------------------------------------ | :-------------------------------------------- | :---------------------------- | | `peers.json` | Every node's name and ID. | Shared with all nodes. | | `identity/_identity.json` | A node's public key and metadata. | Shared with all nodes. | | `identity/_private.key` or `.key.age` | This node's private key (plain or encrypted). | **Secret: this node only.** | | `event_initiator.identity.json` | The initiator's public key. | Shared. | | `event_initiator.key.age` | The initiator's private key. | **Secret: citadel-api only.** | | `db//` | Encrypted share store. | **Secret.** | | `backups/*.enc` | Encrypted share-store backups. | **Secret.** | # Install on AWS ECS Fargate Source: https://blockops-3855c227.mintlify.app/self-hosted/install-ecs Run citadel-core signing nodes as Fargate tasks with Secrets Manager, S3 and EFS. This guide deploys citadel-core on ECS Fargate: one service per node, secrets from AWS Secrets Manager, configuration and identity files from S3, and the encrypted share store on EFS. Infrastructure is expected to be provisioned with Terraform; this page covers what the application needs from it. ## How a task is put together Each task runs four containers in sequence: 1. **init-secrets**: reads the share-store and identity passwords from Secrets Manager into a shared `/secrets` volume. 2. **init-config**: downloads `config.yaml`, `peers.json` and the node's identity files from S3. 3. **init-data**: copies the identity files and `peers.json` onto EFS so they survive restarts. 4. **citadel-core**: the node itself: distroless, non-root (UID 65532), read-only root filesystem, reading everything above from mounted volumes. The main container has no shell, so every secret must already be a file by the time it starts. ## Generate key material Run these on a dedicated, ephemeral workstation (a temporary instance in a private subnet or an air-gapped machine) and wipe it after uploading the outputs. Never on a laptop or shared host. ```bash theme={null} citadel-core-cli generate-peers -n 3 citadel-core-cli generate-initiator --encrypt # private key → citadel-api; public key → config.yaml for node in node0 node1 node2; do citadel-core-cli generate-identity --node "$node" --peers ./peers.json \ --output-dir ./identity/"$node" --encrypt done openssl rand -hex 32 # chain_code, shared by every node ``` Generate a share-store password per node and record it with each node's identity password. ## AWS resources | Resource | Requirement | | :------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | **ECR** | A repository holding the citadel-core image. | | **EFS** | Encrypted at rest; mount targets in every task subnet; **one access point per node** rooted at `/node0`, `/node1`, `/node2`, owned by `65532:65532`. Enable AWS Backup on the file system. | | **Secrets Manager** | Per node: `citadel-core//db-password` and `citadel-core//identity-password`, stored as plain strings. | | **S3** | A bucket with public access blocked: `citadel-core/peers.json` plus `citadel-core//config.yaml` and `citadel-core//identity/` for each node. TLS certificates under `citadel-core/certs/` if NATS uses mTLS. | | **CloudWatch Logs** | Log group `/ecs/citadel-core`, retention set (30 days is a reasonable default). | | **ECS** | A Fargate cluster; **one service per node with `desired_count = 1`**, `maximum_percent = 100` and `minimum_healthy_percent = 0`, so two instances of a node never hold the share store's lock at once. Private subnets, no public IP. | | **Security group** | Egress only: NATS `4222`, Consul `8500`, EFS `2049`, and `443` to S3, Secrets Manager and ECR (through VPC endpoints or NAT). | ### IAM * **Execution role:** `AmazonECSTaskExecutionRolePolicy` plus `logs:CreateLogStream`, `logs:PutLogEvents` and `logs:CreateLogGroup` on the log group. * **Task role:** `secretsmanager:GetSecretValue` on `secret:citadel-core/*`; `s3:GetObject` and `s3:ListBucket` on the bucket's `citadel-core/*` prefix; `elasticfilesystem:ClientMount`, `ClientWrite` and `ClientRootAccess` on the file system. ## Configuration for ECS Leave the NATS and Consul addresses empty in `config.yaml` and inject them as the `NATS_URL` and `CONSUL_ADDRESS` environment variables on the citadel-core container; the same file then works in every environment. ```yaml theme={null} environment: production db_path: /app/data/db backup_dir: /app/data/backups consul: address: "" # set by CONSUL_ADDRESS nats: url: "" # set by NATS_URL # username / password / tls block when NATS requires them mpc_threshold: 2 event_initiator_pubkey: event_initiator_algorithm: ed25519 chain_code: <64-character hex> max_concurrent_keygen: 3 max_concurrent_signing: 10 backup_enabled: true backup_period_seconds: 300 healthcheck: enabled: true address: "0.0.0.0:8080" ``` ## Task definition The main container's command and mounts, with the init containers omitted for brevity: ```json theme={null} { "name": "citadel-core", "image": ".dkr.ecr..amazonaws.com/citadel-core:", "essential": true, "command": [ "start", "--name=", "--config=/config/config.yaml", "--password-file=/app/secrets/db-password.cred", "--identity-password-file=/app/secrets/identity-password.cred", "--decrypt-private-key", "--peers=/config/peers.json" ], "environment": [ { "name": "NATS_URL", "value": "" }, { "name": "CONSUL_ADDRESS", "value": "" } ], "mountPoints": [ { "sourceVolume": "secrets", "containerPath": "/app/secrets", "readOnly": true }, { "sourceVolume": "config", "containerPath": "/config", "readOnly": true }, { "sourceVolume": "identity", "containerPath": "/app/identity", "readOnly": true }, { "sourceVolume": "data", "containerPath": "/app/data" } ], "user": "65532:65532", "readonlyRootFilesystem": true, "linuxParameters": { "initProcessEnabled": true } } ``` The `data` volume is the node's EFS access point with transit encryption and IAM authorisation enabled. `secrets`, `config` and `identity` are ephemeral task volumes written by the init containers. Passing `--peers` makes each node sync the registry into Consul at start-up, so no separate `register-peers` step is needed. ## Verify CloudWatch should show, in order: the version banner, `Connected to badger kv store`, `Loaded peers from consul`, `[READY] Node is ready`, `Starting consumers`. `GET /health` on port 8080 reports readiness; add an ECS `healthCheck` on it if you want the service to track container health (allow a `startPeriod` of about 60 seconds). ## Troubleshooting | Symptom | Likely cause | | :------------------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Init container exits non-zero | Task role lacks Secrets Manager or S3 permission; secret name or S3 path mismatch; identity files not uploaded. | | Task stuck in `PROVISIONING` | No EFS mount target in the subnet; security group blocks `2049`; image pull failure. | | Share-store error at start | Password in Secrets Manager differs from the one the store was created with; it cannot be changed after creation. Or the access point UID/GID is not `65532`. | | `Failed to decrypt private key` | Identity password mismatch, or the `.age` file was corrupted in upload. | | Health check failing | `healthcheck.enabled` is false, or `address` is `localhost` rather than `0.0.0.0:8080`. | ## Next [Operate a cluster](/self-hosted/operate) and the [security checklist](/self-hosted/security-checklist). # Install on Kubernetes Source: https://blockops-3855c227.mintlify.app/self-hosted/install-kubernetes Deploy citadel-core signing nodes as a StatefulSet with secrets, persistent storage, probes and network policy. This guide deploys a three-node citadel-core cluster on Kubernetes. Key material is generated offline, stored as Kubernetes Secrets, and mounted read-only into distroless containers that run as a non-root user. ## Prerequisites * A Kubernetes cluster (v1.24 or later) with `kubectl` access, at least three worker nodes, and a persistent-storage provisioner. * **NATS** with JetStream and **Consul**, either in the cluster (the official NATS and Consul Helm charts are the recommended route) or external and reachable from it. * On a secure workstation: `citadel-core-cli`, `age`, and `kubectl`. * The citadel-core container image from Blockops, available to your cluster's registry. ## Generate key material offline ```bash theme={null} citadel-core-cli generate-peers -n 3 ``` Pod names in a StatefulSet are `citadel-core-0`, `citadel-core-1`, `citadel-core-2`. Edit `peers.json` so its node names match those pod names. ```bash theme={null} citadel-core-cli generate-initiator --encrypt jq -r .public_key event_initiator.identity.json # goes into config.yaml ``` The encrypted private key goes to citadel-api; keep its password in your secrets manager. ```bash theme={null} for n in citadel-core-0 citadel-core-1 citadel-core-2; do citadel-core-cli generate-identity --node "$n" --peers ./peers.json \ --output-dir ./identity/"$n" --encrypt done ``` Record each identity password. ```bash theme={null} openssl rand -hex 32 ``` One value, shared by every node, set as `chain_code` in the ConfigMap. ## Create the namespace, secrets and configuration ```bash theme={null} kubectl create namespace citadel-core # Passwords generated straight into a Secret; they never touch disk kubectl create secret generic citadel-core-secrets -n citadel-core \ --from-literal=db-password.cred="$(< /dev/urandom tr -dc 'A-Za-z0-9!@#' | head -c 32)" \ --from-literal=identity-password.cred="" # Identity files for every node kubectl create secret generic citadel-core-identity -n citadel-core \ --from-file=identity/citadel-core-0/citadel-core-0_identity.json \ --from-file=identity/citadel-core-0/citadel-core-0_private.key.age \ --from-file=identity/citadel-core-1/citadel-core-1_identity.json \ --from-file=identity/citadel-core-1/citadel-core-1_private.key.age \ --from-file=identity/citadel-core-2/citadel-core-2_identity.json \ --from-file=identity/citadel-core-2/citadel-core-2_private.key.age kubectl create configmap citadel-core-peers -n citadel-core --from-file=peers.json ``` Back up the share-store password immediately. BadgerDB encrypts the store under it at creation and it cannot be changed afterwards. In production, source both passwords from External Secrets Operator or Sealed Secrets rather than `--from-literal`. Shared configuration: ```yaml theme={null} apiVersion: v1 kind: ConfigMap metadata: name: citadel-core-config namespace: citadel-core data: config.yaml: | environment: production db_path: /app/data/db backup_dir: /app/data/backups consul: address: consul:8500 nats: url: nats://nats:4222 mpc_threshold: 2 event_initiator_pubkey: "" event_initiator_algorithm: "ed25519" chain_code: "<64-character hex>" backup_enabled: true backup_period_seconds: 300 healthcheck: enabled: true address: "0.0.0.0:8080" ``` ## Register peers in Consul ```bash theme={null} kubectl port-forward -n citadel-core svc/consul 8500:8500 & printf 'consul:\n address: localhost:8500\n' > register-config.yaml citadel-core-cli register-peers --peers ./peers.json --config ./register-config.yaml --environment production ``` Alternatively, pass `--peers=/app/peers.json` to the node at start-up (as the manifest below does) and each node syncs the registry into Consul itself. ## Deploy the StatefulSet ```yaml theme={null} apiVersion: apps/v1 kind: StatefulSet metadata: name: citadel-core namespace: citadel-core spec: replicas: 3 selector: matchLabels: { app: citadel-core } template: metadata: labels: { app: citadel-core } spec: securityContext: runAsNonRoot: true runAsUser: 65532 runAsGroup: 65532 fsGroup: 65532 containers: - name: citadel-core image: env: - name: POD_NAME valueFrom: { fieldRef: { fieldPath: metadata.name } } args: - "start" - "--name=$(POD_NAME)" - "--config=/app/config.yaml" - "--peers=/app/peers.json" - "--password-file=/app/secrets/db-password.cred" - "--identity-password-file=/app/secrets/identity-password.cred" - "--decrypt-private-key" volumeMounts: - { name: config, mountPath: /app/config.yaml, subPath: config.yaml, readOnly: true } - { name: peers, mountPath: /app/peers.json, subPath: peers.json, readOnly: true } - { name: identity, mountPath: /app/identity, readOnly: true } - { name: secrets, mountPath: /app/secrets, readOnly: true } - { name: data, mountPath: /app/data } - { name: tmp, mountPath: /tmp } securityContext: allowPrivilegeEscalation: false readOnlyRootFilesystem: true capabilities: { drop: ["ALL"] } livenessProbe: tcpSocket: { port: 8080 } initialDelaySeconds: 30 periodSeconds: 10 readinessProbe: httpGet: { path: /health, port: 8080 } initialDelaySeconds: 15 periodSeconds: 5 volumes: - { name: config, configMap: { name: citadel-core-config } } - { name: peers, configMap: { name: citadel-core-peers } } - { name: identity, secret: { secretName: citadel-core-identity, defaultMode: 0400 } } - { name: secrets, secret: { secretName: citadel-core-secrets, defaultMode: 0400 } } - { name: tmp, emptyDir: {} } volumeClaimTemplates: - metadata: { name: data } spec: accessModes: ["ReadWriteOnce"] resources: { requests: { storage: 5Gi } } ``` Use `/health` only as the **readiness** probe. It returns `503` while a node is still exchanging keys with its peers at start-up; a liveness probe on it would kill nodes that are initialising. Use a TCP probe for liveness, as above. ## Restrict network access Nodes need to reach each other, NATS and Consul, and nothing else: ```yaml theme={null} apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: citadel-core namespace: citadel-core spec: podSelector: matchLabels: { app: citadel-core } policyTypes: [Ingress, Egress] ingress: - from: [{ podSelector: { matchLabels: { app: citadel-core } } }] egress: - to: [{ podSelector: { matchLabels: { app: nats } } }] ports: [{ protocol: TCP, port: 4222 }] - to: [{ podSelector: { matchLabels: { app: consul } } }] ports: [{ protocol: TCP, port: 8500 }] ``` ## Verify ```bash theme={null} kubectl get pods -n citadel-core kubectl logs -n citadel-core citadel-core-0 --tail=50 ``` Expect the version banner, `Connected to badger kv store`, `Loaded peers from consul`, `[READY] Node is ready` and `Starting consumers`. In Consul's key-value store, `mpc_peers/` lists the three nodes. Then run a key generation from citadel-api to confirm the cluster signs end to end. The image is distroless: there is no shell inside it. To inspect a running pod, attach an ephemeral debug container: `kubectl debug -n citadel-core -it --image=busybox --target=citadel-core`. ## Next [Operate a cluster](/self-hosted/operate) covers backups, upgrades, adding nodes and recovering a lost pod; the [security checklist](/self-hosted/security-checklist) covers what to lock down before production. # Install on Linux hosts (systemd) Source: https://blockops-3855c227.mintlify.app/self-hosted/install-systemd Deploy a production citadel-core cluster as hardened systemd services on three or more Linux hosts. This guide installs citadel-core as a systemd service on each host of a three-node cluster. It is the production path for bare-metal or virtual-machine deployments; for containers see [Kubernetes](/self-hosted/install-kubernetes) or [ECS](/self-hosted/install-ecs). ## Prerequisites * **At least three Linux hosts** with network connectivity between them. ARM hosts are supported. * A production **NATS** cluster with JetStream, TLS and credentials, reachable from every host. * A production **Consul** cluster reachable from every host. * `git` and `mkcert` (or your own CA) for TLS material; `age` if you encrypt identity keys. * The citadel-core binaries from Blockops, installed to `/usr/local/bin/citadel-core` and `/usr/local/bin/citadel-core-cli`. Every command below that generates key material (peers, identities, the initiator key, passwords, the chain code) produces secrets that protect customer funds. Run them on a secure workstation, store the outputs in your secrets manager, and never leave copies in shell history or shared directories. ## Install ```bash theme={null} sudo useradd -r -s /bin/false -d /opt/citadel-core -c "citadel-core MPC node" citadel-core sudo mkdir -p /opt/citadel-core /etc/citadel-core # Application data: service-owned sudo chown -R citadel-core:citadel-core /opt/citadel-core sudo chmod 750 /opt/citadel-core sudo chmod g+s /opt/citadel-core # Configuration: root-controlled, service-readable sudo chown root:citadel-core /etc/citadel-core sudo chmod 750 /etc/citadel-core ``` ```bash theme={null} cd /opt/citadel-core citadel-core-cli generate-peers -n 3 ``` This writes `peers.json`, mapping `node0`, `node1` and `node2` to random IDs. Copy the same file to `/opt/citadel-core/peers.json` on every host; the registry must be identical everywhere. ```bash theme={null} citadel-core-cli generate-initiator --encrypt ``` This produces `event_initiator.identity.json` (public key) and `event_initiator.key.age` (encrypted private key). The private key goes to the system that initiates MPC operations, citadel-api. The public key goes into every node's configuration in the next step. Copy the production template to `/etc/citadel-core/config.yaml` and set: * `nats.url`, `nats.username`, `nats.password` and the `nats.tls` certificate paths * `consul.address` and its credentials * `mpc_threshold`: `2` for a three-node cluster * `event_initiator_pubkey`: the `public_key` from `event_initiator.identity.json` * `chain_code`: one value generated with `openssl rand -hex 32`, **identical on every node** * `environment: production` Then lock the file down: ```bash theme={null} sudo chown root:citadel-core /etc/citadel-core/config.yaml sudo chmod 640 /etc/citadel-core/config.yaml ``` The [configuration reference](/self-hosted/configuration) explains each key. ```bash theme={null} citadel-core-cli register-peers --config /etc/citadel-core/config.yaml --environment production citadel-core-cli generate-identity --node node0 --encrypt # node1, node2 on the other hosts ``` `generate-identity` writes `identity/node0_identity.json` and `identity/node0_private.key.age`. Copy **every node's `*_identity.json`** (never the private key) into `/opt/citadel-core/identity/` on every host, so each node can verify its peers. Place the NATS client certificate, key and CA under `/opt/citadel-core/certs/` (`client-cert.pem`, `client-key.pem`, `rootCA.pem`) and reference them from `nats.tls` in the configuration. The share store is encrypted under a password that is supplied to the service through systemd's encrypted credentials, not written to the configuration file. Blockops' `setup-citadel-core-cred.sh` prompts for the password and seals it for the unit. Back the password up in your secrets manager before starting the node. The share store cannot be opened without it, and it cannot be changed after the database is created. ```bash theme={null} sudo ./setup-config.sh sudo systemctl status citadel-core journalctl -f -u citadel-core ``` A healthy start logs, in order: the version banner, `Connected to badger kv store`, `Loaded peers from consul`, `[READY] Node is ready`, `Starting consumers`. ## The service unit The unit installed by `setup-config.sh` runs the node as the unprivileged `citadel-core` user with the configuration directory read-only and the data directory writable, and applies systemd hardening: ```ini theme={null} [Service] User=citadel-core Group=citadel-core WorkingDirectory=/opt/citadel-core ExecStart=/usr/local/bin/citadel-core start --name ${CITADEL_CORE_NODE_NAME} \ --config /etc/citadel-core/config.yaml \ --password-file=%d/citadel-core-db-password.cred EnvironmentFile=/opt/citadel-core/.env Restart=always RestartSec=20 NoNewPrivileges=yes PrivateTmp=yes ProtectSystem=full ProtectHome=yes ReadOnlyPaths=/etc/citadel-core ReadWritePaths=/opt/citadel-core CapabilityBoundingSet=CAP_DAC_READ_SEARCH SystemCallFilter=@system-service SystemCallFilter=~@privileged @resources ``` `CITADEL_CORE_NODE_NAME` is set in `/opt/citadel-core/.env` on each host (`node0`, `node1`, `node2`). ## Resulting layout ```text theme={null} /opt/citadel-core/ application home (citadel-core:citadel-core, 750) ├── certs/ NATS TLS material ├── db/ encrypted share store (created on first start) ├── backups/ encrypted backups (created automatically) ├── identity/ every node's *_identity.json + this node's private key ├── peers.json └── .env CITADEL_CORE_NODE_NAME /etc/citadel-core/ configuration (root:citadel-core, 750) └── config.yaml (root:citadel-core, 640) ``` ## Next Continue with [Operate a cluster](/self-hosted/operate) for health checks, backups, upgrades and recovery, and confirm the [security checklist](/self-hosted/security-checklist) before the cluster holds production shares. # Operate a cluster Source: https://blockops-3855c227.mintlify.app/self-hosted/operate Health, logs, backups, upgrades, adding nodes and recovering a lost node in a self-hosted citadel-core cluster. ## Health Each node can serve `GET /health` (enable `healthcheck` in the configuration). It returns `200` when the node has connected to NATS and Consul and finished exchanging keys with its peers, and `503` until then, so use it for readiness, not liveness. Consul's key-value store shows which nodes are registered (`mpc_peers/`) and which are ready (`mpc_ready/`). A node's start-up sequence in the logs is: version banner → `Connected to badger kv store` → `Loaded peers from consul` → `[READY] Node is ready` → `Starting consumers`. Anything that stops short of `[READY]` is a configuration, identity or connectivity problem. ## Logs Logs go to standard output (containers) or the systemd journal (`journalctl -u citadel-core`). Search for `keygen` and `signing` with `success` to confirm operations, and for `error` to find failures. `--debug` at start-up adds protocol-level detail; do not leave it on in production. ## Backups With `backup_enabled: true` (the default) each node writes an encrypted backup of its share store to `backup_dir` every `backup_period_seconds`. The backups are encrypted with the same password as the store. Copy them off the host on a schedule, a CronJob to object storage on Kubernetes, AWS Backup on EFS for ECS, or your existing backup tooling for hosts. Three things must be backed up together, because each is useless without the others: 1. the share-store backups; 2. the node's identity files (public and private); 3. the share-store password and identity password, held in your secrets manager. A lost share-store password means the node's shares are gone. The remaining nodes can still sign if they meet the threshold, and the lost node can be replaced by resharing, but that only works while enough nodes remain. Losing more than `n − t` nodes' shares or passwords is unrecoverable. ## Restore a node's share store ```bash theme={null} citadel-core-cli recover --backup-dir --recovery-path [--force] ``` Stop the node, run `recover` with the backup directory and the store path from `db_path`, supply the password, and start the node again. It rejoins with the shares it had at the time of the backup. ## Upgrades Upgrades are coordinated across the cluster: a signing session needs `t` nodes on compatible versions. Blockops publishes release notes with each version that say whether the protocol changed. * **Kubernetes:** update the StatefulSet image; the rolling update restarts one pod at a time while the others keep signing. * **ECS:** update each service's task definition in turn. * **systemd:** replace the binaries and `systemctl restart citadel-core` one host at a time. Restart nodes one at a time and wait for `[READY]` before moving on, so the cluster never drops below threshold. For a release that changes the protocol, schedule a maintenance window and follow the release's resharing instructions. ## Add a node or change the threshold 1. Add the new node to `peers.json` and distribute the file. 2. Generate the new node's identity; distribute its `*_identity.json` to every existing node and every node's identity file to it. 3. Register the updated peers in Consul (or start the new node with `--peers`). 4. Deploy the new node. 5. Run a **reshare** from citadel-api so every wallet's shares are regenerated for the new set of nodes. Resharing keeps every wallet's public key and addresses; only the shares change. 6. If the threshold changes, update `mpc_threshold` on every node and restart them one at a time. The same procedure retires a node: remove it from the registry, reshare to the smaller set, then decommission it and destroy its share store. ## Recover a lost node If a node's storage is lost but its identity and passwords are intact, redeploy it with an empty store and reshare from citadel-api; the other nodes regenerate its shares. On Kubernetes, deleting the pod (and, if corrupted, its persistent volume claim) makes the StatefulSet recreate it. If the identity is lost as well, treat it as a new node. ## Full cluster restart Stop every node, then start them again; on Kubernetes scale the StatefulSet to `0` and back to `3`. Nodes re-establish their peer sessions at start-up. Signing requests that arrive while the cluster is below threshold fail and are reported to citadel-api as failed, nothing is queued silently. ## Threshold not met `insufficient participants` in the logs means fewer than `t` nodes were ready when a request arrived. Check that every pod or service is running, that all nodes are registered in Consul, and that `mpc_threshold` matches the cluster size. # Self-hosted signing Source: https://blockops-3855c227.mintlify.app/self-hosted/overview What you run when your institution operates its own citadel-core signing nodes, and what Blockops provides. In the **hybrid** and **self-hosted** [deployment models](/overview/deployment-models), your institution operates some or all of the signing nodes. Each node runs **citadel-core**, the MPC node software, and holds one share of every wallet key. This section is the operator's guide: what to provision, how to install, how to configure, and how to run the cluster day to day. ## What a signing cluster is A cluster is `n` citadel-core nodes with a signing threshold `t`, where `t ≥ ⌊n/2⌋ + 1`. Key generation, signing and resharing are protocols run between the nodes; a private key is never assembled in one place. The nodes talk to each other over a **NATS** message broker and find each other through **Consul**. Every message between nodes is signed with the sending node's Ed25519 identity and encrypted to the receiving node. Each node needs: | Component | Purpose | | :---------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **Identity** | An Ed25519 key pair unique to the node. The public half is shared with every peer; the private half stays on the node, optionally encrypted at rest with `age`. | | **Share store** | An embedded BadgerDB database, encrypted with AES-256 under a password you set, holding the node's key shares. | | **Configuration** | A `config.yaml` with the cluster threshold, the initiator's public key, the shared chain code and the NATS and Consul connection details. | | **Peer registry** | A `peers.json` listing every node's name and ID, mirrored into Consul. | ## Who initiates operations Nodes do not act on their own. Key generation, signing and resharing requests arrive on NATS from the **event initiator** (in practice citadel-api, the wallet API) and every request is signed with the initiator's key. Nodes verify that signature against the `event_initiator_pubkey` in their configuration and drop anything that does not match. Optionally, a set of named **authorizers** can be required to co-sign each request. This is the boundary between the control plane and the signing plane: the API decides *whether* a transaction may be signed (policy, approvals, limits); the nodes decide only *that the request is authentic* before contributing their share. ## What Blockops provides * The citadel-core binaries and container image for self-hosted customers. * The `citadel-core-cli` tool for generating peers, identities and initiator keys, and for recovering a share store from backup. * Deployment guides for [systemd on Linux hosts](/self-hosted/install-systemd), [Kubernetes](/self-hosted/install-kubernetes) and [AWS ECS Fargate](/self-hosted/install-ecs). * Upgrade notes with each release, and support through [hello@blockops.network](mailto:hello@blockops.network). ## What your operators own * The hosts, cluster or cloud account the nodes run in, and the NATS and Consul services they depend on. * The identity passwords, the share-store password and the chain code: if these are lost, the node's shares cannot be recovered. * Backups of the share store and identity files, and their restore. * Network controls between nodes and to NATS and Consul, and the TLS material for NATS. The [security checklist](/self-hosted/security-checklist) lists these controls in a form you can hand to a reviewer. ## Start here Three nodes as hardened systemd services. A StatefulSet with secrets, network policy and probes. Fargate tasks with Secrets Manager, S3 and EFS. Every `config.yaml` key, environment override and command-line flag. # Security checklist Source: https://blockops-3855c227.mintlify.app/self-hosted/security-checklist The controls a self-hosted citadel-core deployment must have in place before it holds production key shares. Use this list before the cluster generates its first production key, and again at each review. Every item is something the platform expects your operators to own in the hybrid and self-hosted models; none of it is enforced by Blockops on your behalf. ## Key material * [ ] Peer registry, identities, initiator key, authorizer keys, passwords and the chain code were generated on a secure, ephemeral workstation that was wiped afterwards. * [ ] Node private keys are encrypted at rest (`generate-identity --encrypt`) and decrypted only in memory at start-up. * [ ] The initiator's private key lives only with citadel-api; no node has a copy. * [ ] Share-store passwords and identity passwords are in a secrets manager, never in `config.yaml`, task definitions, environment variables, images or version control. * [ ] The chain code is stored with the same care as a password and is identical on every node. * [ ] Backups of the share store, identity files and passwords exist, are tested by an actual restore, and are stored separately from the nodes. ## Hosts and containers * [ ] Nodes run as an unprivileged user (`citadel-core` on hosts, UID `65532` in containers) with a read-only root filesystem and all capabilities dropped. * [ ] The configuration directory is root-owned and read-only to the service; only the data directory is writable. * [ ] On hosts, the systemd unit keeps `NoNewPrivileges`, `ProtectSystem`, `ProtectHome`, `PrivateTmp` and the system-call filter from the unit Blockops provides. * [ ] Nodes run on infrastructure with no public IP address, in private subnets or an isolated namespace. * [ ] Storage holding the share store is encrypted at rest at the platform level as well (EFS encryption, encrypted persistent volumes, disk encryption on hosts). ## Network * [ ] Egress from nodes is limited to NATS, Consul, and (on ECS) S3, Secrets Manager and ECR through VPC endpoints. * [ ] Ingress to nodes is limited to the other nodes (and the health port from the orchestrator). * [ ] NATS uses TLS with client certificates and credentials; `environment: production` is set so the node refuses to connect otherwise. * [ ] Consul ACLs are enabled and the nodes' token can read and write only the peer registry. ## Operations * [ ] Exactly one instance of each node runs at a time (`desired_count = 1` on ECS; a StatefulSet on Kubernetes). * [ ] Logs are retained centrally with a retention period set, and the `--debug` flag is off. * [ ] Health checks are wired to readiness, not liveness. * [ ] Upgrades are applied one node at a time and never take the cluster below threshold. * [ ] Access to hosts, the cluster and the cloud account is restricted, logged and reviewed: an operator who can read a node's memory and its password can extract a share. * [ ] The resharing and node-replacement procedures in [Operate a cluster](/self-hosted/operate) have been rehearsed. ## What this does not cover Policy, approvals, limits and the withdrawal freeze are enforced by citadel-api, not by the nodes; see [Policies & approvals](/wallets/policies-and-approvals). A compromised node cannot sign alone, but a compromised initiator key combined with a threshold of compromised nodes can; protect both. # Build programmable approval policies Source: https://blockops-3855c227.mintlify.app/solutions/compliance/build-programmable-approval-policies Design approval tiers with M-of-N groups, route held withdrawals to approvers, and integrate approvals with your own workflow tools. Approval is the control that puts a person between a request and a signature. This solution designs the approval tiers, creates the groups that staff them, and connects the "pending approval" moment to the tools your approvers already use, so a held withdrawal is seen and decided quickly. ## What you'll need * The approval matrix your policy requires (which amounts, which approvers, how many). * Approver accounts in the workspace with **Admin** or **Owner** roles. * Optionally, a workflow or chat tool that can receive webhooks. ## Components to configure | Component | Role | | :--------------------- | :------------------------------------------------------------------------------------------------------------- | | **Approval groups** | Named sets of approvers with an M-of-N requirement. | | **Approval threshold** | The amount above which a group must approve. | | **Approval events** | `withdrawal.pending_approval` and `signing.pending_approval` notify your systems the moment a request is held. | | **Console approvals** | **Approvals → Pending Withdrawals**, where approvers act. | | **Audit log** | Who approved or rejected, and when. | ## Steps Decide the amount bands and who approves each. A common shape: below X automatic within limits; X to Y one approver from *Treasury approvers*; above Y two approvers. Keep the number of distinct groups small; approvers who sit in many groups approve by habit. Under **Approval groups**, create each group with **New group**, add its members, and set **Approvers needed**. Every member must already be a workspace user with a role that can approve. Enable **Require approval to withdraw**, set **Require above amount** and select the group. A withdrawal at or above the amount moves to `pending_approval` after passing limits and destination rules; below it, no approval is requested. Register a webhook for `withdrawal.pending_approval` and `signing.pending_approval`. Post the wallet, amount, destination and a link to **Pending Withdrawals** into your approvers' channel or ticketing system. The decision itself is made in the console by a signed-in approver; the webhook only carries the notice. Approvers open **Approvals → Pending Withdrawals** and **Approve** or **Reject**. When the required number have approved, the withdrawal proceeds to signing and `signing.resumed` fires; a rejection ends it with `withdrawal.cancelled` or `signing.rejected`. The audit log records each decision with its actor. In the sandbox, confirm that a request needing two approvals does not proceed after one; that a rejection is final; and that a requester who is also an approver cannot satisfy the requirement alone if your policy forbids it. If the platform does not enforce that separation for your configuration, keep requesters out of the approving group. ## Considerations * Approvals are exercised by people in the console; there is no API to approve, so a compromised service key cannot approve its own requests. * A pending withdrawal holds its amount against the balance until decided, so a backlog of unapproved requests reduces what else can be sent. * Pair approval with **Dual control** on configuration, so the threshold cannot be raised by a single administrator to slip a payment under it. ## Related * [Define treasury policies](/solutions/compliance/define-treasury-policies) * [Govern wallet access](/solutions/custody/govern-wallet-access) * [Policies & approvals](/wallets/policies-and-approvals) # Define treasury policies Source: https://blockops-3855c227.mintlify.app/solutions/compliance/define-treasury-policies Turn a written treasury policy into limits, destination rules and approval thresholds the platform enforces on every withdrawal. A treasury policy is only as good as its enforcement. This solution maps the clauses a treasury or risk committee typically writes (who can pay whom, how much, and with whose sign-off) onto the controls the platform evaluates on every withdrawal request, before anything is signed. ## What you'll need * Your written treasury policy or the decisions it would contain. * Owner or admin access to the console with dual control enabled. * The addresses of approved counterparties. ## Components to configure | Policy clause | Platform control | | :---------------------------------------------------------- | :----------------------------------------------------------------------------------------------------- | | "Funds may only be sent to approved counterparties." | **Only allow whitelisted addresses** with the **Address Book**. | | "A new counterparty must be approved before first payment." | **New address timelock**: an address added to the whitelist becomes usable only after the hold period. | | "No single payment above X without approval." | **Require approval to withdraw** with **Require above amount** X and an approval group. | | "No more than Y per transaction / Z per day." | **Spend limit**: **Per transaction** and **Per day**. | | "Policy changes require two administrators." | **Dual control**. | | "If records and chain disagree, stop." | **On balance drift**: block, or alert only. | | "In an incident, halt all outflows." | **Freeze withdrawals** under **Emergency**. | ## Steps Turn on **Dual control** before configuring anything else, so the rest of the configuration (and any later loosening) needs a second administrator. Add every approved counterparty to the **Address Book** with a label your auditors will recognise, then enable **Only allow whitelisted addresses**. Set the **new address timelock** to the notice period your policy requires for new counterparties. Set **Per transaction** and **Per day** to your policy's ceilings. Requests above either are rejected outright, before any approval logic; approvals cannot override a limit. Enable **Require approval to withdraw**, set **Require above amount**, and choose the approval group and **Approvers needed**. Below the threshold, withdrawals proceed automatically inside the limits; above it, they wait. Choose whether a discrepancy between the platform ledger and chain state blocks withdrawals or only alerts. Regulated treasuries generally block. Replay each policy clause as a sandbox withdrawal and record the outcome (rejected, held, or allowed) as your control-test evidence. The audit log records each configuration change with the two administrators who made it. ## Considerations * The order of evaluation is: scope of the key → freeze → destination rules → limits → approval → signing. A request stops at the first control it fails and the reason is returned to the caller. * Limits are evaluated against the platform's ledger of outbound value in the asset's units; keep them per asset in mind when a treasury holds several. * Loosening a rule takes effect for new requests only; a withdrawal already held for approval is evaluated under the rules in force when it was requested. ## Related * [Build programmable approval policies](/solutions/compliance/build-programmable-approval-policies) * [Policies & approvals](/wallets/policies-and-approvals): every control in detail. * [Automate payments](/solutions/payments/automate-payments) # Accept cryptocurrencies Source: https://blockops-3855c227.mintlify.app/solutions/custody/accept-cryptocurrencies Receive digital assets into an institution's treasury with addresses whose keys no single party holds. An institution that starts accepting digital assets (from clients, counterparties or its own operations) needs addresses it can publish with confidence, a clear view of what has arrived, and assurance that the keys behind those addresses are not a single point of failure. This solution sets up a treasury wallet per asset class and the reporting around it. ## What you'll need * A workspace with an owner and at least one admin. * A decision on which networks and assets you accept; see [Supported networks](/overview/supported-networks). * Your finance team's reconciliation cadence and the format they need. ## Components to configure | Component | Role | | :----------------------- | :-------------------------------------------------------------------------------------------------------------------------- | | **Treasury wallets** | One MPC wallet per treasury function (operating, client funds, reserves), each key held as shares across the signing nodes. | | **Assets and addresses** | The networks and tokens each wallet accepts, with a deposit address per network. | | **Roles** | Viewers for finance, members for operations, admins for configuration; owners kept to a minimum. | | **Reporting** | Webhook events for real-time notice; transaction lists and CSV export for the books. | ## Steps Create one wallet per function in the console or with `POST /api/v1/wallets`. Naming them after the function (`Client funds - ETH`) keeps audit logs and reports readable. Wait for `wallet.created`. Attach each accepted asset; the platform derives the address. Publish the address from `GET /api/v1/wallets/{wallet_id}/deposit-address` or the console, never from a hand-copied value. A deposit is reported when detected and reflected in the balance when confirmed. Agree internally at what point a receipt is treated as final for each asset, and instruct operations accordingly. Invite finance users with the **Viewer** role, which sees balances, transactions and audit logs but cannot move funds or change settings. If the platform is integrated with a reporting system, issue it an API key with `balances:read` and `wallets:read` only. Export `GET /api/v1/workspaces/{workspace_id}/transactions/export` on your cadence and match it to bank-style records. Balances come from chain state, so a discrepancy is a signal to investigate, not to adjust. ## Considerations * Deposits never require approval: nothing about receiving funds moves value out. Approvals apply to outbound transfers. * Segregating client funds from operating funds is a wallet-per-function decision at setup time; moving funds between them later is an ordinary, policy-governed withdrawal. * Where keys live depends on the [deployment model](/overview/deployment-models) you chose; the receiving flow is identical in all three. ## Related * [Automate deposits](/solutions/payments/automate-deposits): an address per customer instead of per treasury. * [Govern wallet access](/solutions/custody/govern-wallet-access): who can see and do what. * [Who holds the keys](/security/who-holds-the-keys): the custody position for each model. # Embed user wallets Source: https://blockops-3855c227.mintlify.app/solutions/custody/embed-user-wallets Give each of your users a wallet inside your product, operated by your backend under your policies, with keys held as MPC shares. A fintech, exchange or wallet app can give every user a digital-asset wallet without ever holding a private key: each user gets an MPC wallet created by your backend, funds move only through your policies, and the user experience is entirely yours. ## What you'll need * A backend service that owns the user-to-wallet mapping and calls the Wallet API. * An API key for that service with `wallets:create`, `wallets:read`, `assets:attach`, `balances:read`, `withdrawals:create` and `withdrawals:read`. * Policies appropriate to user-initiated transfers (limits, whitelists, approval above a threshold). ## Components to configure | Component | Role | | :------------ | :-------------------------------------------------------------------------------- | | **Wallets** | One MPC wallet per user, created on sign-up or first use. | | **Assets** | The networks and tokens your product supports, attached per wallet. | | **Policies** | Workspace-level limits and destination rules that apply to every user withdrawal. | | **Webhooks** | Deposit and withdrawal events that update the user's view in your app. | | **Audit log** | Evidence of every wallet action for disputes and regulators. | ## Steps `POST /api/v1/wallets` with `name` set to your user identifier and an `X-Idempotency-Key` derived from it. Store `wallet_id` against the user. Show the user a "setting up" state until `wallet.created` arrives; key generation takes seconds. Attach the assets your product supports and display the address from the attach response or `GET /api/v1/wallets/{wallet_id}/deposit-address`. On EVM networks one address serves every supported token. Subscribe to `deposit.detected` and `balance.updated`; update the user's balance from the event's `wallet_id`. Read the authoritative balance from `GET /api/v1/wallets/{wallet_id}/balance/{asset_id}`. When the user initiates a transfer in your app, your backend calls `POST /api/v1/wallets/{wallet_id}/request-withdrawal` with an idempotency key tied to the user's action. Policies apply exactly as they do for a treasury withdrawal: destination rules, limits, and approval above a threshold. Surface a rejection reason to the user and a pending state while an approval is outstanding. Drive the user-facing status from `withdrawal.submitted`, `withdrawal.confirmed` and `withdrawal.failed`, and show the transaction hash once available. ## Considerations * These are **organisation-managed** wallets: your workspace, your policies, your backend's key. The user does not hold a key share and cannot transact outside your product. If your regulatory position requires the user to control the key, this solution does not apply. * Limits and whitelists are configured at workspace level and apply to all wallets; design tiers of users as separate workspaces if they need different rules. * Keep the wallet-creating service and the withdrawal-requesting service on separate keys where your architecture allows, so a compromise of one does not grant the other's capability. ## Related * [Automate deposits](/solutions/payments/automate-deposits) * [Automate payments](/solutions/payments/automate-payments) * [Wallets & accounts](/wallets/wallets-and-accounts) # Govern wallet access Source: https://blockops-3855c227.mintlify.app/solutions/custody/govern-wallet-access Decide who can see, configure and move funds, enforce it with roles, scoped keys and approval groups, and prove it from the audit log. Access governance is where a custody reviewer starts: who can move funds, who can change the rules, and how you would know. The platform separates these with workspace roles for people, scoped keys for systems, approval groups for high-value actions, and an audit log that records all of it. ## What you'll need * An owner account and the list of people and systems that need access. * Your internal segregation-of-duties policy: who may configure, who may approve, who may only view. ## Components to configure | Component | Role | | :-------------------- | :---------------------------------------------------------------------------------- | | **Roles** | Owner, admin, member and viewer for people. | | **Per-wallet access** | Restricts a member to specific wallets. | | **Scoped API keys** | Systems get only the scopes they need, bound to wallets and IP ranges, with expiry. | | **Approval groups** | Named groups with an M-of-N requirement for withdrawals above a threshold. | | **Dual control** | Four-eyes on configuration changes. | | **Audit log** | Every action, by whom, when. | ## Steps Keep **Owner** to two people at most: it is the role that can change everything, including the emergency freeze. **Admin** for those who configure policies and keys, **Member** for operators who initiate withdrawals, **Viewer** for finance, risk and audit. See [Access control](/security/access-control) for the exact capabilities of each. For members, apply **Restrict to wallet** so an operator sees and acts on the wallets of their desk only. A member with no restriction can see every wallet in the workspace. Never share a person's credentials with a system. Create an API key per integration with the minimum scopes (`balances:read` for reporting; `withdrawals:create` bound to one wallet for a payout service; `webhooks:manage` for the integration that registers endpoints), an IP allowlist and an expiry. Rotate by creating the replacement first, then revoking. Under **Approval groups**, create a group for each approval tier, for example *Treasury approvers* with three members and **Approvers needed** set to two. Then set **Require approval to withdraw** with the amount above which the group must sign off. Enable **Dual control** so that changing a limit, a whitelist or an approval rule needs a second admin. This closes the path where one administrator loosens a rule and then acts under it. `GET /api/v1/workspaces/{workspace_id}/audit-logs`, or **Audit Log** in the console, lists approvals and rejections, key creation and revocation, webhook changes, freezes and policy changes with actor and time. Export it to your log platform and review role and key inventories quarterly. ## Considerations * Approval is exercised in the console by a person who has signed in; an API key cannot approve. * Scopes are enforced on every request; a request outside a key's scope is rejected before any policy runs. * A revoked key stops working immediately; an expired key stops at its expiry. Neither affects withdrawals already in flight. ## Related * [Build programmable approval policies](/solutions/compliance/build-programmable-approval-policies) * [Access control](/security/access-control): roles, scopes and sign-in security in full. * [Reporting & audit](/wallets/reporting-and-audit) # Automate deposits Source: https://blockops-3855c227.mintlify.app/solutions/payments/automate-deposits Give every customer a deposit address, detect incoming funds automatically, and reconcile them without polling. A payments business needs to know, reliably and quickly, that a customer's funds have arrived. This solution creates a wallet per customer, exposes each customer's deposit address, and turns on-chain deposits into signed webhook events your ledger can consume. ## What you'll need * A sandbox or production workspace and an API key with the `wallets:create`, `wallets:read`, `assets:attach`, `balances:read` and `webhooks:manage` scopes. * An HTTPS endpoint that can receive webhook deliveries. * A place in your own system to store the mapping from customer to `wallet_id`. ## Components to configure | Component | Role | | :--------------------- | :---------------------------------------------------------------------------------------------- | | **Wallets** | One MPC wallet per customer, named after your customer identifier. | | **Assets** | The network and token each customer can deposit; attaching an asset yields the deposit address. | | **Webhooks** | `deposit.detected` and `balance.updated` tell your system that funds arrived. | | **Transaction ledger** | The per-wallet and per-workspace transaction lists and CSV export for reconciliation. | ## Steps `POST /api/v1/wallets` with the customer's identifier as `name` and an `X-Idempotency-Key` derived from it, so a retried onboarding never creates two wallets. Creation is asynchronous; store the returned `wallet_id` and wait for `wallet.created` before showing the customer an address. `PUT /api/v1/wallets/{wallet_id}/asset/{asset_id}` for each supported asset. The response carries the deposit address, derived by the platform from the wallet's key. On EVM networks one address serves the native asset and its tokens. Read it back at any time with `GET /api/v1/wallets/{wallet_id}/deposit-address`. `POST /api/v1/workspaces/{workspace_id}/webhooks` with your HTTPS URL and the events `deposit.detected`, `balance.updated` and `deposit.failed`. Fetch the workspace's verification key from `GET /api/v1/workspaces/{workspace_id}/webhook-verification-key` and verify the Ed25519 signature on every delivery before acting on it. Map the event's `wallet_id` back to the customer and credit your ledger. Deliveries are retried up to ten times with increasing back-off when your endpoint does not return `2xx`, so make the handler idempotent on the event's identifiers. Compare your ledger against `GET /api/v1/workspaces/{workspace_id}/transactions` (or the CSV from `/transactions/export`) and each wallet's `GET /api/v1/wallets/{wallet_id}/balance/{asset_id}`. Balances are read from the chain, so the platform's numbers are the source of truth for what is actually held. ## Considerations * Detection and confirmation are distinct: `deposit.detected` means the transfer was seen; the balance reflects it once it is confirmed. Decide which one your product credits on, based on the amount and your risk appetite. * Sweeping customer deposits into a treasury wallet is an outbound transfer like any other (see [Automate payments](/solutions/payments/automate-payments)) and is subject to your policies. * Give the API key that creates wallets no withdrawal scope. Keys are scoped per capability; a deposit service never needs `withdrawals:create`. ## Related * [Accept cryptocurrencies](/solutions/custody/accept-cryptocurrencies): a single treasury address rather than one per customer. * [Embed user wallets](/solutions/custody/embed-user-wallets): when customers also send from their wallets. * [Webhooks & events](/wallets/webhooks-and-events): the full event catalogue and delivery rules. # Automate payments Source: https://blockops-3855c227.mintlify.app/solutions/payments/automate-payments Send payouts from a treasury wallet under policy, with a service key that can do nothing else. Payouts (supplier settlements, customer withdrawals, partner disbursements) are the highest-risk operation a payments business automates. This solution runs them from your backend with an API key that can only request withdrawals from one wallet, inside limits and whitelists the platform enforces, with human approval above a threshold. ## What you'll need * A treasury wallet with the payout asset attached and funded. * Owner or admin access to the console to set policies and create the service key. * The list of destination addresses you pay, if you intend to whitelist them. ## Components to configure | Component | Role | | :--------------------- | :------------------------------------------------------------------------------------------------------------------------------------------ | | **Service API key** | Scoped to `withdrawals:create` and `withdrawals:read`, bound to the treasury wallet, restricted to your backend's IP range, with an expiry. | | **Address whitelist** | Only known destinations can receive funds; new entries wait out a timelock before they are usable. | | **Spend limits** | A per-transaction ceiling and a daily ceiling, evaluated on every request. | | **Approval threshold** | Payouts above an amount are held for an approval group. | | **Webhooks** | `withdrawal.*` events drive your payout state machine. | | **Withdrawal freeze** | The emergency stop that fails every payout closed. | ## Steps Under **Account Settings → Security & Approvals**, enable **Only allow whitelisted addresses** and add your destinations to the **Address Book**; set **Per transaction** and **Per day** limits under **Spend limit**; and enable **Require approval to withdraw** with a **Require above amount** threshold and the approval group that must sign off. Set **On balance drift** to the behaviour you want if the on-chain balance disagrees with the ledger. In **Developer**, create an API key with scopes `withdrawals:create` and `withdrawals:read`, restrict it to the treasury wallet, allowlist your backend's IP range and set an expiry. Store the secret in your secrets manager; it is shown once. `POST /api/v1/wallets/{wallet_id}/request-withdrawal` with `asset_id`, `amount` and `recipient_address`, and an `X-Idempotency-Key` equal to your payout's own identifier. A retry after a timeout returns the original result instead of paying twice. Rejections come back immediately with a reason: destination not whitelisted, limit exceeded, withdrawals frozen (`423`). Subscribe to `withdrawal.created`, `withdrawal.pending_approval`, `withdrawal.submitted`, `withdrawal.confirmed`, `withdrawal.completed`, `withdrawal.failed` and `withdrawal.cancelled`. Treat `confirmed` as settled. Reconcile with `GET /api/v1/withdrawals/{withdrawal_id}`, which carries the transaction hash and block once broadcast. Confirm that an owner can reach **Security & Approvals → Emergency → Freeze withdrawals** quickly, and that your backend handles the `423` that follows without retrying in a loop. Unfreeze is a deliberate, audited action. ## Considerations * Amounts are strings in the asset's units; never send floating-point numbers. * A payout that needs approval stays `pending` until an approver acts in the console. Design for that latency: hold the customer-facing status at "processing" rather than failing. * Daily limits reset on the platform's day boundary; size them to your real volume plus headroom, not to the maximum you could imagine paying. * Stablecoin payouts on EVM networks are token transfers from the same wallet and address as the native asset. ## Related * [Define treasury policies](/solutions/compliance/define-treasury-policies): the full set of limits and destination rules. * [Build programmable approval policies](/solutions/compliance/build-programmable-approval-policies): designing the approval tier. * [Transactions & signing](/wallets/transactions-and-signing): every state a withdrawal passes through. # MPC Wallet Infrastructure Source: https://blockops-3855c227.mintlify.app/wallets/overview Create wallets, receive and send funds, enforce policy and approvals, and receive signed events through an API built for server-to-server use and a console for the people who govern it. MPC Wallet Infrastructure gives an institution wallets whose keys never exist in one place, an API to operate them from its own systems, and the controls a treasury or compliance function expects: policies, approvals, limits, an emergency stop, and a complete audit trail. ## The pieces | Component | Role | | :--------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **citadel-api** | The control plane your systems integrate with. Authenticates requests, enforces policy, records every operation, and orchestrates signing and chain operations. | | **citadel-core** | The MPC signing cluster. Generates keys as shares and signs with a threshold of nodes. Runs in Blockops infrastructure, yours, or both; see [Deployment models](/overview/deployment-models). | | **Console** | Where people manage the workspace: approve requests, set policies and limits, manage members and API keys, register webhooks, and read the audit trail. | ## What you can do Create MPC wallets, attach assets, get deposit addresses, read balances. Request withdrawals, follow them from request to confirmation, sign digests. Spend limits, whitelists, approval groups, dual control, the kill switch. Signed delivery of every wallet, deposit, withdrawal and approval event. Transaction history and export, balances, analytics, the audit trail. Roles for people, scopes for keys, per-wallet access. ## Authentication Requests to the API are signed with **HMAC-SHA256** using an API key and its secret. Three headers are sent with every request: | Header | Value | | :----------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ACCESS-API-KEY` | The API key. | | `ACCESS-TIMESTAMP` | Unix time in seconds. Requests more than five minutes from server time are rejected. | | `ACCESS-SIGN` | `base64(hex(HMAC-SHA256(secret, message)))` where `message` is `method=&path=×tamp=&body=`. `PATH` includes `/api/v1`; `BODY` is empty for `GET`. | Keys are created in the console under **Developer → API Key** with the scopes, wallet binding, IP allowlist and expiry you choose. The secret is shown once. See [Access control](/security/access-control). ## Conventions * **Base path**: all routes are under `/api/v1`. * **Response envelope**: every response is `{"success": bool, "message": string, "code": int, "data": …}`. * **Request IDs**: every response carries an `X-Request-ID` header; send your own to have it echoed back and recorded. * **Idempotency**: send `X-Idempotency-Key` on wallet creation and withdrawal requests. Repeating a request with the same key returns the original operation and never creates a second one. * **Identifiers**: workspaces, wallets, catalog assets, withdrawals and signing requests are UUIDs. Catalog asset IDs are never contract addresses. * **Asynchronous operations**: wallet creation and withdrawals return immediately with a status; you poll or subscribe to webhooks for completion. ## Environments Integrate against the **sandbox** at `wallet-sandbox.blockops.network`, which runs on Ethereum Sepolia, before moving to production. Sandbox and production use the same API; only credentials and networks differ. Request sandbox credentials from [hello@blockops.network](mailto:hello@blockops.network), then follow the [quickstart](/get-started/first-wallet-and-transaction). # Policies & approvals Source: https://blockops-3855c227.mintlify.app/wallets/policies-and-approvals Workspace controls on the movement of funds: approval requirements, dual control, whitelists, limits, and the kill switch. Controls apply in the workspace, on top of every API key's scopes. They are set by admins in the console under **Account Settings → Security & Approvals** and on the **Policies** page, and every change is written to the audit trail. ## Approval requirements | Control | Effect | | :----------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **Require approval to withdraw** | Every withdrawal is held for the chosen approval group. | | **Require above amount** | Only withdrawals at or above this amount are held; `0` means always. | | **Approvers needed** | The number of approvals a held request needs. | | **Require dual control (four-eyes)** | The person who initiated a request cannot approve it. With this off, one person can initiate and approve, suitable for solo teams only, and the console says so. | A withdrawal that matches no policy still falls under these settings when approval is required: the platform defaults to holding it, not to letting it through. ## Policies A policy routes matching withdrawals to an approval group. Create one on the **Policies** page with a name, a description, the approval group, and its rules: | Rule | Parameters | Holds a withdrawal when | | :-------------------- | :------------------------------------------------ | :-------------------------------- | | **Spend limit** | Per asset: a limit in the asset's units or in USD | The amount exceeds the limit. | | **Address whitelist** | External addresses and address-book entries | The recipient is not on the list. | Policies can also be managed through the API by an admin key: ```bash theme={null} GET|POST /api/v1/workspaces/{workspace_id}/policies GET|PUT|DELETE /api/v1/workspaces/{workspace_id}/policies/{policy_id} ``` ## Approval groups An approval group is a set of workspace members and a threshold: the number of approvals a request needs. Create groups on the **Policies** page (**New group**: name, required approvals) and add members to them. Groups are referenced by policies and by the workspace approval requirement. ```bash theme={null} GET|POST /api/v1/workspaces/{workspace_id}/approval-groups POST /api/v1/workspaces/{workspace_id}/approval-groups/{group_id}/members PUT /api/v1/workspaces/{workspace_id}/approval-groups/{group_id}/threshold ``` ## Approving and rejecting Held requests appear on the **Approvals** page, in three tabs: **Pending Withdrawals**, **DApp Transactions** (typed signing requests) and **Approval Group Request**. Each row shows the asset, wallet, amount, requester and recipient; a member of the group approves or rejects it. Once the threshold is met the withdrawal continues to signing; a rejection fails it with the reason recorded. The approver's identity is taken from their console session, never from the request. Under dual control, the requester's own approval is refused. ```bash theme={null} GET /api/v1/workspaces/{workspace_id}/approval-requests PUT /api/v1/workspaces/{workspace_id}/approval-requests/{request_id}/approve PUT /api/v1/workspaces/{workspace_id}/approval-requests/{request_id}/reject ``` ## Destinations | Control | Effect | | :----------------------------------- | :---------------------------------------------------------------------------------------------- | | **Only allow whitelisted addresses** | Withdrawals may go only to recipients in the workspace address book. Anything else is rejected. | | **New-address hold (hours)** | A recipient added to the address book cannot receive funds until this many hours have passed. | The address book is managed in the console under **Address Book**. ## Limits | Control | Effect | | :------------------ | :-------------------------------------------------------------------------------------------------------------- | | **Per transaction** | A withdrawal above this amount is rejected outright. `0` means no limit. | | **Per day** | The sum of a wallet asset's withdrawals over a rolling 24 hours may not exceed this amount. `0` means no limit. | Limits reject; policies hold for approval. Use both: a limit for the amount that should never move without a settings change, a policy for the amount that needs a second person. ## Emergency: the kill switch An admin can **Freeze** all withdrawals in the workspace from **Security & Approvals → Emergency**, with a reason (for example, suspected key compromise). While frozen: * every withdrawal request is rejected with HTTP `423`; * the freeze and its reason are visible to all members; * the check fails closed: if the platform cannot read the freeze state, it blocks the withdrawal. **Unfreeze** restores normal operation. Both actions are recorded in the audit trail with the acting admin. **On balance drift** sets what happens when reconciliation finds a wallet's on-chain balance disagreeing with the platform's record: **Freeze withdrawals** or **Alert only**. ```bash theme={null} GET|PUT /api/v1/workspaces/{workspace_id}/governance POST /api/v1/workspaces/{workspace_id}/governance/freeze {"frozen": true, "reason": "…"} ``` # Reporting & audit trail Source: https://blockops-3855c227.mintlify.app/wallets/reporting-and-audit Transaction history and export, balances and analytics, and the audit log of who did what in the workspace. ## Transaction history Every deposit and withdrawal is a transaction with a direction, asset, amount, status and (once on chain) a transaction hash. History is available per wallet and per workspace, in the console under **Transactions** and through the API: ```bash theme={null} GET /api/v1/wallets/{wallet_id}/transactions GET /api/v1/workspaces/{workspace_id}/transactions # ?status=&offset=&limit=&sort_by=&sort_order= GET /api/v1/workspaces/{workspace_id}/transaction-details/{transaction_id} GET /api/v1/workspaces/{workspace_id}/transactions/export # CSV; 1000 rows unless limit is set ``` Transaction detail resolves by the platform's transaction ID or by the on-chain hash, and links to the network's block explorer. ## Withdrawals Withdrawal records carry the full lifecycle: request, approval decisions, signing, broadcast, receipt and confirmation state, with `status_reason` on every transition. ```bash theme={null} GET /api/v1/wallets/{wallet_id}/withdrawals GET /api/v1/wallets/{wallet_id}/withdrawals/count # ?status= GET /api/v1/workspaces/{workspace_id}/withdrawals GET /api/v1/workspaces/{workspace_id}/withdrawals/count ``` ## Balances and analytics Balances are chain-observed snapshots per wallet asset, showing the available amount and what is held by in-flight withdrawals. The console's **Analytics** page and the workspace statistics routes give totals and daily volumes across the workspace, with asset prices from the platform's price feed. ```bash theme={null} GET /api/v1/wallets/{wallet_id}/overview GET /api/v1/workspaces/{workspace_id}/stats GET /api/v1/workspaces/{workspace_id}/portfolio ``` ## Audit trail Sensitive actions are recorded as audit events with the actor, the action, the resource and the time, and are available under **Audit Log** in the console and to admin keys through the API. Recorded actions include member and role changes, policy and approval-group changes, approvals and rejections, API-key creation and revocation, webhook and alert-channel changes, and freezing or unfreezing withdrawals. ```bash theme={null} GET /api/v1/workspaces/{workspace_id}/audit-logs # ?actor_id=&action=&resource_type=&resource_id=&wallet_id=&offset=&limit= ``` ## Tracing an operation Every operation carries stable identifiers that appear in responses, events, logs and audit records: the request ID, workspace, wallet, withdrawal, signing request, the signing cluster's correlation ID, and the transaction hash. An incident can be followed from the API call that started it to the block that confirmed it. ## Notifications Beyond webhooks, members receive in-app notifications in the console, and a workspace can link a **Telegram** channel under **Account Settings → Alert Channels** to mirror wallet events to a team chat. # Transactions & signing Source: https://blockops-3855c227.mintlify.app/wallets/transactions-and-signing Request a withdrawal, follow it from request through approval, signing, broadcast and confirmation, and sign digests directly. ## Request a withdrawal ```bash theme={null} curl -X POST https:///api/v1/wallets/{wallet_id}/request-withdrawal \ -H "ACCESS-API-KEY: $KEY" -H "ACCESS-TIMESTAMP: $TS" -H "ACCESS-SIGN: $SIG" \ -H "X-Idempotency-Key: 0c41…" \ -H "Content-Type: application/json" \ -d '{"asset_id": "", "amount": "0.25", "recipient_address": "0x…"}' ``` The response is the withdrawal operation with its `withdrawal_id` and initial status. Before anything is signed, the API: * checks the key's scope (`withdrawals:create`) and wallet binding; * validates the recipient (EIP-55 checksum) and confirms the network's chain ID matches the asset; * reserves the amount plus fee against the available balance, so concurrent requests cannot overspend; * applies workspace controls: the kill switch, destination whitelist and new-address hold, per-transaction and daily limits; * evaluates policies and, if one matches or approval is required, holds the withdrawal for the approval group. Repeating the request with the same `X-Idempotency-Key` returns the original withdrawal. **In the console:** open the wallet → **Withdrawal** → asset, amount (or **MAX**), recipient. The console shows the planned amount and an estimated network fee before you submit. ## Lifecycle | Status | Meaning | Event | | :----------------- | :------------------------------------------------------------------------------------------------------------------------------------ | :--------------------------------------------- | | `pending` | Recorded and validated; being planned or signed. | `withdrawal.created`, `withdrawal.pending` | | `pending_approval` | Held for an approval group. | `withdrawal.pending_approval` | | `submitted` | Signed and broadcast; waiting for confirmations. | `withdrawal.submitted` | | `confirmed` | Receipt reached the configured confirmation depth. | `withdrawal.confirmed`, `withdrawal.completed` | | `failed` | Rejected by a control, rejected by an approver, signing failed or timed out, or the transaction reverted. `status_reason` says which. | `withdrawal.failed` | | `cancelled` | Cancelled before signing. | `withdrawal.cancelled` | What happens after approval: 1. **Planning**: the API builds the transaction from trusted state: current nonce, EIP-1559 fee parameters, chain ID and the validated recipient. Clients never supply a transaction or a signing hash on this path. 2. **Signing**: a signing request goes to the cluster; a threshold of nodes produces the signature. The private key is never assembled. 3. **Broadcast**: the API assembles the signed transaction, verifies its hash matches the persisted withdrawal, and submits it. 4. **Confirmation**: the receipt is polled until it reaches the confirmation depth. A submitted transaction with no receipt is rebroadcast unchanged; it is never re-signed with different parameters. ## Read withdrawals and transactions ```bash theme={null} GET /api/v1/withdrawals/{withdrawal_id} GET /api/v1/wallets/{wallet_id}/withdrawals # ?status=&limit=&offset= GET /api/v1/workspaces/{workspace_id}/withdrawals GET /api/v1/wallets/{wallet_id}/transactions # deposits and withdrawals GET /api/v1/workspaces/{workspace_id}/transactions GET /api/v1/workspaces/{workspace_id}/transaction-details/{transaction_id} ``` ## Sign a digest directly For transactions your own systems build (contract calls, or networks and formats the withdrawal path does not construct) the API can sign a digest with the wallet's key while keeping the same controls. | Route | Use | | :---------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------- | | `POST /api/v1/web3/transaction/{wallet_id}/signTyped` | Sign a typed intent. The request is evaluated against policy and, when required, held for approval like a withdrawal. | | `POST /api/v1/web3/transaction/{wallet_id}/signRaw` | Sign an explicit 32-byte digest for a named network. Requires a wallet-bound key with `signing:write`. | | `GET /api/v1/web3/{wallet_id}/sign/{signing_id}` | Read the status and, when complete, the signature. Requires `signing:read`. | Signing requests carry their own status and events (`signing.created`, `signing.pending_approval`, `signing.resumed`, `signing.rejected`, `signing.failed`). The API signs what it is given; it does not build or broadcast transactions on these routes. # Wallets & accounts Source: https://blockops-3855c227.mintlify.app/wallets/wallets-and-accounts Create an MPC wallet, attach assets to get deposit addresses, receive funds, and read balances. ## Create a wallet Wallet creation is asynchronous. The API records the request and returns at once; the signing cluster then runs distributed key generation, and the wallet becomes `active` when its public key has been stored. Locally this takes seconds; allow up to a minute. ```bash theme={null} curl -X POST https:///api/v1/wallets \ -H "ACCESS-API-KEY: $KEY" -H "ACCESS-TIMESTAMP: $TS" -H "ACCESS-SIGN: $SIG" \ -H "X-Idempotency-Key: 5f9a…" \ -H "Content-Type: application/json" \ -d '{"workspace_id": "", "name": "Treasury", "wallet_type": "mpc"}' ``` The response is `202 Accepted` with a wallet operation: the new `wallet_id` and `status: "pending"`. Poll the operation until it completes: ```bash theme={null} GET /api/v1/wallets/creation-status/{wallet_id} ``` | Status | Meaning | | :---------- | :-------------------------------------------------------------------------------------------------------------------- | | `pending` | Recorded; key generation not yet published. | | `submitted` | Key generation is running on the cluster. | | `success` | The wallet is `active` and can hold assets. | | `failed` | Key generation failed or timed out; the reason is in `status_reason`. Create a new wallet with a new idempotency key. | Or subscribe to the `wallet.creation_requested` and `wallet.created` events; see [Webhooks & events](/wallets/webhooks-and-events). Repeating the `POST` with the same `X-Idempotency-Key` returns the same operation; it never starts a second key generation. **In the console:** Wallet → **Create Wallet** → choose **MPC Wallet**, name it, confirm. The console polls creation status and opens the wallet when it is ready. ## Read wallets ```bash theme={null} GET /api/v1/workspaces/{workspace_id}/wallets # list GET /api/v1/wallets/{wallet_id} # detail ``` ## Attach an asset and get a deposit address A wallet holds funds per **asset** (a network plus, for tokens, a contract). Attaching an asset derives the wallet's deposit address on that network from its public key. Asset IDs come from the catalog: ```bash theme={null} GET /api/v1/networks # supported networks GET /api/v1/assets # catalog assets, with network, decimals, native/token flag PUT /api/v1/wallets/{wallet_id}/asset/{asset_id} # attach; returns the wallet asset and its address ``` Attaching the same asset twice is idempotent. The derivation path is fixed on the server; the API does not accept client-supplied paths. Read addresses and attached assets with: ```bash theme={null} GET /api/v1/wallets/{wallet_id}/assets GET /api/v1/wallets/{wallet_id}/deposit-address?asset_id={asset_id} ``` **In the console:** open the wallet → **Receive** → choose the asset. The console attaches it if needed and shows the address and a QR code. ## Receive funds Anything sent to a deposit address is picked up by the chain scanner. A deposit is recorded as an inbound transaction when it is observed and credited to the balance once it reaches the configured confirmation depth for that asset. If the chain reorganises below that depth, the deposit is marked failed and the affected blocks are rescanned; balances are only ever credited from canonical blocks. Events: `deposit.detected`, `deposit.failed`, `balance.updated`. ## Read balances ```bash theme={null} GET /api/v1/wallets/{wallet_id}/balance/{asset_id} # one asset GET /api/v1/wallets/{wallet_id}/overview # all attached assets ``` Balances are chain-observed snapshots written by the scanner, not running totals kept by the API. Each balance shows what is available and what is held by in-flight withdrawals. If the scanner falls behind, the last known balance is returned; a stale scanner never reports zero. ## Supported networks Wallets can hold native assets and tokens on the EVM networks listed for MPC Wallet Infrastructure on [Supported networks & assets](/overview/supported-networks). Ethereum Sepolia is available in the sandbox. # Webhooks & events Source: https://blockops-3855c227.mintlify.app/wallets/webhooks-and-events Register HTTPS endpoints, verify signed deliveries, and the full catalogue of wallet, deposit, withdrawal and signing events. Webhooks tell your systems what happened without polling. Every state change in a wallet's life is written to the operation ledger first and then delivered to each endpoint subscribed to it, as a signed, retried, logged HTTP request. ## Register an endpoint In the console: **Developer → Webhook → Create Webhook**. Provide an HTTPS URL, choose **All events** or a subset, add a description, and leave **Enable Webhook** on. Endpoints must be HTTPS; plain HTTP is refused. ```bash theme={null} GET|POST /api/v1/workspaces/{workspace_id}/webhooks # webhooks:read | webhooks:manage PUT|DELETE /api/v1/workspaces/{workspace_id}/webhooks/{webhook_id} ``` ## Verify deliveries Every delivery is signed with the workspace's **Ed25519** key. Fetch the public key once and verify each delivery's signature before acting on it: ```bash theme={null} GET /api/v1/workspaces/{workspace_id}/webhook-verification-key # returns the base64 Ed25519 public key ``` Deliveries are identified by an event ID. Treat the event ID as the idempotency key on your side: a resend carries the same ID and body with new attempt metadata. ## Retries and logs A delivery that does not receive a `2xx` response within 10 seconds is retried with exponential backoff, starting at 30 seconds and capped at 15 minutes, for up to 10 attempts. Deliveries are then visible under **Developer → Webhook → Webhook Logs** with their status (`pending`, `delivering`, `success`, `failed`), attempt count and response code, and can be resent. ```bash theme={null} GET /api/v1/workspaces/{workspace_id}/webhook-logs # ?webhook_id=&status=&event_type= POST /api/v1/workspaces/{workspace_id}/webhook-logs/{delivery_id}/resend GET /api/v1/workspaces/{workspace_id}/webhook-stats ``` ## Event catalogue | Event | Sent when | | :---------------------------- | :------------------------------------------------------------------- | | `wallet.creation_requested` | A wallet creation was recorded and key generation requested. | | `wallet.created` | Key generation completed; the wallet is active. | | `wallet.asset_attached` | An asset was attached and its deposit address derived. | | `deposit.detected` | An inbound transfer was observed on chain. | | `deposit.failed` | A previously detected deposit was removed by a chain reorganisation. | | `balance.updated` | A wallet asset's balance snapshot changed. | | `withdrawal.created` | A withdrawal request was recorded. | | `withdrawal.pending` | The withdrawal passed validation and is being planned or signed. | | `withdrawal.pending_approval` | The withdrawal is held for an approval group. | | `withdrawal.submitted` | The signed transaction was broadcast. | | `withdrawal.confirmed` | The receipt reached the configured confirmation depth. | | `withdrawal.completed` | The withdrawal reached its terminal successful state. | | `withdrawal.failed` | The withdrawal was rejected, failed to sign, or reverted on chain. | | `withdrawal.cancelled` | The withdrawal was cancelled before signing. | | `signing.created` | A direct signing request was recorded. | | `signing.pending_approval` | The signing request is held for approval. | | `signing.resumed` | An approved signing request continued to the cluster. | | `signing.rejected` | An approver rejected the signing request. | | `signing.failed` | Signing failed or timed out. | Each payload carries the event type, the event ID, the workspace and the affected resource with its current state, so a consumer can act on it without a follow-up read. # Welcome to Blockops Source: https://blockops-3855c227.mintlify.app/welcome Core banking infrastructure for digital assets. Blockops is core banking infrastructure for digital assets. It gives financial institutions a single control plane for their digital asset operations: MPC-secured wallet infrastructure, governance policies and controls over every transaction, and a complete audit trail, delivered through one API and one console with institutional-grade security. Understand the core concepts behind how the Blockops platform works, and choose the custody model that fits your institution. Create an MPC wallet in the sandbox, receive test funds and send a governed withdrawal. Every endpoint of the Wallet API with request and response schemas. The trust boundaries, who holds the keys, and how the platform recovers. Questions the documentation does not answer go to [hello@blockops.network](mailto:hello@blockops.network).