Sign psbt with key path and script path

post

Signs a Partially Signed Bitcoin Transaction (PSBT) using a key path and script path.

Authorizations
Path parameters
accountNamestringRequired
  • The name of the account to use for signing.
Header parameters
AuthorizationstringRequired
  • The authorization token for authentication.
Body
  • The request body containing the network and PSBT in hexadecimal format.
psbt_hexstringRequired
networkstringRequired
Responses
200
A promise that resolves to a BitcoinCashAPIResponse containing the signed PSBT in hexadecimal format.
application/json
post
POST //bitcoincash/accounts/{accountName}/sign-psbt-with-key-path-and-script-path HTTP/1.1
Host: beta.usemoon.ai
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 36

{
  "psbt_hex": "text",
  "network": "text"
}
200

A promise that resolves to a BitcoinCashAPIResponse containing the signed PSBT in hexadecimal format.

{
  "success": true,
  "message": "text",
  "data": {
    "signed_psbt_hex": "text"
  }
}