SuiAddressContext

Class in @sentio/sdk/sui

Defined in @sentio/sdk/sui

Extends

Extended by

Constructors

Constructor

new SuiAddressContext(
   network: SuiChainId, 
   address: string, 
   checkpoint: bigint, 
   timestamp: Date, 
   baseLabels: Labels | undefined
): SuiAddressContext;

Parameters

ParameterType
networkSuiChainId
addressstring
checkpointbigint
timestampDate
baseLabelsLabels | undefined

Returns

SuiAddressContext

Overrides

MoveAccountContext<
  SuiNetwork,
  ModuleWithAddress,
  SuiEventInput | SuiMoveObjectInput
>.constructor

Properties

PropertyTypeOverridesInherited from
addressstringMoveAccountContext.address-
baseLabelsLabels-MoveAccountContext.baseLabels
checkpointbigint--
coderMoveCoderMoveAccountContext.coder-
eventLoggerEventLoggerBinding-MoveAccountContext.eventLogger
meterMeter-MoveAccountContext.meter
networkSuiChainIdMoveAccountContext.network-
timestampDate--

Accessors

cache

Get Signature

get cache(): MemoryCache;

Access the in-memory key-value cache.

The cache allows storing and retrieving JSON-serializable values that persist across handler invocations. Useful for caching computed results, tracking cumulative state, or storing intermediate processing data.

Example
// Store and retrieve values
await ctx.cache.set('totalVolume', volume)
const cached = await ctx.cache.get<number>('totalVolume')

// Block-scoped values (isolated per block)
await ctx.cache.setInBlock('blockCount', count)
See

MemoryCache for full API documentation

Returns

MemoryCache

The MemoryCache instance, or undefined if cache is not available

Inherited from

MoveAccountContext.cache


client

Get Signature

get client(): SuiGrpcClient;
Returns

SuiGrpcClient


store

Get Signature

get store(): Store;
Returns

Store

Inherited from

MoveAccountContext.store

Methods

getChainId()

getChainId(): SuiChainId;

Returns

SuiChainId

Overrides

MoveAccountContext.getChainId


getMetaData()

getMetaData(name: string, labels: Labels): RecordMetaData;

Parameters

ParameterType
namestring
labelsLabels

Returns

RecordMetaData

Inherited from

MoveAccountContext.getMetaData


getMetaDataInternal()

getMetaDataInternal(name: string, labels: Labels): RecordMetaData;

Parameters

ParameterType
namestring
labelsLabels

Returns

RecordMetaData

Overrides

MoveAccountContext.getMetaDataInternal

getTimestamp()

getTimestamp(): number;

Returns

number

Overrides

MoveAccountContext.getTimestamp


initStore()

initStore(): void;

Returns

void

Inherited from

MoveAccountContext.initStore


sendTemplateInstance()

sendTemplateInstance(instance: TemplateInstance, unbind?: boolean): void;

Parameters

ParameterTypeDefault value
instanceTemplateInstanceundefined
unbindbooleanfalse

Returns

void

Inherited from

MoveAccountContext.sendTemplateInstance


stopAndGetResult()

stopAndGetResult(): ProcessResult;

Returns

ProcessResult

Inherited from

MoveAccountContext.stopAndGetResult


update()

update(res: MessageInit<ProcessResult>): void;

Parameters

ParameterType
resMessageInit<ProcessResult>

Returns

void

Inherited from

MoveAccountContext.update

On this page