MCPcopy Create free account
hub / github.com/chain/txvm / Output

Struct Output

protocol/txbuilder/template.go:110–119  ·  view source on GitHub ↗

Output contains information needed to add an output to a transaction. It is added to a template with AddOutput.

Source from the content-addressed store, hash-verified

108// Output contains information needed to add an output to a
109// transaction. It is added to a template with AddOutput.
110type Output struct {
111 Quorum int `json:"quorum"`
112 Pubkeys []ed25519.PublicKey `json:"pubkeys"`
113 Amount int64 `json:"amount"`
114 AssetID bc.Hash `json:"asset_id"`
115 Refdata i10rjson.HexBytes `json:"reference_data"`
116 TokenTags i10rjson.HexBytes `json:"token_tags"`
117 Index uint64 `json:"index"`
118 anchor []byte
119}
120
121// Retirement contains information needed to add a retirement to a
122// transaction. It is added to a template with AddRetirement.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected