Magna API Documentation
  • Introduction
  • Authentication
  • Allocations
    • Allocation List
    • Allocation by ID
    • Claim Allocation Tokens
    • Schedule
  • Transactions
    • Transaction Signing Parameters
    • Indexing Transaction
  • Tokens
    • Tokens List
    • Token Summary
  • Nodes
  • Use Cases
  • Security Considerations
  • Webhooks
    • Getting Started
    • Register Webhooks
    • Security
    • Payload Schemas
    • FAQs
  • Claim Portal API
    • Allocations
    • Parameters
  • Protocol Hooks
Powered by GitBook
On this page

Was this helpful?

  1. Claim Portal API

Parameters

GET /api/parameters

Parameters:

  • wallet (required) (query param) → the wallet address of the user, who connected their wallet on the claim-portal

  • distributionId (required) (query param) → id of the particular distribution to claim as returned in the allocation details response

Bad Responses:

  • 400 → returned if the wallet is not provided

  • 400 → returned if the distributionId is not provided

  • 400 → the claim window is not active

  • 404 → the provided distribution is not found

Ok Response:

The valid response contains parameters that can directly be sent to the wallet for a signature. It contains:

  • from (string) → signature wallet (should be the same as the provided wallet above)

  • to (string) → address of the contract to execute against

  • data (string) → data to send in the transaction

Example:

{
	"from": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
	"to": "0xf03dfeecbafc5147241cc4c4ca20b3c9dfd04c4a",
	"data": "0x...."
}

Once the transaction is signed & submitted, TX status can be monitored and relayed to the end user per project’s own implementation and flows.

If you have any questions or need assistance - reach out the the Magna team!

PreviousAllocationsNextProtocol Hooks

Last updated 6 months ago

Was this helpful?