Brc20 tx

post

Creates a BRC20 transaction.

Authorizations
Path parameters
accountNamestringRequired
  • The name of the account for which the transaction is being created.
Header parameters
AuthorizationstringRequired
  • The authorization token from the request header.
Body
  • The input data for the BRC20 transaction.
networkstringRequired

The network on which the transaction is taking place.

opstringRequired

The operation type of the transaction.

tickstringRequired

The ticker symbol of the token involved in the transaction.

amtstringRequired

The amount of tokens involved in the transaction.

input_txidstringRequired

The transaction ID of the input being used.

input_voutnumber · doubleRequired

The output index of the input being used.

input_amountstringRequired

The amount of the input being used.

output_addressstringRequired

The address to which the output is being sent.

change_addressstringRequired

The address to which any change is being sent.

Responses
200
A promise that resolves to a BitcoinAPIResponse object containing the transaction data.
application/json
post
POST //bitcoin/{accountName}/brc20-tx HTTP/1.1
Host: beta.usemoon.ai
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 162

{
  "network": "text",
  "op": "text",
  "tick": "text",
  "amt": "text",
  "input_txid": "text",
  "input_vout": 1,
  "input_amount": "text",
  "output_address": "text",
  "change_address": "text"
}
200

A promise that resolves to a BitcoinAPIResponse object containing the transaction data.

{
  "data": {
    "signedTx": "text",
    "transaction_hash": "text"
  },
  "success": true,
  "message": "text"
}