package
0.0.0-20250213232608-c453f8b35c75
Repository: https://github.com/stellar/go.git
Documentation: pkg.go.dev

# Functions

UnmarshalOperation decodes responses to the correct operation struct.

# Variables

TypeNames maps from operation type to the string used to represent that type in horizon's JSON responses.

# Structs

AccountMerge is the json resource representing a single operation whose type is AccountMerge.
Deprecated: use SetTrustLineFlags instead.
Type - refers to the source SAC Event it can only be one of 'transfer', 'mint', 'clawback' or 'burn' From - this is classic account that asset balance was changed, or absent if not applicable for function To - this is the classic account that asset balance was changed, or absent if not applicable for function for asset contract event type, it can be absent such as 'burn' Amount - expressed as a signed decimal to 7 digits precision.
Base represents the common attributes of an operation resource.
BeginSponsoringFutureReserves is the json resource representing a single operation whose type is BeginSponsoringFutureReserves.
BumpSequence is the json resource representing a single operation whose type is BumpSequence.
ChangeTrust is the json resource representing a single operation whose type is ChangeTrust.
ClaimClaimableBalance is the json resource representing a single operation whose type is ClaimClaimableBalance.
Clawback is the json resource representing a single operation whose type is Clawback.
ClawbackClaimableBalance is the json resource representing a single operation whose type is ClawbackClaimableBalance.
CreateAccount is the json resource representing a single operation whose type is CreateAccount.
CreateClaimableBalance is the json resource representing a single operation whose type is CreateClaimableBalance.
CreatePassiveSellOffer is the json resource representing a single operation whose type is CreatePassiveSellOffer.
EndSponsoringFutureReserves is the json resource representing a single operation whose type is EndSponsoringFutureReserves.
ExtendFootprintTtl is the json resource representing a single ExtendFootprintTtlOp.
InvokeHostFunction parameter model, intentionally simplified, Value just contains a base64 encoded string of the ScVal xdr serialization.
Inflation is the json resource representing a single operation whose type is Inflation.
InvokeHostFunction is the json resource representing a single InvokeHostFunctionOp.
LiquidityPoolDeposit is the json resource representing a single operation whose type is LiquidityPoolDeposit.
LiquidityPoolWithdraw is the json resource representing a single operation whose type is LiquidityPoolWithdraw.
ManageBuyOffer is the json resource representing a single operation whose type is ManageBuyOffer.
ManageData represents a ManageData operation as it is serialized into json for the horizon API.
ManageSellOffer is the json resource representing a single operation whose type is ManageSellOffer.
Offer is an embedded resource used in offer type operations.
OperationsPage is the json resource representing a page of operations.
PathPayment is the json resource representing a single operation whose type is PathPayment.
PathPaymentStrictSend is the json resource representing a single operation whose type is PathPaymentStrictSend.
Payment is the json resource representing a single operation whose type is Payment.
RestoreFootprint is the json resource representing a single RestoreFootprint.
RevokeSponsorship is the json resource representing a single operation whose type is RevokeSponsorship.
SetOptions is the json resource representing a single operation whose type is SetOptions.
SetTrustLineFlags is the json resource representing a single operation whose type is SetTrustLineFlags.

# Interfaces

Operation interface contains methods implemented by the operation types.