fromFeeBumpTransactionEnvelope method

FeeBumpTransaction fromFeeBumpTransactionEnvelope (
  1. XdrFeeBumpTransactionEnvelope envelope,
  2. Network network
)

Implementation

static FeeBumpTransaction fromFeeBumpTransactionEnvelope(
    XdrFeeBumpTransactionEnvelope envelope, Network network) {
  Transaction inner =
      Transaction.fromV1EnvelopeXdr(envelope.tx.innerTx.v1, network);
  String feeAccount =
      KeyPair.fromPublicKey(envelope.tx.feeSource.ed25519.uint256).accountId;
  int fee = envelope.tx.fee.int64;
  FeeBumpTransaction feeBump = FeeBumpTransaction(feeAccount, fee, inner);
  return feeBump;
}