magacoinpayment

package
v0.0.0-...-bba364d Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PostTransfer

func PostTransfer(transfer Transfer, transactionType int) (*http.Response, error)

PostTransfer - Post Magacoin transfer amount

Types

type Account

type Account struct {
	Records []struct {
		Balance int64 `json:"balance"`
	} `json:"records"`
}

Account : aa

func GetBalance

func GetBalance(accountID int) (*Account, error)

GetBalance - Get Magacoin account balance

type Transfer

type Transfer struct {
	PrivateKey    string `json:"private_key"`
	TargetAccount int    `json:"target_account"`
	Amount        int64  `json:"amount"`
}

Transfer : aa

Jump to

Keyboard shortcuts

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