Accounts
Lists Bitcoin Cash accounts associated with the provided authorization token.
- The authorization token from the request header.
A promise that resolves to a BitcoinCashAPIResponse containing an array of AccountResponse objects.
GET /bitcoincash/accounts HTTP/1.1
Host: beta.usemoon.ai/
Authorization: text
Accept: */*
A promise that resolves to a BitcoinCashAPIResponse containing an array of AccountResponse objects.
{
"success": true,
"message": "text",
"data": {
"keys": [
"text"
],
"address": "text",
"private_key": "text",
"public_key": "text",
"data": {
"keys": [
"text"
],
"address": "text",
"private_key": "text",
"public_key": "text"
}
}
}Creates a new Bitcoin Cash account.
- The authorization token from the request header.
- The input data required to create a Bitcoin Cash account.
The network on which the transaction is taking place.
The private key of the account.
A promise that resolves to a BitcoinCashAPIResponse containing the account response.
POST /bitcoincash/accounts HTTP/1.1
Host: beta.usemoon.ai/
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 39
{
"network": "text",
"private_key": "text"
}A promise that resolves to a BitcoinCashAPIResponse containing the account response.
{
"success": true,
"message": "text",
"data": {
"keys": [
"text"
],
"address": "text",
"private_key": "text",
"public_key": "text",
"data": {
"keys": [
"text"
],
"address": "text",
"private_key": "text",
"public_key": "text"
}
}
}Reads the account information for a given account name.
- The name of the account to read.
- The authorization token for the request.
A promise that resolves to a BitcoinCashAPIResponse containing the account information.
GET /bitcoincash/accounts/{accountName} HTTP/1.1
Host: beta.usemoon.ai/
Authorization: text
Accept: */*
A promise that resolves to a BitcoinCashAPIResponse containing the account information.
{
"success": true,
"message": "text",
"data": {
"keys": [
"text"
],
"address": "text",
"private_key": "text",
"public_key": "text",
"data": {
"keys": [
"text"
],
"address": "text",
"private_key": "text",
"public_key": "text"
}
}
}