Sign tx
post
Signs a Bitcoin transaction using the provided account name and transaction input.
Authorizations
Path parameters
accountNamestringRequired
- The name of the account to sign the transaction for.
Header parameters
AuthorizationstringRequired
- The authorization token from the request header.
Body
- The transaction input details.
tostringOptional
The recipient address.
valuenumber · doubleOptional
The amount to be sent.
networkstringOptional
The network on which the transaction is taking place.
compressbooleanOptional
Indicates whether to compress the public key.
Responses
200
A promise that resolves to a BitcoinAPIResponse object containing the signed transaction data.
application/json
post
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
}
200
A promise that resolves to a BitcoinAPIResponse object containing the signed transaction data.
{
"data": {
"signedTx": "text",
"transaction_hash": "text"
},
"success": true,
"message": "text"
}