Integrate via Smart Contracts
Integrating with Vertex via a Smart Contract
Last updated
Integrating with Vertex via a Smart Contract
Last updated
Smart contracts can use the LinkSigner
transaction type (see ) to perform the following:
Deposit into Vertex.
LinkSigner an externally owned account ().
Have the externally owned account trade using the smart contract's assets on Vertex.
Deposits are always on-chain, as such, users can simply have their smart contract call on our Endpoint
contract (see for addresses).
The contract needs to have 1 USDC available to pay for slow-mode fee and approve the endpoint contract, assemble the bytes for a slow mode linked signer transaction, and submit it via .
Once the transaction is confirmed, it may take a few seconds for it to make its way into the vertex offchain sequencer. Afterwards, you can sign transactions that have sender contractSubaccount
using externalSubaccount
, and they will be accepted by the sequencer and the blockchain.