FeeBumpTransactionResponse
in package
Represents a Protocol 13+ fee-bump transaction wrapper
Fee-bump transactions allow any account to pay the fee for an existing transaction without needing to re-sign the original transaction. This is useful for sponsored transactions, fee bumping stuck transactions, or third-party fee payment scenarios.
This response contains the hash of the fee-bump transaction envelope and its signatures. The fee-bump transaction wraps an inner transaction, which is accessible through InnerTransactionResponse.
Introduced in Stellar Protocol 13 (CAP-15).
Tags
Table of Contents
Methods
- fromJson() : FeeBumpTransactionResponse
- Creates a FeeBumpTransactionResponse instance from JSON data
- getHash() : string
- Gets the hash of the fee-bump transaction envelope
- getSignatures() : TransactionSignaturesResponse
- Gets the signatures attached to the fee-bump transaction
- loadFromJson() : void
- Loads fee-bump transaction data from JSON response
Methods
fromJson()
Creates a FeeBumpTransactionResponse instance from JSON data
public
static fromJson(array<string|int, mixed> $json) : FeeBumpTransactionResponse
Parameters
- $json : array<string|int, mixed>
-
The JSON array containing fee-bump transaction data from Horizon
Return values
FeeBumpTransactionResponse —The parsed fee-bump transaction response
getHash()
Gets the hash of the fee-bump transaction envelope
public
getHash() : string
Returns the hexadecimal hash of the fee-bump transaction envelope, which is distinct from the inner transaction hash. This hash identifies the entire fee-bump transaction including the new fee and fee payer.
Return values
string —The 64-character hexadecimal fee-bump transaction hash
getSignatures()
Gets the signatures attached to the fee-bump transaction
public
getSignatures() : TransactionSignaturesResponse
Returns the collection of signatures from the account that created the fee-bump transaction. These are separate from the inner transaction's signatures.
Return values
TransactionSignaturesResponse —Collection of fee-bump transaction signatures
loadFromJson()
Loads fee-bump transaction data from JSON response
protected
loadFromJson(array<string|int, mixed> $json) : void
Parameters
- $json : array<string|int, mixed>
-
The JSON array containing fee-bump transaction data