npm install
npm run build
node dist/retrytx.js --txid 0xwhatever [--network testnet | mainnet]
--network
can be testnet
or mainnet
; defaults to mainnet
.
node dist/retrytx.js --txid 0xwhatever --broadcast node-url [--network testnet | mainnet]
--network
can be testnet
or mainnet
; defaults to mainnet
.
--broadcast
: node-url
should be a valid stacks node endpoint for the network.
node dist/retrytx.js --txid 0xwhatever --fee new-fee-in-ustx \
--key secret-key [--network testnet | mainnet]
The secret key can also be specified in the $SECRET_KEY
environment
variable:
env SECRET_KEY=secret-key node dist/retrytx.js \
--txid 0xwhatever --fee new-fee-in-ustx \
[--network testnet | mainnet]
- Lightly tested on the testnet.
src/mk-sponsored.ts
: sample code to make a sponsored contract call on the testnet.