Skip to main content
POST
/
contracts
/
subscription
/
createUserAccount
Create a user account
curl --request POST \
  --url https://mainnet.gomaestro-api.org/v1/contracts/subscription/createUserAccount \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '{
  "subscriber_address": "<string>",
  "selected_out_ref": {
    "tx_hash": "<string>",
    "output_index": 123
  },
  "email": "<string>",
  "phone": "<string>"
}'
{
  "cbor_hex": "<string>",
  "tx_hash": "<string>"
}

Authorizations

api-key
string
header
required

Project API Key

Body

application/json
email
string
required

User's email

phone
string
required

User's phone number

subscriber_address
string

Subscriber address

selected_out_ref
object

UTXO

Response

User account created successfully

Unsigned transaction

cbor_hex
string
required

CBOR hexadecimal representation of the transaction

tx_hash
string
required

Transaction hash

I