---
title: "Claim Transaction Parameters"
method: POST
path: "/api/v2/{portalId}/claim/params"
tags: ["Token"]
---

# Claim Transaction Parameters

`POST /api/v2/{portalId}/claim/params`

## Request

- Base URL: `https://portal-api.magna.so`
- URL: `https://portal-api.magna.so/api/v2/{portalId}/claim/params`
- Auth: none declared

Constructs transaction parameters for claiming a distribution so the user could sign it

## Path parameters

- `portalId` string, uuid, required

## Request body

- object
  - `distributionId` union, required: distribution(s) to get parameters for
    - string, uuid
    - string[]
  - `hookId` string, uuid: ID of the protocol hook to use
  - `extraData` string: Extra data for the protocol hook
  - `priorityFeeConfigType` 'MANUAL_WITH_LEVEL' | 'MANUAL_WITH_FEE' | 'AUTOMATIC'
  - `priorityFeeConfigFee` string: decimal value; required if priorityFeeConfigType is MANUAL_WITH_FEE
  - `priorityFeeConfigLevel` 'MIN' | 'LOW' | 'MEDIUM' | 'HIGH' | 'VERY_HIGH' | 'EXTREME': required if priorityFeeConfigType is MANUAL_WITH_LEVEL

## Response `200`

Ok

- object: Ok
  - `from` string, required: wallet address of the sender
  - `to` string, required: address of the contract
  - `data` string, required: data of the transaction
  - `platformFee` string, required: value of the transaction; usually 0 unless there is a claim-fee

## Other responses

- `400`: Client Error
- `404`: Not Found
- `500`: Server Error
- `502`: Upstream Error — the portal configuration service could not be reached. Safe to retry.

---

[API](https://skmtc.dev/magna/apis/magna-portal-api.md) - [All operations](https://skmtc.dev/magna/apis/magna-portal-api/llms.txt) - [OpenAPI document](https://skmtc.dev/magna/apis/magna-portal-api/revisions/50f736d73198?raw)
