pnpm install- Edit the
.envfile in the root of the project and set theNETWORKenvironment variable:
NETWORK=<network> # 'btc-mainnet' | 'btc-testnet' | 'fractal-mainnet' | 'fractal-testnet'- Edit the configuration file in
configsto 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 configpnpm run textPlace the files in the data/files folder and run the following command:
pnpm run filepnpm run rune