You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I recently started using Arlocal and when going to post a transaction, Arlocal returns a 410 error that says "You don't have enough tokens."
Before calling this method, I fund the wallet and confirm that the transaction completes successfully let arWallet arweave.wallets.generate().then((t) => { arWallet = t arweave.api.get('mint/${arWallet.n}/10000000000000000000').then((t) => console.log(t)) console.log(arWallet) })
... const check = await fetch('http://localhost:1984/wallet/${arWallet.n}/balance') console.log(await check.json())
After creating and signing the transaction, I check the price of the transaction to ensure that it's less than the current wallet balance console.log(JSON.stringify(courseDesc)) const cost = await fetch('http://localhost:1984/price/${tx.data_size}') console.log(await cost.json())
Upon running arweave.post(tx), I receive the following
I'm quite new to Arlocal so I'm hoping to receive some insight on why this behavior is occurring.
Thanks!
The text was updated successfully, but these errors were encountered:
You're minting to the n value of the JWK (I am assuming this is the public key?) when instead you need to be minting to and using the wallet's address. You should be able to get the address using arweave.wallets.jwkToAddress(arWallet)
Hello,
I recently started using Arlocal and when going to post a transaction, Arlocal returns a 410 error that says "You don't have enough tokens."
Before calling this method, I fund the wallet and confirm that the transaction completes successfully
let arWallet
arweave.wallets.generate().then((t) => { arWallet = t arweave.api.get('mint/${arWallet.n}/10000000000000000000').then((t) => console.log(t)) console.log(arWallet) })
...
const check = await fetch('http://localhost:1984/wallet/${arWallet.n}/balance') console.log(await check.json())
After creating and signing the transaction, I check the price of the transaction to ensure that it's less than the current wallet balance
console.log(JSON.stringify(courseDesc)) const cost = await fetch('http://localhost:1984/price/${tx.data_size}') console.log(await cost.json())
Upon running
arweave.post(tx)
, I receive the followingI'm quite new to Arlocal so I'm hoping to receive some insight on why this behavior is occurring.
Thanks!
The text was updated successfully, but these errors were encountered: