POST
/
transactions
/
mints
curl --request POST \
  --url https://protocol-sandbox.lumx.io/v2/transactions/mints \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "contractId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "walletId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "quantity": 123,
  "uriNumber": 123
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "walletId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "pending",
  "transactionHash": "<string>",
  "result": {},
  "request": {
    "contractId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "quantity": 123
  },
  "type": "mint",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "completedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <API_KEY>.

Body

application/json
contractId
string
required

The ID of the contract from which to mint tokens.

walletId
string
required

The ID of the wallet that will receive the tokens.

quantity
number
default: 1

The quantity of tokens. Required if minting fungible tokens.

uriNumber
number
required

The sequential identifier of the token type within the contract.

Response

202 - application/json
id
string

The ID of the transaction.

walletId
string

The ID of the wallet that performed the transaction.

status
enum<string>

The status of the transaction on the blockchain.

Available options:
pending,
success,
failed
transactionHash
string | null

The identifier of this transaction on the blockchain.

result
object
request
object

An object containing the parameters used for this transaction.

type
enum<string>

The transaction type

Available options:
mint
createdAt
string

The timestamp from when the transaction was submitted.

updatedAt
string

The timestamp from when the transaction was last updated.

completedAt
string | null

The timestamp from when the transaction was completed.