Sign tx
post
Signs a Bitcoin Cash transaction.
Authorizations
Path parameters
accountNamestringRequired
- The name of the account to sign the transaction for.
Header parameters
AuthorizationstringRequired
- The authorization token.
Body
- The transaction input data.
tostringOptional
The recipient address of the transaction.
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 BitcoinCashAPIResponse containing the signed transaction output.
application/json
post
POST //bitcoincash/accounts/{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 BitcoinCashAPIResponse containing the signed transaction output.
{
"success": true,
"message": "text",
"data": {
"signedTx": "text",
"transaction_hash": "text"
}
}