Interface: SyncOptions
Sync options for an account
Table of contents
Properties
- addresses
- addressStartIndex
- addressStartIndexInternal
- forceSyncing
- syncPendingTransactions
- account
- alias
- nft
- syncOnlyMostBasicOutputs
- syncNativeTokenFoundries
Properties
addresses
• Optional
addresses: string
[]
Specific Bech32 encoded addresses of the account to sync, if addresses are provided,
then address_start_index
will be ignored
addressStartIndex
• Optional
addressStartIndex: number
Address index from which to start syncing addresses. 0 by default, using a higher index will be faster because addresses with a lower index will be skipped, but could result in a wrong balance for that reason
addressStartIndexInternal
• Optional
addressStartIndexInternal: number
Address index from which to start syncing internal addresses. 0 by default, using a higher index will be faster because addresses with a lower index will be skipped, but could result in a wrong balance for that reason
forceSyncing
• Optional
forceSyncing: boolean
Usually syncing is skipped if it's called in between 200ms, because there can only be new changes every milestone and calling it twice "at the same time" will not return new data When this to true, we will sync anyways, even if it's called 0ms after the las sync finished. Default: false.
syncPendingTransactions
• Optional
syncPendingTransactions: boolean
Checks pending transactions and promotes/reattaches them if necessary. Default: true.
account
• Optional
account: AccountSyncOptions
Specifies what outputs should be synced for the ed25519 addresses from the account.
alias
• Optional
alias: AliasSyncOptions
Specifies what outputs should be synced for the address of an alias output.
nft
• Optional
nft: NftSyncOptions
Specifies what outputs should be synced for the address of an nft output.
syncOnlyMostBasicOutputs
• Optional
syncOnlyMostBasicOutputs: boolean
Specifies if only basic outputs with an AddressUnlockCondition alone should be synced, will overwrite account
, alias
and nft
options. Default: false.
syncNativeTokenFoundries
• Optional
syncNativeTokenFoundries: boolean
Sync native token foundries, so their metadata can be returned in the balance. Default: false.