Jump to
Ctrl
+
/

Prepare A Native Coin Transfer From Address Solana

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

Prepare an unsigned native SOL transfer from an address. The address does not have to belong to a wallet. The response returns the unsigned transaction serialized to base64 (ready for the signer), together with the recent blockhash, compute-budget settings and the estimated fee. Amounts are denominated in lamports (1 SOL = 1,000,000,000 lamports).

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 Solana address (base58). It funds and is the fee payer of the transaction.

toAddress string Required

Recipient's Solana address (base58).

amount string Required

Amount to send, in lamports (raw base units, integer string). 1 SOL = 1,000,000,000 lamports.

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
sender string Required

The sender (fee payer) address.

9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM
recipient string Required

The recipient address.

3Nxr6Wj5tK1abRxWzAf3VvJ2SsTf1cW9y5gEwYbNb6vA
amount string Required

The transferred amount in lamports.

1000000
recentBlockhash string Required

The recent blockhash the transaction is bound to (~60s TTL).

8HWLsJviKujXjg23sm7v5aiaU9gE1QpLAasEUpCuDUBN
lastValidBlockHeight string Required

The last block height at which the blockhash is still valid.

463187603
fee object Required

The estimated transaction fee.

amount string Required

The fee amount, in the base denomination.

7000
unit string Required

The fee denomination (lamports).

lamports
computeUnitLimit string Required

The compute unit limit set on the transaction (ComputeBudget).

200000
computeUnitPrice string Required

The compute unit price in micro-lamports per compute unit (ComputeBudget).

10000
serializedTransaction string Required

The unsigned transaction, serialized to base64, ready for the signer.

AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAIEfowIh2C/3h3dzzLBfyCbgkLuUqrxMfrNiNDqLG0LBvIjV7d1+yEItK+z/ZXUvIT1uq9WzenyybmZEAeqND/kXwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwZGb+UhFzL/7K26csOb57yM5bvF9xJrLEObOkAAAABsPEd2LGZ7+weJWXmkKYJUWGEjbNW7o2rEg/TnL/pyZQMDAAUCQA0DAAMACQMQJwAAAAAAAAICAAEMAgAAAKCGAQAAAAAA

Credits Cost

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

{
    "apiVersion": "2024-12-12",
    "requestId": "601c1710034ed6d407996b30",
    "context": "yourExampleString",
    "data": {
        "item": {
            "sender": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM",
            "recipient": "3Nxr6Wj5tK1abRxWzAf3VvJ2SsTf1cW9y5gEwYbNb6vA",
            "amount": "1000000",
            "recentBlockhash": "8HWLsJviKujXjg23sm7v5aiaU9gE1QpLAasEUpCuDUBN",
            "lastValidBlockHeight": "463187603",
            "fee": {
                "amount": "7000",
                "unit": "lamports"
            },
            "computeUnitLimit": "200000",
            "computeUnitPrice": "10000",
            "serializedTransaction": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAIEfowIh2C/3h3dzzLBfyCbgkLuUqrxMfrNiNDqLG0LBvIjV7d1+yEItK+z/ZXUvIT1uq9WzenyybmZEAeqND/kXwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwZGb+UhFzL/7K26csOb57yM5bvF9xJrLEObOkAAAABsPEd2LGZ7+weJWXmkKYJUWGEjbNW7o2rEg/TnL/pyZQMDAAUCQA0DAAMACQMQJwAAAAAAAAICAAEMAgAAAKCGAQAAAAAA"
        }
    }
}