Versions in this module Expand all Collapse all v1 v1.0.4 Dec 2, 2019 v1.0.3 Nov 27, 2019 Changes in this version + const AuthImmutable + const AuthRequired + const AuthRevocable + const MemoTextMaxLength + const TimeoutInfinite + var MaxTrustlineLimit = amount.StringFromInt64(math.MaxInt64) + func NewHomeDomain(hd string) *string + func NewInflationDestination(ai string) *string + func SetOpSourceAccount(op *xdr.Operation, sourceAccount Account) + type Account interface + GetAccountID func() string + IncrementSequenceNumber func() (xdr.SequenceNumber, error) + type AccountFlag uint32 + type AccountMerge struct + Destination string + SourceAccount Account + func (am *AccountMerge) BuildXDR() (xdr.Operation, error) + type AllowTrust struct + Authorize bool + SourceAccount Account + Trustor string + Type Asset + func (at *AllowTrust) BuildXDR() (xdr.Operation, error) + type Asset interface + GetCode func() string + GetIssuer func() string + GetType func() (AssetType, error) + IsNative func() bool + ToXDR func() (xdr.Asset, error) + type AssetType xdr.AssetType + const AssetTypeCreditAlphanum12 + const AssetTypeCreditAlphanum4 + const AssetTypeNative + type BumpSequence struct + BumpTo int64 + SourceAccount Account + func (bs *BumpSequence) BuildXDR() (xdr.Operation, error) + type ChangeTrust struct + Limit string + Line Asset + SourceAccount Account + func RemoveTrustlineOp(issuedAsset Asset) ChangeTrust + func (ct *ChangeTrust) BuildXDR() (xdr.Operation, error) + type CreateAccount struct + Amount string + Destination string + SourceAccount Account + func (ca *CreateAccount) BuildXDR() (xdr.Operation, error) + type CreatePassiveSellOffer struct + Amount string + Buying Asset + Price string + Selling Asset + SourceAccount Account + func (cpo *CreatePassiveSellOffer) BuildXDR() (xdr.Operation, error) + type CreditAsset struct + Code string + Issuer string + func (ca CreditAsset) GetCode() string + func (ca CreditAsset) GetIssuer() string + func (ca CreditAsset) GetType() (AssetType, error) + func (ca CreditAsset) IsNative() bool + func (ca CreditAsset) ToXDR() (xdr.Asset, error) + type Inflation struct + SourceAccount Account + func (inf *Inflation) BuildXDR() (xdr.Operation, error) + type ManageBuyOffer struct + Amount string + Buying Asset + OfferID int64 + Price string + Selling Asset + SourceAccount Account + func (mo *ManageBuyOffer) BuildXDR() (xdr.Operation, error) + type ManageData struct + Name string + SourceAccount Account + Value []byte + func (md *ManageData) BuildXDR() (xdr.Operation, error) + type ManageSellOffer struct + Amount string + Buying Asset + OfferID int64 + Price string + Selling Asset + SourceAccount Account + func CreateOfferOp(selling, buying Asset, amount, price string, sourceAccount ...Account) (ManageSellOffer, error) + func DeleteOfferOp(offerID int64, sourceAccount ...Account) (ManageSellOffer, error) + func UpdateOfferOp(selling, buying Asset, amount, price string, offerID int64, ...) (ManageSellOffer, error) + func (mo *ManageSellOffer) BuildXDR() (xdr.Operation, error) + type Memo interface + ToXDR func() (xdr.Memo, error) + type MemoHash [32]byte + func (mh MemoHash) ToXDR() (xdr.Memo, error) + type MemoID uint64 + func (mid MemoID) ToXDR() (xdr.Memo, error) + type MemoReturn [32]byte + func (mr MemoReturn) ToXDR() (xdr.Memo, error) + type MemoText string + func (mt MemoText) ToXDR() (xdr.Memo, error) + type NativeAsset struct + func (na NativeAsset) GetCode() string + func (na NativeAsset) GetIssuer() string + func (na NativeAsset) GetType() (AssetType, error) + func (na NativeAsset) IsNative() bool + func (na NativeAsset) ToXDR() (xdr.Asset, error) + type Operation interface + BuildXDR func() (xdr.Operation, error) + type PathPayment struct + DestAmount string + DestAsset Asset + Destination string + Path []Asset + SendAsset Asset + SendMax string + SourceAccount Account + func (pp *PathPayment) BuildXDR() (xdr.Operation, error) + type Payment struct + Amount string + Asset Asset + Destination string + SourceAccount Account + func (p *Payment) BuildXDR() (xdr.Operation, error) + type SetOptions struct + ClearFlags []AccountFlag + HighThreshold *Threshold + HomeDomain *string + InflationDestination *string + LowThreshold *Threshold + MasterWeight *Threshold + MediumThreshold *Threshold + SetFlags []AccountFlag + Signer *Signer + SourceAccount Account + func (so *SetOptions) BuildXDR() (xdr.Operation, error) + type Signer struct + Address string + Weight Threshold + type SimpleAccount struct + AccountID string + Sequence int64 + func NewSimpleAccount(accountID string, sequence int64) SimpleAccount + func (sa *SimpleAccount) GetAccountID() string + func (sa *SimpleAccount) GetSequenceNumber() (xdr.SequenceNumber, error) + func (sa *SimpleAccount) IncrementSequenceNumber() (xdr.SequenceNumber, error) + type Threshold uint8 + func NewThreshold(t Threshold) *Threshold + type Timebounds struct + MaxTime int64 + MinTime int64 + func NewInfiniteTimeout() Timebounds + func NewTimebounds(minTime, maxTime int64) Timebounds + func NewTimeout(timeout int64) Timebounds + func (tb *Timebounds) Validate() error + type Transaction struct + BaseFee uint32 + Memo Memo + Network string + Operations []Operation + SourceAccount Account + Timebounds Timebounds + XdrEnvelope *xdr.TransactionEnvelope + XdrTransaction xdr.Transaction + func (tx *Transaction) Base64() (string, error) + func (tx *Transaction) Build() error + func (tx *Transaction) BuildSignEncode(keypairs ...*keypair.Full) (string, error) + func (tx *Transaction) Hash() ([32]byte, error) + func (tx *Transaction) MarshalBinary() ([]byte, error) + func (tx *Transaction) SetDefaultFee() + func (tx *Transaction) Sign(kps ...*keypair.Full) error