秋田预测市场 · Discord 审计

开发者呼吁提供子账户链上预编译支持

2026-07-05 · Hyperliquid · 8 条相关讨论

Gav 2026-07-05 12:59:42

Can an agent create a subaccount?

Can an agent create a subaccount?

Gav 2026-07-05 13:10:05

Also, how are subaccounts linked to master accounts, is there any on-chain verification?

Also, how are subaccounts linked to master accounts, is there any on-chain verification?

Itay 2026-07-05 13:37:39

If you send a `userRole` info request with the subaccount address, the master account it belongs to will be returned like `{ "role": "subAccount", "data": { "master": "0x1234...abcd" } }`

If you send a `userRole` info request with the subaccount address, the master account it belongs to will be returned like `{ "role": "subAccount", "data": { "master": "0x1234...abcd" } }`

Itay 2026-07-05 13:38:40

You could also send a `subAccounts2` request with the master address and all the subaccounts will be listed.

You could also send a `subAccounts2` request with the master address and all the subaccounts will be listed.

Itay 2026-07-05 13:40:24

Yes it can

Yes it can

Gav 2026-07-05 13:41:18

I want my contract to link them, like a registry because there is no precompile to get subaccounts. But what I can't have is somebody registering an incorrect address to a master.

I want my contract to link them, like a registry because there is no precompile to get subaccounts. But what I can't have is somebody registering an incorrect address to a master.

Gav 2026-07-05 13:44:27

ie. I want to count the NAV of master + subaccounts. That's not currently possible on chain right?

ie. I want to count the NAV of master + subaccounts. That's not currently possible on chain right?

Gav 2026-07-05 15:02:55

Are any more precompiles being worked on? A masterOf(address) for subaccounts would be delightful

Are any more precompiles being worked on? A masterOf(address) for subaccounts would be delightful