Documentation for agents: an index at /llms.txt, every docs page in one file at /llms-full.txt, and Markdown for any docs page by adding .md to its URL.

Skip to Content
ensforgeHCA

HCA

Browse every action of the experimental @ensforge/hca package by domain, plus the route and executors that send hosted contract account calls.

21 actions · 2 domains
Since v1.0.0View source

Experimental

@ensforge/hca is experimental: its API can change in a minor release.

Every action of @ensforge/hca, by domain, and the executors that send them.

hca

ActionDescription
addDepositAdds ETH to an HCA's ERC-4337 EntryPoint deposit.
authorizeSessionAsks the owner to approve a session key for their HCA, with one signature and no transaction.
checkSessionCalls (batchable)Checks calls against the HCA session policy before anything is signed.
deployDeploys the signer's HCA through the ENS factory.
executeRuns calls from the signer's HCA as one atomic execution.
get (batchable)Reads an ENS HCA (Hosted Contract Account): its address, owner, implementation, session nonce and verification problems.
getDeposit (batchable)Reads an HCA's ERC-4337 EntryPoint deposit, which pays for its UserOperations without a paymaster.
getSession (batchable)Checks whether a stored HCA session can still be used.
getUpgrade (batchable)Checks whether an HCA may upgrade to an implementation: it must be in the DAO's upgrade set and accept the current implementation.
predictAddress (batchable)Computes the address of an owner's ENS HCA, deployed or not.
revokeSessionsInvalidates every session approval of the signer's HCA.
upgradeUpgrades the signer's HCA to an implementation the DAO's upgrade set and its own canUpgradeFrom check allow.
verify (batchable)Checks that an address is a usable ENS HCA of its owner, and returns it.
withdrawDepositWithdraws ETH from the signer's HCA EntryPoint deposit.

hcaAdmin

ActionDescription
getGovernance (batchable)Reads who governs ENS HCAs: the factory owner and whether implementations are approved.
grantUpgradeSetRolesGrants root roles on the HCA upgrade set (role admins only).
renounceGovernanceRenounces ownership of the HCA factory, freezing its implementation approvals (factory owner only).
revokeUpgradeSetRolesRevokes root roles on the HCA upgrade set (role admins only).
setDeploymentApprovalApproves or revokes an implementation for new HCA deployments (factory owner only).
setUpgradeApprovalApproves or revokes an implementation in the HCA upgrade set (role holders only).
transferGovernanceTransfers ownership of the HCA factory (factory owner only).

Was this page helpful?

On this page