utils

package
v0.1.1-0...-bf813a4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2020 License: OSL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccountDetailFromAddress

func GetAccountDetailFromAddress(address string, horizonClient horizonclient.ClientInterface) (horizon.Account, error)

GetAccountDetailFromAddress returns account details per the given address using the given horizon client

func GetKeyPairFromSecret

func GetKeyPairFromSecret(secretKey string) (*keypair.Full, error)

GetKeyPairFromSecret converts a secret key to key pair

func GetMidnightTimestamp

func GetMidnightTimestamp(ts time.Time) time.Time

GetMidnightTimestamp return midnight timestamp of the given date in UTC location

func GetUTCTimestamp

func GetUTCTimestamp(ts time.Time) time.Time

GetUTCTimestamp return timestamp in UTC location

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL