For the complete documentation index, see llms.txt. This page is also available as Markdown.

BuildSetPauseAdminArgs

The call-specific argument of buildSetPauseAdmin: the principal to install as the new pause-admin, the role that can call pause-rewards. The builder takes it intersected with TxParams and calls pox-5 set-pause-admin.


Usage

import { buildSetPauseAdmin, fetchPauseAdmin } from '@stacks/bitcoin-staking';

const currentAdmin = await fetchPauseAdmin({ network: 'mainnet' });

const tx = await buildSetPauseAdmin({
  newAdmin: 'SP2C2YFP12AJZB4MABJBAJ55XECVS7E4PMMZ89YZR',
  publicKey: currentAdminPublicKey,
  fee: 10_000n,
  nonce,
  network: 'mainnet',
});

Notes

  • Only the current pause-admin can call set-pause-admin. Any other caller fails with ERR_UNAUTHORIZED (u1). Read the current value with fetchPauseAdmin.

  • The new pause-admin can call pause-rewards, which permanently stops signer reward claims. The contract has no unpause function.


Definition


Properties

Property
Type
Description

newAdmin

string

Standard or contract principal to install as the new pause-admin

Was this helpful?