Function Signature
Description
Retrieves historical transactions for the wallet on the specified chain.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
chainId | String | Yes | The chain ID in CAIP-2 format |
limit | int | No | Maximum number of transactions to return |
offset | int | No | Number of transactions to skip (pagination) |
order | PortalTransactionOrder | No | Sort order |
PortalTransactionOrder
| Value | Description |
|---|---|
asc | Ascending order (oldest first) |
desc | Descending order (newest first) |
Returns
List<PortalTransaction> - A list of transaction objects.
PortalTransaction
| Property | Type | Description |
|---|---|---|
hash | String? | Transaction hash |
from | String? | Sender address |
to | String? | Recipient address |
value | String? | Transaction value |
blockHash | String? | Block hash |
blockNumber | String? | Block number |
blockTimestamp | String? | Block timestamp |
chainId | String? | Chain ID |
gas | String? | Gas used |
gasPrice | String? | Gas price |
input | String? | Transaction input data |
nonce | String? | Transaction nonce |
transactionIndex | String? | Index in the block |
Example
Pagination
Errors
| Code | Description |
|---|---|
NOT_INITIALIZED | Portal was not initialized |
FETCH_FAILED | Failed to fetch transactions |