MCPcopy Create free account
hub / github.com/DNAProject/DNA / GetAccountMetadataByIndex

Method GetAccountMetadataByIndex

account/client.go:296–304  ·  view source on GitHub ↗

Index start from 1

(index int)

Source from the content-addressed store, hash-verified

294
295//Index start from 1
296func (this *ClientImpl) GetAccountMetadataByIndex(index int) *AccountMetadata {
297 this.lock.RLock()
298 defer this.lock.RUnlock()
299 accData := this.walletData.GetAccountByIndex(index - 1)
300 if accData == nil {
301 return nil
302 }
303 return this.getAccountMetadata(accData)
304}
305
306func (this *ClientImpl) GetDefaultAccountMetadata() *AccountMetadata {
307 this.lock.RLock()

Callers

nothing calls this directly

Calls 2

getAccountMetadataMethod · 0.95
GetAccountByIndexMethod · 0.65

Tested by

no test coverage detected