Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chenzhijie/go-web3
/ functions
Functions
217 in github.com/chenzhijie/go-web3
⨍
Functions
217
◇
Types & classes
47
↓ 1 callers
Method
isClosed
()
rpc/transport/websocket.go:72
↓ 1 callers
Method
listen
()
rpc/transport/websocket.go:81
↓ 1 callers
Function
newWebsocket
(url string)
rpc/transport/websocket.go:15
↓ 1 callers
Method
setHandler
(id uint64, ack chan *ackMessage)
rpc/transport/websocket.go:149
↓ 1 callers
Method
setSubscription
(id string, callback func(b []byte))
rpc/transport/websocket.go:227
↓ 1 callers
Method
unsubscribe
(id string)
rpc/transport/websocket.go:208
Method
Accounts
Get accounts from rpc providers
eth/eth.go:86
Method
AllMethods
()
eth/contract.go:23
Method
Allowance
(owner, spender common.Address)
apps/erc20/erc20.go:49
Method
Allowance
(owner, spender common.Address)
apps/weth/weth.go:49
Method
Approve
(spender common.Address, limit, gasPrice, gasTipCap, gasFeeCap *big.Int)
apps/erc20/erc20.go:103
Method
Approve
(spender common.Address, limit, gasPrice, gasTipCap, gasFeeCap *big.Int)
apps/weth/weth.go:77
Method
BalanceOf
(owner common.Address)
apps/erc20/erc20.go:89
Method
BalanceOf
(owner common.Address)
apps/erc721/erc721.go:61
Method
BalanceOf
(owner common.Address)
apps/weth/weth.go:63
Function
BenchmarkTestCallMsgMarshal
(b *testing.B)
types/call_test.go:39
Function
BenchmarkTestCompare1
(b *testing.B)
utils/utils_test.go:76
Function
BenchmarkTestCompare2
(b *testing.B)
utils/utils_test.go:87
Function
BenchmarkTestCompare3
(b *testing.B)
utils/utils_test.go:98
Function
BenchmarkTestCompare4
(b *testing.B)
utils/utils_test.go:109
Method
Call
(method string, out interface{}, params ...interface{})
rpc/client.go:29
Method
Call
(method string, out interface{}, params ...interface{})
rpc/transport/http.go:55
Method
CallWithFromAndValue
( methodName string, from common.Address, value *big.Int, args ...interface{}, )
eth/contract.go:109
Method
CallWithMultiReturns
(methodName string, args ...interface{})
eth/contract.go:73
Method
ChainID
Get currnet network chainId from provider
eth/eth.go:223
Method
Close
()
rpc/client.go:25
Method
Close
()
rpc/transport/http.go:51
Method
Close
()
rpc/transport/transport.go:9
Method
Close
()
rpc/transport/websocket.go:63
Method
Close
()
rpc/transport/websocket.go:251
Method
Close
()
rpc/transport/ipc.go:29
Method
Decimals
()
apps/erc20/erc20.go:63
Method
DecodeParameters
(parameters []string, data []byte)
utils/abi.go:16
Method
DecodeParameters
(parameters []string, data []byte)
eth/eth.go:338
Method
Deposit
(amount, gasPrice, gasTipCap, gasFeeCap *big.Int)
apps/weth/weth.go:96
Method
DifferentAddress
(a, b common.Address)
utils/utils.go:210
Method
EcSign
EcSign signs raw hash message
eth/eth.go:361
Method
EncodeParameters
(parameters []string, data []interface{})
eth/eth.go:342
Function
EncodeToHex
(b []byte)
utils/parse.go:33
Function
EncodeUintToHex
(i uint64)
utils/parse.go:11
Method
EstimateGasContract
Estimate gas for deploying contract
eth/eth.go:202
Method
EstimatePriorityFee
Estimate priority gas fee
eth/eth.go:252
Function
Ether
Ether converts a value to the ether unit with 18 decimals
utils/utils.go:249
Method
FromDecimals
(wei *big.Int, decimals int64)
utils/utils.go:84
Method
FromWeiFloat
(wei *big.Float)
utils/utils.go:71
Method
GetBlockByHash
Get block by block hash
eth/eth.go:123
Method
GetChainId
()
eth/eth.go:66
Method
GetLogs
Get past event logs with fliter
eth/eth.go:235
Method
GetPrivateKey
()
eth/eth.go:62
Method
GetTransactionByHash
Get transaction by transaction hash
eth/eth.go:139
Method
HexToUint64
(str string)
utils/utils.go:198
Method
IsApprovalForAll
(owner, spender common.Address)
apps/erc721/erc721.go:130
Method
Len
()
types/gas.go:16
Method
Less
(i, j int)
types/gas.go:20
Method
Listening
()
net/net.go:20
Method
MarshalText
()
types/call.go:14
Method
MarshalText
()
types/call.go:20
Function
NewERC20
(w3 *web3.Web3, contractAddress common.Address)
apps/erc20/erc20.go:24
Function
NewWETH
(w3 *web3.Web3, contractAddress common.Address)
apps/weth/weth.go:24
Function
NewWeb3
(provider string)
web3.go:17
Method
OwnerOf
(tokenId *big.Int)
apps/erc721/erc721.go:75
Method
PackCode
(signature string, args []string, params []interface{})
utils/abi.go:50
Function
ParseHexBytes
(str string)
utils/parse.go:37
Method
PeerCount
()
net/net.go:26
Method
Read
(b []byte)
rpc/transport/websocket.go:259
Method
Read
(b []byte)
rpc/transport/ipc.go:33
Method
SameAddress
(a, b common.Address)
utils/utils.go:206
Method
SendTransaction
Send transaction
eth/eth.go:132
Method
SetApprovalForAll
( spender common.Address, approve bool, gasPrice *big.Int, gasTipCap *big.Int, gasFeeCap *big.Int, )
apps/erc721/erc721.go:100
Method
SetConfirmation
(blockCount int)
apps/erc20/erc20.go:41
Method
SetConfirmation
(blockCount int)
apps/erc721/erc721.go:41
Method
SetConfirmation
(blockCount int)
apps/weth/weth.go:37
Method
SetTxPollTimeout
(txPollTimeout int)
apps/erc20/erc20.go:45
Method
SetTxPollTimeout
(txPollTimeout int)
apps/erc721/erc721.go:45
Method
SetTxPollTimeout
(txPollTimeout int)
apps/weth/weth.go:41
Method
SimulateRaw
( transactions []string, blockNumber *big.Int, stateBlockNumber string, )
apps/flashbots/flashbots.go:238
Method
Subscribe
(method string, callback func(b []byte))
rpc/transport/websocket.go:234
Method
SubscriptionEnabled
()
rpc/subscribe.go:9
Method
Swap
(i, j int)
types/gas.go:24
Method
Symbol
()
apps/erc20/erc20.go:76
Function
TestCallWithMethodSignature
(t *testing.T)
eth/contract_test.go:74
Function
TestContractCall
(t *testing.T)
eth/contract_test.go:13
Function
TestFlashbotSendBundleTx
(t *testing.T)
apps/flashbots/flashbots_test.go:22
Function
TestFromWei
(t *testing.T)
utils/utils_test.go:45
Function
TestGetBlockByNumber
(t *testing.T)
eth/block_test.go:12
Function
TestGetBundleStats
(t *testing.T)
apps/flashbots/flashbots_test.go:117
Function
TestGetUserStats
(t *testing.T)
apps/flashbots/flashbots_test.go:140
Function
TestInputData
(t *testing.T)
types/call_test.go:11
Function
TestIsApprovedForAll
(t *testing.T)
apps/erc721/erc721_test.go:11
Function
TestPollBlock
(t *testing.T)
eth/block_test.go:29
Function
TestRoundNWei
(t *testing.T)
utils/utils_test.go:120
Function
TestSameAddr
(t *testing.T)
utils/utils_test.go:65
Function
TestSignMethod
(t *testing.T)
utils/utils_test.go:54
Function
TestSignText
(t *testing.T)
eth/eth_test.go:12
Function
TestSignTypedData
(t *testing.T)
eth/eth_test.go:26
Function
TestSubsrice
(t *testing.T)
rpc/subscribe_test.go:9
Function
TestToWei
(t *testing.T)
utils/utils_test.go:13
Method
ToDecimals
(val uint64, decimals int64)
utils/utils.go:202
Method
ToHex
(n *big.Int)
utils/utils.go:194
Method
ToWeiInt
(val int64, denominator int64)
utils/utils.go:135
← previous
next →
101–200 of 217, ranked by callers