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 withhk_test_. A key that an MCP client gets through OAuth starts with hk_oa_test_.
Create a sandbox key in one of two ways:
- Sign in at sandbox.hashlock.markets/developers and create it there.
- Mint it with a wallet signature, as in API keys, against
https://api-sandbox.hashlock.markets.
hk_oa_test_).
Point your client at the sandbox
REST: use the base URLhttps://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.
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.
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.