AuthType
Usage
import { AuthType } from '@stacks/transactions';
// Check if a transaction is sponsored
if (transaction.auth.authType === AuthType.Sponsored) {
console.log('Transaction is sponsored');
}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
Last updated
Was this helpful?