For the complete documentation index, see llms.txt. This page is also available as Markdown.

Empire Treasury (Write)

Relevant write calls for Empire Treasury contracts.

Each Empire treasury contract is a Splits SmartVault ERC-4337 smart account.

The treasury address is the same on Base and Arbitrum.


Write Operations


UserOperation Flow (web app)

In the Empire Builder UI, SmartVault writes use the ERC-4337 model:

1. Build calldata (e.g. executeBatch with transfer calls)
2. Construct UserOp with the vault as sender
3. Submit to Alchemy bundler for gas estimation and paymaster sponsorship
4. Sign the UserOp hash with the owner's wallet (EIP-191)
5. Encode the signature as a V3 Signer struct
6. Submit the signed UserOp to the bundler
7. Bundler submits to EntryPoint → vault executes

Gas is sponsored by the Empire Builder paymaster. TX credits are consumed per operation.


Direct Execution (non-batched)

For single operations, the vault also exposes:

This is equivalent to a single-item executeBatch but without the array overhead.

Last updated