IotaAddressContext
Class in @sentio/sdk/iota
Defined in @sentio/sdk/iota
Extends
MoveAccountContext<IotaNetwork,IotaMoveNormalizedModule,IotaEvent|IotaMoveObject>
Extended by
Constructors
Constructor
new IotaAddressContext(
network: SuiChainId,
address: string,
checkpoint: bigint,
timestamp: Date,
baseLabels: Labels | undefined
): IotaAddressContext;Parameters
| Parameter | Type |
|---|---|
network | SuiChainId |
address | string |
checkpoint | bigint |
timestamp | Date |
baseLabels | Labels | undefined |
Returns
IotaAddressContext
Overrides
MoveAccountContext<
IotaNetwork,
IotaMoveNormalizedModule,
IotaEvent | IotaMoveObject
>.constructorProperties
| Property | Type | Overrides | Inherited from |
|---|---|---|---|
address | string | MoveAccountContext.address | - |
baseLabels | Labels | - | MoveAccountContext.baseLabels |
checkpoint | bigint | - | - |
coder | MoveCoder | MoveAccountContext.coder | - |
eventLogger | EventLoggerBinding | - | MoveAccountContext.eventLogger |
meter | Meter | - | MoveAccountContext.meter |
network | SuiChainId | MoveAccountContext.network | - |
timestamp | Date | - | - |
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
client
Get Signature
get client(): IotaClient;Returns
IotaClient
store
Get Signature
get store(): Store;Returns
Store
Inherited from
Methods
getChainId()
getChainId(): SuiChainId;Returns
SuiChainId
Overrides
getMetaData()
getMetaData(name: string, labels: Labels): RecordMetaData;Parameters
| Parameter | Type |
|---|---|
name | string |
labels | Labels |
Returns
Inherited from
MoveAccountContext.getMetaData
getMetaDataInternal()
getMetaDataInternal(name: string, labels: Labels): RecordMetaData;Parameters
| Parameter | Type |
|---|---|
name | string |
labels | Labels |
Returns
Overrides
MoveAccountContext.getMetaDataInternalgetTimestamp()
getTimestamp(): number;Returns
number
Overrides
MoveAccountContext.getTimestamp
initStore()
initStore(): void;Returns
void
Inherited from
sendTemplateInstance()
sendTemplateInstance(instance: TemplateInstance, unbind?: boolean): void;Parameters
| Parameter | Type | Default value |
|---|---|---|
instance | TemplateInstance | undefined |
unbind | boolean | false |
Returns
void
Inherited from
MoveAccountContext.sendTemplateInstance
stopAndGetResult()
stopAndGetResult(): ProcessResult;Returns
Inherited from
MoveAccountContext.stopAndGetResult
update()
update(res: MessageInit<ProcessResult>): void;Parameters
| Parameter | Type |
|---|---|
res | MessageInit<ProcessResult> |
Returns
void