TransactionDetailsApi

class TransactionDetailsApi(host: String, apiKey: String, requests: PortalRequests)

API class for multi-chain transaction detail lookups.

Calls GET /api/v3/clients/me/chains/{chain}/transactions/{signature} where both path segments are percent-encoded so that CAIP identifiers containing colons (e.g. tron:nile, bip122:…) are transmitted safely.

iOS reference: https://github.com/portal-hq/PortalSwift/pull/640

Parameters

host

The base URL of the API server.

apiKey

The API key used for authentication.

requests

An instance of PortalRequests to handle HTTP requests.

Constructors

Link copied to clipboard
constructor(host: String, apiKey: String, requests: PortalRequests)

Functions

Link copied to clipboard

Fetches the details of a single transaction on the given chain.