Batch Transactions
Install something like loop so you can run on transaction and that can keep running behind the scenes while you make a sandwich.
near login
- 1.Go on the mintbase UI and find a transaction you want to loop through, let's do Multiply

2. Initiate the transaction, but click "More Information" on the Approve Page.

3. Then click the function name `nft_batch_mint` to reveal the code

- 1.Create a local file called mass_mint
- 2.Replace the obvious fields formatted like so below
#!/bin/bash
near call nearcon2.mintbase1.near nft_batch_mint "{
\"owner_id\": \"nearcon2.near\",
\"metadata\": {
\"extra\": \"ticket\",
\"reference\": \"dfnswq0LaXwNgGzqdW0-YPJLtTxc-fhQlLk8k1UCcJw\"
},
\"num_to_mint\": 25,
\"royalty_args\": {
\"split_between\":{
\"nearcon2.near\":6667,
\"unchain-fund.sputnik-dao.near\":3333
},
\"percentage\":300
},
\"split_owners\": {
\"nearcon2.near\":8000,
\"unchain-fund.sputnik-dao.near\":2000
}
}" --accountId nearcon2.near --gas 280000000000000 --amount 0.00000000000000000000001
3. Then run the loop
loop 'bash mass_mint.sh' --for-duration 1h --every 5s
Last modified 9mo ago