pnpm install
- Edit the
.env
file in the root of the project and set theNETWORK
environment variable:
NETWORK=<network> # 'btc-mainnet' | 'btc-testnet' | 'fractal-mainnet' | 'fractal-testnet'
- Edit the configuration file in
configs
to match your network:
import type { Config } from '../src/types'
const config: Config = {
/**
* API key (required)
* @see {@link https://developer.unisat.io/dashboard}
*/
apiKey: '',
/**
* RPC (optional)
*/
rpc: {
url: '',
username: '',
password: '',
},
/**
* Fee rate in satoshis per byte (optional)
*/
feeRate: 1,
/**
* Payment wallet (required)
*/
funding: {
wif: '', // WIF
address: '', // Address (optional)
},
/**
* Destination address (optional)
*/
destination: '',
/**
* Text inscription (optional)
*/
text: {
content: '',
repeat: 1,
},
/**
* Rune (optional)
*/
rune: {
id: '',
repeat: 1,
},
}
export default config
pnpm run text
Place the files in the data/files
folder and run the following command:
pnpm run file
pnpm run rune