Skip to content

pg_algorand

Algorand address, application, asset, transaction, and checksum encoding utilities.

pg_algorand · Algorand address, application, asset, transaction, and checksum encoding utilities.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101899pg_algorandpg_algorand2.0UTILMITC

Usage

Sources:

pg_algorand Algorand address, application, asset, transaction, and checksum encoding utilities.

Enablement

Install the files for the intended server, then create pg_algorand in the target database:

CREATE EXTENSION pg_algorand;

Core Workflow

The following example is taken from the reviewed upstream documentation. Adapt object names, paths, credentials, and workload values before use.

SELECT
  COUNT(*) FROM account
WHERE
  addr = AddressTxt2Bin('ALGONODEIBJTET5OSEAXIHDSIEG7C2DOFB2WDYLRZTXN3NXVJ3NJD26L4E');

Main Objects

The reviewed install surface includes these prominent objects:

ObjectKindOperational role
AddressBin2TxtFUNCTIONCallable function from the reviewed install surface.
AddressTxt2BinFUNCTIONCallable function from the reviewed install surface.
GetNFDSigNameLSIGFUNCTIONCallable function from the reviewed install surface.
GetNFDSigRevAddressBinLSIGFUNCTIONCallable function from the reviewed install surface.
GetNFDSigRevAddressLSIGFUNCTIONCallable function from the reviewed install surface.
algoaddrTYPEUser-facing data type created by the extension.
algoaddr_inFUNCTIONCallable function from the reviewed install surface.
algoaddr_outFUNCTIONCallable function from the reviewed install surface.

Operations and Boundaries

  • Treat extension upgrades as database changes: review the upstream upgrade path, privileges, locks, and backup/restore behavior first.

Table reader