🎮
Unity
  • 👋Unity SDK
  • ⚙️Getting Started
    • ⚙️Installation
    • Basic Concepts
  • Features and Functionality
    • 🔗Phantasma Link Client
    • ☁️PhantasmaAPI
    • 📝Scriptbuilder
  • Tutorials and Examples
    • 🖥️Examples
      • Get Account Balances
      • Send a Transaction
      • Get Transaction by Hash
      • Get NFT
      • Get Multiple NFTs
      • Invoke Raw Script
      • Mint an NFT
      • Update an NFT's RAM
      • Burn an NFT
      • Send an NFT
      • Infuse an NFT
      • Mint Tokens
      • Burn Tokens
      • Transfer Tokens
      • Logging in to the Wallet
    • 📹Tutorials
  • Resources
    • 👻About Phantasma
    • 👻Getting Started
    • 🧑‍🤝‍🧑For new Soldiers
    • 👨‍💻For Developers
Powered by GitBook
On this page
  1. Tutorials and Examples
  2. Examples

Get Transaction by Hash

This example demonstrates fetching a transaction's details by its hash. The GetTransaction() method from the PhantasmaAPI class is used to retrieve the transaction details, which are then passed to the provided callback.

public void GetTransaction(string hash, Action<Transaction> callback)
{
    PhantasmaAPI api = new PhantasmaAPI("https://testnet.phantasma.io/rpc");
    StartCoroutine(api.GetTransaction(hash, callback));
}
PreviousSend a TransactionNextGet NFT

Last updated 2 years ago

🖥️