bitcoin/BRWallet.c
// returns an unsigned transaction that sends the specified amount from the wallet to the given address
// result must be freed using BRTransactionFree()
// use feePerKb UINT64_MAX to indicate that the wallet feePerKb should be used
returns an unsigned transaction that sends the specified amount from the wallet to the given address
result must be freed using BRTransactionFree()
use feePerKb UINT64_MAX to indicate that the wallet feePerKb should be used
returns an unsigned transaction that sends the specified amount from the wallet to the given address result must be freed using BRTransactionFree () use feePerKb UINT64_MAX to indicate that the wallet feePerKb should be used
BRTransaction *BRWalletCreateTransactionWithFeePerKb(BRWallet *wallet, uint64_t feePerKb, uint64_t amount, const char *addr)
{
    BRTxOutput o = BR_TX_OUTPUT_NONE;
    assert(wallet != NULL);
    assert(amount > 0);
    assert(addr != NULL && BRAddressIsValid(wallet->addrParams, addr));
    o.amount = amount;
    BRTxOutputSetAddress(&o, wallet->addrParams, addr);
    return BRWalletCreateTxForOutputsWithFeePerKb(wallet, feePerKb, &o, 1);
}
BRTransaction * BRWalletCreateTransactionWithFeePerKb ( BRWallet * wallet , uint64_t feePerKb , uint64_t amount , const char * addr ) { BRTxOutput o = BR_TX_OUTPUT_NONE ; assert ( wallet != NULL ) ; assert ( amount > 0 ) ; assert ( addr != NULL && BRAddressIsValid ( wallet -> addrParams , addr ) ) ; o . amount = amount ; BRTxOutputSetAddress ( & o , wallet -> addrParams , addr ) ; return BRWalletCreateTxForOutputsWithFeePerKb ( wallet , feePerKb , & o , 1 ) ; }
returns an unsigned transaction that sends the specified amount from the wallet to the given address
result must be freed using BRTransactionFree()
use feePerKb UINT64_MAX to indicate that the wallet feePerKb should be used
returns an unsigned transaction that sends the specified amount from the wallet to the given address result must be freed using BRTransactionFree () use feePerKb UINT64_MAX to indicate that the wallet feePerKb should be used