Function Signature
Description
Retrieves the full details of a specific transaction identified by its chain and signature (transaction hash). Supports EVM, EVM user operations, Solana, Bitcoin, Stellar, and Tron chains.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
chain | String | Yes | The chain ID in CAIP-2 format (e.g. eip155:1). Note: this parameter is named chain (not chainId) to match the underlying native SDK API. |
signature | String | Yes | The transaction hash or signature to look up |
Returns
PortalGetTransactionDetailsResponse — An object containing transaction metadata and chain-specific data.
PortalGetTransactionDetailsResponse
| Property | Type | Description |
|---|---|---|
chainId | String | The chain ID the transaction belongs to |
signature | String | The transaction hash or signature |
evmTransactionJson | String? | JSON string of the EVM transaction (present for standard EVM chains) |
evmUserOperationJson | String? | JSON string of the EVM user operation (present for ERC-4337 account abstraction) |
solanaTransactionJson | String? | JSON string of the Solana transaction |
bitcoinTransactionJson | String? | JSON string of the Bitcoin transaction |
stellarTransactionJson | String? | JSON string of the Stellar transaction |
tronTransactionJson | String? | JSON string of the Tron transaction |
Example
Fetch details for the most recent transaction
Errors
| Code | Description |
|---|---|
NOT_INITIALIZED | Portal was not initialized |
GET_TRANSACTION_DETAILS_ERROR | Failed to fetch the transaction details |