POST api/Transaction/CreateUpdateTransactionHash
Request Information
URI Parameters
None.
Body Parameters
CreateUpdateTransactionHashRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| TransactionHash | Collection of CreateUpdateHashSaveRequestModel |
None. |
Request Formats
application/json, text/json, text/plain, text/html
Sample:
{
"transactionHash": [
{
"itemID": 1,
"hashToken": "sample string 2",
"itemTypeID": 3,
"collectionID": 4,
"byteCode": "sample string 5",
"abi": "sample string 6"
},
{
"itemID": 1,
"hashToken": "sample string 2",
"itemTypeID": 3,
"collectionID": 4,
"byteCode": "sample string 5",
"abi": "sample string 6"
}
]
}
application/xml, text/xml
Sample:
<CreateUpdateTransactionHashRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NFTWardsV2.Core.RequestModel">
<TransactionHash>
<CreateUpdateHashSaveRequestModel>
<ABI>sample string 6</ABI>
<ByteCode>sample string 5</ByteCode>
<CollectionID>4</CollectionID>
<HashToken>sample string 2</HashToken>
<ItemID>1</ItemID>
<ItemTypeID>3</ItemTypeID>
</CreateUpdateHashSaveRequestModel>
<CreateUpdateHashSaveRequestModel>
<ABI>sample string 6</ABI>
<ByteCode>sample string 5</ByteCode>
<CollectionID>4</CollectionID>
<HashToken>sample string 2</HashToken>
<ItemID>1</ItemID>
<ItemTypeID>3</ItemTypeID>
</CreateUpdateHashSaveRequestModel>
</TransactionHash>
</CreateUpdateTransactionHashRequestModel>
multipart/form-data
Sample:
<CreateUpdateTransactionHashRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NFTWardsV2.Core.RequestModel"><TransactionHash><CreateUpdateHashSaveRequestModel><ABI>sample string 6</ABI><ByteCode>sample string 5</ByteCode><CollectionID>4</CollectionID><HashToken>sample string 2</HashToken><ItemID>1</ItemID><ItemTypeID>3</ItemTypeID></CreateUpdateHashSaveRequestModel><CreateUpdateHashSaveRequestModel><ABI>sample string 6</ABI><ByteCode>sample string 5</ByteCode><CollectionID>4</CollectionID><HashToken>sample string 2</HashToken><ItemID>1</ItemID><ItemTypeID>3</ItemTypeID></CreateUpdateHashSaveRequestModel></TransactionHash></CreateUpdateTransactionHashRequestModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
CommonResponseDataModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ReturnID | integer |
Required |
|
| Message | string |
Required |
|
| Successful | boolean |
Required |
|
| Code | integer |
None. |
|
| TotalRecord | integer |
None. |
Response Formats
application/json, text/json, text/plain, text/html
Sample:
{
"returnID": 1,
"message": "sample string 2",
"successful": true,
"code": 4,
"totalRecord": 5
}
application/xml, text/xml
Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NFTWards.Core.DataModel"> <Code>4</Code> <Message>sample string 2</Message> <ReturnID>1</ReturnID> <Successful>true</Successful> <TotalRecord>5</TotalRecord> </CommonResponseDataModel>
multipart/form-data
Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NFTWards.Core.DataModel"><Code>4</Code><Message>sample string 2</Message><ReturnID>1</ReturnID><Successful>true</Successful><TotalRecord>5</TotalRecord></CommonResponseDataModel>