Constructors
constructor
Type Parameters
Parameters
idl: IDL
coder: Coder<string, string> = ...
Properties
Readonly coder
coder
: Coder<string, string> = ...Methods
fetch
- fetch(): Promise<TypeDef<IDL["state"] extends undefined ? IdlTypeDef : NonNullable<IDL["state"]>["struct"], RecursiveTypes<NonNullable<IDL["types"]>, EmptyDefined, DecodedHelper<NonNullable<IDL["types"]>, EmptyDefined>>>>
Returns Promise<TypeDef<IDL["state"] extends undefined ? IdlTypeDef : NonNullable<IDL["state"]>["struct"], RecursiveTypes<NonNullable<IDL["types"]>, EmptyDefined, DecodedHelper<NonNullable<IDL["types"]>, EmptyDefined>>>>
subscribe
- subscribe(commitment?: Commitment): EventEmitter<string | symbol, any>
Parameters
Returns EventEmitter<string | symbol, any>
A client for the program state. Similar to the base Program client, one can use this to send transactions and read accounts for the state abstraction.