Prerequesite Steps
Prior to creating a policy there are a few steps that need to be done first. Please see below for the prerequesite steps:
New Standard Registry registration
POST
/api/v1/accounts/register
Request Body
Name | Type | Description |
---|---|---|
username* | String | njkqur8x |
password* | String | test |
role* | String | STANDARD_REGISTRY |
Login
POST
/api/v1/accounts/login
Request Body
Name | Type | Description |
---|---|---|
username* | String | njkgur8x |
password* | String | test |
Hedera account creation
GET
/api/v1/demo/randomKey
Address book creation
PUT
/api/v1/profile
Request Body
Name | Type | Description |
---|---|---|
hederaAccountId* | String | 0.0.29511776 |
hederaAccountKey* | String | 302e020100300506032b6570042204200c8d2abbdd9aee64eed6e4891c276aa50248ab182c0cd7dfbec8506e5eaaaef8 |
name* | String | DD |
type* | String | StandardRegistry |
context* | String | |
aopnetname* | String | Test Identity SDK appnet |
didSrverURL* | URL | |
didTopicMemo* | String | Test Identity SDK appnet DID topic |
vcTopicMemo* | String | Test Identity SDK appnet DID topic |
iRec schema creation
POST
/api/v1/schemas
Request Body
Name | Type | Description |
---|---|---|
uuid* | String | d018a6ce-71f0-4bc5-9380-6bae4d4bb5bb |
status* | String | DRAFT |
readonly* | String | False |
name* | String | iRec |
description* | String | iRec Application Form |
entity* | String | VC |
owner | String | |
version | String | |
document* | String | {"$id":"#d018a6ce-71f0-4bc5-9380-6bae4d4bb5bb","$comment":"{ \"term\": \"d018a6ce-71f0-4bc5-9380-6bae4d4bb5bb\", \"@id\": \"https://localhost/schema#d018a6ce-71f0-4bc5-9380-6bae4d4bb5bb\" }","title":"iRec","description":"iRec application form","type":"object","properties":{"@context":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"readOnly":true},"type":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"readOnly":true},"id":{"type":"string","readOnly":true},"field0":{"title":"Test field","description":"Test field","readOnly":false,"$comment":"{ \"term\": \"field0\", \"@id\": \"https://www.schema.org/text\" }","type":"string"},"field1":{"title":"Required field","description":"Required field","readOnly":false,"$comment":"{ \"term\": \"field1\", \"@id\": \"https://www.schema.org/text\" }","type":"string"},"field2":{"title":"Multiple field","description":"Multiple field","readOnly":false,"type":"array","items":{"type":"string"},"$comment":"{ \"term\": \"field2\", \"@id\": \"https://www.schema.org/text\" }"},"policyId":{"title":"policyId","description":"policyId","readOnly":true,"$comment":"{ \"term\": \"policyId\", \"@id\": \"https://www.schema.org/text\" }","type":"string"}},"required":["@context","type","field1","policyId"],"additionalProperties":false} |
iRec schema publish
PUT
/api/v1/schemas/61ee7ecd9c02660014fa662e/publish
Request Body
Name | Type | Description |
---|---|---|
version* | String | {"version":"1.0.0"} |
Token creation
POST
/api/v1/tokens
Request Body
Name | Type | Description |
---|---|---|
tokenName* | String | iRec |
tokenSymbol* | String | iRec |
tokenType* | String | fungible |
decimals* | String | 2 |
initialsupply* | String | 0 |
enableAdmin | Boolean | true |
changeSupply | Boolean | true |
enableFreeze | Boolean | true |
enableKYC | Boolean | true |
enableWipe | Boolean | true |
Last updated