Part 1: one-time on-chain setup
Last updated
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-account
depositForAccount: fund it with collateral
bindToPartyB: pin the sub-account to a hedger
grantDelegation: authorize the session key
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

