Testnet funding
Get a Hedera testnet account funded
PlanAnchor and the ATS equity token both need a funded Hedera testnet account before they can be deployed. This page is the funding step; the deploy commands live in the repository.
Fund an account
No token is issued and no contract is deployed from this app: both are commands run from a terminal with a funded key.
Step 1
Get an EVM-compatible Hedera testnet address. Foundry's encrypted keystore works well for a deploy key and never puts the raw key on a command line or in shell history:
Import a deploy key into Foundry cast wallet import detent-operator --interactiveStep 2
Open the official Hedera portal faucet (opens in a new tab) and paste that address in. It funds an EVM address with testnet HBAR once a day with no account and no sign-up, after a human check. A deploy plus a smoke test of PlanAnchor costs under 2 HBAR; issuing the ATS token through its factory costs more, roughly 40 to 120 HBAR depending on the gas limits used.
Step 3
Confirm the balance landed by searching the address on HashScan (opens in a new tab), Hedera's block explorer for chain 296.
Deploy PlanAnchor
Two Foundry commands, run from contracts/, both against the funded account from step 1.
The full deploy and smoke test commands are in contracts/README.md (opens in a new tab). Both need --legacy because the Hedera relay rejects typed transactions. After the smoke test passes, set NEXT_PUBLIC_PLAN_ANCHOR_ADDRESS to the deployed address.
Issue the ATS equity token
A separate step, through Hedera's own Asset Tokenization Studio, not through this app.
Detent reads an already issued ATS token; it does not issue one. Deploy the equity through the ATS factory following Hedera's ATS documentation (opens in a new tab) or the asset-tokenization-studio (opens in a new tab) source, add the issuer, grant KYC and add each holder to the control list, then issue balances on the default partition. Point Detent at the result with the variables below.
Environment variables
Names only, copied from .env.example. Every value in that file ships empty; nothing here is a real address or a real key.
- Chain id
- NEXT_PUBLIC_CHAIN_ID
- RPC relay
- NEXT_PUBLIC_HEDERA_RPC_URL
- ATS equity token
- NEXT_PUBLIC_ATS_TOKEN_ADDRESS
- Compliance check sender
- NEXT_PUBLIC_ATS_CHECK_FROM_ADDRESS
- Partition
- NEXT_PUBLIC_ATS_PARTITION
- PlanAnchor address
- NEXT_PUBLIC_PLAN_ANCHOR_ADDRESS
- PlanAnchor deploy key, server only
- OPERATOR_PRIVATE_KEY
Network facts
The same constants the app reads, so this page cannot drift from the running code.
- Chain
- Hedera testnet, chain 296
- RPC relay
- https://testnet.hashio.io/api