No known key found for this signature in database
GPG Key ID: C072BD80DB66DE18
3 changed files with
5 additions and
5 deletions
-
index.js
-
mint-nft.js
-
watch.js
|
|
@ -23,7 +23,7 @@ const options = { |
|
|
|
|
|
|
|
// initialize and connect to the api
|
|
|
|
const blocknative = new BlocknativeSdk(options) |
|
|
|
const contractAddress = "0x7d82a88Efb60Bb83B3f1665757c20D07E5C0f3ED" |
|
|
|
const contractAddress = "0x90Bc839511e1a8b32e2ba27f37c7632D12E872B6"; |
|
|
|
// const methodName = "ownerMint"
|
|
|
|
const methodName = "flipSaleState" |
|
|
|
|
|
|
|
|
|
@ -29,7 +29,7 @@ async function mintOwnerNFT() { |
|
|
|
}; |
|
|
|
|
|
|
|
const signedTx = await web3.eth.accounts.signTransaction(tx, process.env.PRIVATE_OWNER_KEY); |
|
|
|
console.log("Minting punk...") |
|
|
|
console.log("Minting owner punk...") |
|
|
|
const transactionReceipt = await web3.eth.sendSignedTransaction(signedTx.rawTransaction); |
|
|
|
|
|
|
|
console.log(`Transaction receipt: ${JSON.stringify(transactionReceipt)}`); |
|
|
|
|
|
@ -9,7 +9,7 @@ import { createAlchemyWeb3 } from "@alch/alchemy-web3" |
|
|
|
const web3 = createAlchemyWeb3(API_URL); |
|
|
|
|
|
|
|
// import contractABI from './MoonbirdPunks.json' assert { type: 'json' }
|
|
|
|
import contractABI from './Kitbash.json' assert { type: 'json' } |
|
|
|
import contractABI from './Otherside.json' assert { type: 'json' } |
|
|
|
|
|
|
|
// create options object
|
|
|
|
const options = { |
|
|
@ -24,8 +24,8 @@ const options = { |
|
|
|
|
|
|
|
// initialize and connect to the api
|
|
|
|
const blocknative = new BlocknativeSdk(options) |
|
|
|
const contractAddress = "0x5ff1863753C1920C38c7BaE94576f2831eF99695" |
|
|
|
const methodName = "mint" |
|
|
|
const contractAddress = "0x34d85c9CDeB23FA97cb08333b511ac86E1C4E258" |
|
|
|
const methodName = "nftOwnerClaimLand" |
|
|
|
// const methodName = "flipSaleState"
|
|
|
|
|
|
|
|
await blocknative.configuration({ |
|
|
|