dero

package
v0.0.0-...-a189db7 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DERO_SCID_STRING = "0000000000000000000000000000000000000000000000000000000000000000"

Variables

This section is empty.

Functions

func CallRPC

func CallRPC(
	endpoint string,
	object interface{},
	method string,
	params ...interface{},
) error

CallRPC is a generic function to make JSON-RPC calls to either the DERO wallet or node.

func Comment

func Comment(endpoint, comment, destination string) (rpc.Transfer_Result, error)

func GetEncryptedBalance

func GetEncryptedBalance(endpoint, address string) (*rpc.GetEncryptedBalance_Result, error)

GetEncryptedBalance fetches the encrypted balance for the given address.

func GetSCID

func GetSCID(endpoint, scid string) (*rpc.GetSC_Result, error)

GetSCID fetches the SCID for the given TXID.

func GetWalletAddress

func GetWalletAddress(endpoint string) (*rpc.Address, error)

GetWalletAddress fetches the DERO wallet address.

func GetWalletTransfers

func GetWalletTransfers(endpoint string) (*rpc.Get_Transfers_Result, error)

func MakeIntegratedAddress

func MakeIntegratedAddress(
	comment string,
	price uint64,
	expiry time.Time,
) (rpc.Make_Integrated_Address_Result, error)

func MintContract

func MintContract(
	endpoint,
	contract,
	destination string,
) (rpc.Transfer_Result, error)

func NFAContract

func NFAContract(
	royalty,
	nameHdr,
	descHdr,
	typeHdr,
	collection,
	addr string,
) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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