assets

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: GPL-2.0, GPL-3.0 Imports: 5 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssetID

func AssetID(inputString string) string

AssetID generates a new stellar compatible asset

func CreateAsset

func CreateAsset(assetName string, PublicKey string) build.Asset

CreateAsset creates a new asset belonging to the passed public key

func SendAsset

func SendAsset(assetCode string, issuerPubkey string, destination string, amountx float64,
	seed string, memo string) (int32, string, error)

SendAsset sends an asset to a destination which has an established trustline with the issuer

func SendAssetFromIssuer

func SendAssetFromIssuer(assetCode string, destination string, amountx float64,
	seed string, issuerPubkey string) (int32, string, error)

SendAssetFromIssuer transfers an asset from the issuer to the desired publickey.

func SendAssetToIssuer

func SendAssetToIssuer(assetCode string, destination string, amountx float64,
	seed string) (int32, string, error)

SendAssetToIssuer sends an asset back to the issuer

func TrustAsset

func TrustAsset(assetCode string, assetIssuer string, limitx float64, seed string) (string, error)

TrustAsset trusts an asset issued by an account and signs a transaction with a preset limit on how much it is willing to trust the issuer

Types

This section is empty.

Jump to

Keyboard shortcuts

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