Create a contract
POST {{baseUrl}}/contracts
Creates a new contract.
Request Body
{"name"=>"<string>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Idempotency-Key | string | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"id":"\u003cstring\u003e","name":"\u003cstring\u003e","assets":[{"id":"\u003cstring\u003e","balance":"\u003cstring\u003e","lockedAmount":"\u003cstring\u003e","status":"FAILED","address":"\u003cstring\u003e","tag":"\u003cstring\u003e","activationTime":"\u003cstring\u003e"},{"id":"\u003cstring\u003e","balance":"\u003cstring\u003e","lockedAmount":"\u003cstring\u003e","status":"REJECTED","address":"\u003cstring\u003e","tag":"\u003cstring\u003e","activationTime":"\u003cstring\u003e"}],"customerRefId":"\u003cstring\u003e"}