Skip to content

Commit

Permalink
Add new recipe for accounting export (#757)
Browse files Browse the repository at this point in the history
  • Loading branch information
NullSoldier authored Nov 26, 2024
1 parent 2b8a596 commit e28d542
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
35 changes: 35 additions & 0 deletions content/documentation/recipes_accounting_export.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
title: Export Transactions for Accounting
description: Recipes | Accounting Export Transactions | Iron Fish Documentation
---

It's some times important to be able to export transactions for accountants or tax preparation agents.

You can do this with the `wallet:transactions` command

Here is an example that exports the transactions for all wallets between October 1st, 2024 and November 1st, 2024.

```bash
ironfish wallet:transactions \
--no-account \
--filter.start 10/1/2024 \
--filter.end 11/01/2024 \
--output csv \
--format transfers
```

**Notes**
- `--format=transfers` will project the data in an accounting friendly format which excludes change notes
- `--no-account` will ensure that all wallets are included. Only the default account is included otherwise.

If you want to export transactions for a specific set of accounts, like `alice` and `bob`, you can specify each like this:

```bash
ironfish wallet:transactions \
--account alice \
--account bob \
--filter.start 10/1/2024 \
--filter.end 11/01/2024 \
--output csv \
--format transfers
```
1 change: 1 addition & 0 deletions content/documentation/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ export const sidebar: SidebarDefinition = [
"recipes_combining_notes",
"recipes_maximizing_transaction_size",
"recipes_splitting_notes",
"recipes_accounting_export",
{
label: "Multisig",
items: [
Expand Down

0 comments on commit e28d542

Please sign in to comment.