Transactions

package
v0.0.0-...-556a089 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FreeBasAddr = "0x6B80cA84B64e2Fd7957138eA7480FB4E775b997F"
)

Functions

func BasDNS

func BasDNS() (*Contract.BasDNS, *ethclient.Client)

func BasOANN

func BasOANN() (*Contract.BasOANN, *ethclient.Client)

func ChangeDNSInfo

func ChangeDNSInfo(key *keystore.Key, nameHash Bas_Ethereum.Hash, rcd DNSRecord) error

func CheckBalance

func CheckBalance(key *keystore.Key) *big.Int

func CheckIfApplied

func CheckIfApplied(addr common.Address) (bool, error)

func FreeBas

func FreeBas() (*Contract.SendFreeBas, *ethclient.Client)

func GetPublicAddressFromKeyStore

func GetPublicAddressFromKeyStore(key *keystore.Key) common.Address

func SendFreeBasByContract

func SendFreeBasByContract(key *keystore.Key, addr common.Address, amount *big.Int) error

func SendFreeEth

func SendFreeEth(key *keystore.Key, toAddress common.Address, amount *big.Int) error

Types

type DNSRecord

type DNSRecord struct {
	Ipv4      [4]byte
	Ipv6      [16]byte
	Bca       []byte
	OpData    []byte
	AliasName string
}

func QueryDNS

func QueryDNS(key Bas_Ethereum.Hash) (DNSRecord, error)

Jump to

Keyboard shortcuts

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