Skip to main content

Function: toProtocolState()

function toProtocolState(state): ProtocolState;

Defined in: solana-client/src/utils.ts:196

Map the decoded Anchor ProtocolState account onto the core ProtocolState.

Drops the account's bump: it is the PDA's own byte, not protocol state — getProtocolStatePda re-derives it locally whenever it is needed, and no other chain has one.

Parameters

ParameterType
stateany

Returns

ProtocolState