How to use it

// Import required libraries and modules from Tatum SDK
import { TatumSDK, Stellar, Network } from "@tatumio/tatum";

// Initialize the Tatum SDK for Stellar
const tatum = await TatumSDK.init<Stellar>({ network: Network.STELLAR });

// Define parameters (Replace placeholders with actual values and remove redundant)

// Submit a transaction
const result = await tatum.rpc.submitTransaction(tx);

// Always destroy the Tatum SDK instance when done to stop any background processes
await tatum.destroy();


The submitTransaction method allows you to submit a transaction to the Stellar network. It takes a single, required parameter, which is the base64-encoded XDR of the transaction. If you submit a transaction that has already been included in a ledger, this endpoint will return the same response as would have been returned for the original transaction submission. This allows for safe resubmission of transactions in error scenarios, as highlighted in the error-handling guide.

Example use cases:

  1. Transaction Submission: Developers and applications can use this method to submit transactions to the Stellar network.

Request Parameters

The submitTransaction method accepts the following parameters:

  • tx (string, required): The base64-encoded XDR of the transaction to be submitted.

Response Object

The submitTransaction method returns the result of the transaction submission. The exact response object may vary based on the Stellar blockchain's implementation and version.

  "value": {
    "memo": "Test Transaction",
    "memo_bytes": "VGVzdCBUcmFuc2FjdGlvbg==",
    "_links": {
      "self": {
        "href": ""
      "account": {
        "href": ""
      "ledger": {
        "href": ""
      "operations": {
        "href": "{?cursor,limit,order}",
        "templated": true
      "effects": {
        "href": "{?cursor,limit,order}",
        "templated": true
      "precedes": {
        "href": ""
      "succeeds": {
        "href": ""
      "transaction": {
        "href": ""
    "id": "8ef0c6d60357bf91b0b0d7800b747ff02bf73117d3e017690cbff641ca67f124",
    "paging_token": "599470060347392",
    "successful": true,
    "hash": "8ef0c6d60357bf91b0b0d7800b747ff02bf73117d3e017690cbff641ca67f124",
    "ledger": 139575,
    "created_at": "2021-03-25T21:14:11Z",
    "source_account_sequence": "599336916353025",