Create Zeta Cross Margin Account
Creates an unsigned transaction for creating a Zeta cross margin account tied to a user's public key. If submitting zeta transactions through bloXroute, this endpoint MUST be used.
This endpoint does not submit the transaction to the network.
This endpoint is intended for users to create their Zeta Cross Margin Account through bloXroute. From there, you can use the Zeta SDK/UI to perform different market actions using Zeta.
The endpoint allows you to specify priority fees and tips to later control the transaction inclusion and propagation. Refer to the Transaction Submission & Front-Running Protection & Transaction Bundle page for additional information about these parameters.
Request
Be aware that this endpoint is using a beta URL. https://beta-ny.solana.dex.blxrbdn.com
Method:
POST ./api/v2/zeta/cross-margin-account
Parameters:
ownerAddress
string
Solana address which is placing swap. This is used as both a payer
and a referrer
in the zeta initialization instruction.
computeLimit
number
OPTIONAL. Specifies total compute limit to be allocated for all instructions within the created tx
computePrice
number
OPTIONAL. Specifies compute price in Lamport (0.000001 SOL = 1,000 Lamport) to be included as a part of instruction, known as priority fee.
tip
uint64
OPTIONAL. Specifies a tip amount that will be used to pay for front-running protection or bundle submission services. What is tip
?
Request example:
Response Example:
Last updated