Minimal structural interface that any object with a transport property satisfies.
Protocol tool factories (createMetaplexTools, createJupiterOnchainTools,
createRaydiumOnchainTools, createProtocolTools) accept this type instead
of the full SynapseClient class, so consumers are never forced to
match every property / getter the SDK adds in future versions.
Both the concrete SynapseClient class and a plain { transport } object
satisfy this interface — no as any cast needed.
// Full client works as before: constclient = newSynapseClient({ endpoint:'...' }); constmetaplex = createMetaplexTools(client);
// Minimal object also works — useful in tests or across versions: constlite: SynapseClientLike = { transport:client.transport }; consttools = createMetaplexTools(lite);
Minimal structural interface that any object with a
transportproperty satisfies.Protocol tool factories (
createMetaplexTools,createJupiterOnchainTools,createRaydiumOnchainTools,createProtocolTools) accept this type instead of the full SynapseClient class, so consumers are never forced to match every property / getter the SDK adds in future versions.Both the concrete
SynapseClientclass and a plain{ transport }object satisfy this interface — noas anycast needed.Since
1.0.8
Example