iotex-core: Index | Files

package accountutil

import ""


Package Files


func LoadAccount Uses

func LoadAccount(sm protocol.StateManager, addrHash hash.Hash160) (*state.Account, error)

LoadAccount loads an account state

func LoadOrCreateAccount Uses

func LoadOrCreateAccount(sm protocol.StateManager, encodedAddr string, init *big.Int) (*state.Account, error)

LoadOrCreateAccount either loads an account state or creates an account state

func Recorded Uses

func Recorded(sm protocol.StateManager, addr address.Address) (bool, error)

Recorded tests if an account has been actually stored

func SetNonce Uses

func SetNonce(i noncer, state *state.Account)

SetNonce sets nonce for account

func StoreAccount Uses

func StoreAccount(sm protocol.StateManager, encodedAddr string, account *state.Account) error

StoreAccount puts updated account state to trie

Package accountutil imports 6 packages (graph) and is imported by 7 packages. Updated 2019-06-13. Refresh now. Tools for package owners.