MCPcopy Create free account

hub / github.com/chenzhijie/go-web3 / functions

Functions217 in github.com/chenzhijie/go-web3

↓ 41 callersMethodCall
(method string, out interface{}, params ...interface{})
rpc/transport/transport.go:8
↓ 14 callersMethodAddress
()
apps/erc20/erc20.go:37
↓ 13 callersMethodGetBlockNumber
Get current block height
eth/eth.go:100
↓ 11 callersMethodAddress
Get current default account address
eth/eth.go:95
↓ 11 callersMethodGetNonce
Get nonce of account
eth/eth.go:153
↓ 9 callersMethodSetChainId
Setup current network chainId
eth/eth.go:71
↓ 9 callersMethodToWei
(val string)
utils/utils.go:98
↓ 8 callersMethodEncodeABI
(methodName string, args ...interface{})
apps/weth/weth.go:45
↓ 8 callersMethodGetTransactionReceipt
Get transaction receipt by transaction hash
eth/eth.go:146
↓ 8 callersFunctionNewCallMsgBigInt
(v *big.Int)
types/call.go:25
↓ 8 callersFunctionParseUint64orHex
(str string)
utils/parse.go:24
↓ 8 callersMethodSetAccount
Setup default ethereum account with privateKey (hex format)
eth/eth.go:45
↓ 8 callersMethodToGWei
(val float64)
utils/utils.go:178
↓ 7 callersMethodError
()
rpc/codec/codec.go:32
↓ 7 callersFunctionNewEth
Create a eth instance
eth/eth.go:37
↓ 7 callersFunctionToBlockNumArg
ToBlockNumArg. Wrap blockNumber arg from big.Int to string
utils/utils.go:260
↓ 6 callersMethodAddress
()
apps/erc721/erc721.go:37
↓ 6 callersMethodClose
()
rpc/transport/websocket.go:271
↓ 6 callersFunctionNewClient
(addr, proxy string)
rpc/client.go:12
↓ 5 callersMethodCall
(methodName string, args ...interface{})
eth/contract.go:40
↓ 5 callersMethodEstimateGas
Estimate gas for excuting transaction
eth/eth.go:214
↓ 5 callersMethodNewContract
(abiString string, contractAddr ...string)
eth/contract.go:186
↓ 4 callersMethodEncodeABI
(methodName string, args ...interface{})
eth/contract.go:152
↓ 4 callersMethodFromWeiWithUnit
(wei *big.Int, unit EtherUnit)
utils/utils.go:144
↓ 4 callersFunctionNewUtils
()
utils/utils.go:39
↓ 4 callersMethodSendRawTransaction
( to common.Address, amount *big.Int, nonce uint64, gasLimit uint64, gasPrice *big.Int, data []byte, )
eth/transaction.go:89
↓ 4 callersMethodinvokeAndWait
(code []byte, value, gasPrice, gasTipCap, gasFeeCap *big.Int)
apps/weth/weth.go:278
↓ 4 callersMethodsendRequest
(relay string, method string, params []interface{})
apps/flashbots/flashbots.go:246
↓ 3 callersFunctionNewFlashBot
NewFlashBot, init flashbot instance providerURL: flashbot provider http url rpcRequestSigner: private key for signing request message proxyAddr: http
apps/flashbots/flashbots.go:31
↓ 3 callersMethodSendRawEIP1559Transaction
( to common.Address, amount *big.Int, nonce uint64, gasLimit uint64, gasTipCap *big.Int, gasFeeCap *big.
eth/transaction.go:54
↓ 3 callersMethodString
()
apps/flashbots/types.go:42
↓ 3 callersMethodWrite
([]byte)
rpc/transport/websocket.go:270
↓ 2 callersMethodAbiEncodePacked
Equal to solidity `abi.encodePacked(args)`
utils/abi.go:64
↓ 2 callersMethodCall
(method string, out interface{}, params ...interface{})
rpc/transport/websocket.go:173
↓ 2 callersMethodCallRawBundle
(transactions []string, blockNumber *big.Int, stateBlockNumber string)
apps/flashbots/flashbots.go:108
↓ 2 callersMethodDo
(req *fasthttp.Request, res *fasthttp.Response)
rpc/transport/http.go:102
↓ 2 callersMethodEncodeFunctionSignature
(funcName string)
utils/abi.go:12
↓ 2 callersMethodGetBalance
Get ether balance of account
eth/eth.go:162
↓ 2 callersMethodGetBlocByNumber
Get block header by block number
eth/eth.go:118
↓ 2 callersMethodMethods
(methodName string)
eth/contract.go:31
↓ 2 callersMethodRead
([]byte)
rpc/transport/websocket.go:269
↓ 2 callersMethodSyncSendEIP1559RawTransaction
( to common.Address, amount *big.Int, nonce uint64, gasLimit uint64, gasTipCap *big.Int, gasFeeCap *big.
eth/transaction.go:175
↓ 2 callersFunctionconvert
(val uint64, decimals int64)
utils/utils.go:253
↓ 2 callersMethodinvokeAndWait
(code []byte, gasPrice, gasTipCap, gasFeeCap *big.Int)
apps/erc20/erc20.go:284
↓ 2 callersMethodinvokeAndWait
(code []byte, gasPrice, gasTipCap, gasFeeCap *big.Int)
apps/erc721/erc721.go:304
↓ 2 callersFunctionnewHTTP
(addr, proxy string)
rpc/transport/http.go:30
↓ 2 callersFunctionnewStream
(codec Codec)
rpc/transport/websocket.go:51
↓ 1 callersMethodAddress
()
eth/contract.go:36
↓ 1 callersMethodCall
Do Call functions
eth/eth.go:193
↓ 1 callersMethodCallAtWithMultiReturns
(blockNumber *big.Int, methodName string, args ...interface{})
eth/contract.go:77
↓ 1 callersMethodEffectiveGasPrice
()
apps/flashbots/types.go:50
↓ 1 callersMethodEncodeParameters
(parameters []string, data []interface{})
utils/abi.go:33
↓ 1 callersMethodEstimateFee
()
eth/eth.go:310
↓ 1 callersMethodEstimateGasLimit
(to common.Address, data []byte, gasPrice, wei *big.Int)
apps/erc20/erc20.go:122
↓ 1 callersMethodEstimateGasLimit
(to common.Address, data []byte, gasPrice, wei *big.Int)
apps/erc721/erc721.go:142
↓ 1 callersMethodEstimateGasLimit
(to common.Address, data []byte, gasPrice, wei *big.Int)
apps/weth/weth.go:118
↓ 1 callersMethodFeeHistory
Get fee history for EIP1559 blocks
eth/eth.go:184
↓ 1 callersMethodFromGWei
(wei *big.Int)
utils/utils.go:57
↓ 1 callersMethodFromWei
(wei *big.Int)
utils/utils.go:43
↓ 1 callersMethodGasPrice
Get gas price for Non-EIP1559 tx
eth/eth.go:175
↓ 1 callersMethodGetBlockHeaderByNumber
Get block header by block number
eth/eth.go:109
↓ 1 callersMethodGetBunderStats
(bundleHash string, blockNumber *big.Int)
apps/flashbots/flashbots.go:178
↓ 1 callersMethodGetUserStats
(blockNumber *big.Int)
apps/flashbots/flashbots.go:149
↓ 1 callersMethodIsApprovedForAll
(owner, operator common.Address)
apps/erc721/erc721.go:88
↓ 1 callersFunctionKeccak256Hash
(data []byte)
crypto/keccak256.go:7
↓ 1 callersMethodLeftPadBytes
(slice []byte, l int)
utils/bytes.go:5
↓ 1 callersFunctionNewContract
(abiString string, contractAddr ...string)
eth/contract.go:166
↓ 1 callersMethodNewEIP1559Tx
( to common.Address, amount *big.Int, gasLimit uint64, gasTipCap *big.Int, gasFeeCap *big.Int, data []by
eth/transaction.go:15
↓ 1 callersFunctionNewERC721
(w3 *web3.Web3, contractAddress common.Address)
apps/erc721/erc721.go:24
↓ 1 callersFunctionNewHTTP
(addr, proxy string)
rpc/transport/http.go:26
↓ 1 callersFunctionNewTransport
(url, proxy string)
rpc/transport/transport.go:21
↓ 1 callersFunctionNewWeb3WithProxy
(provider, proxy string)
web3.go:21
↓ 1 callersFunctionParseBigInt
(str string)
utils/parse.go:15
↓ 1 callersMethodRoundNWei
(wei *big.Int, n int)
utils/utils.go:214
↓ 1 callersMethodSendBundle
(txs []*eTypes.Transaction, targetBlockNumber *big.Int)
apps/flashbots/flashbots.go:51
↓ 1 callersMethodSendRawBundle
(transactions []string, targetBlockNumber *big.Int)
apps/flashbots/flashbots.go:63
↓ 1 callersMethodSetTxPollTimeout
Setup timeout for polling confirmation from txs (unit second)
eth/eth.go:76
↓ 1 callersMethodSignText
SignText signs raw text message keccak256("\x19Ethereum Signed Message:\n"${message length}${message}).
eth/eth.go:348
↓ 1 callersMethodSignTypedData
SignTypedData signs EIP-712 conformant typed data hash = keccak256("\x19${byteVersion}${domainSeparator}${hashStruct(message)}") It returns - the sign
eth/eth.go:377
↓ 1 callersMethodSimulate
( txs []*eTypes.Transaction, blockNumber *big.Int, stateBlockNumber string, )
apps/flashbots/flashbots.go:221
↓ 1 callersMethodSubscribe
(method string, callback func(b []byte))
rpc/subscribe.go:14
↓ 1 callersMethodSubscribe
(method string, callback func(b []byte))
rpc/transport/transport.go:13
↓ 1 callersMethodSuggestGasTipCap
()
eth/eth.go:243
↓ 1 callersMethodSyncSendEIP1559Tx
( gasTipCap *big.Int, gasFeeCap *big.Int, gasLimit uint64, to common.Address, data []byte, wei *big.Int,
apps/erc20/erc20.go:222
↓ 1 callersMethodSyncSendEIP1559Tx
( gasTipCap *big.Int, gasFeeCap *big.Int, gasLimit uint64, to common.Address, data []byte, wei *big.Int,
apps/erc721/erc721.go:185
↓ 1 callersMethodSyncSendEIP1559Tx
( gasTipCap *big.Int, gasFeeCap *big.Int, gasLimit uint64, to common.Address, data []byte, wei *big.Int,
apps/weth/weth.go:217
↓ 1 callersMethodSyncSendRawTransaction
( to common.Address, amount *big.Int, nonce uint64, gasLimit uint64, gasPrice *big.Int, data []byte, )
eth/transaction.go:115
↓ 1 callersMethodSyncSendRawTransactionForTx
( gasPrice *big.Int, gasLimit uint64, to common.Address, data []byte, wei *big.Int, )
apps/erc20/erc20.go:165
↓ 1 callersMethodSyncSendRawTransactionForTx
( gasPrice *big.Int, gasLimit uint64, to common.Address, data []byte, wei *big.Int, )
apps/erc721/erc721.go:247
↓ 1 callersMethodSyncSendRawTransactionForTx
( gasPrice *big.Int, gasLimit uint64, to common.Address, data []byte, wei *big.Int, )
apps/weth/weth.go:161
↓ 1 callersMethodWaitBlock
(blockCount uint64)
apps/erc20/erc20.go:146
↓ 1 callersMethodWaitBlock
(blockCount uint64)
apps/erc721/erc721.go:166
↓ 1 callersMethodWaitBlock
(blockCount uint64)
apps/weth/weth.go:142
↓ 1 callersMethodflashbotHeader
(payload []byte)
apps/flashbots/flashbots.go:280
↓ 1 callersFunctiongetBaseFeeMultiplier
(baseFee *big.Int)
eth/eth.go:407
↓ 1 callersMethodgetBlock
(method string, args ...interface{})
eth/block.go:20
↓ 1 callersMethodhandleMsg
(response codec.Response)
rpc/transport/websocket.go:131
↓ 1 callersMethodhandleSubscription
(response codec.Request)
rpc/transport/websocket.go:114
↓ 1 callersFunctionhttpProxyDialer
(proxy string, timeout time.Duration)
rpc/transport/http.go:110
↓ 1 callersMethodincSeq
()
rpc/transport/websocket.go:68
next →1–100 of 217, ranked by callers