> For the complete documentation index, see [llms.txt](https://docs.fewcha.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fewcha.app/reference/sdk-get-data-methods/transaction.md).

# Transaction

All methods follow `window.fewcha.aptos.<method>` or  `window.fewcha.sui.<method>`

{% tabs %}
{% tab title="Aptos" %}

```javascript
async getTransactions(query?: { start?: BigInt | number; limit?: number }): Promise<Response<Gen.Transaction[]>>;
async getTransactionByHash(txnHash: string): Promise<Response<Gen.Transaction>>;
async getTransactionByVersion(txnVersion: BigInt | number): Promise<Response<Gen.Transaction>>;
async transactionPending(txnHash: string): Promise<Response<boolean>>;
async waitForTransactionWithResult(txnHash: string, extraArgs?: { timeoutSecs?: number; checkSuccess?: boolean }): Promise<Response<Gen.Transaction>>;
async waitForTransaction(txnHash: string, extraArgs?: { timeoutSecs?: number; checkSuccess?: boolean }): Promise<Response<void>>;
```

{% endtab %}

{% tab title="SUI" %}

```javascript
getTransactionsForObject(objectID: string): Promise<GetTxnDigestsResponse>;
getTransactionsForAddress(addressID: string): Promise<GetTxnDigestsResponse>;
getTransactionWithEffects(digest: string): Promise<SuiTransactionResponse>;
getTransactionWithEffectsBatch(digests: string[]): Promise<SuiTransactionResponse[]>;
```

{% endtab %}
{% endtabs %}
