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

Part 1: one-time on-chain setup

The wallet signs five transactions before you can trade. They all come from the owner EOA. Three of them happen exactly once per sub-account; the other two are repeated each time you rotate the session key (typically daily).

The list, in the order you should run them:

  1. createSubAccounts: make the sub-account

  2. depositForAccount: fund it with collateral

  3. bindToPartyB: pin the sub-account to a hedger

  4. grantDelegation: authorize the session key

  5. grantDelegation: authorize the TPSL bot

The first three are the durable setup. Steps 4 and 5 are a pair of delegations done together; you'll repeat them every time you rotate the session key.

When all five have landed, check what's on-chain before your bot goes live.

Last updated