package
0.0.0-20240912083038-27d5587efb86
Repository: https://github.com/dipdup-io/starknet-go-api.git
Documentation: pkg.go.dev
# README
Data
Package contains general structures.
BlockID
The most usable filter is BlockID
. It has the following definition:
// BlockID -
type BlockID struct {
Hash string
Number uint64
String string
}
You can set Hash
or Number
of block or set String
to latest
or pending
value to filter by them. But you should set only one field of BlockID
structure. If you set 2 fields you'll receive validation error. For example:
// for hash
api.GetBlockWithTxs(ctx, BlockID{Hash: "some_hash"})
// for number
api.GetBlockWithTxs(ctx, BlockID{Number: 100})
// for latest
api.GetBlockWithTxs(ctx, BlockID{String: Latest})
// for pending
api.GetBlockWithTxs(ctx, BlockID{String: Pending})
// wrong call
api.GetBlockWithTxs(ctx, BlockID{Hash: "some_hash", Number: 100})
# Functions
DAModeValues returns a list of the values for DAMode.
NewFeltFromBytes -.
NewFromAsciiString -.
NewUint256 -.
NewUint256FromInt -.
NewUint256FromString -.
NewUint256FromStrings -.
ParseDAMode attempts to convert a string to a DAMode.
# Constants
length.
call types.
call types.
DAModeL1 is a DAMode of type L1.
DAModeL2 is a DAMode of type L2.
No description provided by the author
entrypoint types.
entrypoint types.
entrypoint types.
default block string names.
default block string names.
statuses.
statuses.
statuses.
statuses.
statuses.
statuses.
statuses.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
versions.
versions.
versions.
versions.
# Variables
errors.
errors.
No description provided by the author
# Structs
BlockID -.
Class -.
Declare -.
DeclaredClass -.
Deploy -.
DeployAccount -.
DeployedContract -.
EntrypointsByType -.
Event -.
Handler -.
Invoke -.
KeyValue -.
L1Handler -.
Message -.
Nonce -.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
StateDiff -.
StateDiffRpc -.
StateUpdate -.
StateUpdateRpc -.
StorageDiff -.
Transaction -.
Uint256 -.
# Type aliases
swagger:enum DAMode
ENUM(
L1,
L2
)
*/go:generate go-enum --marshal --sql --values.
Felt -.
TransactionType -.