POST api/insert_blockchain
Request Information
URI Parameters
None.
Body Parameters
block| Name | Description | Type | Additional information |
|---|---|---|---|
| Index | integer |
None. |
|
| TimeStamp | date |
None. |
|
| PreviousHash | string |
None. |
|
| coin | decimal number |
None. |
|
| Hash | string |
None. |
|
| Data | string |
None. |
|
| seller | string |
None. |
|
| buyer | string |
None. |
|
| amt | decimal number |
None. |
|
| price | decimal number |
None. |
|
| reward | decimal number |
None. |
|
| fees | decimal number |
None. |
|
| txn_id | decimal number |
None. |
|
| order_id | string |
None. |
|
| sym | string |
None. |
|
| type | string |
None. |
|
| side | string |
None. |
|
| exc | string |
None. |
|
| get | decimal number |
None. |
|
| get1 | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"Index": 1,
"TimeStamp": "2025-10-29T05:09:12.1172091-07:00",
"PreviousHash": "sample string 3",
"coin": 4.0,
"Hash": "sample string 5",
"Data": "sample string 6",
"seller": "sample string 7",
"buyer": "sample string 8",
"amt": 9.0,
"price": 10.0,
"reward": 11.0,
"fees": 12.0,
"txn_id": 13.0,
"order_id": "sample string 14",
"sym": "sample string 15",
"type": "sample string 16",
"side": "sample string 17",
"exc": "sample string 18",
"get": 19.0,
"get1": 20.0
}
application/xml, text/xml
Sample:
<block xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KG_API.Models"> <Data>sample string 6</Data> <Hash>sample string 5</Hash> <Index>1</Index> <PreviousHash>sample string 3</PreviousHash> <TimeStamp>2025-10-29T05:09:12.1172091-07:00</TimeStamp> <amt>9</amt> <buyer>sample string 8</buyer> <coin>4</coin> <exc>sample string 18</exc> <fees>12</fees> <get>19</get> <get1>20</get1> <order_id>sample string 14</order_id> <price>10</price> <reward>11</reward> <seller>sample string 7</seller> <side>sample string 17</side> <sym>sample string 15</sym> <txn_id>13</txn_id> <type>sample string 16</type> </block>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of ObjectNone.
Response Formats
application/json, text/json
Sample:
Sample not available.