169 похожих чатов

To call mint method from front end I need the

private key, right?
Come I get it? from my provider like Alchemy?

6 ответов

2 просмотра

Wallets hold private keys. To mint on a webpage you merely need to connect your wallet and have it call the appropriate mint function

TheCodingMan- Автор вопроса
Aaron (Coffee) - https://rmg.io | https://darkalpha.eth.limo
Wallets hold private keys. To mint on a webpage y...

returns this error "Returned error: Unsupported method: eth_signTransaction. Alchemy does not hold users' private keys."

TheCodingMan- Автор вопроса
Aaron (Coffee) - https://rmg.io | https://darkalpha.eth.limo
I can't see your code, so hard to say what you hav...

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 );

TheCodingMan
const tx = { from: address, to: Ap...

try calling the function sendRawTransaction instead of sendSignedTransaction

Похожие вопросы

Обсуждают сегодня

Вопрос по диагностике ошибок (я знаю в чем, в данном конкретном примере, я знаю, как исправить, пример модельный, понятно, что в реальности бывает намного запутаннее). module...
ⰄⰎⰋⰐⰐⰑⰛⰤⰧⰧⰩⰄ ⰊⰑⰁⰓⰡⰛⰦⰕⰫ
10
А чем вам питонисты не угодили?😂
.
79
Есть какой-нибудь для Delphi/FPC T*Compression(Decompression)Stream на базе LZ4/Zstd/любой другой быстрый(и хорошо сжимающий) алгоритм А ещё лучше в pure pascal А ещё лучше од...
notme
52
А дальше что?.. Записать в файл, потом в Код?.. И потом разбирать как-то?..
Хаскель Моисеевич Гопник
14
доброго времени. db, dw и прочие исполняются при трансляции или при выполнении программы?
lutayyy
10
type TObj = object procedure Init; virtual; end; TObj1 = object(TObj) procedure Init; override; end; procedure TObj1.Init; begin inherited; end; procedur...
Alexander 👋
29
например asm AT&T ... label: .string "hi" ... # not error lea label(%rip), %rax # error ( not compile ) mov %rip, %rax # not error mov (%rip), %rax из форумов прочитал чт...
Simple Sorcerer
6
Почему никто не подсказал, что можно объявить свои типы данных, в которых меньше полей, чем в отданном джейсоне, и добавлять их по необходимости?
Strange Rabbit
10
Всем привет, написал код ниже, но он выдает сегфолт, в чем причина? #include <stdio.h> #include <stdlib.h> #include <string.h> struct product { char *name; float price; };...
buzz базз
86
Есть предложения, как подобное можно упростить?
Hemul GM
12
Карта сайта