Underdog Protocol
  • API Documentation
  • Quickstart
  • Guides
    • Postman
    • Endpoints
    • Authentication
    • Pagination
    • Errors
    • Webhooks
    • Architecture
  • Resources
    • Projects
      • Transferable Projects
      • Non-Transferable Projects
      • NFTs
        • List all NFTs
        • Search NFTs
        • Create an NFT
        • Retrieve an NFT
        • Update an NFT
        • Generate Claim Link
        • Revoke an NFT
        • Burn an NFT
      • Methods
        • List all Projects
        • Create a Project
        • Retrieve a Project
        • Update a Project
        • Retrieve Project Stats
    • NFTs
      • Retrieve an NFT
      • Generate Claim Transaction
    • Orgs
      • List all Orgs
    • Transactions
      • List all Transactions
      • Retrieve a Transaction
    • Webhooks
      • List all Webhooks
      • Create a Webhook
      • Delete a Webhook
    • V1
      • Collections
        • List all Collections
        • Create a Collection
        • Retrieve a Collection
      • NFTs
        • List all NFTs
        • Create an NFT
        • Retrieve an NFT
        • Update an NFT
      • Managed NFTs
        • Claim
        • Revoke
  • Examples
    • Zapier Integrations
      • Zapier + Viral Loops
      • Zapier + Github + OpenAI
      • Zapier + Github
      • Zapier + Mailchimp
      • Zapier + Shopify
      • Zapier + Calendly
      • Zapier + Hubspot
      • Zapier + Typeform
    • Underdog with Airtable
      • Create a Project
      • Create NFT on Form Submission
      • Send a Claim Link
      • Updating NFTs
    • Web3 Blog
    • Mint NFTs on iPhone
  • Use Cases
    • Solana Mobile
    • Parcl
Powered by GitBook
On this page
  1. Resources
  2. Transactions

Retrieve a Transaction

PreviousList all TransactionsNextWebhooks

Last updated 2 years ago

Example

curl "https://api.underdogprotocol.com/v1/transactions/1e10e1e9-e4df-4561-8392-70bdd5ece1d1" \
        -H "Authorization: Bearer {token}"
const axios = require('axios');

let config = {
  method: 'get',
  url: 'https://dev.underdogprotocol.com/v2/transactions/252cb616-8be6-4be7-bff2-6e2da5a1745d',
  headers: {
    'Authorization': 'Bearer {token}'
  }
};

axios(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});
Response
{
    "id": "252cb616-8be6-4be7-bff2-6e2da5a1745d",
    "status": "error",
    "type": "PROJECT_CREATE",
    "mintAddress": null,
    "walletAddress": "EBeLw5jEdrEgDe17BdKGW2MizzGxtxigEuAGvYC7VzDp",
    "createdAt": "2023-02-14T16:25:06.79322+00:00",
    "data": "{\"name\":\"Project #12\",\"orgId\":1,\"projectId\":9,\"transferable\":false}",
    "requestId": "5758c24c-45e2-44fb-abb0-a489efeb5311",
    "nft": null
}

Retrieves a Transaction

get

This endpoint allows you to retrieve a transaction by providing a transaction ID.

Authorizations
Path parameters
transactionIdstring ยท uuidRequired
Responses
200
Returns a Transaction
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
404
Not Found
application/json
get
GET /v2/transactions/:transactionId HTTP/1.1
Host: api.underdogprotocol.com
Authorization: Bearer JWT
Accept: */*
{
  "id": "text",
  "status": "text",
  "type": "text",
  "mintAddress": "text"
}
  • GETRetrieves a Transaction
  • Example