Documentation ¶
Index ¶
- func NewAddress(prvKeyHex string) (string, error)
- func NewAddressWithNetParams(prvKeyHex string, params dagconfig.Params) (string, error)
- func PrvKeyToPubKey(prvKeyHex string) (string, error)
- func SignMessage(message string, privateKey []byte) (string, error)
- func StrToUint64(s string) uint64
- func Transfer(txData *TxData) (string, error)
- func TransferWithNetParams(txData *TxData, params dagconfig.Params) (string, error)
- func ValidateAddress(address string) bool
- func ValidateAddressWithNetParams(address string, params dagconfig.Params) bool
- type Outpoint
- type ScriptPublicKey
- type Transaction
- type TransactionInput
- type TransactionMessage
- type TransactionOutput
- type TransactionResult
- type TxData
- type TxInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAddress ¶
func NewAddressWithNetParams ¶
func PrvKeyToPubKey ¶
func StrToUint64 ¶
func TransferWithNetParams ¶
func ValidateAddress ¶
Types ¶
type ScriptPublicKey ¶
type Transaction ¶
type Transaction struct { Version uint32 `json:"version"` Inputs []*TransactionInput `json:"inputs"` Outputs []*TransactionOutput `json:"outputs"` LockTime uint64 `json:"lockTime"` SubnetworkId string `json:"subnetworkId"` }
type TransactionInput ¶
type TransactionMessage ¶
type TransactionMessage struct { Transaction *Transaction `json:"transaction"` AllowOrphan bool `json:"allowOrphan"` }
type TransactionOutput ¶
type TransactionOutput struct { Amount uint64 `json:"amount"` ScriptPublicKey *ScriptPublicKey `json:"scriptPublicKey"` }
type TransactionResult ¶
Click to show internal directories.
Click to hide internal directories.