InnerTransactionResponse
in package
Represents the wrapped inner transaction in a fee-bump transaction
When a transaction is fee-bumped, the original transaction becomes the inner transaction and is wrapped by a fee-bump transaction envelope. This response contains the original transaction's hash, maximum fee, and signatures.
The inner transaction retains its original properties but is executed with the fee and fee account specified in the outer fee-bump transaction. This allows the original transaction to remain unchanged while a different account sponsors the fee.
Available in fee-bump transactions introduced in Protocol 13 (CAP-15).
Tags
Table of Contents
Methods
- fromJson() : InnerTransactionResponse
- Creates an InnerTransactionResponse instance from JSON data
- getHash() : string
- Gets the hash of the original inner transaction
- getMaxFee() : string
- Gets the maximum fee the original transaction was willing to pay
- getSignatures() : TransactionSignaturesResponse
- Gets the signatures from the original inner transaction
- loadFromJson() : void
- Loads inner transaction data from JSON response
Methods
fromJson()
Creates an InnerTransactionResponse instance from JSON data
public
static fromJson(array<string|int, mixed> $json) : InnerTransactionResponse
Parameters
- $json : array<string|int, mixed>
-
The JSON array containing inner transaction data from Horizon
Return values
InnerTransactionResponse —The parsed inner transaction response
getHash()
Gets the hash of the original inner transaction
public
getHash() : string
Returns the hexadecimal hash of the inner transaction envelope before it was wrapped by the fee-bump transaction. This is the original transaction hash that would have been used if the transaction was not fee-bumped.
Return values
string —The 64-character hexadecimal inner transaction hash
getMaxFee()
Gets the maximum fee the original transaction was willing to pay
public
getMaxFee() : string
Returns the max_fee from the original transaction in stroops. Note that in a fee-bump transaction, this fee is not actually charged; the fee-bump transaction's fee is used instead. This value is retained for reference to the original transaction parameters.
Return values
string —The maximum fee in stroops as a string
getSignatures()
Gets the signatures from the original inner transaction
public
getSignatures() : TransactionSignaturesResponse
Returns the collection of signatures that were attached to the inner transaction before it was fee-bumped. These signatures remain valid and are required for the transaction to execute successfully.
Return values
TransactionSignaturesResponse —Collection of inner transaction signatures
loadFromJson()
Loads inner transaction data from JSON response
protected
loadFromJson(array<string|int, mixed> $json) : void
Parameters
- $json : array<string|int, mixed>
-
The JSON array containing inner transaction data