AuthType

Enum specifying the sponsorship mode of a transaction.


Usage

import { AuthType } from '@stacks/transactions';

// Check if a transaction is sponsored
if (transaction.auth.authType === AuthType.Sponsored) {
  console.log('Transaction is sponsored');
}

Reference Linkarrow-up-right


Definition

enum AuthType {
  /** Standard (not sponsored) — The sender will pay fees */
  Standard = 0x04,
  /** Sponsored — The sponsor will pay fees on behalf of the sender */
  Sponsored = 0x05,
}

Values

Value
Number
Description

Standard

0x04

The transaction is not sponsored; the sender pays fees

Sponsored

0x05

The transaction is sponsored; the sponsor pays fees

Last updated

Was this helpful?