# Functions
AddressAsString converts address to string.
BigIntAsFloat64 converts BigInt to float64.
BigIntAsString converts BigInt to string.
ConvertEthHeaderToBlockNotificationHeader converts Ethereum header to bloxroute Ethereum Header.
CreateNewTransactionNotification - creates NewTransactionNotification object which contains bxTransaction and local region.
CreatePendingTransactionNotification - creates PendingTransactionNotification object which contains bxTransaction and local region.
DecodeHex gets the bytes of a hexadecimal string, with or without its `0x` prefix.
Exists - checks if a field exists in feedType list.
GenerateSHA256Hash randomly generates a new SHA256Hash object.
NewAccountID constructs an accountID from bytes, stripping off null bytes.
NewBeaconBlockNotification creates beacon block notification.
NewBxBeaconMessage creates a new BxBeaconMessage.
NewBxBlock creates a new BxBlock that's ready for compression.
NewBxBlockTransaction creates a new tx in the BxBlock.
NewBxBSCBlobSidecar creates a new BSC blob sidecars.
NewBxTransaction creates a new transaction to be stored.
NewEthBlockNotification creates ETH block notification.
NewEthTransaction converts a canonic Ethereum transaction to EthTransaction.
NewHeadsBlockFromEthBlockNotification - convert a EthBlockNotification to NewHeadsBlock.
NewOnBlockNotification returns a new OnBlockNotification.
NewRawBxBlock create a new BxBlock without compression restrictions.
NewRawBxBlockTransaction creates a new transaction that's not ready for compression.
NewRawBxTransaction creates a new transaction directly from the hash and content.
NewSHA256FromKeccak derives an SHA256Hash object using keccak hash on the provided byte array.
NewSHA256Hash converts an existing byte array to a SHA256Hash.
NewSHA256HashFromString parses a SHA256Hash from a serialized string format.
NewTxReceipt returns a new tx receipt object created from a map.
NewTxReceiptsNotification returns a new tx receipts notification object.
NewUserIntentNotification constructor for UserIntentNotification.
NewUserIntentSolutionNotification constructor for UserIntentSolutionNotification.
RelayTypeFromString returns relay type from string.
SDKMetaFromContext converts gRPC SDK metadata to a meta map.
SDKMetaFromHeaders converts HTTP SDK headers to a meta map.
# Constants
AllNetworkNum is the network number for relays that facilitate transactions from all networks.
Available relay types.
Beacon blocks.
FeedType enumeration.
BloxrouteAccountID marks an internally generated certificate (e.g.
BloxrouteGoGateway is initiated in gateway node model for the field: name.
BxBeaconMessageType constants.
BxBeaconMessageType constants.
BxBeaconMessageType constants.
block types of BxBlock.
block types of BxBlock.
block types of BxBlock.
block types of BxBlock.
block types of BxBlock.
block types of BxBlock.
block types of BxBlock.
Canceled is transaction status for canceled status.
flag constant values.
flag constant values.
flag constant values.
ECDSASignatureLen is the byte length of ECDSASignature in Ethereum ecosystem.
Available relay types.
EmptyAccountID represent no Account ID set.
flag constant values.
ErrorNotificationCodeLen represents len of code.
flag constant values.
flag constant values.
flag constant values.
flag constant values.
ETHAddressLen is the byte length of ETH Address.
Available relay types.
GoGatewayVersion is version of gateway.
ConnectionType enumeration.
FeedConnectionType enumeration.
Keccak256HashLen is the byte length of Keccak256Hash.
Mined is transaction status for confirmed status.
MinErrorNotificationCode declares the min number since error codes begin errors before this const considered as warnings.
NetworkNumLen is the byte length of packed network numbers.
Beacon blocks.
NewBlocks is the feed name of the source for transaction status update.
FeedType enumeration.
FeedType enumeration.
NodeIDLen is the number of characters in a NodeID.
FeedType enumeration.
OriginalSenderAccountIDHeaderKey is the header key for the account ID which sent the request through cloud services.
PendingTxs is the feed name of the source for transaction status update.
FeedType enumeration.
FeedType enumeration.
Replaced is transaction status for replaced status.
SDKBlockchainHeaderKey is the header key for the blockchain name.
SDKCodeLanguageHeaderKey is the header key for the programming language SDK code is written in.
SDKVersionHeaderKey is the header key for the SDK version.
SHA256HashLen is the byte length of SHA256 hashes.
ShortIDEmpty is the default value indicating no assigned short ID.
ShortIDLen is the byte length of packed short IDs.
flag constant values.
flag constant values.
flag constant values.
flag constant values.
flag constant values.
flag constant values.
flag constant values.
flag constant values.
flag constant values.
flag constant values.
flag constant values.
flag constant values.
flag constant values.
flag constant values.
flag constant values.
flag constant values.
flag constant values.
FeedType enumeration.
TxFlagsLen represents the byte length of transaction flag.
TxValidationStatus types enumeration.
TxValidationStatus types enumeration.
TxPool is transaction status for pending status.
FeedType enumeration.
TxValidationStatus types enumeration.
UInt16Len is the byte length of unsigned 16bit integers.
UInt32Len is the byte length of unsigned 32bit integers.
UInt64Len is the byte length of unsigned 64bit integers.
UInt8Len is the byte length of unsigned 8bit integers.
Unknown is transaction status for unknown state.
FeedType enumeration.
FeedType enumeration.
UUIDv4Len is the byte length of UUID V4.
WalletIDLen represents the bytes length of the wallet id.
codes below 1000 are warnings and do not lead to gateway shutdown.
WarnNotificationInvalidInput reports about invalid message from user.
ConnectionType enumeration.
FeedConnectionType enumeration.
# Variables
AllFields is used with blocks feeds.
AllFieldsWithFrom is used with transactions feeds.
CodeToReason converts code to reason.
EmptyFilteredIntentMap is a map of key,value that can be used to filter intents.
EmptyFilteredTransactionMap is a map of key value used to check the filters provided by the websocket client.
EmptyHash is the empty SHA256 hash.
EmptySender represents empty sender.
RPCStreamToFeedType maps gRPC stream to feed type.
# Structs
BellatrixBlockNotification represents bellatrix beacon block notification.
BroadcastResults represents broadcast msg summery results.
BxBeaconMessage represents a beacon message.
BxBlock represents an encoded block ready for compression or decompression.
BxBlockTransaction represents a tx in the BxBlock.
BxBSCBlobSidecar represents a slice of BSC blob sidecars.
BxTransaction represents a single bloXroute transaction.
CallParamSliceFlag is a custom flag type so that can be used from cli package.
CapellaBlockNotification represents capella beacon block notification.
ClientInfo contains info about account and some meta info.
CompressedEthBlobSidecar is a struct that contains same data as ethpb.BlobSidecar but with different blob size, what is needed to provide BDN compression.
DenebBlockNotification represents deneb beacon block notification.
EthBlockNotification - represents a single block.
EthTransaction represents the JSON encoding of an Ethereum transaction.
FutureValidatorInfo - represents information about the validator information of the second block after the current block.
Header - represents Ethereum block header.
NewHeadsBlock - represents newHeads feed notification for eth_subscribe newHeads feed.
NewTransactionNotification - contains BxTransaction which contains the local region of the ethereum transaction and all its fields.
NodeEndpoint - represent the node endpoint struct sent in BdnPerformanceStats.
OnBlockNotification - represents the result of an RPC call on published block.
PendingTransactionNotification - contains BxTransaction which contains the local region of the ethereum transaction and all its fields.
QuoteNotification describes quote notification.
ReqOptions contains options for REQUEST.
SubscriptionResponse struct that represent subscription response from the node.
TransactionStatusNotification - represents a transaction status notification.
TxReceipt - represents a transaction receipt.
TxReceiptsNotification - represents a transaction receipt feed entry to avoid deserializing/reserializing the message from Ethereum RPC, no conversion work is done.
UserIntent describes user request for submitting intent.
UserIntentNotification describes user intent notification.
UserIntentSolution describes IntentSolution submission body.
UserIntentSolutionNotification describes IntentSolution user notification.
# Interfaces
BlockchainTransaction represents a generic blockchain transaction that allows filtering its fields.
BlockNotification represents a generic block notification.
Notification represents a generic notification that allows filtering its fields.
# Type aliases
AccountID represents a user's BDN account.
BxBeaconMessageType represents the type of a beacon message.
BxBlockType is block type.
CapabilityFlags represents various flags for capabilities in hello msg.
ConnectionType type of connection between cloudServices and gateway.
ErrorNotificationCode represents error notification code.
FeedConnectionType types of feeds.
FeedType types of feeds.
NetworkID represent the chain ID that a message is being routed in (1 for Ethereum Mainnet, 56 for BSC-Mainnet, etc.).
NetworkNum represents the network that a message is being routed in (Ethereum Mainnet, Ethereum Holesky, etc.).
NodeID represents a node's assigned ID.
RelayType describes enum for existing relay types.
Sender represents sender type.
SHA256Hash represents a byte array containing SHA256 hash (e.g.
SHA256HashList represents hash list.
ShortID represents the compressed transaction ID.
ShortIDList represents short id list.
ShortIDsByNetwork represents map of shortIDs by network.
Status types of transaction state.
TxContent represents a byte array containing full transaction bytes.
TxFlags represents various flags controlling routing behavior of transactions.
TxValidationStatus indicates the validation status of transaction notifications.
UpdateSource is the source for updating transaction status.