YB
Size: a a a
YB
@
@
@
SB
@
@
SB
tx, err := mycontract.MyFunction(
&bind.TransactOpts{
From: auth.From,
Nonce: nil, // nil uses nonce of pending state
Signer: auth.Signer,
Value: big.NewInt(1),
GasPrice: nil, // nil automatically suggests gas price
GasFeeCap: nil, // MAX BASE FEE
GasTipCap: nil, // MAX PRIORITY FEE
GasLimit: 0, // 0 automatically estimates gas limit
Context: context.Background(),
}, argument1, argument2, argument3)
if err != nil {
log.Printf("could not send tx request to contract: %v\n", err)
} else {
fmt.Printf("Transaction sent! Please wait for tx %s to be confirmed.\n", txSweepToken.Hash().Hex())
tx, err := session.MyFunction(arg1,arg2,arg3)
if err != nil {
return "", err
}
fmt.Printf("tx sent! Please wait for tx %s to be confirmed.\n", tx.Hash().Hex())
return tx.Hash().Hex(), nil
SB
@
@
@
SB
solc --abi --bin ./contracts/MyContract.sol -o build
abigen --abi="build/MyContract.abi" --pkg=main --out="./go/contract.go"
СК
eth_getTransactionCount с параметрами [addr, "pending"]? (я сварщик ненастоящий, три дня назад впервые эфировую ноду потрогал)@
СК
@
@
@
F