Socios.com Connect
Chiliz ChainChiliz Labs
  • Socios.com Connect
  • INTERACT WITH CHILIZ CHAIN
    • Overview
    • Prerequisites
    • Working with Tokens
    • Working with NFTs
    • Working with Transactions
    • Working with Polls
    • Working with Staking
  • Partner API
    • Overview
    • 2025 API Update Overview
    • Prerequisites
    • Quick start
    • Authentication
    • API Reference
      • Data API
        • Data API endpoints
      • NFT API
        • NFT API endpoints
      • Ping API
      • Polls API
        • Polls API endpoints
      • Rewards API
        • Rewards API endpoints
      • User API
        • User API endpoints
      • Wallet API
        • Wallet API endpoints
  • Partner web app
    • Overview
    • Integration
    • URL parameters
    • On-Ramp Fan Tokens
Powered by GitBook
On this page
  • Retrieve a user transaction details
  • Retrieve a user transaction receipt
  1. INTERACT WITH CHILIZ CHAIN

Working with Transactions

PreviousWorking with NFTsNextWorking with Polls

Last updated 2 months ago

Make sure to implement the , or else these examples will not work!

Retrieve a user transaction details

You can retrieve details about a specific transaction. NOTE: This example only provides estimated gas fees details for the transaction.

This is a code-based alternative to the GET /user/wallet/{transactionId} endpoint, which was deprecated from the Socios.com API in Q1 2025.

async function getTransaction(txHash) {
  const transaction = await client.getTransaction({
    hash: txHash, // Replace with the actual transaction hash
  });
  return transaction;
}

// Example usage
getTransaction('0xTransactionHash').then(console.log);

Retrieve a user transaction receipt

You can retrieve a specific transaction receipt. NOTE: This example provides definitive gas fees details for the transaction.

async function getTransactionReceipt(txHash) {
  const transactionReceipt = await client.getTransactionReceipt({
    hash: txHash, // Replace with the actual transaction hash
  });
  return transactionReceipt;
}

// Example usage
getTransactionReceipt('0xTransactionHash').then(console.log);
prerequisite code