Part 1: one-time on-chain setup
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:
createSubAccounts: make the sub-accountdepositForAccount: fund it with collateralbindToPartyB: pin the sub-account to a hedgergrantDelegation: authorize the session keygrantDelegation: 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

