> For the complete documentation index, see [llms.txt](https://docs.joeywallet.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.joeywallet.xyz/integration/supported-networks/xrp-ledger/methods/xrpl_signtransaction.md).

# xrpl\_signTransaction

#### Request structure:&#x20;

```typescript
{
  tx_json: xrpl.Transaction;
  fee?: xrpl.Payment;
  includesFee?: boolean;
  options?: { autofill?: boolean; submit?: boolean };
}
```

#### Usage:

```typescript
provider.request(
    {
      method: 'xrpl_signTransaction',
      params: {
        tx_json: {}, // XRP Ledger transaction object
        options: { autofill: true; submit: true };
      },
    },
    chainId: 'xrpl:0' // xrpl:0, xrpl:1, xrpl:2
);
```

#### Response

```typescript
tx_json: xrpl.TransactionAndMetadata;
```

#### Example using `wc-client`:

```typescript
import core from '@joey-wallet/wc-client/core';
const methods = core.methods

const response = await methods.signTransaction({
  provider,
  chainId: chain,
  request: {
    tx_json: {
      TransactionType: 'AccountSet',
      Account: 'rUmoi1vt8apeKsqFYKMRSiMvWixFDMC8Jz',
    },
    options: { autofill: true, submit: true },
  },
});
```
