Skip to main content Link Menu Expand (external link) Document Search Copy Copied

BtcTransactionFromAddress

Model getters

Method name Return type Description Notes
getFromAddress() \Tatum\Model\BtcTransactionFromAddressSource[] The array of blockchain addresses to send the assets from and their private keys. For each address, the last 100 transactions are scanned for any UTXO to be included in the transaction.
Example: null
 
getTo() \Tatum\Model\BtcTransactionFromAddressTarget[] The array of blockchain addresses to send the assets to and the amounts that each address should receive (in BTC). The difference between the UTXOs calculated in the fromAddress section and the total amount to receive calculated in the to section will be used as the gas fee. To explicitly specify the fee amount and the blockchain address where any extra funds remaining after covering the fee will be sent, set the fee and changeAddress parameters.
Example: null
 
getFee() string The fee to be paid for the transaction (in BTC); if you are using this parameter, you have to also use the changeAddress parameter because these two parameters only work together.
Example: 0.0015
[optional]
getChangeAddress() string The blockchain address to send any extra assets remaning after covering the fee to; if you are using this parameter, you have to also use the fee parameter because these two parameters only work together.
Example: 2MzNGwuKvMEvKMQogtgzSqJcH2UW3Tc5oc7
[optional]