RevokeSponsorshipOperationResponse class

Represents a revoke sponsorship operation response from Horizon.

This operation revokes sponsorship of a ledger entry (account, trustline, offer, data entry, claimable balance, or signer). One of the entry type fields will be populated depending on the type of entry being revoked.

Returned by: Horizon API operations endpoint when querying revoke sponsorship operations

Fields:

Example:

final operations = await sdk.operations
    .forAccount('sponsor_account_id')
    .execute();

for (var op in operations.records) {
  if (op is RevokeSponsorshipOperationResponse) {
    if (op.accountId != null) print('Revoked account sponsorship: ${op.accountId}');
    if (op.trustlineAccountId != null) print('Revoked trustline sponsorship');
  }
}

See also:

Inheritance

Constructors

RevokeSponsorshipOperationResponse(String? accountId, String? claimableBalanceId, String? dataAccountId, String? dataName, String? offerId, String? trustlineAccountId, String? trustlineLiquidityPoolID, String? trustlineAsset, String? signerAccountId, String? signerKey, OperationResponseLinks links, String id, String pagingToken, bool transactionSuccessful, String sourceAccount, String? sourceAccountMuxed, String? sourceAccountMuxedId, String type, int type_i, String createdAt, String transactionHash, TransactionResponse? transaction, String? sponsor)
Creates a RevokeSponsorshipOperationResponse from Horizon API operation data.
RevokeSponsorshipOperationResponse.fromJson(Map<String, dynamic> json)
factory

Properties

accountId String?
Account ID if sponsoring an account
getter/setter pair
claimableBalanceId String?
Balance ID if sponsoring a claimable balance
getter/setter pair
createdAt String
When operation was created (ISO 8601 timestamp)
getter/setter pairinherited
dataAccountId String?
Account ID if sponsoring a data entry
getter/setter pair
dataName String?
Data entry name if sponsoring a data entry
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
Unique operation identifier
getter/setter pairinherited
Hypermedia links to related resources
getter/setter pairinherited
offerId String?
Offer ID if sponsoring an offer
getter/setter pair
pagingToken String
Pagination cursor for this operation
getter/setter pairinherited
rateLimitLimit int?
Maximum number of requests allowed in the current rate limit window.
getter/setter pairinherited
rateLimitRemaining int?
Number of requests remaining in the current rate limit window.
getter/setter pairinherited
rateLimitReset int?
Unix timestamp when the rate limit window will reset.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signerAccountId String?
Account ID if sponsoring a signer
getter/setter pair
signerKey String?
Signer key if sponsoring a signer
getter/setter pair
sourceAccount String
Operation source account ID
getter/setter pairinherited
sourceAccountMuxed String?
Muxed account address if applicable
getter/setter pairinherited
sourceAccountMuxedId String?
Muxed account sub-account ID if applicable
getter/setter pairinherited
Account sponsoring the operation's reserves if applicable
getter/setter pairinherited
transaction TransactionResponse?
Full transaction that contains this operation
getter/setter pairinherited
transactionHash String
Parent transaction hash
getter/setter pairinherited
transactionSuccessful bool
Whether the parent transaction succeeded
getter/setter pairinherited
trustlineAccountId String?
Account ID if sponsoring a trustline
getter/setter pair
trustlineAsset String?
Asset if sponsoring a trustline
getter/setter pair
trustlineLiquidityPoolID String?
Pool ID if sponsoring a liquidity pool trustline
getter/setter pair
type String
Operation type name (e.g., 'payment', 'create_account')
getter/setter pairinherited
type_i int
Operation type as integer (0-26)
getter/setter pairinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setHeaders(Map<String, String> headers) → void
Populates rate limit fields from HTTP response headers.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited