Jump to
Ctrl
+
/

Prepare An FA2 Token Transfer From Address Tezos

POST
/prepare-transactions/tezos/{network}/fa2-tokens

Prepare an unsigned FA2 token transfer from an address. Builds the token contract transfer entrypoint call for the given token id and 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.

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 token holder.

toAddress string Required

Recipient's Tezos address.

contractAddress string Required

The FA2 token contract address (KT1).

amount string Required

Token amount to send (in the token's base units), as an integer string.

tokenId string Required

The FA2 token id.

tokenStandard string Optional

The token standard - FA_2 for this endpoint.

fromPublicKey string Optional

Sender's public key. Required only when the source account is unrevealed.

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 / token holder) address.

tz1YWK1gDPQx9N1Jh4JnmVre7xN6xhGGM4FN
destination string Required

The recipient address.

tz1burnburnburnburnburnburnburjAYjjX
amount string Required

The token amount transferred.

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.

5210
storageLimit string Required

The suggested storage limit.

350
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
contract string Required

The token contract address (KT1) the transfer targets.

KT1XnTn74bUtxHfDtBmm2bGZAQfhPbvKWR8o
tokenId string Required

The FA2 token id.

0

Credits Cost

Blockchain protocol Credits for 1 Results
Default Cost 104
Tezos 104
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": "5210",
            "storageLimit": "350",
            "forgedOperation": "e655b1a97c6b3e6e0b7b02d7e2e3f4a5b6c7d8e9f0a1b2c3d4e5f60718293a4b5c6d7e8f90",
            "revealRequired": false,
            "contract": "KT1XnTn74bUtxHfDtBmm2bGZAQfhPbvKWR8o",
            "tokenId": "0"
        }
    }
}