> For the complete documentation index, see [llms.txt](https://docs.kanalabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kanalabs.io/smart-wallet-sdk/mirai-sdk-the-evm-smart-wallet-and-paymaster/data-service/get-transactions-details.md).

# Get Transactions Details

```typescript
import 'dotenv/config';
import { DataService } from '@kanalabs/mirai';

(async () => {

   // Define the transaction hash and chainId
   const hash = '';
   const chainId = 80001;
   const dataApiKey = process.env.DATASERVICE_API_KEY || '' as string;
   
  // initializating DataService...
  const dataService = new DataService();
   
   // Retrieve transaction details using the specified hash and chainId with your api key
   const response = await dataService.getTransaction(hash, chainId, dataApiKey);
   
   // Log the transaction response
   console.log('response', response);
})()
```
