github.com/algorand/go-algorand-sdk@v1.24.0/client/v2/common/models/asset_holding.go (about)

     1  package models
     2  
     3  // AssetHolding describes an asset held by an account.
     4  // Definition:
     5  // data/basics/userBalance.go : AssetHolding
     6  type AssetHolding struct {
     7  	// Amount (a) number of units held.
     8  	Amount uint64 `json:"amount"`
     9  
    10  	// AssetId asset ID of the holding.
    11  	AssetId uint64 `json:"asset-id"`
    12  
    13  	// Deleted whether or not the asset holding is currently deleted from its account.
    14  	Deleted bool `json:"deleted,omitempty"`
    15  
    16  	// IsFrozen (f) whether or not the holding is frozen.
    17  	IsFrozen bool `json:"is-frozen"`
    18  
    19  	// OptedInAtRound round during which the account opted into this asset holding.
    20  	OptedInAtRound uint64 `json:"opted-in-at-round,omitempty"`
    21  
    22  	// OptedOutAtRound round during which the account opted out of this asset holding.
    23  	OptedOutAtRound uint64 `json:"opted-out-at-round,omitempty"`
    24  }