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

Body

application/json
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

endpoint_url
string | null

Solana endpoint URL override

validator
string | null

Optional validator pubkey

Response

Successful Response

transaction
string
required

Base64-encoded serialized transaction

message
string
default:Transaction created successfully