Skip to content
Logo

flint.margin.maker.v1 reference

Table of Contents

Top

flint/margin/maker/v1/auth/messages.proto

AuthenticateRequest

FieldTypeLabelDescription
pubkeystringBase58 public key.
signaturestringBase58 signature over the domain prefix and nonce returned by Challenge.
trader_idTraderIdAccount to scope the session to. Omit to select the lowest authorized ID.

AuthenticateResponse

FieldTypeLabelDescription
session_tokenstringSend as authorization: Bearer <session_token> metadata.
trader_idsTraderIdrepeatedAccounts controlled as owner or active TRADE or QUOTE delegate.
expires_atTimestampThe server returns UNAUTHENTICATED after this time.
trader_idTraderIdAccount selected for this session.

ChallengeRequest

FieldTypeLabelDescription
pubkeystringBase58 owner or active TRADE- or QUOTE-delegate public key.

ChallengeResponse

FieldTypeLabelDescription
noncebytesSign FLINT-MARGIN-AUTH-V1: followed by this single-use nonce.
expires_atTimestampServer rejects Authenticate after this time.

RevokeRequest

FieldTypeLabelDescription
session_tokenstring

RevokeResponse

Top

flint/margin/maker/v1/auth/service.proto

AuthService

Issues sessions through a signed challenge; TxService requires the token.

Method NameRequest TypeResponse TypeDescription
ChallengeChallengeRequestChallengeResponseIssues a single-use nonce.
AuthenticateAuthenticateRequestAuthenticateResponseReturns UNAUTHENTICATED for missing or expired nonces, invalid signatures, or keys that control no trader account.
RevokeRevokeRequestRevokeResponse

Top

flint/margin/maker/v1/common.proto

Blockhash

FieldTypeLabelDescription
hashbytes

Decimal

Decimal string parsed with rust_decimal-compatible semantics.

FieldTypeLabelDescription
valuestring

LatLng

Absent when the location is unavailable.

FieldTypeLabelDescription
latdouble
lngdouble

PerpId

FieldTypeLabelDescription
iduint32

SpotId

On-chain margin spot-asset id.

FieldTypeLabelDescription
iduint32

Timestamp

Unix microseconds since epoch; zero is unspecified.

FieldTypeLabelDescription
microsuint64

TraderId

FieldTypeLabelDescription
iduint64

HealthState

NameNumberDescription
HEALTH_STATE_UNSPECIFIED0
HEALTH_STATE_HEALTHY1
HEALTH_STATE_DEGRADED2
HEALTH_STATE_HALTED3

Side

NameNumberDescription
SIDE_UNSPECIFIED0
SIDE_BUY1
SIDE_SELL2

Top

flint/margin/maker/v1/escalation/messages.proto

PageTheTeamRequest

FieldTypeLabelDescription
messagestringRequired non-empty message, delivered verbatim to on-call.

PageTheTeamResponse

FieldTypeLabelDescription
page_idstringServer-assigned page ID.
received_atTimestampWhen the server accepted the page.

Top

flint/margin/maker/v1/escalation/service.proto

EscalationService

Organization-authenticated escalation to the on-call team.

Method NameRequest TypeResponse TypeDescription
PageTheTeamPageTheTeamRequestPageTheTeamResponseConfirms dispatch, not response. Rejects unauthenticated callers and empty messages.

Top

flint/margin/maker/v1/maker/events.proto

DecodedEvent

Decoded Flint margin-program event. Type-specific data is JSON.

FieldTypeLabelDescription
kindDecodedEventKind
trader_idTraderIdTrader account touched by the event; unset when venue-global.
perp_idPerpIdPerp touched by the event; unset for collateral-only actions.
sideSide
priceDecimal
sizeDecimal
instruction_indexuint32
event_indexuint32
payload_jsonstring

FillEvent

Fill where the authenticated trader provided liquidity. Side is the maker's direction. Price and size are scaled from the perp's tick and lot grids; maker_rebate is denominated in the perp's PnL currency.

FieldTypeLabelDescription
perp_idPerpId
trader_idTraderId
sideSide
priceDecimal
sizeDecimal
slotuint64
tsTimestamp
signaturestring
maker_rebateDecimal
taker_idTraderId
ref_price_0sDecimalQuote-denominated markout prices. Set only by GetFills; each horizon is unset when no price was captured.
ref_price_1sDecimal
ref_price_5sDecimal
ref_price_15sDecimal
ref_price_30sDecimal
notional_usdDecimal

MakerActivity

One decoded account or quoting action associated with a trader.

FieldTypeLabelDescription
trader_idTraderId
perp_idPerpIdUnset for collateral-only actions.
slotuint64
tsTimestamp
signaturestring
typeMakerActivityType
payload_jsonstringDecoded event detail; fields depend on type.

MakerMarketSnapshot

Perp market snapshot with the authenticated trader's best quotes.

FieldTypeLabelDescription
perp_idPerpId
slotuint64
best_bidPerpL2Level
best_askPerpL2Level
bid_depth_levelsPerpL2Levelrepeated
ask_depth_levelsPerpL2Levelrepeated
last_priceDecimal
maker_bidMakerQuote
maker_askMakerQuote

MakerMarketsSnapshotEvent

FieldTypeLabelDescription
slotuint64
tsTimestamp
marketsMakerMarketSnapshotrepeated

MakerQuote

The authenticated trader's resting quote on one side of a perp.

FieldTypeLabelDescription
priceDecimal
sizeDecimal
leveluint32

PerpL2Level

One price level on a perp market book.

FieldTypeLabelDescription
priceDecimal
sizeDecimal

QuoteUpdate

Submitted quoting intent in a successfully executed transaction.

FieldTypeLabelDescription
perp_idPerpId
block_timeTimestamp
slotuint64
signaturestring
instruction_indexuint32
entry_index_hintuint32Lookup hint for UpdateQuoting; exact entry index for compact batches.
trader_idTraderId
quoterstring
strategyQuotingStrategy
sequenceuint64
payload_jsonstring
update_kindQuoteUpdateKind
update_indexuint32Zero for UpdateQuoting, otherwise the one-based item within a compact batch.
appliedbooloptionalAbsent when a partial-success batch does not report individual outcomes.
enabled_afterbooloptionalAbsent when the update preserves the current enabled flag.

QuoterSeriesBucket

FieldTypeLabelDescription
tsTimestamp
rtt_samplesuint32
p50_rtt_microsuint64
p99_rtt_microsuint64
quotesuint64
transactions_sentuint64
transactions_landeduint64
transactions_faileduint64
land_samplesuint32
p50_land_microsuint64
p99_land_microsuint64

QuoterSession

One currently-open session for a selected trader.

FieldTypeLabelDescription
session_idstringServer-minted identifier; never the bearer token itself.
trader_idTraderId
quoterstring
connected_atTimestamp
expires_atTimestamp
last_seenTimestamp
ipstring
sdkstring
proto_revstring
rtt_microsuint64
drift_microsint64
regionstring
server_instancestring
session_lat_lngLatLngoptional
server_lat_lngLatLngoptional
last_submitted_atTimestampoptional
last_landed_atTimestampoptional

QuotingAuthority

Aggregate of one authority's currently-open sessions for a trader.

FieldTypeLabelDescription
trader_idTraderId
quoterstringBase58 public key that authenticated the sessions.
open_sessionsuint32
last_seenTimestamp
min_rtt_microsuint64
regionsstringrepeated
sdksstringrepeated
last_submitted_atTimestampoptional
last_landed_atTimestampoptional
sol_lamportsuint64optional
sol_balance_as_ofTimestampoptional
p50_rtt_microsuint64
p99_rtt_microsuint64
rtt_samplesuint32
seriesQuoterSeriesBucketrepeated

QuotingState

Latest observed state for one admitted on-chain quoting entry.

FieldTypeLabelDescription
perp_idPerpId
trader_idTraderId
entry_indexuint32
sequenceuint64Maximum of the independent streams; use their fields when reconciling writes.
enabledbool
strategyQuotingStrategy
payload_jsonstring
slotuint64
observed_atTimestamp
order_sequenceuint64
fair_sequenceuint64optional

DecodedEventKind

NameNumberDescription
DECODED_EVENT_KIND_UNSPECIFIED0
DECODED_EVENT_KIND_COLLATERAL1
DECODED_EVENT_KIND_PERP_TRADE2
DECODED_EVENT_KIND_PERP_FILL3
DECODED_EVENT_KIND_QUOTING_UPDATE4
DECODED_EVENT_KIND_PERP_LIQUIDATED5
DECODED_EVENT_KIND_FUNDING_UPDATED6
DECODED_EVENT_KIND_FUNDING_SETTLED7
DECODED_EVENT_KIND_PERP_CONFIG_UPDATED8
DECODED_EVENT_KIND_FUNDING_ADVANCED9
DECODED_EVENT_KIND_PERP_UPDATE_PROPOSED10
DECODED_EVENT_KIND_PERP_UPDATE_CANCELLED11

MakerActivityType

NameNumberDescription
MAKER_ACTIVITY_TYPE_UNSPECIFIED0
MAKER_ACTIVITY_TYPE_COLLATERAL1
MAKER_ACTIVITY_TYPE_PERP_TRADE2
MAKER_ACTIVITY_TYPE_QUOTING_UPDATE3

QuoteUpdateKind

NameNumberDescription
QUOTE_UPDATE_KIND_UNSPECIFIED0
QUOTE_UPDATE_KIND_KEEP1
QUOTE_UPDATE_KIND_RESET2
QUOTE_UPDATE_KIND_ORDER_LIST3
QUOTE_UPDATE_KIND_SPLINE_FAIR4
QUOTE_UPDATE_KIND_SPLINE_BANDS5
QUOTE_UPDATE_KIND_DENSITY_FAIR6
QUOTE_UPDATE_KIND_DENSITY_BANDS7
QUOTE_UPDATE_KIND_RELATIVE_DENSITY_BANDS8

QuotingStrategy

NameNumberDescription
QUOTING_STRATEGY_UNSPECIFIED0
QUOTING_STRATEGY_ORDER_LIST1
QUOTING_STRATEGY_SPLINE2
QUOTING_STRATEGY_DENSITY3
QUOTING_STRATEGY_RELATIVE_DENSITY4

TransactionStatus

NameNumberDescription
TRANSACTION_STATUS_UNSPECIFIED0
TRANSACTION_STATUS_CONFIRMED1
TRANSACTION_STATUS_FAILED2

Top

flint/margin/maker/v1/maker/messages.proto

GetDecodedTransactionRequest

Address a transaction by its base58 signature.

FieldTypeLabelDescription
signaturestring

GetDecodedTransactionResponse

FieldTypeLabelDescription
signaturestring
slotuint64
block_timeTimestamp
statusTransactionStatus
fee_lamportsuint64optionalUnset when transaction metadata was not archived.
eventsDecodedEventrepeatedOrdered by instruction_index, then event_index.

GetFillsRequest

FieldTypeLabelDescription
perp_idsPerpIdrepeated
startTimestamp
endTimestamp
limituint32
cursorstring
order_byMakerFillOrder
markout_horizonMarkoutHorizonHorizon used by ABS_MARKOUT_DESC; ignored for TIME_DESC.

GetFillsResponse

FieldTypeLabelDescription
fillsFillEventrepeated
next_cursorstring

GetMakerActivityRequest

Historical actions performed by the session's selected trader.

FieldTypeLabelDescription
startTimestamp
endTimestamp
limituint32Zero uses the server default; maximum 1000.
typesMakerActivityTyperepeated

GetMakerActivityResponse

FieldTypeLabelDescription
activitiesMakerActivityrepeatedOrdered newest first.

GetMakerMarkoutSummaryRequest

Whole-window markout summary, without GetFills' page limit.

FieldTypeLabelDescription
perp_idsPerpIdrepeated
startTimestampInclusive lower bound; unset selects the server retention window.
endTimestampExclusive upper bound; unset selects now.
horizonMarkoutHorizon

GetMakerMarkoutSummaryResponse

FieldTypeLabelDescription
netdouble
adversedoubleAbsolute USD value of negative-markout fills.
favorabledouble
volume_usddouble
fillsuint64
fills_with_markoutuint64
fills_unpriceduint64Non-zero means USD totals are lower bounds.
fills_missing_refuint64
avg_bpsdoubleoptional
avg_per_filldoubleoptional
bucketsMarkoutBucketrepeated
perpsMarkoutPerpRowrepeatedOrdered by adverse selection descending.
histogramMarkoutHistogramBinrepeated
effective_startTimestampActual queried window after retention clamping.
effective_endTimestamp

GetMakerStatsRequest

GetMakerStatsResponse

FieldTypeLabelDescription
trader_idTraderId
fillsUpdateRate
transactions_sentUpdateRate
transactions_landedUpdateRate
transactions_failedUpdateRate
oracle_updatesUpdateRate
quote_updatesUpdateRate

GetMakerVolumeBreakdownRequest

Per-trader maker volume, split by rolling window.

FieldTypeLabelDescription
perp_idsPerpIdrepeatedEmpty selects every perp where the session's trader has maker fills.

GetMakerVolumeBreakdownResponse

FieldTypeLabelDescription
perpsPerpVolumerepeatedOrdered by 24-hour USD volume descending.

GetMakerVolumeSeriesRequest

FieldTypeLabelDescription
perp_idPerpIdUnset aggregates every perp where the session's trader has maker fills.
windowStatsWindow

GetMakerVolumeSeriesResponse

FieldTypeLabelDescription
bucketsVolumeBucketrepeatedOrdered oldest first.
bucket_secondsuint32

GetQuoteRequest

FieldTypeLabelDescription
signaturestring
instruction_indexuint32
update_indexuint32

GetQuoteResponse

FieldTypeLabelDescription
quoteQuoteUpdate

GetQuotingStateRequest

FieldTypeLabelDescription
perp_idsPerpIdrepeated

GetQuotingStateResponse

FieldTypeLabelDescription
entriesQuotingStaterepeated

GetSdkCredentialsRequest

GetSdkCredentialsResponse

FieldTypeLabelDescription
tokenstringPlaintext read-only registry token. Repeated calls return the same token.
token_namestring
index_urlstring
registry_namestring
created_atTimestamp

ListQuoterSessionsRequest

FieldTypeLabelDescription
quoterstringEmpty includes every session observed for the selected trader.

ListQuoterSessionsResponse

FieldTypeLabelDescription
sessionsQuoterSessionrepeatedOrdered most-recently-seen first.

ListQuotingAuthoritiesRequest

FieldTypeLabelDescription
quoterstringEmpty includes every authority observed for the selected trader.

ListQuotingAuthoritiesResponse

FieldTypeLabelDescription
authoritiesQuotingAuthorityrepeatedOrdered by open session count descending.
bucket_secondsuint32
series_startTimestamp
series_endTimestamp

ListRecentQuotesRequest

FieldTypeLabelDescription
perp_idsPerpIdrepeated
quotersstringrepeated
startTimestampoptional
endTimestampoptional
limituint32
cursorstring

ListRecentQuotesResponse

FieldTypeLabelDescription
quotesQuoteUpdaterepeated
next_cursorstring

MarkoutBucket

FieldTypeLabelDescription
indexuint32
netdouble
adversedouble
favorabledouble

MarkoutHistogramBin

FieldTypeLabelDescription
mindoubleoptionalUnset edges are unbounded.
maxdoubleoptional
countuint64
volume_usddouble
netdouble

MarkoutPerpRow

FieldTypeLabelDescription
perp_idPerpId
netdouble
adversedouble
favorabledouble
volume_usddouble
fillsuint64
fills_with_markoutuint64
avg_bpsdoubleoptional

PerpVolume

FieldTypeLabelDescription
perp_idPerpId
one_hourVolumeWindow
twenty_four_hourVolumeWindow
thirty_dayVolumeWindow
last_priceDecimalMost recent observed fill price.

SubscribeFillsRequest

FieldTypeLabelDescription
perp_idsPerpIdrepeated

SubscribeMakerMarketSnapshotsRequest

FieldTypeLabelDescription
perp_idsPerpIdrepeatedEmpty selects every perp admitted for the session's trader.

SubscribeQuotesRequest

FieldTypeLabelDescription
perp_idsPerpIdrepeated
quotersstringrepeated

UpdateRate

FieldTypeLabelDescription
per_second_1sdouble
per_second_1mdouble
per_second_5mdouble

VolumeBucket

FieldTypeLabelDescription
tsTimestamp
volume_usdDecimal
fill_countuint64

VolumeWindow

FieldTypeLabelDescription
volume_usdDecimalNotional in USD, counted once for each matched long/short pair.
fill_countuint64

MakerFillOrder

NameNumberDescription
MAKER_FILL_ORDER_UNSPECIFIED0
MAKER_FILL_ORDER_TIME_DESC1
MAKER_FILL_ORDER_ABS_MARKOUT_DESC2Largest absolute USD markout first; fills without one sort last.

MarkoutHorizon

NameNumberDescription
MARKOUT_HORIZON_UNSPECIFIED0
MARKOUT_HORIZON_SEC_01
MARKOUT_HORIZON_SEC_12
MARKOUT_HORIZON_SEC_53
MARKOUT_HORIZON_SEC_154
MARKOUT_HORIZON_SEC_305

StatsWindow

NameNumberDescription
STATS_WINDOW_UNSPECIFIED0
STATS_WINDOW_1H1
STATS_WINDOW_24H2
STATS_WINDOW_30D3

Top

flint/margin/maker/v1/maker/service.proto

MakerService

Session-authenticated maker queries and streams.

Method NameRequest TypeResponse TypeDescription
SubscribeMarketSnapshotsSubscribeMakerMarketSnapshotsRequestMakerMarketsSnapshotEvent stream
SubscribeFillsSubscribeFillsRequestFillEvent stream
GetFillsGetFillsRequestGetFillsResponse
GetVolumeBreakdownGetMakerVolumeBreakdownRequestGetMakerVolumeBreakdownResponse
GetVolumeSeriesGetMakerVolumeSeriesRequestGetMakerVolumeSeriesResponse
GetMarkoutSummaryGetMakerMarkoutSummaryRequestGetMakerMarkoutSummaryResponse
GetQuotingStateGetQuotingStateRequestGetQuotingStateResponse
SubscribeQuotesSubscribeQuotesRequestQuoteUpdate stream
ListRecentQuotesListRecentQuotesRequestListRecentQuotesResponse
GetQuoteGetQuoteRequestGetQuoteResponse
GetStatsGetMakerStatsRequestGetMakerStatsResponse
GetActivityGetMakerActivityRequestGetMakerActivityResponse
GetDecodedTransactionGetDecodedTransactionRequestGetDecodedTransactionResponse
ListQuotingAuthoritiesListQuotingAuthoritiesRequestListQuotingAuthoritiesResponse
ListQuoterSessionsListQuoterSessionsRequestListQuoterSessionsResponse
GetSdkCredentialsGetSdkCredentialsRequestGetSdkCredentialsResponse

Top

flint/margin/maker/v1/node/messages.proto

GetNodeInfoRequest

GetNodeInfoResponse

FieldTypeLabelDescription
versionstringServer build identity.
git_commitstring
proto_hashstringSchema revision used to build this node.
proto_revstring
clusterstringSolana cluster this node is pointed at (e.g. "mainnet-beta").
regionstringDeploy region owning this node.
program_idstringBase58 program id of the on-chain venue this node serves.
started_atTimestampProcess start time.
leader_proximityLeaderProximity
server_instancestringPer-process server instance ID.
region_lat_lngLatLngoptionalApproximate region location; absent when unavailable.
healthHealthStateHealth of this node only.
health_reasonstringWhy health is not HEALTH_STATE_HEALTHY. Empty when it is.

LeaderProximity

Observed round-trip distance to block leaders.

FieldTypeLabelDescription
measureduint32Zero means no sample; distance fields are then meaningless.
mean_distance_microsuint32
median_distance_microsuint32
p90_distance_microsuint32

ListNodesRequest

FieldTypeLabelDescription
clusterstringEmpty includes every cluster.

ListNodesResponse

FieldTypeLabelDescription
nodesNodeEndpointrepeatedPublished endpoints only; entries do not imply current health.

NodeEndpoint

FieldTypeLabelDescription
endpointstringgRPC endpoint, as host:port or URL.
regionstring
region_lat_lngLatLngoptionalApproximate region location; absent when unavailable.
clusterstring
currentboolTrue for the endpoint serving this request.

Top

flint/margin/maker/v1/node/service.proto

NodeService

Public node identity and endpoint discovery.

Method NameRequest TypeResponse TypeDescription
GetNodeInfoGetNodeInfoRequestGetNodeInfoResponse
ListNodesListNodesRequestListNodesResponse

Top

flint/margin/maker/v1/session/messages.proto

Ping

Server liveness probe; clients echo seq in an immediate Pong.

FieldTypeLabelDescription
local_timeTimestampServer wall-clock at send time.
sequint64Per-stream correlation nonce.

Pong

Client reply to a Ping, sent immediately on receipt.

FieldTypeLabelDescription
local_timeTimestampClient wall-clock at reply time; used to estimate clock drift.
sequint64Echo of the originating Ping.seq.

SessionRequest

FieldTypeLabelDescription
pongPong

SessionResponse

FieldTypeLabelDescription
pingPing

Top

flint/margin/maker/v1/session/service.proto

SessionService

Server sends a Ping every 30s; clients reply immediately with a Pong. Requires a keypair session via authorization: Bearer <token> metadata.

Method NameRequest TypeResponse TypeDescription
SessionSessionRequest streamSessionResponse stream

Top

flint/margin/maker/v1/spread_protect/events.proto

ResetState

Replace the client's local SpreadProtect state.

FieldTypeLabelDescription
default_spread_multDecimalBaseline multiplier to apply when no widen window is active.

SpreadProtectEvent

Spread-protection stream event.

FieldTypeLabelDescription
reset_stateResetState
widen_windowWidenWindow

WidenWindow

Idempotent advisory for an inclusive slot range; expires after end_slot.

FieldTypeLabelDescription
start_slotuint64Inclusive first slot of the window.
end_slotuint64Inclusive last slot of the window.
spread_multDecimalExact decimal multiplier, at least 1.0.
tsTimestampServer send time, for client-side latency/attribution. Not policy.

Top

flint/margin/maker/v1/spread_protect/messages.proto

SubscribeSpreadProtectRequest

Subscribe to the SpreadProtect widen-window feed. No filters: the policy is server-side and the same windows apply to every maker.

Top

flint/margin/maker/v1/spread_protect/service.proto

SpreadProtectService

Keypair-session-authenticated advisory spread-protection feed.

Method NameRequest TypeResponse TypeDescription
SubscribeSpreadProtectSubscribeSpreadProtectRequestSpreadProtectEvent streamSends a reset followed by current and future widen windows.

Top

flint/margin/maker/v1/tx/events.proto

BlockhashEvent

FieldTypeLabelDescription
blockhashBlockhash
recommended_cu_priceuint64Priority-fee recommendation in microlamports per CU; zero is unavailable.
tsTimestamp
last_valid_block_heightuint64Solana lastValidBlockHeight; zero is unavailable.

LeaderEvent

FieldTypeLabelDescription
start_slotuint64
end_slotuint64
tpu_ipstring
tpu_quic_portuint32
tsTimestamp

SlotEvent

FieldTypeLabelDescription
slotuint64
tsTimestamp

TxAckEvent

Accepted for submission; not confirmation.

FieldTypeLabelDescription
signaturestring
tsTimestamp

TxFailedEvent

Reverted after landing or timed out before landing.

FieldTypeLabelDescription
signaturestring
reasonstring
tsTimestamp

TxLandedEvent

Observed at Processed commitment with no error.

FieldTypeLabelDescription
signaturestring
slotuint64
tsTimestamp

TxStatusEvent

FieldTypeLabelDescription
ackTxAckEvent
landedTxLandedEvent
failedTxFailedEvent

Top

flint/margin/maker/v1/tx/messages.proto

SubmitTxRequest

FieldTypeLabelDescription
transactionbytesFully signed legacy or v0 transaction. The authenticated key must be a required static signer. The selected trader scopes status attribution; the server does not infer transaction account ownership.
client_sent_atTimestampClient send time for latency telemetry only.

SubmitTxResponse

FieldTypeLabelDescription
signaturestringBase58 signature for correlating TxStatusEvents.
tsTimestampServer time when the submission was accepted.
server_replied_atTimestampServer reply time. Subtract ts for server handling time without clock skew.

SubscribeBlockhashRequest

SubscribeLeadersRequest

SubscribeSlotsRequest

SubscribeTxStatusRequest

Streams status transitions attributed to this session's selected trader.

Top

flint/margin/maker/v1/tx/service.proto

TxService

Requires authorization: Bearer <token> metadata from AuthService.

Method NameRequest TypeResponse TypeDescription
SubmitTxSubmitTxRequestSubmitTxResponseReturns after acceptance; status transitions arrive on SubscribeTxStatus.
SubscribeBlockhashSubscribeBlockhashRequestBlockhashEvent stream
SubscribeSlotsSubscribeSlotsRequestSlotEvent stream
SubscribeTxStatusSubscribeTxStatusRequestTxStatusEvent stream
SubscribeLeadersSubscribeLeadersRequestLeaderEvent stream

Scalar Value Types

.proto TypeNotesC++JavaPythonGoC#PHPRuby
doubledoubledoublefloatfloat64doublefloatFloat
floatfloatfloatfloatfloat32floatfloatFloat
int32Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead.int32intintint32intintegerBignum or Fixnum (as required)
int64Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead.int64longint/longint64longinteger/stringBignum
uint32Uses variable-length encoding.uint32intint/longuint32uintintegerBignum or Fixnum (as required)
uint64Uses variable-length encoding.uint64longint/longuint64ulonginteger/stringBignum or Fixnum (as required)
sint32Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.int32intintint32intintegerBignum or Fixnum (as required)
sint64Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s.int64longint/longint64longinteger/stringBignum
fixed32Always four bytes. More efficient than uint32 if values are often greater than 2^28.uint32intintuint32uintintegerBignum or Fixnum (as required)
fixed64Always eight bytes. More efficient than uint64 if values are often greater than 2^56.uint64longint/longuint64ulonginteger/stringBignum
sfixed32Always four bytes.int32intintint32intintegerBignum or Fixnum (as required)
sfixed64Always eight bytes.int64longint/longint64longinteger/stringBignum
boolboolbooleanbooleanboolboolbooleanTrueClass/FalseClass
stringA string must always contain UTF-8 encoded or 7-bit ASCII text.stringStringstr/unicodestringstringstringString (UTF-8)
bytesMay contain any arbitrary sequence of bytes.stringByteStringstr[]byteByteStringstringString (ASCII-8BIT)