FeeBumpTransaction
public class FeeBumpTransaction : @unchecked Sendable
Represents a Fee Bump Transaction in Stellar network. See https://github.com/stellar/stellar-protocol/blob/master/core/cap-0015.md
-
The maximum fee willing to pay for the fee bump transaction in stroops.
Declaration
Swift
public let fee: UInt64 -
The account paying the fee for the bumped transaction.
Declaration
Swift
public let sourceAccount: TransactionAccount -
The account ID of the source account paying the fee.
Declaration
Swift
public let sourceAccountId: String -
The transaction being fee-bumped.
Declaration
Swift
public let innerTransaction: Transaction -
The XDR representation of this fee bump transaction.
Declaration
Swift
public var feeBumpTransactionXDR: FeeBumpTransactionXDR { get } -
The XDR representation of the inner transaction.
Declaration
Swift
public let innerTransactionXDR: FeeBumpTransactionXDR.InnerTransactionXDR -
The base64-encoded XDR string of this fee bump transaction.
Declaration
Swift
public var xdrEncoded: String? { get } -
Creates a new FeeBumpTransaction object.
Declaration
Swift
public init(sourceAccount: MuxedAccount, fee: UInt64, innerTransaction: Transaction) throwsParameters
sourceAccountAccount that originates the transaction.
feeA fee-bump transaction has an effective number of operations equal to one plus the number of operations in the inner transaction. Correspondingly, the minimum fee for the fee-bump transaction is one base fee more than the minimum fee for the inner transaction. Similarly, the fee rate (see CAP-0005) is normalized by one plus the number of operations in the inner transaction rather than the number of operations in the inner transaction alone.
innterTransactionfee bump inner transaction
-
Each transaction needs to be signed before sending it to the stellar network.
Parameters
keyPairkey pair to be used as a signer. Must containing the private key.
networkNetwork to specify which Stellar network you want to use.
-
Adds a pre-computed signature to the fee bump transaction without requiring the private key.
Declaration
Swift
public func addSignature(signature: DecoratedSignatureXDR) -
Returns the base64-encoded transaction envelope XDR for submission to the network.
Declaration
Swift
public func encodedEnvelope() throws -> String -
Computes and returns the transaction hash as a hex-encoded string for the specified network.
Declaration
Swift
public func getTransactionHash(network: Network) throws -> String -
Computes and returns the transaction hash as Data for the specified network.
Declaration
Swift
public func getTransactionHashData(network: Network) throws -> Data
View on GitHub
Install in Dash