MCPcopy Create free account

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

Functions217 in github.com/chenzhijie/go-web3

↓ 1 callersMethodisClosed
()
rpc/transport/websocket.go:72
↓ 1 callersMethodlisten
()
rpc/transport/websocket.go:81
↓ 1 callersFunctionnewWebsocket
(url string)
rpc/transport/websocket.go:15
↓ 1 callersMethodsetHandler
(id uint64, ack chan *ackMessage)
rpc/transport/websocket.go:149
↓ 1 callersMethodsetSubscription
(id string, callback func(b []byte))
rpc/transport/websocket.go:227
↓ 1 callersMethodunsubscribe
(id string)
rpc/transport/websocket.go:208
MethodAccounts
Get accounts from rpc providers
eth/eth.go:86
MethodAllMethods
()
eth/contract.go:23
MethodAllowance
(owner, spender common.Address)
apps/erc20/erc20.go:49
MethodAllowance
(owner, spender common.Address)
apps/weth/weth.go:49
MethodApprove
(spender common.Address, limit, gasPrice, gasTipCap, gasFeeCap *big.Int)
apps/erc20/erc20.go:103
MethodApprove
(spender common.Address, limit, gasPrice, gasTipCap, gasFeeCap *big.Int)
apps/weth/weth.go:77
MethodBalanceOf
(owner common.Address)
apps/erc20/erc20.go:89
MethodBalanceOf
(owner common.Address)
apps/erc721/erc721.go:61
MethodBalanceOf
(owner common.Address)
apps/weth/weth.go:63
FunctionBenchmarkTestCallMsgMarshal
(b *testing.B)
types/call_test.go:39
FunctionBenchmarkTestCompare1
(b *testing.B)
utils/utils_test.go:76
FunctionBenchmarkTestCompare2
(b *testing.B)
utils/utils_test.go:87
FunctionBenchmarkTestCompare3
(b *testing.B)
utils/utils_test.go:98
FunctionBenchmarkTestCompare4
(b *testing.B)
utils/utils_test.go:109
MethodCall
(method string, out interface{}, params ...interface{})
rpc/client.go:29
MethodCall
(method string, out interface{}, params ...interface{})
rpc/transport/http.go:55
MethodCallWithFromAndValue
( methodName string, from common.Address, value *big.Int, args ...interface{}, )
eth/contract.go:109
MethodCallWithMultiReturns
(methodName string, args ...interface{})
eth/contract.go:73
MethodChainID
Get currnet network chainId from provider
eth/eth.go:223
MethodClose
()
rpc/client.go:25
MethodClose
()
rpc/transport/http.go:51
MethodClose
()
rpc/transport/transport.go:9
MethodClose
()
rpc/transport/websocket.go:63
MethodClose
()
rpc/transport/websocket.go:251
MethodClose
()
rpc/transport/ipc.go:29
MethodDecimals
()
apps/erc20/erc20.go:63
MethodDecodeParameters
(parameters []string, data []byte)
utils/abi.go:16
MethodDecodeParameters
(parameters []string, data []byte)
eth/eth.go:338
MethodDeposit
(amount, gasPrice, gasTipCap, gasFeeCap *big.Int)
apps/weth/weth.go:96
MethodDifferentAddress
(a, b common.Address)
utils/utils.go:210
MethodEcSign
EcSign signs raw hash message
eth/eth.go:361
MethodEncodeParameters
(parameters []string, data []interface{})
eth/eth.go:342
FunctionEncodeToHex
(b []byte)
utils/parse.go:33
FunctionEncodeUintToHex
(i uint64)
utils/parse.go:11
MethodEstimateGasContract
Estimate gas for deploying contract
eth/eth.go:202
MethodEstimatePriorityFee
Estimate priority gas fee
eth/eth.go:252
FunctionEther
Ether converts a value to the ether unit with 18 decimals
utils/utils.go:249
MethodFromDecimals
(wei *big.Int, decimals int64)
utils/utils.go:84
MethodFromWeiFloat
(wei *big.Float)
utils/utils.go:71
MethodGetBlockByHash
Get block by block hash
eth/eth.go:123
MethodGetChainId
()
eth/eth.go:66
MethodGetLogs
Get past event logs with fliter
eth/eth.go:235
MethodGetPrivateKey
()
eth/eth.go:62
MethodGetTransactionByHash
Get transaction by transaction hash
eth/eth.go:139
MethodHexToUint64
(str string)
utils/utils.go:198
MethodIsApprovalForAll
(owner, spender common.Address)
apps/erc721/erc721.go:130
MethodLen
()
types/gas.go:16
MethodLess
(i, j int)
types/gas.go:20
MethodListening
()
net/net.go:20
MethodMarshalText
()
types/call.go:14
MethodMarshalText
()
types/call.go:20
FunctionNewERC20
(w3 *web3.Web3, contractAddress common.Address)
apps/erc20/erc20.go:24
FunctionNewWETH
(w3 *web3.Web3, contractAddress common.Address)
apps/weth/weth.go:24
FunctionNewWeb3
(provider string)
web3.go:17
MethodOwnerOf
(tokenId *big.Int)
apps/erc721/erc721.go:75
MethodPackCode
(signature string, args []string, params []interface{})
utils/abi.go:50
FunctionParseHexBytes
(str string)
utils/parse.go:37
MethodPeerCount
()
net/net.go:26
MethodRead
(b []byte)
rpc/transport/websocket.go:259
MethodRead
(b []byte)
rpc/transport/ipc.go:33
MethodSameAddress
(a, b common.Address)
utils/utils.go:206
MethodSendTransaction
Send transaction
eth/eth.go:132
MethodSetApprovalForAll
( spender common.Address, approve bool, gasPrice *big.Int, gasTipCap *big.Int, gasFeeCap *big.Int, )
apps/erc721/erc721.go:100
MethodSetConfirmation
(blockCount int)
apps/erc20/erc20.go:41
MethodSetConfirmation
(blockCount int)
apps/erc721/erc721.go:41
MethodSetConfirmation
(blockCount int)
apps/weth/weth.go:37
MethodSetTxPollTimeout
(txPollTimeout int)
apps/erc20/erc20.go:45
MethodSetTxPollTimeout
(txPollTimeout int)
apps/erc721/erc721.go:45
MethodSetTxPollTimeout
(txPollTimeout int)
apps/weth/weth.go:41
MethodSimulateRaw
( transactions []string, blockNumber *big.Int, stateBlockNumber string, )
apps/flashbots/flashbots.go:238
MethodSubscribe
(method string, callback func(b []byte))
rpc/transport/websocket.go:234
MethodSubscriptionEnabled
()
rpc/subscribe.go:9
MethodSwap
(i, j int)
types/gas.go:24
MethodSymbol
()
apps/erc20/erc20.go:76
FunctionTestCallWithMethodSignature
(t *testing.T)
eth/contract_test.go:74
FunctionTestContractCall
(t *testing.T)
eth/contract_test.go:13
FunctionTestFlashbotSendBundleTx
(t *testing.T)
apps/flashbots/flashbots_test.go:22
FunctionTestFromWei
(t *testing.T)
utils/utils_test.go:45
FunctionTestGetBlockByNumber
(t *testing.T)
eth/block_test.go:12
FunctionTestGetBundleStats
(t *testing.T)
apps/flashbots/flashbots_test.go:117
FunctionTestGetUserStats
(t *testing.T)
apps/flashbots/flashbots_test.go:140
FunctionTestInputData
(t *testing.T)
types/call_test.go:11
FunctionTestIsApprovedForAll
(t *testing.T)
apps/erc721/erc721_test.go:11
FunctionTestPollBlock
(t *testing.T)
eth/block_test.go:29
FunctionTestRoundNWei
(t *testing.T)
utils/utils_test.go:120
FunctionTestSameAddr
(t *testing.T)
utils/utils_test.go:65
FunctionTestSignMethod
(t *testing.T)
utils/utils_test.go:54
FunctionTestSignText
(t *testing.T)
eth/eth_test.go:12
FunctionTestSignTypedData
(t *testing.T)
eth/eth_test.go:26
FunctionTestSubsrice
(t *testing.T)
rpc/subscribe_test.go:9
FunctionTestToWei
(t *testing.T)
utils/utils_test.go:13
MethodToDecimals
(val uint64, decimals int64)
utils/utils.go:202
MethodToHex
(n *big.Int)
utils/utils.go:194
MethodToWeiInt
(val int64, denominator int64)
utils/utils.go:135
← previousnext →101–200 of 217, ranked by callers