Skip to main content
POST
/
tx
/
delegate-ephemeral-ata
Delegate Ephemeral Ata
curl --request POST \
  --url https://privacy.magicblock.app/tx/delegate-ephemeral-ata \
  --header 'Content-Type: application/json' \
  --data '
{
  "payer": "<string>",
  "user": "<string>",
  "mint": "<string>",
  "owner_program": "<string>",
  "buffer": "<string>",
  "delegation_record": "<string>",
  "delegation_metadata": "<string>",
  "ephemeral_ata": "<string>",
  "ephemeral_ata_bump": 127,
  "cluster_url": "<string>",
  "validator": "<string>"
}
'
{
  "transaction": "<string>",
  "message": "Transaction created successfully"
}

Body

application/json

Delegate an ephemeral ATA to a DLP.

payer
string
required

Payer pubkey (signer)

user
string
required

Owner of the ephemeral ATA

mint
string
required

SPL token mint

owner_program
string
required

Program that will own the delegated account

buffer
string
required

Delegation buffer account

delegation_record
string
required

Delegation record account

delegation_metadata
string
required

Delegation metadata account

ephemeral_ata
string
required

Ephemeral ATA PDA

ephemeral_ata_bump
integer
required

Ephemeral ATA bump

Required range: 0 <= x <= 255
cluster_url
string | null

Solana cluster URL override

validator
string | null

Optional validator pubkey

Response

Response containing a serialized transaction.

transaction
string
required

Base64-encoded serialized transaction

message
string
default:Transaction created successfully