Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/INFURA/go-ethlibs
/ functions
Functions
591 in github.com/INFURA/go-ethlibs
⨍
Functions
591
◇
Types & classes
134
↓ 253 callers
Method
String
()
eth/data.go:155
↓ 165 callers
Method
RLP
RLP returns the Data as an RLP-encoded string.
eth/data.go:352
↓ 78 callers
Function
MustAddress
(value string)
eth/address.go:27
↓ 72 callers
Function
MustQuantity
(value string)
eth/quantity.go:20
↓ 62 callers
Method
Error
()
jsonrpc/errors.go:29
↓ 53 callers
Method
Int64
()
eth/quantity.go:147
↓ 53 callers
Function
QuantityFromInt64
(value int64)
eth/quantity.go:86
↓ 46 callers
Method
DeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
eth/zz_deepcopy_generated.go:271
↓ 43 callers
Function
MustTopic
(value string)
eth/data.go:142
↓ 41 callers
Method
Encode
Encode returns the 0x prefixed hex string of the RLP value
rlp/encode.go:12
↓ 41 callers
Function
MustParams
MakeParams can be used to generate JSONRPC Params field from well-known data, which should not fail. Examples: request.Params = jsonrpc.MustParams("
jsonrpc/params.go:40
↓ 40 callers
Method
UInt64
()
eth/quantity.go:143
↓ 39 callers
Method
Done
()
node/websocket/subscription.go:20
↓ 31 callers
Method
Matches
Matches returns true if this filter matches the passed in log. It follows the rules expressed at: https://eth.wiki/json-rpc/API#a-note-on-specifying-
eth/logfilter.go:19
↓ 31 callers
Function
MustBlockNumberOrTag
(value string)
eth/block_number_or_tag.go:88
↓ 29 callers
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Log.
eth/zz_deepcopy_generated.go:313
↓ 28 callers
Method
FromRaw
FromRaw populates a Transaction's fields from the raw transaction data supplied as a hexadecimal encoded string. For pre-EIP-2718 legacy transactions
eth/transaction_from_raw.go:16
↓ 27 callers
Method
Err
()
node/websocket/subscription.go:21
↓ 23 callers
Function
MustHash
(value string)
eth/data.go:138
↓ 23 callers
Function
RequireEqualJSON
(t *testing.T, expected, actual []byte, msgAndArgs ...interface{})
eth/block_test.go:12
↓ 20 callers
Function
NewData
(value string)
eth/data.go:25
↓ 18 callers
Function
From
From parses a 0x prefixed hex string into an rlp.Value
rlp/from.go:11
↓ 17 callers
Function
QuantityFromUInt64
(value uint64)
eth/quantity.go:94
↓ 16 callers
Function
applyContext
(ctx context.Context, request *jsonrpc.Request)
node/client.go:478
↓ 15 callers
Method
Bytes
()
eth/data.go:399
↓ 15 callers
Function
NewQuantity
(value string)
eth/quantity.go:28
↓ 15 callers
Function
NewQuantityFromRLP
(v rlp.Value)
eth/quantity.go:61
↓ 15 callers
Method
RawRepresentation
RawRepresentation returns the transaction encoded as a raw hexadecimal data string, or an error
eth/transaction.go:194
↓ 15 callers
Method
TransactionType
TransactionType returns the transactions EIP-2718 type, or TransactionTypeLegacy for pre-EIP-2718 transactions.
eth/transaction.go:117
↓ 14 callers
Method
Request
(ctx context.Context, r *jsonrpc.Request)
node/client.go:73
↓ 13 callers
Method
Hash
Hash returns the keccak256 hash of the Data.
eth/data.go:223
↓ 12 callers
Function
MustData
(value string)
eth/data.go:93
↓ 12 callers
Function
OptionalQuantityFromInt
(value int)
eth/quantity.go:81
↓ 11 callers
Method
ChainId
ChainId returns the chain id
node/interfaces.go:38
↓ 11 callers
Method
IsProtected
IsProtected returns true if a transaction is replay protected, either via EIP-155 or newer transaction formats. This method returns false for transact
eth/transaction_signing.go:250
↓ 11 callers
Function
MustData32
(value string)
eth/data.go:129
↓ 11 callers
Function
NewHash
(value string)
eth/data.go:75
↓ 11 callers
Method
Signature
Signature returns the R, S, V values for a transaction, and the ChainId if available
eth/transaction_signing.go:228
↓ 11 callers
Function
getRopstenClient
(t *testing.T, ctx context.Context)
node/ropsten_test.go:14
↓ 10 callers
Function
NewData32
(value string)
eth/data.go:65
↓ 10 callers
Function
NewError
(code ErrorCode, message string, data ...map[string]interface{})
jsonrpc/errors.go:33
↓ 10 callers
Method
String
()
eth/block_number_or_tag.go:30
↓ 9 callers
Function
NewAddress
(value string)
eth/address.go:17
↓ 9 callers
Method
SigningHash
SigningHash returns the Keccak-256 hash of the transaction fields required for transaction signing or an error.
eth/transaction_signing.go:215
↓ 9 callers
Function
unmarshalHex
(data []byte, size int, typ string)
eth/data.go:311
↓ 8 callers
Method
Big
()
eth/quantity.go:151
↓ 8 callers
Method
FromRaw
FromRaw populates Block fields from the RLP-encoded raw block input string.
eth/block_from_raw.go:10
↓ 8 callers
Method
Sign
Sign uses the hex-encoded private key and chainId to update the R, S, and V values for a Transaction, and returns the raw signed transaction or an err
eth/transaction_signing.go:13
↓ 7 callers
Method
Value
()
eth/bloom.go:14
↓ 7 callers
Function
validateHex
(value string, size int, typ string)
eth/data.go:321
↓ 6 callers
Function
NewAccessListFromRLP
NewAccessListFromRLP decodes an RLP list into an AccessList, or returns an error. The RLP format of AccessLists is defined in EIP-2930, each entry is
eth/accesslist.go:40
↓ 6 callers
Function
NewEIP2718Signature
NewEIP2718Signature creates a new Signature from discrete chainId, R, S, and V values.
eth/signature.go:20
↓ 6 callers
Function
NewInput
(value string)
eth/input.go:12
↓ 6 callers
Method
Recover
Recover performs ECRecover on the supplied hash using the signatures R, S, and V values, returning the sender Address or an error.
eth/signature.go:134
↓ 6 callers
Method
Request
(ctx context.Context, r *jsonrpc.Request)
node/websocket/websocket.go:394
↓ 6 callers
Method
RequiredFields
RequiredFields inspects the Transaction Type and returns an error if any required fields are missing
eth/transaction.go:126
↓ 6 callers
Method
String
()
eth/data.go:171
↓ 6 callers
Function
asUnprefixedHex
asUnprefixedHex converts a uint64 to a hex string WITHOUT the 0x prefix
rlp/encode.go:68
↓ 6 callers
Function
hash
(from hasBytes)
eth/data.go:402
↓ 6 callers
Function
rlpDecodeList
rlpDecodeList decodes an RLP list into the passed in receivers. Currently only the receiver types needed for legacy and EIP-2930 transactions are imp
eth/transaction_from_raw.go:391
↓ 5 callers
Method
BlockByHash
BlockByHash can be used to get a block by its hash
node/interfaces.go:62
↓ 5 callers
Method
BlockByHash
BlockByHash can be used to get a block by its hash
node/websocket/websocket.go:41
↓ 5 callers
Method
Hash
Hash returns the keccak256 hash of the Data256.
eth/data.go:248
↓ 5 callers
Function
NewData256
(value string)
eth/data.go:83
↓ 5 callers
Method
RLP
RLP returns the AccessList as an RLP-encoded list
eth/accesslist.go:17
↓ 5 callers
Method
SigningPreimage
SigningPreimage returns the opaque data preimage that is required for signing a given transaction type
eth/transaction_signing.go:80
↓ 5 callers
Function
ToChecksumAddress
* ToChecksumAddress converts a string to the proper EIP55 casing. Transliteration of this code from the EIP55 wiki page: function toChecksumAddress
eth/address.go:94
↓ 5 callers
Method
TransactionType
TransactionType returns the transactions EIP-2718 type, or TransactionTypeLegacy for pre-EIP-2718 transactions.
eth/transaction_receipt.go:26
↓ 5 callers
Method
UnmarshalInto
UnmarshalInto will decode Params into the passed in values, which must be pointer receivers. The type of the passed in value is used to Unmarshal the
jsonrpc/params.go:86
↓ 4 callers
Method
AddBytes
(_bytes []byte)
eth/bloom.go:33
↓ 4 callers
Method
Close
Close closes the connection. Any blocked Read or Write operations will be unblocked and return errors.
node/loop.go:42
↓ 4 callers
Function
ECRecover
ECRecover returns the sending address, given a message digest and R, S, V values. Primarily used to recover the sender of eth.Transaction objects.
eth/signature.go:150
↓ 4 callers
Method
FunctionSelector
()
eth/input.go:45
↓ 4 callers
Method
MatchesBytes
(_bytes []byte)
eth/bloom.go:60
↓ 4 callers
Function
MustInput
(value string)
eth/input.go:21
↓ 4 callers
Method
TransactionByHash
TransactionByHash can be used to get transaction by its hash
node/interfaces.go:65
↓ 4 callers
Method
TransactionByHash
eth_getTransactionByHash can be used to get transaction by its hash
node/websocket/websocket.go:44
↓ 4 callers
Method
UnmarshalSingleParam
UnmarshalSingleParam can be used in the (rare) case where only one of the Request.Params is needed. For example we use this in Smart Routing to extra
jsonrpc/params.go:111
↓ 4 callers
Function
bigToQuantityString
(i *big.Int)
eth/quantity.go:161
↓ 3 callers
Method
BlockByNumber
BlockByNumber can be used to get a block by its number
node/websocket/websocket.go:38
↓ 3 callers
Method
Ch
()
node/websocket/subscription.go:18
↓ 3 callers
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Block.
eth/zz_deepcopy_generated.go:174
↓ 3 callers
Method
EIP155Values
EIP155Values returns the expected R,S, and V values for an EIP-155 Signature. Namely, the V value includes the EIP-155 encoded chain id.
eth/signature.go:118
↓ 3 callers
Method
GetHash
()
eth/block_specifier.go:125
↓ 3 callers
Method
GetQuantity
()
eth/block_specifier.go:117
↓ 3 callers
Method
GetTag
()
eth/block_specifier.go:109
↓ 3 callers
Function
MakeParams
MakeParams generates JSONRPC parameters from its inputs, and should be used for complex dynamic data which may fail to marshal, in which case the erro
jsonrpc/params.go:57
↓ 3 callers
Function
MustBlockSpecifier
(value interface{})
eth/block_specifier.go:101
↓ 3 callers
Method
NetworkRepresentation
NetworkRepresentation returns the transaction encoded as a raw hexadecimal data string suitable for network transmission, or an error. For Blob trans
eth/transaction.go:342
↓ 3 callers
Function
NewBlockNumberOrTag
(value string)
eth/block_number_or_tag.go:56
↓ 3 callers
Function
NewBlockSpecifier
(value interface{})
eth/block_specifier.go:79
↓ 3 callers
Function
NewData8
(value string)
eth/data.go:45
↓ 3 callers
Method
Quantity
()
eth/block_number_or_tag.go:109
↓ 3 callers
Method
Request
Request method can be used to send JSONRPC requests and receive JSONRPC responses
node/interfaces.go:15
↓ 3 callers
Function
Unmarshal
(data []byte)
jsonrpc/helpers.go:7
↓ 3 callers
Method
Unsubscribe
(ctx context.Context)
node/websocket/subscription.go:19
↓ 3 callers
Function
getRopstenConnection
(t *testing.T, ctx context.Context)
node/websocket/websocket_test.go:13
↓ 3 callers
Method
parseBlockResponse
(response *jsonrpc.RawResponse)
node/client.go:349
↓ 3 callers
Function
toBit
(high, low byte)
eth/bloom.go:89
↓ 2 callers
Method
Array
()
eth/logs.go:95
next →
1–100 of 591, ranked by callers