# Transactions Wallet to Wallet

**URL:** <https://community.fireblocks.com/t/transactions-wallet-to-wallet/118>\
**Category:** Developer Discussion\
**Created:** [May 10, 2023, 4:37pm UTC](https://community.fireblocks.com/t/transactions-wallet-to-wallet/118 "2023-05-10T16:37:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![moza](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@moza](https://community.fireblocks.com/u/moza)\
**Post date:** [May 10, 2023, 4:37pm UTC](https://community.fireblocks.com/t/transactions-wallet-to-wallet/118/1 "2023-05-10T16:37:40Z")

</div>

Does anyone know if there are examples of transactions that are wallet to wallet?

---

<div class="post-metadata">

**Author:** ![matan](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@matan](https://community.fireblocks.com/u/matan)\
**Post date:** [May 11, 2023, 10:28am UTC](https://community.fireblocks.com/t/transactions-wallet-to-wallet/118/2 "2023-05-11T10:28:05Z")

</div>

Hi Moza,  
Have you looked into the [post transaction API](https://developers.fireblocks.com/reference/post_transactions) ?

---

<div class="post-metadata">

**Author:** ![moza](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@moza](https://community.fireblocks.com/u/moza)\
**Post date:** [May 11, 2023, 2:49pm UTC](https://community.fireblocks.com/t/transactions-wallet-to-wallet/118/3 "2023-05-11T14:49:14Z")

</div>

I’ve been looking at it for awhile. I don’t know what combination of values would allow me to transfer funds from a Vault to a onetime address. There are 2 destination objects. I don’t what combination of fields would allow me to do a simple vault to wallet transfer.

---

<div class="post-metadata">

**Author:** ![matan](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@matan](https://community.fireblocks.com/u/matan)\
**Post date:** [May 11, 2023, 3:31pm UTC](https://community.fireblocks.com/t/transactions-wallet-to-wallet/118/4 "2023-05-11T15:31:52Z")

</div>

I [found](https://developers.fireblocks.com/docs/creating-a-transaction#vault-account-to-one-time-address-transaction) (and tested) the following python example which should help clear the parameters:

```python
from fireblocks_sdk import FireblocksSDK, VAULT_ACCOUNT, ONE_TIME_ADDRESS, TransferPeerPath, DestinationTransferPeerPath

api_secret = open('fireblocks_secret.key', 'r').read()
api_key = 'uuid4'
api_url = 'https://sandbox-api.fireblocks.io'
fireblocks = FireblocksSDK(api_secret, api_key, api_base_url=api_url)

def create_transaction(asset_id, amount, src_id, address):
    tx_result = fireblocks.create_transaction(
        asset_id=asset_id,
        amount=amount,
        source=TransferPeerPath(VAULT_ACCOUNT, src_id),
        destination=DestinationTransferPeerPath(ONE_TIME_ADDRESS, None, {"address": address}),
        note="Your first OTA transaction!"
    )
    print(tx_result)
    
create_transaction("ETH_TEST3", "0.001", "0", "0x13277a70e3F48EEAD9C8a8bab12EbEDbC3DB6446")

```

Please let me know if that helps or not 🙂

---

<div class="post-metadata">

**Author:** ![moza](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@moza](https://community.fireblocks.com/u/moza)\
**Post date:** [May 11, 2023, 7:57pm UTC](https://community.fireblocks.com/t/transactions-wallet-to-wallet/118/5 "2023-05-11T19:57:58Z")

</div>

Okay I tried another combination and this worked:

```auto
{
  "assetId": "ETH_TEST3",
  "source": {
    "type": "VAULT_ACCOUNT",
    "id": "2"
  },
    "destination": {
    "oneTimeAddress": {
      "address": "0x6a079e8D4b1Af2e878ae98e6c0E23cd68A08CCDd",
      "tag": "myaddress"
    },
    "type": "ONE_TIME_ADDRESS"
  },
  "amount": 0.001,
  "feeLevel": "HIGH",
  "note": "Sending ETH to external wallet",
  "operation": "TRANSFER",
  "customerRefId": "user456"
}

```

There are so many different fields in transaction, some need to be present together, and some of them can’t be present with others. I know Fireblocks probably has different test cases for the create transaction API, sharing those will help.

---

<div class="post-metadata">

**Author:** ![moza](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@moza](https://community.fireblocks.com/u/moza)\
**Post date:** [August 16, 2023, 12:17am UTC](https://community.fireblocks.com/t/transactions-wallet-to-wallet/118/6 "2023-08-16T00:17:20Z")

</div>

Adding to this list of transaction payloads, this is the one for Vault to Vault:

```auto
{
  "operation": "TRANSFER",
  "source": {
    "type": "VAULT_ACCOUNT",
    "id": "2"
  },
  "destination": {
    "type": "VAULT_ACCOUNT",
    "id": "1"
  },
  "note": "Ticket 123",
  "assetId": "ETH_TEST3",
  "amount": "0.02",
  "treatAsGrossAmount": true,
  "forceSweep": false,
  "feeLevel": "MEDIUM",
  "failOnLowFee": true,
  "customerRefId": "abcdef"
}

```
