Jump to
Ctrl
+
/

Prepare A Native Coin Transfer From Address Tezos

POST
/prepare-transactions/tezos/{network}/native-coins

Prepare an unsigned native XTZ transfer from an address. The address does not have to belong to a wallet. The response returns the forged unsigned operation bytes (ready for the signer) together with the branch, counter, fee, gas and storage limits. When the source account is unrevealed and a public key is supplied, a reveal operation is prepended. Amounts are denominated in mutez (1 XTZ = 1,000,000 mutez).

Path Parameters

network string Required

Represents the name of the blockchain network used; "mainnet" is the live network with actual data while the others are test networks.

Query Parameters

context string Optional

In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. context is specified by the user.

Request Body Schema application/json

context string Optional

In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. context is specified by the user.

data object Required
item object Required
fromAddress string Required

Sender's Tezos address (tz1/tz2/tz3). The source of the transfer.

toAddress string Required

Recipient's Tezos address.

amount string Required

Amount to send, in mutez (1 XTZ = 1,000,000 mutez), as an integer string.

fromPublicKey string Optional

Sender's public key. Required only when the source account is unrevealed - a reveal operation is then prepended.

feeOptions object Optional

Fee configuration.

priority string Optional

Fee priority - slow, standard or fast. Selects the priority fee tier.

Response Schema

apiVersion string Required

Specifies the version of the API that incorporates this endpoint.

2024-12-12
requestId string Required

Defines the ID of the request. The requestId is generated by Crypto APIs and it's unique for every request.

601c1710034ed6d407996b30
context string Optional

In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. context is specified by the user.

yourExampleString
data object Required
item object Required
source string Required

The source (sender) address.

tz1YWK1gDPQx9N1Jh4JnmVre7xN6xhGGM4FN
destination string Required

The destination (recipient) address.

tz1burnburnburnburnburnburnburjAYjjX
amount string Required

The transfer amount in mutez.

1000000
branch string Required

The head block hash the operation is anchored to.

BLc1BjrQ7ByvHW1p4A5B3nX1nB5Y7pT2xY3zB9fD1hK6mN8pQr
counter string Required

The source account's operation counter (current on-chain counter + 1).

12345678
fee object Required

The estimated transaction fee.

amount string Required

The fee amount, in the base denomination.

5000
unit string Required

The fee denomination (mutez).

mutez
gasLimit string Required

The suggested gas limit.

1451
storageLimit string Required

The suggested storage limit.

257
forgedOperation string Required

The forged UNSIGNED operation bytes (hex), ready for the signer.

e655b1a97c6b3e6e0b7b02d7e2e3f4a5b6c7d8e9f0a1b2c3d4e5f60718293a4b5c6d7e8f90
revealRequired boolean Required

True when a reveal operation was prepended (the source was unrevealed).

false

Credits Cost

Blockchain protocol Credits for 1 Results
Default Cost 78
Tezos 78
Was this page helpful?
Yes
No
Powered by
Language
URL

{
    "apiVersion": "2024-12-12",
    "requestId": "601c1710034ed6d407996b30",
    "context": "yourExampleString",
    "data": {
        "item": {
            "source": "tz1YWK1gDPQx9N1Jh4JnmVre7xN6xhGGM4FN",
            "destination": "tz1burnburnburnburnburnburnburjAYjjX",
            "amount": "1000000",
            "branch": "BLc1BjrQ7ByvHW1p4A5B3nX1nB5Y7pT2xY3zB9fD1hK6mN8pQr",
            "counter": "12345678",
            "fee": {
                "amount": "5000",
                "unit": "mutez"
            },
            "gasLimit": "1451",
            "storageLimit": "257",
            "forgedOperation": "e655b1a97c6b3e6e0b7b02d7e2e3f4a5b6c7d8e9f0a1b2c3d4e5f60718293a4b5c6d7e8f90",
            "revealRequired": false
        }
    }
}