Through the “Prepare an account-based transaction from xPub” endpoint users can prepare a transaction for signing from a synced with Crypto APIs address from the specific xPub. This endpoint applies to all supported account-based blockchain protocols, e.g. Ethereum, BSC, 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 networks like "testnet", "ropsten" are test networks.
Defines the account extended publicly known key which is used to derive all child public keys.
Enum representation of the transaction type
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.
Representation of the amount of the transaction
Representation of the nonce value
Represents a list of recipient addresses with the respective amounts. In account-based protocols like Ethereum there is only one address in this list.
Represents a sender address with the respective amount. In account-based protocols like Ethereum there is only one address in this list.
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 exact amount value
Represents the fee priority
Representation of the transaction type
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 derivation index of the xpub address
Representation of the data in hex value
Represents the sequential running number for an address, starting from 0 for the first transaction. E.g., if the nonce of a transaction is 10, it would be the 11th transaction sent from the sender's address.
Represents a recipient addresses. In account-based protocols like Ethereum there is only one address in this list.
Represents a sender address with the respective amount. In account-based protocols like Ethereum there is only one address in this list.
Representation of the hash that should be signed.
Representation of the amount of the transaction
Represents the unit of the amount to be sent.
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.
Represents the amount of gas used by this specific transaction alone.
Represents the price offered to the miner to purchase this amount of gas.
Representation of the max fee per gas value
Representation of the max priority fee per gas value
Representation of the transaction type
Represents the amount of gas used by this specific transaction alone.
Represents the price offered to the miner to purchase this amount of gas.
API Key
{
"context": "yourExampleString",
"data": {
"item": {
"additionalData": "yourAdditionalDataHere",
"amount": "0.000003",
"nonce": "0",
"recipient": "0x041c594a0cc194e826bef5411b29c7f27001b7e3",
"sender": "0x03654A9E78771442CAdf8DB37ae60D6a12bAEa9f",
"fee": {
"exactAmount": "0.00045",
"priority": "standard"
},
"transactionType": "legacy-transaction"
}
}
}
{
"apiVersion": "2024-12-12",
"requestId": "601c1710034ed6d407996b30",
"context": "yourExampleString",
"data": {
"item": {
"derivationIndex": 0,
"inputData": "0x0079006f00750072004100640064006900740069006f006e0061006c00440061007400610048006500720065",
"nonce": 0,
"recipient": "0x041c594a0cc194e826bef5411b29c7f27001b7e3",
"sender": "0x03654A9E78771442CAdf8DB37ae60D6a12bAEa9f",
"sigHash": "40738814e379fd2b1923729c87ac80dddc6810a3f8f02fef05452251972ec83a",
"value": {
"amount": 0,
"unit": "WEI"
},
"fee": {
"gasLimit": 552020,
"gasPrice": 2500000007,
"unit": "WEI",
"maxFeePerGas": 2000000008,
"maxPriorityFeePerGas": 2000000000
},
"type": "legacy-transaction",
"gasLimit": 552020,
"gasPrice": 2500000007
}
}
}