Skip to content

Conversation

@fnando
Copy link
Member

@fnando fnando commented Sep 18, 2025

What

$ stellar tx new begin-sponsoring-future-reserves \
  --source-account sponsor \
  --sponsored-id sponsored \
  --fee 1000000 \
  --build-only | \
stellar tx op add create-account \
  --destination sponsored \
  --starting-balance 50000000 \
  --operation-source-account sponsor | \
stellar tx op add end-sponsoring-future-reserves \
  --operation-source-account sponsored | \
stellar tx sign --sign-with-key sponsor | \
stellar tx sign --sign-with-key sponsored | \
stellar tx send
ℹ️ Signing transaction: 5f01a6db7dd0d2dda29eb06dfe45701b99dc4f8afc8c3790147ab1fdc381aa2e
ℹ️ Signing transaction: 5f01a6db7dd0d2dda29eb06dfe45701b99dc4f8afc8c3790147ab1fdc381aa2e
ℹ️ Transaction hash is 5f01a6db7dd0d2dda29eb06dfe45701b99dc4f8afc8c3790147ab1fdc381aa2e
{
  "status": "SUCCESS",
  "ledger": 2476,
  "envelope": {
    "tx": {
      "tx": {
        "source_account": "GCFCAPCAMG7YEWH6PYA4EIX2FLBVK3GZH4XSK4EG66VSQTPVZJR46MOG",
        "fee": 1000000,
        "seq_num": "8018703941634",
        "cond": "none",
        "memo": "none",
        "operations": [
          {
            "source_account": null,
            "body": {
              "begin_sponsoring_future_reserves": {
                "sponsored_id": "GAVR65UJGZFXB5LS5HVXK2FZD6Q3SG2474B4VDUOMUKJKUF2BE7C52NM"
              }
            }
          },
          {
            "source_account": "GCFCAPCAMG7YEWH6PYA4EIX2FLBVK3GZH4XSK4EG66VSQTPVZJR46MOG",
            "body": {
              "create_account": {
                "destination": "GAVR65UJGZFXB5LS5HVXK2FZD6Q3SG2474B4VDUOMUKJKUF2BE7C52NM",
                "starting_balance": "50000000"
              }
            }
          },
          {
            "source_account": "GAVR65UJGZFXB5LS5HVXK2FZD6Q3SG2474B4VDUOMUKJKUF2BE7C52NM",
            "body": "end_sponsoring_future_reserves"
          }
        ],
        "ext": "v0"
      },
      "signatures": [
        {
          "hint": "f5ca63cf",
          "signature": "9f01574bb8cbe08928b535d11f986e689516286f1a65aff00610a59effa1f4afb3ba26c7b24708f0098528d7cd05f96590496024406ace241430d5f0d1f4100c"
        },
        {
          "hint": "ba093e2e",
          "signature": "275d89bc66942ab2289a3a895f776f5e680412c8b36c3f6e93f5a66c388a8749620a40ecf1d777ba5a6b75effc81ea4574aee0ebc9a73c2ede87eea8c2a3c802"
        }
      ]
    }
  },
  "result": {
    "fee_charged": "300",
    "result": {
      "tx_success": [
        {
          "op_inner": {
            "begin_sponsoring_future_reserves": "success"
          }
        },
        {
          "op_inner": {
            "create_account": "success"
          }
        },
        {
          "op_inner": {
            "end_sponsoring_future_reserves": "success"
          }
        }
      ]
    },
    "ext": "v0"
  },
  "result_meta": {
    "v4": {
      "ext": "v0",
      "tx_changes_before": [
        {
          "state": {
            "last_modified_ledger_seq": 2476,
            "data": {
              "account": {
                "account_id": "GCFCAPCAMG7YEWH6PYA4EIX2FLBVK3GZH4XSK4EG66VSQTPVZJR46MOG",
                "balance": "99999999500",
                "seq_num": "8018703941633",
                "num_sub_entries": 0,
                "inflation_dest": null,
                "flags": 0,
                "home_domain": "",
                "thresholds": "01000000",
                "signers": [],
                "ext": {
                  "v1": {
                    "liabilities": {
                      "buying": "0",
                      "selling": "0"
                    },
                    "ext": {
                      "v2": {
                        "num_sponsored": 0,
                        "num_sponsoring": 0,
                        "signer_sponsoring_i_ds": [],
                        "ext": {
                          "v3": {
                            "ext": "v0",
                            "seq_ledger": 2096,
                            "seq_time": "1758047256"
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "ext": "v0"
          }
        },
        {
          "updated": {
            "last_modified_ledger_seq": 2476,
            "data": {
              "account": {
                "account_id": "GCFCAPCAMG7YEWH6PYA4EIX2FLBVK3GZH4XSK4EG66VSQTPVZJR46MOG",
                "balance": "99999999500",
                "seq_num": "8018703941634",
                "num_sub_entries": 0,
                "inflation_dest": null,
                "flags": 0,
                "home_domain": "",
                "thresholds": "01000000",
                "signers": [],
                "ext": {
                  "v1": {
                    "liabilities": {
                      "buying": "0",
                      "selling": "0"
                    },
                    "ext": {
                      "v2": {
                        "num_sponsored": 0,
                        "num_sponsoring": 0,
                        "signer_sponsoring_i_ds": [],
                        "ext": {
                          "v3": {
                            "ext": "v0",
                            "seq_ledger": 2476,
                            "seq_time": "1758047638"
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "ext": "v0"
          }
        }
      ],
      "operations": [
        {
          "ext": "v0",
          "changes": [],
          "events": []
        },
        {
          "ext": "v0",
          "changes": [
            {
              "created": {
                "last_modified_ledger_seq": 2476,
                "data": {
                  "account": {
                    "account_id": "GAVR65UJGZFXB5LS5HVXK2FZD6Q3SG2474B4VDUOMUKJKUF2BE7C52NM",
                    "balance": "50000000",
                    "seq_num": "10634339024896",
                    "num_sub_entries": 0,
                    "inflation_dest": null,
                    "flags": 0,
                    "home_domain": "",
                    "thresholds": "01000000",
                    "signers": [],
                    "ext": {
                      "v1": {
                        "liabilities": {
                          "buying": "0",
                          "selling": "0"
                        },
                        "ext": {
                          "v2": {
                            "num_sponsored": 2,
                            "num_sponsoring": 0,
                            "signer_sponsoring_i_ds": [],
                            "ext": "v0"
                          }
                        }
                      }
                    }
                  }
                },
                "ext": {
                  "v1": {
                    "sponsoring_id": "GCFCAPCAMG7YEWH6PYA4EIX2FLBVK3GZH4XSK4EG66VSQTPVZJR46MOG",
                    "ext": "v0"
                  }
                }
              }
            },
            {
              "state": {
                "last_modified_ledger_seq": 2476,
                "data": {
                  "account": {
                    "account_id": "GCFCAPCAMG7YEWH6PYA4EIX2FLBVK3GZH4XSK4EG66VSQTPVZJR46MOG",
                    "balance": "99999999500",
                    "seq_num": "8018703941634",
                    "num_sub_entries": 0,
                    "inflation_dest": null,
                    "flags": 0,
                    "home_domain": "",
                    "thresholds": "01000000",
                    "signers": [],
                    "ext": {
                      "v1": {
                        "liabilities": {
                          "buying": "0",
                          "selling": "0"
                        },
                        "ext": {
                          "v2": {
                            "num_sponsored": 0,
                            "num_sponsoring": 0,
                            "signer_sponsoring_i_ds": [],
                            "ext": {
                              "v3": {
                                "ext": "v0",
                                "seq_ledger": 2476,
                                "seq_time": "1758047638"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "ext": "v0"
              }
            },
            {
              "updated": {
                "last_modified_ledger_seq": 2476,
                "data": {
                  "account": {
                    "account_id": "GCFCAPCAMG7YEWH6PYA4EIX2FLBVK3GZH4XSK4EG66VSQTPVZJR46MOG",
                    "balance": "99949999500",
                    "seq_num": "8018703941634",
                    "num_sub_entries": 0,
                    "inflation_dest": null,
                    "flags": 0,
                    "home_domain": "",
                    "thresholds": "01000000",
                    "signers": [],
                    "ext": {
                      "v1": {
                        "liabilities": {
                          "buying": "0",
                          "selling": "0"
                        },
                        "ext": {
                          "v2": {
                            "num_sponsored": 0,
                            "num_sponsoring": 2,
                            "signer_sponsoring_i_ds": [],
                            "ext": {
                              "v3": {
                                "ext": "v0",
                                "seq_ledger": 2476,
                                "seq_time": "1758047638"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "ext": "v0"
              }
            }
          ],
          "events": [
            {
              "ext": "v0",
              "contract_id": "CDMLFMKMMD7MWZP3FKUBZPVHTUEDLSX4BYGYKH4GCESXYHS3IHQ4EIG4",
              "type_": "contract",
              "body": {
                "v0": {
                  "topics": [
                    {
                      "symbol": "transfer"
                    },
                    {
                      "address": "GCFCAPCAMG7YEWH6PYA4EIX2FLBVK3GZH4XSK4EG66VSQTPVZJR46MOG"
                    },
                    {
                      "address": "GAVR65UJGZFXB5LS5HVXK2FZD6Q3SG2474B4VDUOMUKJKUF2BE7C52NM"
                    },
                    {
                      "string": "native"
                    }
                  ],
                  "data": {
                    "i128": "50000000"
                  }
                }
              }
            }
          ]
        },
        {
          "ext": "v0",
          "changes": [],
          "events": []
        }
      ],
      "tx_changes_after": [],
      "soroban_meta": null,
      "events": [
        {
          "stage": "before_all_txs",
          "event": {
            "ext": "v0",
            "contract_id": "CDMLFMKMMD7MWZP3FKUBZPVHTUEDLSX4BYGYKH4GCESXYHS3IHQ4EIG4",
            "type_": "contract",
            "body": {
              "v0": {
                "topics": [
                  {
                    "symbol": "fee"
                  },
                  {
                    "address": "GCFCAPCAMG7YEWH6PYA4EIX2FLBVK3GZH4XSK4EG66VSQTPVZJR46MOG"
                  }
                ],
                "data": {
                  "i128": "300"
                }
              }
            }
          }
        }
      ],
      "diagnostic_events": []
    }
  },
  "events": {
    "contract_events": [
      [],
      [
        {
          "ext": "v0",
          "contract_id": "CDMLFMKMMD7MWZP3FKUBZPVHTUEDLSX4BYGYKH4GCESXYHS3IHQ4EIG4",
          "type_": "contract",
          "body": {
            "v0": {
              "topics": [
                {
                  "symbol": "transfer"
                },
                {
                  "address": "GCFCAPCAMG7YEWH6PYA4EIX2FLBVK3GZH4XSK4EG66VSQTPVZJR46MOG"
                },
                {
                  "address": "GAVR65UJGZFXB5LS5HVXK2FZD6Q3SG2474B4VDUOMUKJKUF2BE7C52NM"
                },
                {
                  "string": "native"
                }
              ],
              "data": {
                "i128": "50000000"
              }
            }
          }
        }
      ],
      []
    ],
    "diagnostic_events": [],
    "transaction_events": [
      {
        "stage": "before_all_txs",
        "event": {
          "ext": "v0",
          "contract_id": "CDMLFMKMMD7MWZP3FKUBZPVHTUEDLSX4BYGYKH4GCESXYHS3IHQ4EIG4",
          "type_": "contract",
          "body": {
            "v0": {
              "topics": [
                {
                  "symbol": "fee"
                },
                {
                  "address": "GCFCAPCAMG7YEWH6PYA4EIX2FLBVK3GZH4XSK4EG66VSQTPVZJR46MOG"
                }
              ],
              "data": {
                "i128": "300"
              }
            }
          }
        }
      }
    ]
  }
}

Why

#2129

Known limitations

N/A

@github-project-automation github-project-automation bot moved this to Backlog (Not Ready) in DevX Sep 18, 2025
@fnando fnando changed the title Add stellar tx new begin-sponsoring-future-reserves and stellar tx op add end-sponsoring-future-reserves. Add stellar tx new begin-sponsoring-future-reserves and stellar tx new end-sponsoring-future-reserves. Sep 18, 2025
@fnando fnando merged commit b423b3f into main Sep 18, 2025
31 checks passed
@fnando fnando deleted the sponsoring branch September 18, 2025 16:14
@github-project-automation github-project-automation bot moved this from Backlog (Not Ready) to Done in DevX Sep 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants