Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
bc-runes-js
Advanced tools
A package that makes use of runelib library to allow minting, etching or transferring bitcoin runes very easily, by abstracting a bit more of what runelib does, creating the whole environment and scripts for transaction signing, submitting, and waiting.
If getting addresses for the first time, run npm run generate-addresses
and a random wif with two addresses will be generated.
$ npm run generate-addresses
>> No WIF set, generating new random addresses
>> {
>> paymentAddress: 'tb1q8zem3pf9mua90czwh90grfv3jsnpdt5s43ldth',
>> ordinalsAddress: 'tb1pk9tupncu3xx53qgrckmlh54ardlhw8zaylk44zx8wkmqxums5dqqx9mh47',
>> WIF: 'cVXykGkQ7xMuYw7oSS7SLQUt1UqwJETxiLLR2eepHesXLjcazGbV'
>> }
If already have a WIF key, use it as an argument for the previous script npm run generate-addresses $wif
$ npm run generate-addresses cQcystps9ZiT2PSFvmxH4wZ5kAgHiRBXL6e8KBmmsLEhVUzASyfc
>> {
>> paymentAddress: 'tb1qhnhaw5qs75rttpg48vawcxy3nk2qqcf3h2utmf',
>> ordinalsAddress: 'tb1p52mys7sd95jsf0v0vc5p2j3ll03tztjthcmylwprgzm296sahdpswnralf',
>> WIF: 'cQcystps9ZiT2PSFvmxH4wZ5kAgHiRBXL6e8KBmmsLEhVUzASyfc'
>> }
In both cases, save paymentAddress
, ordinalsAddress
and WIF
in an .env file or anywhere for later use in the project. These addresses are, respectively, the one that should hold the satoshis to pay for transaction fees, and the address that will own the runes etched or minted.
Note: the addresses and keys shown in this example are randomly generated and purely for this example, don't try to use them.
const {
etch,
init
} = require('bc-runes-js')
const {
PAYMENT_ADDRESS,
ORDINALS_ADDRESS,
WIF
} = process.env
async function main() {
init({
paymentAddress: PAYMENT_ADDRESS,
ordinalsAddress: ORDINALS_ADDRESS,
wif: WIF,
feePerByte: 300
})
const res = await etch({
amount: 1,
cap: 100,
divisibility: 0,
name: 'YOUR•RUNE•NAME',
symbol: '❤︎'
})
console.log({ res })
}
main()
const {
mint,
init
} = require('bc-runes-js')
const {
PAYMENT_ADDRESS,
ORDINALS_ADDRESS,
WIF
} = process.env
async function main() {
init({
paymentAddress: PAYMENT_ADDRESS,
ordinalsAddress: ORDINALS_ADDRESS,
wif: WIF,
feePerByte: 300
})
// only one of these two arguments is mandatory
const res = await mint({
name: '',
runeId: [blockNumber, txIndex]
})
console.log({ res })
}
main()
Not implemented yet. Will be available soon.
FAQs
A package to be able to mint, etch or transfer bitcoin runes very easily.
The npm package bc-runes-js receives a total of 6 weekly downloads. As such, bc-runes-js popularity was classified as not popular.
We found that bc-runes-js demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.