Prepare a native KAS transfer on Kaspa (mainnet). Selects spendable UTXOs covering the amount plus a mass-based fee and returns the unsigned transaction - inputs (each with its full utxoEntry), outputs, change, and the fee - ready for signing.
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.
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.
Sender's Kaspa address. Its spendable UTXOs fund the transaction.
The transaction recipients. One output is created per entry (multiple recipients in one transaction are supported).
Recipient's Kaspa address.
Amount to send to this recipient in KAS main units.
Fee configuration.
Fee priority - slow, standard or fast.
Optional exact fee override in KAS. When set, the mass-based fee is bypassed.
Represents the UTXO-selection strategy.
Optional transaction lock time.
Specifies the version of the API that incorporates this endpoint.
Defines the ID of the request. The requestId is generated by Crypto APIs and it's unique for every request.
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.
The selected spendable UTXOs consumed as inputs.
The address owning this input.
The transaction id of the spent output.
The output index within that transaction.
The input amount in sompi.
The transaction outputs (recipient, and change back to the sender when present).
The output address.
The output amount in sompi.
The mass-based fee, in KAS main units.
The fee amount.
The fee denomination.
The fee rate used, in sompi per gram of transaction mass.
The fee rate.
The rate denomination.
The transaction mass (grams) the fee was derived from.
Transaction version.
Transaction lock time.
Subnetwork id (all-zero for the native subnetwork).
| Blockchain protocol | Credits for 1 Results |
| Default Cost | 60 |
| Kaspa | 60 |
API Key
{
"context": "yourExampleString",
"data": {
"item": {
"fromAddress": "kaspa:qqszjeudt3cs42zakd7ch8z5h8peu2qjj0kvsa3n3tq2lg3hca56v8xrmm86p",
"recipients": [
{
"address": "kaspa:qrualxl99gnkdd7nyz9hcm88vv5t8xxvhf5jy8vqxnhk3jymem8dxl0yq3c9c",
"amount": "0.02"
}
],
"feeOptions": {
"priority": "standard",
"exactAmount": "0.00417034"
},
"prepareStrategy": "minimize-dust",
"locktime": 0
}
}
}
{
"apiVersion": "2024-12-12",
"requestId": "601c1710034ed6d407996b30",
"context": "yourExampleString",
"data": {
"item": {
"inputs": [
{
"address": "kaspa:qqszjeudt3cs42zakd7ch8z5h8peu2qjj0kvsa3n3tq2lg3hca56v8xrmm86p",
"transactionId": "7a700499c9bd00cf123648b3bf85347198e6cab4304afb2ddcc52fdcc6932a61",
"outputIndex": 0,
"sompi": "5154323"
}
],
"outputs": [
{
"address": "kaspa:qrualxl99gnkdd7nyz9hcm88vv5t8xxvhf5jy8vqxnhk3jymem8dxl0yq3c9c",
"sompi": "1000000"
}
],
"fee": {
"amount": "0.00417034",
"unit": "KAS"
},
"feePerGram": {
"amount": "218",
"unit": "sompi"
},
"mass": "1913",
"version": 0,
"lockTime": "0",
"subnetworkId": "0000000000000000000000000000000000000000"
}
}
}