Skip to content

subscribe(type_params_commitment_)

bigearsenal edited this page May 17, 2022 · 1 revision

subscribe(type:params:commitment:)

Subscribe to an entity ('account', 'program', 'signature', for example)

@discardableResult public func subscribe<T: Encodable>(type entity: SocketEntity, params: T, commitment: String)

Parameters

  • type: type of entity, '.account', '.program',...
  • params: params to be sent

Returns

id of the request

Types
Protocols
Global Typealiases
Global Variables
Global Functions
Operators
Extensions
Clone this wiki locally