Withdrawing (on-chain)
Last updated
Last updated
You can withdraw collateral from Vertex directly on-chain, by submitting a slow-mode transaction via the Endpoint
contract (see for addresses).
Assemble the bytes needed for a withdraw collateral transaction by encoding the following struct alongside the transaction type 2
:
Submit the transaction via on our Endpoint
contract.
Once the transaction is confirmed, it may take a few seconds for it to make its way into the bro.trade offchain sequencer and for the withdrawal to be processed.