BeginSponsoringFutureReservesOperation

public class BeginSponsoringFutureReservesOperation : Operation, @unchecked Sendable

Establishes the is-sponsoring-future-reserves-for relationship between the source account and sponsoredID. See Stellar developer docs.

  • The account that will have its reserves sponsored.

    Declaration

    Swift

    public let sponsoredId: String
  • Creates a new BeginSponsoringFutureReservesOperation object.

    Declaration

    Swift

    public init(sponsoredAccountId: String, sponsoringAccountId: String? = nil)

    Parameters

    sponsoredId

    Account that will have it’s reserves sponsored.

    sponsoringAccountId

    Account that will sponsor.

  • Creates a new BeginSponsoringFutureReservesOperation object from the given BeginSponsoringFutureReservesOpXDR object.

    Declaration

    Swift

    public init(fromXDR: BeginSponsoringFutureReservesOpXDR, sponsoringAccountId: String? = nil) throws

    Parameters

    fromXDR

    the BeginSponsoringFutureReservesOpXDR object to be used to create a new BeginSponsoringFutureReservesOperation object.

    sponsoringAccountId

    Account that will sponsor (source account of the operation)