Skip to main content
The sandbox runs the same code as production, on testnets. Every production release is deployed to the sandbox right after production, so the API and the MCP tools are the same. Its coins are test coins with no value. Production stays the default in these docs and the SDK. The local MCP server has no default: you name the API in HASHLOCK_API_URL. To use the sandbox, point your client at it.

Hosts

Networks

Base and Robinhood Chain have their own chain keys on the sandbox, so an MCP asset reads USDC@base-sepolia, not USDC@base. The other chains keep their production keys.

Accounts and API keys

The sandbox has its own accounts and API keys. A production key does not work on the sandbox, and a sandbox key does not work on production. A sandbox key you create starts with hk_test_. A key that an MCP client gets through OAuth starts with hk_oa_test_. Create a sandbox key in one of two ways: The hosted MCP on the sandbox signs you in with OAuth, as on production, and gives the client a sandbox key (hk_oa_test_).

Point your client at the sandbox

REST: use the base URL https://api-sandbox.hashlock.markets/v1. SDK: pass the sandbox base URL as baseUrl (TypeScript) or base_url (Python). Give the maker feed the same value.
Hosted MCP: add https://sandbox.hashlock.markets/mcp to your client. Local MCP: set HASHLOCK_API_URL to the sandbox and give every chain you settle on a testnet node. The default nodes are mainnet nodes. With a mainnet node, a sandbox settlement fails. Give the sandbox its own HASHLOCK_SECRETS_PATH, an absolute path (~ is not expanded), so its deal secrets stay out of production’s ~/.hashlock/mcp-secrets.json.
A Bitcoin key (HASHLOCK_BTC_KEY) for the sandbox is a testnet WIF. The other variables are in MCP server.

Test coins

Hashlock has no faucet. Get each network’s coin from a public faucet: GET /v1/assets on the sandbox lists the tokens it trades — public testnet tokens only, the same tokens any developer can get from public faucets:

What differs from production

  • The coins are test coins. Nothing on the sandbox has value.
  • Accounts, API keys and webhooks are separate from production’s.
  • There is no Telegram bot.
  • A production release reaches the sandbox right after production. Between releases, the sandbox runs the last one.