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

Method ImportAccount

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

ImportAccount import a already exist account to wallet

(accMeta *AccountMetadata)

Source from the content-addressed store, hash-verified

41 NewAccount(label string, typeCode keypair.KeyType, curveCode byte, sigScheme s.SignatureScheme, passwd []byte) (*Account, error)
42 //ImportAccount import a already exist account to wallet
43 ImportAccount(accMeta *AccountMetadata) error
44 //GetAccountByAddress return account object by address
45 GetAccountByAddress(address string, passwd []byte) (*Account, error)
46 //GetAccountByLabel return account object by label

Callers 2

accountImportFunction · 0.65
TestImportAccountFunction · 0.65

Implementers 1

ClientImplaccount/client.go

Calls

no outgoing calls

Tested by 1

TestImportAccountFunction · 0.52