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-admincan callset-pause-admin. Any other caller fails withERR_UNAUTHORIZED (u1). Read the current value with fetchPauseAdmin.The new
pause-admincan callpause-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?