Portal API’s convenient helper methods are designed to streamline data retrieval from the Portal REST API.
portal.api
api
property contains an instance of the PortalApi
class, which has a number of helper methods to facilitate the retrieval of relevant application data from the Portal REST API.
portal.api.getNFTs
portal.api.getAssets
portal.api.getTransactions
blockTimestamp
descending (latest transactions will come first). This includes both inbound and outbound transactions.
limit
: (Optional) The maximum number of transactions to return.offset
: (Optional) The number of transactions to skip before starting to return.order
: (Optional) Order in which to return the transactions. Either "asc"
or "desc"
.chainId
: (Optional) ID of the chain to retrieve transactions from. Defaults to your Portal instance’s chainId if not provided.portal.api.getBackupShareMetadata
id
.