Properties
address
address: PublicKey
Methods
getGlobalBalanceTokens
- getGlobalBalanceTokens(connection, trader): Promise<number>
Parameters
- connection: Connection
- trader: PublicKey
Returns Promise<number>
getGlobalBalanceTokensWithDecimals
- getGlobalBalanceTokensWithDecimals(trader, decimals): number
Parameters
- trader: PublicKey
- decimals: number
Returns number
getMintDecimals
- getMintDecimals(connection): Promise<number>
Returns Promise<number>
hasSeat
- hasSeat(trader): boolean
Returns boolean
prettyPrint
- prettyPrint(): void
Returns void
reload
- reload(connection): Promise<void>
Returns Promise<void>
tokenMint
- tokenMint(): PublicKey
Returns PublicKey
Static
loadFromAddress
- loadFromAddress(__namedParameters): Promise<null | Global>
Parameters
- __namedParameters: {
address: PublicKey;
connection: Connection;
}address: PublicKey
connection: Connection
Returns Promise<null | Global>
Static
loadFromBuffer
- loadFromBuffer(__namedParameters): Global
Parameters
- __namedParameters: {
address: PublicKey;
buffer: Buffer;
}address: PublicKey
buffer: Buffer
Returns a
Global
for a given address, a data buffer