Import
Signature
Build an identity transaction for wallet ownership proof. Constructs an unsubmitted zero-amount payment transaction where sender and receiver are the payer address, flat fee is 0, firstValid is 1, and lastValid is 1000. The note field contains x402-identity:<address>:<unix_timestamp>. Because valid rounds are set to 1-1000 and fee is 0, this transaction cannot be executed or replayed on chain; it serves purely as an off-chain cryptographic signature proof.

Parameters

string
required
Algorand address proving ownership.
string
required
Network genesis hash as a base64-encoded string.
number
Optional Unix timestamp in seconds (defaults to current time).

Returns

algosdk.Transaction
Algorand Transaction instance ready for signing.

Example

Source: src/index.ts