Signs a Bitcoin transaction using the provided account name and transaction input.
The recipient address.
The amount to be sent.
The network on which the transaction is taking place.
Indicates whether to compress the public key.
POST //bitcoin/{accountName}/sign-tx HTTP/1.1
Host: beta.usemoon.ai
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 56
{
"to": "text",
"value": 1,
"network": "text",
"compress": true
}
A promise that resolves to a BitcoinAPIResponse object containing the signed transaction data.
{
"data": {
"signedTx": "text",
"transaction_hash": "text"
},
"success": true,
"message": "text"
}