-
Notifications
You must be signed in to change notification settings - Fork 5
SubmitTransaction
Walter Lara edited this page Aug 30, 2023
·
2 revisions
Submits a Signed Cardano transaction to newm-chain.
URL: /v1/cardano/submitTransaction
Method: POST
Path Parameters: None
Query Parameters: None
Headers:
Authorization: Bearer {accessToken}
Content-Type: application/json
Content:
Field | Type | Description | Requirement Type |
---|---|---|---|
songId | string | UUID of the Song associated with the transaction. | Required |
cborHex | string | The hex-encoded cbor for the transaction | Required |
Content example:
{
"songId": "842f5460-76f8-41d8-add9-d043a7a381de",
"cborHex": "84a4008282582006443fd5b04bbce0ca9e64b4311376d85bad947303f193dbfa905024b91913b1008258208d0ecf25f177810407c5bb650bb60bb3a13cc590cd67c76ae45f9b1edf1729770001818258390189a5b59cc40dddad7b4630fc864e93842e44566cd0deee83fb150e36d75963997337046befa69a4777244b5be77bfb6cba370de0c4cef5cf1a000f4240021a000f4240031a04d9f523a10081825820d32d3e261186eec6c3e49f5d3db9fda6ce8c8f7caa6865f43ccd819ef174b8c35840604aa8c83096dee85094e23c374079e6d509426d2d9713459bf22638192fce62e4e6f231f2cdaabcf2b57674ed8b4260069c598665c93e0fa7a2efd375378700f5f6"
}
Code: 201 Accepted
Headers:
Content-Type: application/json
Content:
{
"txId": "f327e5de47317ad26a1b1b485c1f25a789cd60037a19edcdf36cafdf8a24b239",
"result": "MsgAccepted"
}
Code: 401 UNAUTHORIZED
Condition: If {accessToken}
is invalid or expired.