account
Class in @sentio/sdk/aptos/builtin › _0x1
Defined in @sentio/sdk/aptos/builtin › _0x1
Event and struct types of this Move module: @typemove/aptos › 0x1::account
Extends
Constructors
Constructor
new account(options: AptosBindOptions): account;Parameters
| Parameter | Type |
|---|---|
options | AptosBindOptions |
Returns
account
Overrides
AptosBaseProcessor.constructor
Properties
| Property | Modifier | Type | Default value | Inherited from |
|---|---|---|---|---|
callHandlers | public | CallHandler<AptCall>[] | [] | AptosBaseProcessor.callHandlers |
coder | public | MoveCoder | undefined | AptosBaseProcessor.coder |
config | public | IndexConfigure | undefined | AptosBaseProcessor.config |
eventHandlers | public | EventHandler<AptEvent>[] | [] | AptosBaseProcessor.eventHandlers |
moduleName | readonly | string | undefined | AptosBaseProcessor.moduleName |
resourceChangeHandlers | public | ResourceChangeHandler<AptResource>[] | [] | AptosBaseProcessor.resourceChangeHandlers |
transactionIntervalHandlers | public | TransactionIntervalHandler[] | [] | AptosBaseProcessor.transactionIntervalHandlers |
DEFAULT_OPTIONS | static | AptosBindOptions | undefined | - |
Methods
getChainId()
getChainId(): string;Returns
string
Inherited from
onEntryOfferRotationCapability()
onEntryOfferRotationCapability(
func: (call: OfferRotationCapabilityPayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, OfferRotationCapabilityPayload>
): account;Parameters
| Parameter | Type |
|---|---|
func | (call: OfferRotationCapabilityPayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, OfferRotationCapabilityPayload> |
Returns
account
onEntryOfferSignerCapability()
onEntryOfferSignerCapability(
func: (call: OfferSignerCapabilityPayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, OfferSignerCapabilityPayload>
): account;Parameters
| Parameter | Type |
|---|---|
func | (call: OfferSignerCapabilityPayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, OfferSignerCapabilityPayload> |
Returns
account
onEntryRevokeAnyRotationCapability()
onEntryRevokeAnyRotationCapability(
func: (call: RevokeAnyRotationCapabilityPayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, RevokeAnyRotationCapabilityPayload>
): account;Parameters
| Parameter | Type |
|---|---|
func | (call: RevokeAnyRotationCapabilityPayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, RevokeAnyRotationCapabilityPayload> |
Returns
account
onEntryRevokeAnySignerCapability()
onEntryRevokeAnySignerCapability(
func: (call: RevokeAnySignerCapabilityPayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, RevokeAnySignerCapabilityPayload>
): account;Parameters
| Parameter | Type |
|---|---|
func | (call: RevokeAnySignerCapabilityPayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, RevokeAnySignerCapabilityPayload> |
Returns
account
onEntryRevokeRotationCapability()
onEntryRevokeRotationCapability(
func: (call: RevokeRotationCapabilityPayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, RevokeRotationCapabilityPayload>
): account;Parameters
| Parameter | Type |
|---|---|
func | (call: RevokeRotationCapabilityPayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, RevokeRotationCapabilityPayload> |
Returns
account
onEntryRevokeSignerCapability()
onEntryRevokeSignerCapability(
func: (call: RevokeSignerCapabilityPayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, RevokeSignerCapabilityPayload>
): account;Parameters
| Parameter | Type |
|---|---|
func | (call: RevokeSignerCapabilityPayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, RevokeSignerCapabilityPayload> |
Returns
account
onEntryRotateAuthenticationKey()
onEntryRotateAuthenticationKey(
func: (call: RotateAuthenticationKeyPayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, RotateAuthenticationKeyPayload>
): account;Parameters
| Parameter | Type |
|---|---|
func | (call: RotateAuthenticationKeyPayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, RotateAuthenticationKeyPayload> |
Returns
account
onEntryRotateAuthenticationKeyCall()
onEntryRotateAuthenticationKeyCall(
func: (call: RotateAuthenticationKeyCallPayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, RotateAuthenticationKeyCallPayload>
): account;Parameters
| Parameter | Type |
|---|---|
func | (call: RotateAuthenticationKeyCallPayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, RotateAuthenticationKeyCallPayload> |
Returns
account
onEntryRotateAuthenticationKeyFromPublicKey()
onEntryRotateAuthenticationKeyFromPublicKey(
func: (call: RotateAuthenticationKeyFromPublicKeyPayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, RotateAuthenticationKeyFromPublicKeyPayload>
): account;Parameters
| Parameter | Type |
|---|---|
func | (call: RotateAuthenticationKeyFromPublicKeyPayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, RotateAuthenticationKeyFromPublicKeyPayload> |
Returns
account
onEntryRotateAuthenticationKeyWithRotationCapability()
onEntryRotateAuthenticationKeyWithRotationCapability(
func: (call: RotateAuthenticationKeyWithRotationCapabilityPayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, RotateAuthenticationKeyWithRotationCapabilityPayload>
): account;Parameters
| Parameter | Type |
|---|---|
func | (call: RotateAuthenticationKeyWithRotationCapabilityPayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, RotateAuthenticationKeyWithRotationCapabilityPayload> |
Returns
account
onEntrySetOriginatingAddress()
onEntrySetOriginatingAddress(
func: (call: SetOriginatingAddressPayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, SetOriginatingAddressPayload>
): account;Parameters
| Parameter | Type |
|---|---|
func | (call: SetOriginatingAddressPayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, SetOriginatingAddressPayload> |
Returns
account
onEntryUpsertEd25519BackupKeyAndEncryptDk()
onEntryUpsertEd25519BackupKeyAndEncryptDk(
func: (call: UpsertEd25519BackupKeyAndEncryptDkPayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, UpsertEd25519BackupKeyAndEncryptDkPayload>
): account;Parameters
| Parameter | Type |
|---|---|
func | (call: UpsertEd25519BackupKeyAndEncryptDkPayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, UpsertEd25519BackupKeyAndEncryptDkPayload> |
Returns
account
onEntryUpsertEd25519BackupKeyOnKeylessAccount()
onEntryUpsertEd25519BackupKeyOnKeylessAccount(
func: (call: UpsertEd25519BackupKeyOnKeylessAccountPayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, UpsertEd25519BackupKeyOnKeylessAccountPayload>
): account;Parameters
| Parameter | Type |
|---|---|
func | (call: UpsertEd25519BackupKeyOnKeylessAccountPayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, UpsertEd25519BackupKeyOnKeylessAccountPayload> |
Returns
account
onEvent()
onEvent(handler: (event: Event, ctx: AptosContext) => void, handlerOptions?: HandlerOptions<MoveFetchConfig, Event>): this;Parameters
| Parameter | Type |
|---|---|
handler | (event: Event, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, Event> |
Returns
this
Inherited from
onEventCoinRegister()
onEventCoinRegister(
func: (event: CoinRegisterInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, CoinRegisterInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): account;Parameters
| Parameter | Type |
|---|---|
func | (event: CoinRegisterInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, CoinRegisterInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
account
onEventCoinRegisterEvent()
onEventCoinRegisterEvent(
func: (event: CoinRegisterEventInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, CoinRegisterEventInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): account;Parameters
| Parameter | Type |
|---|---|
func | (event: CoinRegisterEventInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, CoinRegisterEventInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
account
onEventKeyRotation()
onEventKeyRotation(
func: (event: KeyRotationInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, KeyRotationInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): account;Parameters
| Parameter | Type |
|---|---|
func | (event: KeyRotationInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, KeyRotationInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
account
onEventKeyRotationEvent()
onEventKeyRotationEvent(
func: (event: KeyRotationEventInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, KeyRotationEventInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): account;Parameters
| Parameter | Type |
|---|---|
func | (event: KeyRotationEventInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, KeyRotationEventInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
account
onEventKeyRotationToPublicKey()
onEventKeyRotationToPublicKey(
func: (event: KeyRotationToPublicKeyInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, KeyRotationToPublicKeyInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): account;Parameters
| Parameter | Type |
|---|---|
func | (event: KeyRotationToPublicKeyInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, KeyRotationToPublicKeyInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
account
onEventRotationCapability()
onEventRotationCapability(
func: (event: RotationCapabilityInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, RotationCapabilityInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): account;Parameters
| Parameter | Type |
|---|---|
func | (event: RotationCapabilityInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, RotationCapabilityInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
account
onEventSignerCapability()
onEventSignerCapability(
func: (event: SignerCapabilityInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, SignerCapabilityInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): account;Parameters
| Parameter | Type |
|---|---|
func | (event: SignerCapabilityInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, SignerCapabilityInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
account
onResourceChange()
Call Signature
onResourceChange<T>(
handler: (changes: ResourceChange<T>[], ctx: AptosResourcesContext) => PromiseOrVoid,
typeDesc:
| string
| TypeDescriptor<T>,
handlerOptions?: HandlerOptions<object, ResourceChange<T>[]>
): this;Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type |
|---|---|
handler | (changes: ResourceChange<T>[], ctx: AptosResourcesContext) => PromiseOrVoid |
typeDesc | | string | TypeDescriptor<T> |
handlerOptions? | HandlerOptions<object, ResourceChange<T>[]> |
Returns
this
Inherited from
AptosBaseProcessor.onResourceChange
Call Signature
onResourceChange<Descs extends readonly (
| string
| TypeDescriptor<any>)[]>(
handler: (changes: ResourceChange<ExtractDescriptorType<Descs[number]>>[], ctx: AptosResourcesContext) => PromiseOrVoid,
typeDesc: [...Descs[]],
handlerOptions?: HandlerOptions<object, ResourceChange<ExtractDescriptorType<Descs[number]>>[]>
): this;Type Parameters
| Type Parameter |
|---|
Descs extends readonly ( | string | TypeDescriptor<any>)[] |
Parameters
| Parameter | Type |
|---|---|
handler | (changes: ResourceChange<ExtractDescriptorType<Descs[number]>>[], ctx: AptosResourcesContext) => PromiseOrVoid |
typeDesc | [...Descs[]] |
handlerOptions? | HandlerOptions<object, ResourceChange<ExtractDescriptorType<Descs[number]>>[]> |
Returns
this
Inherited from
AptosBaseProcessor.onResourceChange
onTimeInterval()
onTimeInterval(
handler: (transaction: UserTransactionResponse, ctx: AptosContext) => PromiseOrVoid,
timeIntervalInMinutes?: number,
backfillTimeIntervalInMinutes?: number,
handlerOptions?: HandlerOptions<MoveFetchConfig, UserTransactionResponse>
): this;Parameters
| Parameter | Type | Default value |
|---|---|---|
handler | (transaction: UserTransactionResponse, ctx: AptosContext) => PromiseOrVoid | undefined |
timeIntervalInMinutes | number | 60 |
backfillTimeIntervalInMinutes | number | 240 |
handlerOptions? | HandlerOptions<MoveFetchConfig, UserTransactionResponse> | undefined |
Returns
this
Inherited from
AptosBaseProcessor.onTimeInterval
onTransaction()
onTransaction(
handler: (transaction: UserTransactionResponse, ctx: AptosContext) => PromiseOrVoid,
transactionFilter?: object,
handleOptions?: HandlerOptions<MoveFetchConfig, UserTransactionResponse>
): this;Parameters
| Parameter | Type |
|---|---|
handler | (transaction: UserTransactionResponse, ctx: AptosContext) => PromiseOrVoid |
transactionFilter? | { includeFailed?: boolean; sender?: string; } |
transactionFilter.includeFailed? | boolean |
transactionFilter.sender? | string |
handleOptions? | HandlerOptions<MoveFetchConfig, UserTransactionResponse> |
Returns
this
Inherited from
AptosBaseProcessor.onTransaction
onVersionInterval()
onVersionInterval(
handler: (transaction: UserTransactionResponse, context: AptosContext) => PromiseOrVoid,
versionInterval?: number,
backfillVersionInterval?: number,
handlerOptions?: HandlerOptions<MoveFetchConfig, UserTransactionResponse>
): this;Parameters
| Parameter | Type | Default value |
|---|---|---|
handler | (transaction: UserTransactionResponse, context: AptosContext) => PromiseOrVoid | undefined |
versionInterval | number | 100000 |
backfillVersionInterval | number | 400000 |
handlerOptions? | HandlerOptions<MoveFetchConfig, UserTransactionResponse> | undefined |
Returns
this
Inherited from
AptosBaseProcessor.onVersionInterval
bind()
static bind(options?: Partial<AptosBindOptions>): account;For a given function, creates a bound function that has the same body as the original function. The this object of the bound function is associated with the specified object, and has the specified initial parameters.
Parameters
| Parameter | Type |
|---|---|
options | Partial<AptosBindOptions> |
Returns
account