Through the “Prepare a UTXO-based transaction from xPub” endpoint users can prepare a transaction for signing from all synced with Crypto APIs addresses for the specific xPub. This is based on the selectionStrategy
and the addresses’ balances. In the case a user has an address not synced with Crypto APIs, it will not be included. This endpoint applies to all supported UTXO-based blockchain protocols, e.g. Bitcoin, Litecoin, etc.
Represents the specific blockchain protocol name, e.g. Ethereum, Bitcoin, etc.
Represents the name of the blockchain network used; blockchain networks are usually identical as technology and software, but they differ in data, e.g. - "mainnet" is the live network with actual data while network like "testnet" is a test network.
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.
Representation of the additional data.
Represents the time at which a particular transaction can be added to the blockchain.
Defines the account extended publicly known key which is used to derive all child public keys.
When isConfirmed is True - Defines the amount of the transaction fee When isConfirmed is False - For ETH-based blockchains this attribute represents the max fee value.
Representation of the address
Representation of the exact amount
Representation of the fee priority
Representation of the transaction's strategy type
Object Array representation of transaction receivers
Representation of the receiver address
Representation of the amount
Representation of whether the transaction is replaceable. This is an Optional attribute that is not supported for Dogecoin, Dash and Bitcoin-Cash.
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.
Representation of the additional data
When isConfirmed is True - Defines the amount of the transaction fee When isConfirmed is False - For ETH-based blockchains this attribute represents the max fee value.
Defines the fee per byte value
Represents the time at which a particular transaction can be added to the blockchain.
Represents the total size of this transaction.
Representation of the transaction's version
Representation of whether the transaction is replaceable
Represents the transaction inputs.
Representation of the address
Representation of the change value
Representation of the derivation index of the xpub
Representation of the output index
Representation of the satoshis value
Representation of the script string
Representation of the hash that should be signed.
Represents the reference transaction identifier.
Represents the transaction outputs.
Representation of the address
Representation of the satoshis value
Representation of the script
API Key
{
"context": "yourExampleString",
"data": {
"item": {
"additionalData": "yourAdditionalDataHere",
"locktime": 1659001055,
"xpub": "tpubDCNoSqt3HF32yq8VU6mgapTuW1FzENZa3C5dKUF6WCQzubWz2nA1yxUhMQWkhhkD58Uc8YiuD8cmB3y5tihqAv4zT2GNyqKTNLchHJmsvt9",
"fee": {
"address": "tmG2WnrxrpfXxPf5Phk6yPZffqQhezhcUsz",
"exactAmount": "0.00458",
"priority": "standard"
},
"prepareStrategy": "minimize-dust",
"recipients": [
{
"address": "tmHb1bHWAvK6hHDZEq57cbEz2wgxYEMqdbd",
"amount": "0.00458"
}
],
"replaceable": true
}
}
}
{
"apiVersion": "2023-04-25",
"requestId": "601c1710034ed6d407996b30",
"context": "yourExampleString",
"data": {
"item": {
"additionalData": "yourAdditionalDataHere",
"fee": "0.0000279",
"feePerByte": "0.00000014",
"locktime": 1781965,
"size": 243,
"version": 2,
"blockchainSpecific": {
"replaceable": false,
"vin": [
{
"address": "tb1q8wus03xdv3t6aknmsnpd0jmeu7dgh93j34pj5a",
"change": 0,
"derivationIndex": 1,
"outputIndex": 1,
"satoshis": 10000,
"script": "00143bb907c4cd6457aeda7b84c2d7cb79e79a8b9632",
"sighash": "90cfeef03b2755586b8e81668d8009b16b34d48abf2968729892279222e8d893",
"transactionId": "ff59ac56616ece7498e62c7f9f957cfdd50f6f2a74402058154e3022e7617bf2"
}
],
"vout": [
{
"address": "tb1qvx3fynjuctk475vgecetfck005fxh699mflshv",
"satoshis": 3094,
"script": "0014a3f1019940ce572681c43fd836db97036a85bc8f"
}
]
}
}
}
}