Transaction verifcation
Check transaction status
There is a wait time before validation for all blockchain transactions.
You may need to check the transaction status. To do this, use the transaction ID returned by the transaction request.
To check transaction status, make a GET call to the following endpoint:
{{CODEFI_API}}/essentials/transaction/{{ transactionId }}?withContext=true&userId={{issuer}}
Example curl request
curl --header "Content-Type: application/json" --header "Authorization: Bearer $ADMIN_ACCESS_TOKEN" --request GET $CODEFI_API/essentials/transaction/{{ transactionId }}?withContext=true\&userId={{issuer}}
note
The transaction status is available at transaction.status
in the resulting output.
Example response
{
"transaction": {
"id": 19012,
"tenantId": "3f3lZL9aZlUOCPwIKEEBqaBhhCziZcB7",
"status": "pending",
"signerId": "9143c10c-c09d-4926-a31e-98b146aa60e8",
"callerId": "dd9d3d40-9393-48bf-900c-6696c63aa74b",
"identifierOrchestrateId": "15b3c895-530f-4241-9fb4-a0872c0ce221",
"identifierTxHash": "15b3c895-530f-4241-9fb4-a0872c0ce221",
"identifierCustom": null,
"callbacks": null,
"context": {
"functionName": "createToken",
"typeFunctionUser": "ISSUER",
"usersToRefresh": [
"dd9d3d40-9393-48bf-900c-6696c63aa74b",
"9143c10c-c09d-4926-a31e-98b146aa60e8"
],
"tokenId": "a39d2587-206d-483f-a824-c918704af9e3",
"ethService": {
"type": "orchestrate",
"data": {
"tenantId": "codefi",
"name": "Codefi Assets Dev Network",
"key": "codefi_assets_dev_network",
"chainId": "118174032",
"type": "poa",
"description": "Codefi Assets Dev, is a private Kaleido network setup for development, based on Besu nodes",
"ethRequired": false,
"kaleido": true,
"ace": "0x8cec219d10fe2617d207d686df46f0c5b43bc5fd",
"rpcEndpoint": "https://e0bwzpx1vh:85Fhl87PZbBHlKSWFecxCu3j89RlOulIEJACDHZzM_U@e0yt00jvmm-e0rlauwjnb-rpc.de0-aws.kaleido.io"
}
},
"nextTokenStatus": "deployed",
"wallet": {
"address": "0xD8Ff7b53FAa9eDB87C2D01e4cF04AA879BfD9E3F",
"type": "vault"
},
"pendingTxResponseMessage": "Hybrid token a39d2587-206d-483f-a824-c918704af9e3 created successfully (transaction sent)",
"validatedTxResponseMessage": "Hybrid token a39d2587-206d-483f-a824-c918704af9e3 creation succeeded",
"failureTxResponseMessage": "Hybrid token a39d2587-206d-483f-a824-c918704af9e3 creation failed",
"call": {
"path": "contract/deploy",
"body": {
"contractName": "ERC1400HoldableCertificateToken",
"signerAddress": "0xD8Ff7b53FAa9eDB87C2D01e4cF04AA879BfD9E3F",
"arguments": [
"Token-556065153",
"TOK",
1,
["0xD8Ff7b53FAa9eDB87C2D01e4cF04AA879BfD9E3F"],
[],
"0x0b0b350C14A443FC8a75459F5B9637f7D7897186",
"0x0000000000000000000000000000000000000000",
"0xe31C41f0f70C5ff39f73B4B94bcCD767b3071630",
2
],
"ethServiceType": "orchestrate",
"chain": "codefi_assets_dev_network"
}
},
"rawTransaction": {
"params": {
"contractName": "ERC1400HoldableCertificateToken",
"contractTag": "latest",
"from": "0xD8Ff7b53FAa9eDB87C2D01e4cF04AA879BfD9E3F",
"args": [
"Token-556065153",
"TOK",
"0x1",
["0xD8Ff7b53FAa9eDB87C2D01e4cF04AA879BfD9E3F"],
[],
"0x0b0b350C14A443FC8a75459F5B9637f7D7897186",
"0x0000000000000000000000000000000000000000",
"0xe31C41f0f70C5ff39f73B4B94bcCD767b3071630",
"0x2"
]
},
"chain": "codefi_assets_dev_network"
},
"action": {
"workflowType": "TOKEN",
"name": "createToken",
"role": "ISSUER",
"tenantId": "3f3lZL9aZlUOCPwIKEEBqaBhhCziZcB7",
"state": "__notStarted__",
"workflowTemplateId": 39,
"userId": "9143c10c-c09d-4926-a31e-98b146aa60e8",
"entityId": "a39d2587-206d-483f-a824-c918704af9e3",
"entityType": "TOKEN",
"quantity": 0,
"price": 0,
"paymentId": "dsg25WJu",
"wallet": "0xD8Ff7b53FAa9eDB87C2D01e4cF04AA879BfD9E3F",
"date": "2021-05-26T04:30:31.733Z",
"data": {
"kycTemplateId": "e3745e87-64d6-4f2a-bee1-10483745c2b4",
"bypassKycChecks": true,
"certificateActivated": false,
"certificateTypeAsNumber": 2,
"unregulatedERC20transfersActivated": false,
"txSignerId": "9143c10c-c09d-4926-a31e-98b146aa60e8",
"walletUsed": {
"address": "0xD8Ff7b53FAa9eDB87C2D01e4cF04AA879BfD9E3F",
"type": "vault"
},
"nextStatus": "deployed",
"transaction": {
"deployed": {
"status": "pending",
"transactionId": "15b3c895-530f-4241-9fb4-a0872c0ce221"
}
},
"isLedgerTx": false
},
"idempotencyKey": null,
"objectId": null,
"recipientId": null,
"assetClassKey": null,
"documentId": null,
"id": 44516,
"createdAt": "2021-05-26T04:30:31.743Z",
"updatedAt": "2021-05-26T04:30:31.743Z"
}
},
"createdAt": "2021-05-26T04:30:31.794Z",
"updatedAt": "2021-05-26T04:30:31.794Z",
"userId": "9143c10c-c09d-4926-a31e-98b146aa60e8",
"transactionId": "15b3c895-530f-4241-9fb4-a0872c0ce221"
},
"message": "Transaction 15b3c895-530f-4241-9fb4-a0872c0ce221 successfully retrieved"
}