This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
geth --syncmode snap --maxpeers 100 --cache=4096 \ | |
--datadir /data/ethereum \ | |
--http --http.addr 0.0.0.0 --http.api=debug,engine,eth,web3,net \ | |
--authrpc.addr 0.0.0.0 --authrpc.jwtsecret=~/.eth2-jwtsecret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mantleTestnet = { | |
id: 5001, | |
name: "Mantle Testnet", | |
network: "Mantle Testnet", | |
nativeCurrency: { | |
decimals: 18, | |
name: "Mantle", | |
symbol: "MNT", | |
}, | |
rpcUrls: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"encoding/hex" | |
"fmt" | |
"log" | |
"math/big" | |
"github.com/ethereum/go-ethereum" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias bitcoint="bitcoin-cli -rpcuser=test -rpcpassword=test -rpcport=19001 -rpcwallet=da" | |
bitcoint createwallet da false false "" false true | |
bitcoint getaddressinfo bcrt1pnw6agesxjuhhry6c4hq7axzhjcmv6zjw03jdav606dqfwatujl4qem08wd | |
bitcoint generateblock bcrt1pnw6agesxjuhhry6c4hq7axzhjcmv6zjw03jdav606dqfwatujl4qem08wd '[]' | |
bitcoint generatetoaddress 1 bcrt1pnw6agesxjuhhry6c4hq7axzhjcmv6zjw03jdav606dqfwatujl4qem08wd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"inputs":[{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"}],"internalType":"struct Multicall2.Call[]","name":"calls","type":"tuple[]"}],"name":"aggregate","outputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"internalType":"bytes[]","name":"returnData","type":"bytes[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"}],"internalType":"struct Multicall2.Call[]","name":"calls","type":"tuple[]"}],"name":"blockAndAggregate","outputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"internalType":"bytes32","name":"blockHash","type":"bytes32"},{"components":[{"internalType":"bool","name":"success","type":"bool"},{"internalType":"bytes","name":"returnData","type":"bytes"}],"internalType":"struct Multicall2.Result[]","name":"returnData","type":"tu |