private key, right?
Come I get it? from my provider like Alchemy?
Wallets hold private keys. To mint on a webpage you merely need to connect your wallet and have it call the appropriate mint function
returns this error "Returned error: Unsupported method: eth_signTransaction. Alchemy does not hold users' private keys."
I can't see your code, so hard to say what you have wrong
const tx = { from: address, to: AppConfig.cubs_contract_address, value: 0, // this encodes the ABI of the method and the arguements data: contractRef.methods.breed(fatherID, motherID).encodeABI(), }; const signedTransaction = await state.web3.eth.signTransaction( tx, tx.from ); const sentTx = await state.web3.eth.sendSignedTransaction( signedTransaction.raw );
try calling the function sendRawTransaction instead of sendSignedTransaction
the IDE tells me it doesn't exist
Обсуждают сегодня