기밀 도매 CBDC 래퍼 API 패키지
Oracle Blockchain Platform Digital Assets Edition에는 도매 CBDC 시나리오의 기밀 모드 버전과 관련된 작업을 지원하도록 REST API를 확장하는 래퍼 API 패키지가 포함되어 있습니다.
래퍼 API 패키지는 OCI(Oracle Cloud Infrastructure)의 리소스 관리자 스택을 사용하여 생성된 API 게이트웨이 서비스 및 OCI 함수를 사용하여 도매 CBDC 애플리케이션용으로 특별히 설계된 API 경로를 배치합니다. 도매 CBDC 래퍼 API 패키지는 Oracle Blockchain Platform 콘솔에서 다운로드할 수 있으며 다음 구성 요소를 포함합니다.
WholesaleCBDCWithConfidentialPaymentWrapperAPI.zip
- 배치에 필요한 Terraform 스크립트를 포함하여 래퍼 API 패키지를 포함하는 아카이브 파일입니다. 이 파일을 OCI의 리소스 관리자 스택에 배치하여 래퍼 API에 필요한 Oracle 리소스를 생성합니다.WholesaleCBDCWithConfidentialPayment_WrapperAPI.postman_collection
- 배치된 래퍼 API를 테스트할 수 있는 Postman 모음입니다. 컬렉션에는 래퍼 API 패키지에 정의된 API에 해당하는 끝점 및 페이로드가 포함된 미리 구성된 요청이 포함됩니다.
래퍼 API
-
activateCBDCAccount
- 원래 메소드 이름:
activateAccount
- 이 POST 메소드는 토큰 계정을 활성화합니다. 이 메소드는 지정된 조직의
Token Admin
또는Org Admin
에 의해서만 호출될 수 있습니다. 삭제된 계정은 활성화할 수 없습니다. - 페이로드:
{ "accountId": "account_id value", "endorsers": {{endorsers}}, "transientMapArgsFlag": true }
- 매개변수:
accountId: string
– 계정의 ID입니다.endorsers: string[]
– 트랜잭션을 보증해야 하는 피어의 배열(예:peer1
,peer2
)입니다.transientMapArgsFlag
– 부울 값 true인 경우 인수는 기밀성을 위해 임시 맵을 통해 전송됩니다. false인 경우 인수는 표준 페이로드를 통해 전송됩니다.
- 반환값:
- 성공 시 지정된 토큰 계정에 대한 계정 상태 객체의 JSON 표현입니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "txid": "864cdbc5b4ee1a6f2238301e75ee2ddff0ecfa490ddf490da33365cae92cb4ad", "payload": { "assetType": "oaccountStatus", "status_id": "oaccountStatus~4c900b07f6136f36854064c0c0ba97aa09c9734cbe11966cc83865f156ced2c6", "account_id": "oaccount~214ad54a30703412b195f36429607b08627dea893303870bf3372f944fe0c088", "status": "active" }, "encode": "JSON", "sourceURL": "centralbank-oabcs1-nrt.blockchain.ocp.example.com:20010", "blockNumber": 58 } }
-
addCBAdmin
- 원래 메소드 이름:
addTokenAdmin
- 이 POST 메소드는 사용자를 토큰 체인코드의
Token Admin
로 추가합니다. 이 메소드는 토큰 체인 코드의Token Admin
에 의해서만 호출될 수 있습니다. 첫번째 호출은 체인 코드를 인스턴스화하는 관리자 호출입니다. - 페이로드:
{ "orgId": "{{bc-org-id}}", "userId": "{{bc-user-id}}", "endorsers": {{endorsers}}, "transientMapArgsFlag": true }
- 매개변수:
orgId: string
– 현재 조직에 있는 사용자의 멤버쉽 서비스 공급자(MSP) ID입니다.userId: string
– 사용자의 사용자 이름 또는 전자메일 ID입니다.endorsers: string[]
– 트랜잭션을 보증해야 하는 피어의 배열(예:peer1
,peer2
)입니다.transientMapArgsFlag
– 부울 값 true인 경우 인수는 기밀성을 위해 임시 맵을 통해 전송됩니다. false인 경우 인수는 표준 페이로드를 통해 전송됩니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "txid": "a988dc3e9aab162508fd0555fec254f248e27fd0c5440d94e1f49fc65643cafa", "payload": { "msg": "Successfully added Token Admin (Org_Id: CentralBank, User_Id: user1)" }, "encode": "JSON", "sourceURL": "centralbank-oabcs1-nrt.blockchain.ocp.example.com:20010", "blockNumber": 69 } }
-
addCBAuditor
- 원래 메소드 이름:
addTokenAuditor
- 이 POST 메소드는 토큰 체인 코드에 토큰 감사자를 추가합니다. 이 메소드는 체인 코드의
Token Admin
에 의해서만 호출될 수 있습니다. - 페이로드:
{ "orgId": "{{bc-org-id}}", "userId": "{{bc-user-id}}", "endorsers": {{endorsers}}, "transientMapArgsFlag": true }
- 매개변수:
orgId: string
– 현재 조직에 있는 사용자의 멤버쉽 서비스 공급자(MSP) ID입니다.userId: string
– 사용자의 사용자 이름 또는 전자메일 ID입니다.endorsers: string[]
– 트랜잭션을 보증해야 하는 피어의 배열(예:peer1
,peer2
)입니다.transientMapArgsFlag
– 부울 값 true인 경우 인수는 기밀성을 위해 임시 맵을 통해 전송됩니다. false인 경우 인수는 표준 페이로드를 통해 전송됩니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "txid": "864cdbc5b4ee1a6f2238301e75ee2ddff0ecfa490ddf490da33365cae92cb4ad", "payload": { "assetType": "oaccountStatus", "status_id": "oaccountStatus~4c900b07f6136f36854064c0c0ba97aa09c9734cbe11966cc83865f156ced2c6", "account_id": "oaccount~214ad54a30703412b195f36429607b08627dea893303870bf3372f944fe0c088", "status": "active" }, "encode": "JSON", "sourceURL": "centralbank-oabcs1-nrt.blockchain.ocp.example.com:20010", "blockNumber": 58 } }
-
addFIAdmin
- 원래 메소드 이름:
addOrgAdmin
- 이 메소드는 토큰 체인 코드에 조직 관리자를 추가합니다. 이 메소드는 지정된 조직의
Token Admin
또는Org Admin
에 의해서만 호출될 수 있습니다. - 페이로드:
{ "orgId": "{{bc-org-id}}", "userId": "{{bc-user-id}}", "endorsers": {{endorsers}}, "transientMapArgsFlag": true }
- 매개변수:
orgId: string
– 현재 조직에 있는 사용자의 멤버쉽 서비스 공급자(MSP) ID입니다.userId: string
– 사용자의 사용자 이름 또는 전자메일 ID입니다.endorsers: string[]
– 트랜잭션을 보증해야 하는 피어의 배열(예:peer1
,peer2
)입니다.transientMapArgsFlag
– 부울 값 true인 경우 인수는 기밀성을 위해 임시 맵을 통해 전송됩니다. false인 경우 인수는 표준 페이로드를 통해 전송됩니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "txid": "ab1544c0d23d930253e6e6020c7c9584f03d324fb1123cc96fe7e0573b232792", "payload": { "msg": "Successfully added Org Admin (Org_Id: CentralBank, User_Id: cb_admin_demo)" }, "encode": "JSON", "sourceURL": "centralbank-oabcs1-nrt.blockchain.ocp.example.com:20010", "blockNumber": 61 } }
-
addFIAuditor
- 원래 메소드 이름:
addOrgAuditor
- 이 방법은 조직 감사자를 토큰 체인 코드에 추가합니다. 이 메소드는 지정된 조직의
Token Admin
또는Org Admin
에 의해서만 호출될 수 있습니다. - 페이로드:
{ "orgId": "{{bc-org-id}}", "userId": "{{bc-user-id}}", "endorsers": {{endorsers}}, "transientMapArgsFlag": true }
- 매개변수:
orgId: string
– 현재 조직에 있는 사용자의 멤버쉽 서비스 공급자(MSP) ID입니다.userId: string
– 사용자의 사용자 이름 또는 전자메일 ID입니다.endorsers: string[]
– 트랜잭션을 보증해야 하는 피어의 배열(예:peer1
,peer2
)입니다.transientMapArgsFlag
– 부울 값 true인 경우 인수는 기밀성을 위해 임시 맵을 통해 전송됩니다. false인 경우 인수는 표준 페이로드를 통해 전송됩니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "txid": "c0acbadfa461963a5d085bb12335dcf6d8ec566acf72a88a1f168b3a0435db89", "payload": { "msg": "Successfully added Org Auditor (Org_Id: CentralBank, User_Id: cb_admin_demo)" }, "encode": "JSON", "sourceURL": "centralbank-oabcs1-nrt.blockchain.ocp.example.com:20010", "blockNumber": 62 } }
-
addRole
- 원래 메소드 이름:
addRole
- 이 메소드는 지정된 사용자 및 토큰에 롤을 추가합니다. 계정 ID는 연결된 토큰 ID, 조직 ID 및 사용자 ID의 SHA-256 해시를 생성하여 구성됩니다. 이 메소드는 지정된 조직의
Token Admin
또는Org Admin
에 의해서만 호출될 수 있습니다. - 페이로드:
{ "accountId": "account_id value", "role": "role value (for example minter / burner / notary)", "endorsers": {{endorsers}}, "transientMapArgsFlag": true }
- 매개변수:
accountId: string
– 계정의 ID입니다.role: string
– 지정된 사용자에 추가할 역할의 이름입니다.endorsers: string[]
– 트랜잭션을 보증해야 하는 피어의 배열(예:peer1
,peer2
)입니다.transientMapArgsFlag
– 부울 값 true인 경우 인수는 기밀성을 위해 임시 맵을 통해 전송됩니다. false인 경우 인수는 표준 페이로드를 통해 전송됩니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "txid": "c44931d2227305914db21564301775f8a4edc2aa7fef434d063be7e207b4fd20", "payload": { "msg": "Successfully added role 'minter' to Account Id: oaccount~214ad54a30703412b195f36429607b08627dea893303870bf3372f944fe0c088" }, "encode": "JSON", "sourceURL": "centralbank-oabcs1-nrt.blockchain.ocp.example.com:20009", "blockNumber": 63 } }
-
approveCBDCCreation
- 원래 메소드 이름:
approveMint
- Notaries는 이 POST 메소드를 호출하여 민트 요청을 승인할 수 있습니다.
- 페이로드:
{ "tokenId": "{{bc-token-id}}", "operationId": "operation_id value", "endorsers": {{endorsers}}, "transientMapArgsFlag": true }
- 매개변수:
tokenId: string
– 토큰 ID입니다.operationId: string
– 승인할 민트 요청의 고유한 작업 ID입니다.endorsers: string[]
– 트랜잭션을 보증해야 하는 피어의 배열(예:peer1
,peer2
)입니다.transientMapArgsFlag
– 부울 값 true인 경우 인수는 기밀성을 위해 임시 맵을 통해 전송됩니다. false인 경우 인수는 표준 페이로드를 통해 전송됩니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "txid": "4514aa229ebcc4d2fedcaa47c4301615e30c4a9bae45cf0256a5b80d75b3697a", "payload": { "msg": "Successfully minted 1000 tokens to Account Id: oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41" }, "encode": "JSON", "sourceURL": "centralbank-oabcs1-nrt.blockchain.ocp.example.com:20011", "blockNumber": 337 } }
-
approveCBDCRetirement
- 원래 메소드 이름:
approveBurn
- Notaries는 이 POST 메소드를 호출하여 레코딩 요청을 승인할 수 있습니다.
- 페이로드:
{ "tokenId": "{{bc-token-id}}", "operationId": "operation_id value", "endorsers": {{endorsers}}, "transientMapArgsFlag": true }
- 매개변수:
tokenId: string
– 토큰 ID입니다.operationId: string
– 승인할 민트 요청의 고유한 작업 ID입니다.endorsers: string[]
– 트랜잭션을 보증해야 하는 피어의 배열(예:peer1
,peer2
)입니다.transientMapArgsFlag
– 부울 값 true인 경우 인수는 기밀성을 위해 임시 맵을 통해 전송됩니다. false인 경우 인수는 표준 페이로드를 통해 전송됩니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "txid": "8c7b013765917ebade60c6e6e122ec9b94282349e630fa1f2a446c79cb9ef29c", "payload": { "msg": "Successfully burned 200 tokens from account id: oaccount~cea6080858337b1575d6a76ed0bd07a0eacd8871e3f2f7f793729a0e4b0e8e98 (Org-Id: CentralBank, User-Id: cb_retirer_demo)" }, "encode": "JSON", "sourceURL": "centralbank-oabcs1-nrt.blockchain.ocp.example.com:20011", "blockNumber": 338 } }
-
approveHoldCBDCTokens
- 원래 메소드 이름:
executeHoldTokens
- Notaries는 이 메소드를 호출하여 토큰 보류를 승인합니다. 토큰은 이 비즈니스 시나리오에서 지불자로부터 수취인에게 토큰 전송을 트리거합니다. 토큰 소유자가 이전에 보류한 토큰의 수량이 이제 수신자에게 이전됩니다.
quantity
값이 실제 보류 값보다 작은 경우 나머지 금액은 토큰 소유자가 다시 사용할 수 있습니다.roles
동작이 토큰 모델의behaviors
섹션에 지정되고notary_role_name
값이 설정된 경우 호출자 계정에 공증 역할이 있어야 합니다. 그렇지 않으면 계정이 있는 호출자가 공증으로 작동할 수 있습니다. - 페이로드:
{ "tokenId": "{{bc-token-id}}", "operationId": "operation_id value", "quantity": 1, "endorsers": {{endorsers}}, "transientMapArgsFlag": true }
- 매개변수:
tokenId: string
– 토큰 ID입니다.operationId: string
– 승인할 민트 요청의 고유한 작업 ID입니다.quantity: number
– 전송할 보류된 토큰 수입니다.endorsers: string[]
– 트랜잭션을 보증해야 하는 피어의 배열(예:peer1
,peer2
)입니다.transientMapArgsFlag
– 부울 값 true인 경우 인수는 기밀성을 위해 임시 맵을 통해 전송됩니다. false인 경우 인수는 표준 페이로드를 통해 전송됩니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "txid": "5177f7560d32838242a26ac74f2a90c6ff9b47aae0d0988f28d9b4cf7e27c097", "payload": { "msg": "Account Id: oaccount~1e31495a0c149b08cb9d02bdcac5e83d88c0f1557d954dda12bb807d7f6fc111 (Org-Id: Org1, User-Id: fi1_org_user1_demo) is successfully executed '10' tokens from Operation Id '454f4bf6'." }, "encode": "JSON", "sourceURL": "org1-oabcs1-nrt.blockchain.ocp.example.com:20009", "blockNumber": 339 } }
-
consolidateRunningBalanceInTransactions
- 원래 메소드 이름:
consolidateRunningBalanceInTransactions
- 이 방법은 발신자 조직의 계정 잔액을 통합합니다. 이 메소드는
Token Admin
또는Org Admin
에 의해서만 호출될 수 있습니다. - 페이로드:
{ "endorsers": {{endorsers}} }
- 매개변수:
endorsers: string[]
– 트랜잭션을 보증해야 하는 피어의 배열(예:peer1
,peer2
)입니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "txid": "f3c019974cd93eaa8f3171a36ec25009fa6925b5880cae8c9a49a141944039c0", "payload": { "msg": "Successfully updated account running balance for pending transactions." }, "encode": "JSON", "sourceURL": "centralbank-oabcs1-nrt.blockchain.ocp.example.com:20009", "blockNumber": 340 } }
-
associateTokenToAccount
- 원래 메소드 이름:
associateTokenToAccount
- 이 POST 메소드는 지정된 계정 ID를 지정된 토큰에 연관시킵니다. 이 메소드는 지정된 조직의
Token Admin
또는Org Admin
에 의해서만 호출될 수 있습니다. - 페이로드:
{ "accountId": "account_id value", "tokenId": "{{bc-token-id}}", "customAccountId": "custom_account_id value", "endorsers": {{endorsers}}, "transientMapArgsFlag": true }
- 매개변수:
accountId: string
– 계정의 ID입니다.tokenId: string
– 토큰 ID입니다.customAccountId: string
– 기밀 모드의 고유한 임의 계정 ID입니다.endorsers: string[]
– 트랜잭션을 보증해야 하는 피어의 배열(예:peer1
,peer2
)입니다.transientMapArgsFlag
– 부울 값 true인 경우 인수는 기밀성을 위해 임시 맵을 통해 전송됩니다. false인 경우 인수는 표준 페이로드를 통해 전송됩니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "txid": "fc7e9297d1d7beef5567fbef873955f5a9759d031811198e24f67f064e0e80b0", "payload": { "bapAccountVersion": 0, "assetType": "oaccount", "account_id": "oaccount~b53cb2c19c92d1d5c8cb9f6e988e7761c34e03e014e6c4b889565fc0abf46c8a", "org_id": "CentralBank", "token_type": "fungible", "token_id": "USD", "token_name": "cbdc", "balance": "028b72742c8aa9a0395c828fe4f0e46226a3e40d4e731d0b994c8028c8b7bd4df6", "onhold_balance": "028b72742c8aa9a0395c828fe4f0e46226a3e40d4e731d0b994c8028c8b7bd4df6", "onhold_burn_balance": "028b72742c8aa9a0395c828fe4f0e46226a3e40d4e731d0b994c8028c8b7bd4df6", "application_groups": [ "CENTRAL_BANK_USERS" ] }, "encode": "JSON", "sourceURL": "centralbank-oabcs1-nrt.blockchain.ocp.example.com:20009", "blockNumber": 71 } }
-
createAccount
- 원래 메소드 이름:
createAccount
- 이 메소드는 지정된 사용자 및 토큰의 계정을 만듭니다. 언제든지 토큰을 가질 사용자에 대해 계정을 만들어야 합니다. 계정은 잔액, 보류 중인 잔액 및 트랜잭션 기록을 추적합니다. 계정 ID는
oaccount~<token asset name>~
앞에 오는 영숫자 문자 집합으로, 인스턴스 소유자 또는 인스턴스에 로그인한 사용자의 사용자 이름 또는 전자메일 ID(userId
), 현재 네트워크 조직에 있는 사용자의 멤버쉽 서비스 제공자 ID(orgId
)가 해시됩니다. 이 메소드는 체인 코드의Token Admin
또는 지정된 조직의Org Admin
에 의해서만 호출될 수 있습니다. - 페이로드:
{ "orgId": "{{bc-org-id}}", "userId": "{{bc-user-id}}", "tokenType": "fungible", "applicationGroups": "[\"application_groups value\"]", "dailyLimits": "{\"max_daily_amount\":10000,\"max_daily_transactions\":100}", "endorsers": {{endorsers}}, "transientMapArgsFlag": true }
- 매개변수:
orgId
– 계정을 만들 사용자의 멤버쉽 서비스 공급자(MSP) ID입니다. ID는 영숫자로 시작해야 하며 문자, 숫자 및 밑줄(_), 마침표(.), @ 기호 및 하이픈(-)과 같은 특수 문자를 포함할 수 있습니다.userId
– 사용자의 사용자 이름 또는 전자메일 ID입니다. ID는 영숫자로 시작해야 하며 문자, 숫자 및 밑줄(_), 마침표(.), @ 기호 및 하이픈(-)과 같은 특수 문자를 포함할 수 있습니다.tokenType: TokenType
– 토큰의 유형으로,fungible
여야 합니다.applicationGroups: string[]
– 사용자 ID가 속한 응용 프로그램 그룹 목록으로, CBDC 응용 프로그램에서 사용자의 연관을 정의합니다.dailyLimits: JSON object
– 다음 유형의 JSON 객체입니다.
예제에서{ "max_daily_amount": 100000 "max_daily_transactions": 10000 }
max_daily_amount
값은 매일 트랜잭션할 수 있는 최대 토큰 수이고max_daily_transactions
값은 매일 완료할 수 있는 최대 트랜잭션 수입니다.endorsers: string[]
– 트랜잭션을 보증해야 하는 피어의 배열(예:peer1
,peer2
)입니다.transientMapArgsFlag
– 부울 값 true인 경우 인수는 기밀성을 위해 임시 맵을 통해 전송됩니다. false인 경우 인수는 표준 페이로드를 통해 전송됩니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "txid": "dc167f95bdcc246c9ecb20e56126c705f522cff30c94798f21a82de111367ab8", "payload": { "bapAccountVersion": 0, "assetType": "oaccount", "account_id": "oaccount~b53cb2c19c92d1d5c8cb9f6e988e7761c34e03e014e6c4b889565fc0abf46c8a", "org_id": "CentralBank", "token_type": "fungible", "token_id": "", "token_name": "", "balance": "028b72742c8aa9a0395c828fe4f0e46226a3e40d4e731d0b994c8028c8b7bd4df6", "onhold_balance": "028b72742c8aa9a0395c828fe4f0e46226a3e40d4e731d0b994c8028c8b7bd4df6", "onhold_burn_balance": "028b72742c8aa9a0395c828fe4f0e46226a3e40d4e731d0b994c8028c8b7bd4df6", "application_groups": [ "CENTRAL_BANK_USERS" ] }, "encode": "JSON", "sourceURL": "centralbank-oabcs1-nrt.blockchain.ocp.example.com:20010", "blockNumber": 70 } }
-
getAccountDetailsByCustomAccountId
- 원래 메소드 이름:
getAccountDetailsByCustomAccountId
- 이 GET 메소드는 지정된 사용자정의 계정 ID에 대한 계정 세부정보를 반환합니다. 이 메소드는 지정된 조직의
Token Admin
또는Token Auditor
또는Org Admin
또는Org Auditor
에 의해 호출될 수 있습니다. - 질의:
getAccountDetailsByCustomAccountId?customAccountId=customAccountId value&orgId={{bc-org-id}}&peer={{peer}}
- 매개변수:
customAccountId: string
– 기밀 모드의 고유한 임의 계정 ID입니다.orgId: string
– 현재 조직에 있는 사용자의 멤버쉽 서비스 공급자(MSP) ID입니다.peer: string
– 쿼리를 실행할 피어 노드의 이름입니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "txid": "cf46211c670f7d21feb000a0161baaced91be314ea53981e26dc1482924055c9", "payload": [ { "bapAccountVersion": 0, "assetType": "oaccount", "account_id": "oaccount~c44ffac4c46718e9744cb0aae2016d26a87a5bef5e2d1c0d1abc7d8782f0ba61", "org_id": "CentralBank", "token_type": "fungible", "token_id": "USD", "token_name": "cbdc", "balance": "0", "onhold_balance": "0", "onhold_burn_balance": "0", "application_groups": [ "SYSTEM_ADMINS" ], "user_id": "cb_admin_demo", "custom_account_id": "10101234000123" } ], "encode": "JSON", "sourceURL": "centralbank-oabcs1-nrt.blockchain.ocp.example.com:20012", "blockNumber": 341 } }
-
getAllActiveCBDCAccounts
- 원래 메소드 이름:
getAllActiveAccounts
- 이 GET 메소드는 지정된 토큰 ID와 연관된 모든 활성 계정을 반환합니다.
- 질의:
getAllActiveCBDCAccounts?orgId={{bc-org-id}}&tokenId={{bc-token-id}}&peer={{peer}}
- 매개변수:
tokenId: string
– 토큰 ID입니다.orgId: string
– 현재 조직에 있는 사용자의 멤버쉽 서비스 공급자(MSP) ID입니다.peer: string
– 쿼리를 실행할 피어 노드의 이름입니다.
- 반환값:
- 성공 시 사용자 세부 정보가 포함된 메시지입니다. 출력은 다음 예에 표시된 대로 사용자의 역할에 따라 달라집니다.
- 반환 값 예(토큰 관리자, 토큰 감사자, 조직 관리자, 조직 감사자):
{ "returnCode": "Success", "error": "", "result": { "payload": [ { "key": "oaccount~c44ffac4c46718e9744cb0aae2016d26a87a5bef5e2d1c0d1abc7d8782f0ba61", "role_name": null, "valueJson": { "account_id": "oaccount~c44ffac4c46718e9744cb0aae2016d26a87a5bef5e2d1c0d1abc7d8782f0ba61", "org_id": "CentralBank", "token_id": "USD", "application_groups": [ "SYSTEM_ADMINS" ], "max_daily_amount": "10000", "max_daily_transactions": "1000" }, "non_account_role_name": [ "token_admin" ] }, { "key": "oaccount~1a6ea9aaa59c9ae8385bfdc870bf02616995c881ffeb111f526c8b31dbbdd43c", "role_name": null, "valueJson": { "account_id": "oaccount~1a6ea9aaa59c9ae8385bfdc870bf02616995c881ffeb111f526c8b31dbbdd43c", "org_id": "CentralBank", "token_id": "USD", "application_groups": [ "SYSTEM_AUDITORS" ], "max_daily_amount": "10000", "max_daily_transactions": "1000" }, "non_account_role_name": [ "token_auditor" ] }, { "key": "oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41", "role_name": "minter", "valueJson": { "account_id": "oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41", "org_id": "CentralBank", "token_id": "USD", "application_groups": [ "SYSTEM_CREATORS" ], "max_daily_amount": "1000000", "max_daily_transactions": "100000" }, "non_account_role_name": [] }, { "key": "oaccount~9b136ef4a60230846a8c14761683851a386d306b79493bc4d00433020c96cfa7", "role_name": "notary", "valueJson": { "account_id": "oaccount~9b136ef4a60230846a8c14761683851a386d306b79493bc4d00433020c96cfa7", "org_id": "CentralBank", "token_id": "USD", "application_groups": [ "SYSTEM_MANAGERS" ], "max_daily_amount": "10000", "max_daily_transactions": "1000" }, "non_account_role_name": [] }, { "key": "oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a", "role_name": null, "valueJson": { "account_id": "oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a", "org_id": "CentralBank", "token_id": "USD", "application_groups": [ "SYSTEM_ISSUERS" ], "max_daily_amount": "100000", "max_daily_transactions": "10000" }, "non_account_role_name": [] }, { "key": "oaccount~cea6080858337b1575d6a76ed0bd07a0eacd8871e3f2f7f793729a0e4b0e8e98", "role_name": "burner", "valueJson": { "account_id": "oaccount~cea6080858337b1575d6a76ed0bd07a0eacd8871e3f2f7f793729a0e4b0e8e98", "org_id": "CentralBank", "token_id": "USD", "application_groups": [ "SYSTEM_RETIRERS" ], "max_daily_amount": "10000", "max_daily_transactions": "1000" }, "non_account_role_name": [] } ], "encode": "JSON" } }
- 반환 값 예제(다른 모든 사용자):
{ "returnCode": "Success", "error": "", "result": { "payload": [ { "key": "oaccount~c44ffac4c46718e9744cb0aae2016d26a87a5bef5e2d1c0d1abc7d8782f0ba61", "role_name": null, "valueJson": { "account_id": "oaccount~c44ffac4c46718e9744cb0aae2016d26a87a5bef5e2d1c0d1abc7d8782f0ba61", "org_id": "CentralBank", "token_id": "USD", "application_groups": [ "SYSTEM_ADMINS" ] } }, { "key": "oaccount~1a6ea9aaa59c9ae8385bfdc870bf02616995c881ffeb111f526c8b31dbbdd43c", "role_name": null, "valueJson": { "account_id": "oaccount~1a6ea9aaa59c9ae8385bfdc870bf02616995c881ffeb111f526c8b31dbbdd43c", "org_id": "CentralBank", "token_id": "USD", "application_groups": [ "SYSTEM_AUDITORS" ] } }, { "key": "oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41", "role_name": "minter", "valueJson": { "account_id": "oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41", "org_id": "CentralBank", "token_id": "USD", "application_groups": [ "SYSTEM_CREATORS" ] } }, { "key": "oaccount~9b136ef4a60230846a8c14761683851a386d306b79493bc4d00433020c96cfa7", "role_name": "notary", "valueJson": { "account_id": "oaccount~9b136ef4a60230846a8c14761683851a386d306b79493bc4d00433020c96cfa7", "org_id": "CentralBank", "token_id": "USD", "application_groups": [ "SYSTEM_MANAGERS" ] } }, { "key": "oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a", "role_name": null, "valueJson": { "account_id": "oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a", "org_id": "CentralBank", "token_id": "USD", "application_groups": [ "SYSTEM_ISSUERS" ] } }, { "key": "oaccount~cea6080858337b1575d6a76ed0bd07a0eacd8871e3f2f7f793729a0e4b0e8e98", "role_name": "burner", "valueJson": { "account_id": "oaccount~cea6080858337b1575d6a76ed0bd07a0eacd8871e3f2f7f793729a0e4b0e8e98", "org_id": "CentralBank", "token_id": "USD", "application_groups": [ "SYSTEM_RETIRERS" ] } } ], "encode": "JSON" } }
-
getAllSuspendedCBDCAccounts
- 원래 메소드 이름:
getAllSuspendedAccounts
- 이 GET 메소드는 지정된 토큰 ID와 연관된 일시 중지된 계정을 모두 반환합니다.
- 질의:
/getAllSuspendedCBDCAccounts?orgId={{bc-org-id}}&tokenId={{bc-token-id}}&peer={{peer}}
- 매개변수:
tokenId: string
– 토큰 ID입니다.orgId: string
– 현재 조직에 있는 사용자의 멤버쉽 서비스 공급자(MSP) ID입니다.peer: string
– 쿼리를 실행할 피어 노드의 이름입니다.
- 반환값:
- 성공 시 사용자 세부 정보가 포함된 메시지입니다. 출력은 다음 예에 표시된 대로 사용자의 역할에 따라 달라집니다.
- 반환 값 예(토큰 관리자, 토큰 감사자, 조직 관리자, 조직 감사자):
{ "returnCode": "Success", "error": "", "result": { "payload": [ { "key": "oaccount~c44ffac4c46718e9744cb0aae2016d26a87a5bef5e2d1c0d1abc7d8782f0ba61", "role_name": null, "valueJson": { "account_id": "oaccount~c44ffac4c46718e9744cb0aae2016d26a87a5bef5e2d1c0d1abc7d8782f0ba61", "org_id": "CentralBank", "token_id": "USD", "application_groups": [ "SYSTEM_ADMINS" ], "max_daily_amount": "10000", "max_daily_transactions": "1000" }, "non_account_role_name": [ "token_admin" ] } ], "encode": "JSON" } }
- 반환 값 예제(다른 모든 사용자):
{ "returnCode": "Success", "error": "", "result": { "payload": [ { "key": "oaccount~c44ffac4c46718e9744cb0aae2016d26a87a5bef5e2d1c0d1abc7d8782f0ba61", "role_name": null, "valueJson": { "account_id": "oaccount~c44ffac4c46718e9744cb0aae2016d26a87a5bef5e2d1c0d1abc7d8782f0ba61", "org_id": "CentralBank", "token_id": "USD", "application_groups": [ "SYSTEM_ADMINS" ] } } ], "encode": "JSON" } }
-
getApproverActionHistory
- 원래 메소드 이름:
getActionHistory
- 이 GET 방법은 조직 세부정보 및 관련 계정(발신자, 수신자 및 공증)의 사용자 ID를 포함하여 민트, 레코딩 및 이전(발행) 작업에 대해 호출자가 수행한 승인 또는 거부 기록을 검색합니다. 이 메소드는
Token Admin
,Token Auditor
,Org Admin
,Org Auditor
또는 공증인으로만 호출할 수 있습니다. - 질의:
getApproverActionHistory?tokenId={{bc-token-id}}&peer={{peer}}
- 매개변수:
tokenId: string
– 토큰 ID입니다.peer: string
– 쿼리를 실행할 피어 노드의 이름입니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "payload": [ { "from_account_id": "oaccount~cea6080858337b1575d6a76ed0bd07a0eacd8871e3f2f7f793729a0e4b0e8e98", "from_org_id": "CentralBank", "holding_id": "ohold~cbdc~USD~b770", "holding_status": "APPROVE_BURN", "last_updated_time": "2025-08-25T13:21:24.000Z", "notary_account_id": "oaccount~9b136ef4a60230846a8c14761683851a386d306b79493bc4d00433020c96cfa7", "notary_org_id": "CentralBank", "operation_id": null, "timetoexpiration": null, "to_account_id": null, "to_org_id": null, "token_name": null, "quantity": 200 }, { "from_account_id": null, "from_org_id": null, "holding_id": "ohold~cbdc~USD~e7b6", "holding_status": "APPROVE_MINT", "last_updated_time": "2025-08-25T13:20:50.000Z", "notary_account_id": "oaccount~9b136ef4a60230846a8c14761683851a386d306b79493bc4d00433020c96cfa7", "notary_org_id": "CentralBank", "operation_id": null, "timetoexpiration": null, "to_account_id": "oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41", "to_org_id": "CentralBank", "token_name": null, "quantity": 1000 }, { "from_account_id": "oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a", "from_org_id": "CentralBank", "holding_id": "ohold~cbdc~USD~81d7c4ac", "holding_status": "EXECUTEHOLD", "last_updated_time": "2025-08-25T13:16:55.000Z", "notary_account_id": "oaccount~9b136ef4a60230846a8c14761683851a386d306b79493bc4d00433020c96cfa7", "notary_org_id": "CentralBank", "operation_id": null, "timetoexpiration": null, "to_account_id": "oaccount~76687c724ddbc2d6e6664d9618b2bf1c2a9fe10f84887462447e4caba6aaaff3", "to_org_id": "Org1", "token_name": null, "quantity": 200 }, { "from_account_id": null, "from_org_id": null, "holding_id": "ohold~cbdc~USD~1e19", "holding_status": "APPROVE_MINT", "last_updated_time": "2025-08-13T06:12:41.000Z", "notary_account_id": "oaccount~9b136ef4a60230846a8c14761683851a386d306b79493bc4d00433020c96cfa7", "notary_org_id": "CentralBank", "operation_id": null, "timetoexpiration": null, "to_account_id": "oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41", "to_org_id": "CentralBank", "token_name": null, "quantity": 10000 }, { "from_account_id": "oaccount~cea6080858337b1575d6a76ed0bd07a0eacd8871e3f2f7f793729a0e4b0e8e98", "from_org_id": "CentralBank", "holding_id": "ohold~cbdc~USD~1f74", "holding_status": "REJECT_BURN", "last_updated_time": "2025-08-12T21:09:53.000Z", "notary_account_id": "oaccount~9b136ef4a60230846a8c14761683851a386d306b79493bc4d00433020c96cfa7", "notary_org_id": "CentralBank", "operation_id": null, "timetoexpiration": null, "to_account_id": "", "to_org_id": null, "token_name": null, "quantity": 1000 }, { "from_account_id": "oaccount~cea6080858337b1575d6a76ed0bd07a0eacd8871e3f2f7f793729a0e4b0e8e98", "from_org_id": "CentralBank", "holding_id": "ohold~cbdc~USD~d67c", "holding_status": "REJECT_BURN", "last_updated_time": "2025-08-12T21:09:47.000Z", "notary_account_id": "oaccount~9b136ef4a60230846a8c14761683851a386d306b79493bc4d00433020c96cfa7", "notary_org_id": "CentralBank", "operation_id": null, "timetoexpiration": null, "to_account_id": "", "to_org_id": null, "token_name": null, "quantity": 2000 }, { "from_account_id": "oaccount~cea6080858337b1575d6a76ed0bd07a0eacd8871e3f2f7f793729a0e4b0e8e98", "from_org_id": "CentralBank", "holding_id": "ohold~cbdc~USD~911b", "holding_status": "APPROVE_BURN", "last_updated_time": "2025-08-12T21:09:40.000Z", "notary_account_id": "oaccount~9b136ef4a60230846a8c14761683851a386d306b79493bc4d00433020c96cfa7", "notary_org_id": "CentralBank", "operation_id": null, "timetoexpiration": null, "to_account_id": null, "to_org_id": null, "token_name": null, "quantity": 1000 }, { "from_account_id": "oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a", "from_org_id": "CentralBank", "holding_id": "ohold~cbdc~USD~ed815e20", "holding_status": "EXECUTEHOLD", "last_updated_time": "2025-08-12T21:09:25.000Z", "notary_account_id": "oaccount~9b136ef4a60230846a8c14761683851a386d306b79493bc4d00433020c96cfa7", "notary_org_id": "CentralBank", "operation_id": null, "timetoexpiration": null, "to_account_id": "oaccount~3954f54a8bc7acdd0c3d0960104240f60d56c26c8a179430267359cd80ce3709", "to_org_id": "org2", "token_name": null, "quantity": 10000 }, { "from_account_id": "oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a", "from_org_id": "CentralBank", "holding_id": "ohold~cbdc~USD~12d87129", "holding_status": "EXECUTEHOLD", "last_updated_time": "2025-08-12T21:09:17.000Z", "notary_account_id": "oaccount~9b136ef4a60230846a8c14761683851a386d306b79493bc4d00433020c96cfa7", "notary_org_id": "CentralBank", "operation_id": null, "timetoexpiration": null, "to_account_id": "oaccount~76687c724ddbc2d6e6664d9618b2bf1c2a9fe10f84887462447e4caba6aaaff3", "to_org_id": "Org1", "token_name": null, "quantity": 10000 }, { "from_account_id": "", "from_org_id": null, "holding_id": "ohold~cbdc~USD~54a4", "holding_status": "REJECT_MINT", "last_updated_time": "2025-08-12T21:01:27.000Z", "notary_account_id": "oaccount~9b136ef4a60230846a8c14761683851a386d306b79493bc4d00433020c96cfa7", "notary_org_id": "CentralBank", "operation_id": null, "timetoexpiration": null, "to_account_id": "oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41", "to_org_id": "CentralBank", "token_name": null, "quantity": 40000 }, { "from_account_id": null, "from_org_id": null, "holding_id": "ohold~cbdc~USD~9b27", "holding_status": "APPROVE_MINT", "last_updated_time": "2025-08-12T21:01:16.000Z", "notary_account_id": "oaccount~9b136ef4a60230846a8c14761683851a386d306b79493bc4d00433020c96cfa7", "notary_org_id": "CentralBank", "operation_id": null, "timetoexpiration": null, "to_account_id": "oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41", "to_org_id": "CentralBank", "token_name": null, "quantity": 30000 }, { "from_account_id": null, "from_org_id": null, "holding_id": "ohold~cbdc~USD~eda0", "holding_status": "APPROVE_MINT", "last_updated_time": "2025-08-12T21:01:05.000Z", "notary_account_id": "oaccount~9b136ef4a60230846a8c14761683851a386d306b79493bc4d00433020c96cfa7", "notary_org_id": "CentralBank", "operation_id": null, "timetoexpiration": null, "to_account_id": "oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41", "to_org_id": "CentralBank", "token_name": null, "quantity": 20000 }, { "from_account_id": null, "from_org_id": null, "holding_id": "ohold~cbdc~USD~1baa", "holding_status": "APPROVE_MINT", "last_updated_time": "2025-08-12T21:01:03.000Z", "notary_account_id": "oaccount~9b136ef4a60230846a8c14761683851a386d306b79493bc4d00433020c96cfa7", "notary_org_id": "CentralBank", "operation_id": null, "timetoexpiration": null, "to_account_id": "oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41", "to_org_id": "CentralBank", "token_name": null, "quantity": 10000 } ], "encode": "JSON" } }
-
getCBDCAccount
- 원래 메소드 이름:
getCBDCAccount
- 이 GET 메소드는 지정된 사용자 및 토큰에 대한 계정 세부정보를 반환합니다. 이 메소드는 체인 코드의
Token Admin
또는Token Auditor
, 지정된 조직의Org Admin
또는Org Auditor
또는 계정의AccountOwner
에 의해서만 호출될 수 있습니다. - 질의:
/getCBDCAccount?accountId=account_id value&peer={{peer}}
- 매개변수:
accountId: string
– 계정의 ID입니다.peer: string
– 쿼리를 실행할 피어 노드의 이름입니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "payload": { "bapAccountVersion": 0, "assetType": "oaccount", "user_id": "cb_manager_demo", "custom_account_id": "10105678007891", "status": "active", "account_id": "oaccount~9b136ef4a60230846a8c14761683851a386d306b79493bc4d00433020c96cfa7", "org_id": "CentralBank", "token_type": "fungible", "token_id": "USD", "token_name": "cbdc", "balance": "0", "onhold_balance": "0", "onhold_burn_balance": "0", "application_groups": [ "SYSTEM_MANAGERS" ] }, "encode": "JSON" } }
-
getCBDCAccountBalance
- 원래 메소드 이름:
getAccountBalance
- 이 GET 메소드는 지정된 계정 및 토큰에 대한 현재 잔액을 반환합니다. 이 메소드는 체인 코드의
Token Admin
또는Token Auditor
, 지정된 조직의Org Admin
또는Org Auditor
또는 계정의AccountOwner
에 의해서만 호출될 수 있습니다. /getCBDCAccountBalance?accountId=account_id value&peer={{peer}}
- 매개변수:
accountId: string
– 계정의 ID입니다.peer: string
– 쿼리를 실행할 피어 노드의 이름입니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "payload": { "msg": "Current Balance is: 100", "user_balance": 100 }, "encode": "JSON" } }
-
getCBDCAccountsByUser
- 원래 메소드 이름:
getAccountsByUser
- 이 메소드는 지정된 조직 ID 및 사용자 ID에 대한 모든 계정 ID 목록을 반환합니다. 이 메소드는 체인 코드의
Token Admin
또는Token Auditor
, 지정된 조직의Org Admin
또는Org Auditor
또는 계정의AccountOwner
에 의해서만 호출될 수 있습니다. /getCBDCAccountsByUser?orgId={{bc-org-id}}&userId={{bc-user-id}}&peer={{peer}}
- 매개변수:
orgId string
– 현재 조직에 있는 사용자의 멤버쉽 서비스 공급자(MSP) ID입니다.userId string
– 사용자의 사용자 이름 또는 전자메일 ID입니다.peer: string
– 쿼리를 실행할 피어 노드의 이름입니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "payload": [ { "bapAccountVersion": 15, "assetType": "oaccount", "user_id": "cb__creator_demo", "custom_account_id": "10105678004567", "account_id": "oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41", "org_id": "CentralBank", "token_type": "fungible", "token_id": "USD", "token_name": "cbdc", "balance": "21000", "onhold_balance": "0", "onhold_burn_balance": "0", "application_groups": [ "SYSTEM_CREATORS" ] }, { "bapAccountVersion": 0, "assetType": "oaccount", "user_id": "cb__creator_demo", "custom_account_id": "Not Available", "account_id": "oaccount~388fb87df59c6a4fbf0400c58b61aa85f975a8c4209942006b0c0d6334fcf887", "org_id": "CentralBank", "token_type": "fungible", "token_id": "", "token_name": "", "balance": "0", "onhold_balance": "0", "onhold_burn_balance": "0", "application_groups": [ "application_groups value" ] } ], "encode": "JSON" } }
-
getCBDCAccountTransactionHistory
- 원래 메소드 이름:
getAccountTransactionHistory
- 이 메소드는 지정된 사용자 및 토큰에 대한 계정 트랜잭션 내역 세부정보 배열을 반환합니다. 이 메소드는 체인 코드의
Token Admin
또는Token Auditor
, 지정된 조직의Org Admin
또는Org Auditor
또는 계정의AccountOwner
에 의해서만 호출될 수 있습니다. /getCBDCAccountTransactionHistory?accountId=account_id value&peer={{peer}}
- 매개변수:
accountId: string
– 계정의 ID입니다.peer: string
– 쿼리를 실행할 피어 노드의 이름입니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "payload": [ { "transaction_id": "otransaction~4514aa229ebcc4d2fedcaa47c4301615e30c4a9bae45cf0256a5b80d75b3697a", "transacted_amount": 1000, "timestamp": "2025-08-25T13:20:50.000Z", "token_id": "USD", "transacted_account": "oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41", "transaction_type": "APPROVE_MINT", "balance": 21000, "onhold_balance": 0 }, { "transaction_id": "otransaction~1982f73495060e0eef4d78282a91c41e27e8c95572739b0677a1e404a0d20aa9", "transacted_amount": 200, "timestamp": "2025-08-25T13:12:43.000Z", "token_id": "USD", "transacted_account": "oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41", "transaction_type": "REQUEST_MINT", "balance": 20000, "onhold_balance": 0 }, { "transaction_id": "otransaction~fedd714cf1509f7517819d7cd4c0921d0b2f5d1ff6a25dcb08ab411defd6b5f3", "transacted_amount": 2000, "timestamp": "2025-08-21T05:23:25.000Z", "token_id": "USD", "transacted_account": "oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41", "transaction_type": "REQUEST_MINT", "balance": 20000, "onhold_balance": 0 }, { "transaction_id": "otransaction~f33b47234f3ee0b636962c8c31c01d06523b789ca16b3b342d5080b71268bcc3", "transacted_amount": 1000, "timestamp": "2025-08-21T05:23:07.000Z", "token_id": "USD", "transacted_account": "oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41", "transaction_type": "REQUEST_MINT", "balance": 20000, "onhold_balance": 0 }, { "transaction_id": "otransaction~cf934527149bc24f62a8ddeeea7f74a19a0f84d8f161535a771be49d2520d5b3", "transacted_amount": 10000, "timestamp": "2025-08-13T06:12:41.000Z", "token_id": "USD", "transacted_account": "oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41", "transaction_type": "APPROVE_MINT", "balance": 20000, "onhold_balance": 0 }, { "transaction_id": "otransaction~f5c0e11ca61d9adc843658929e6de2a738ad586304f9e020f75bf4aac5e42a2c", "transacted_amount": 10000, "timestamp": "2025-08-13T06:12:04.000Z", "token_id": "USD", "transacted_account": "oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41", "transaction_type": "REQUEST_MINT", "balance": 10000, "onhold_balance": 0 }, { "transaction_id": "otransaction~862aa9d9e877d3ea209b87299ab5b12c13ed5ce43d1cf1b934043c1dd02f58f6", "transacted_amount": 50000, "timestamp": "2025-08-12T21:04:22.000Z", "token_id": "USD", "category": "transfer", "transacted_account": "oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a", "transaction_type": "DEBIT", "balance": 10000, "onhold_balance": 0 }, { "transaction_id": "otransaction~8a74c6d87ca74a613aab9db5d40386f8d5b534f9800503af8ca27e8946d7616d", "transacted_amount": 40000, "timestamp": "2025-08-12T21:01:27.000Z", "token_id": "USD", "transacted_account": "oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41", "transaction_type": "REJECT_MINT", "balance": 60000, "onhold_balance": 0 }, { "transaction_id": "otransaction~28ac66ba33f7ad0648448964b2b74525c9e3f0c9908c7a0484690b9baa56c2db", "transacted_amount": 30000, "timestamp": "2025-08-12T21:01:16.000Z", "token_id": "USD", "transacted_account": "oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41", "transaction_type": "APPROVE_MINT", "balance": 60000, "onhold_balance": 0 }, { "transaction_id": "otransaction~7e32ad8f365ff59814e112f27602f30ab599fb9c1638784496c66a61a6277c22", "transacted_amount": 20000, "timestamp": "2025-08-12T21:01:05.000Z", "token_id": "USD", "transacted_account": "oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41", "transaction_type": "APPROVE_MINT", "balance": 30000, "onhold_balance": 0 }, { "transaction_id": "otransaction~1477050bb9e55f4f471872b31fce0d2097f5d5e57d89a842070df5e36d7ab0da", "transacted_amount": 10000, "timestamp": "2025-08-12T21:01:03.000Z", "token_id": "USD", "transacted_account": "oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41", "transaction_type": "APPROVE_MINT", "balance": 10000, "onhold_balance": 0 }, { "transaction_id": "otransaction~0e76c6931b7ee134e967e847d9730b867a0fd191d39697d83d36dd15745c02e3", "transacted_amount": 40000, "timestamp": "2025-08-12T21:00:20.000Z", "token_id": "USD", "transacted_account": "oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41", "transaction_type": "REQUEST_MINT", "balance": 0, "onhold_balance": 0 }, { "transaction_id": "otransaction~07bbf9c190694371626da59ded5d87434d26f612891e13bb15bdd28f6086e760", "transacted_amount": 30000, "timestamp": "2025-08-12T21:00:01.000Z", "token_id": "USD", "transacted_account": "oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41", "transaction_type": "REQUEST_MINT", "balance": 0, "onhold_balance": 0 }, { "transaction_id": "otransaction~8721175c6cbbce17b6c4bb6a444e475d07f52352dfd0d990679f342215153513", "transacted_amount": 20000, "timestamp": "2025-08-12T20:59:41.000Z", "token_id": "USD", "transacted_account": "oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41", "transaction_type": "REQUEST_MINT", "balance": 0, "onhold_balance": 0 }, { "transaction_id": "otransaction~dc24c24d43a6525e807a39edcf8c6a2b6ccb81f0d755958f509509687eacee84", "transacted_amount": 10000, "timestamp": "2025-08-12T20:59:13.000Z", "token_id": "USD", "transacted_account": "oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41", "transaction_type": "REQUEST_MINT", "balance": 0, "onhold_balance": 0 }, { "transaction_id": "otransaction~396e6ca5a11a9609632d0864026409d46a708fb95e3e21b39fa5f3fb78f90872", "transacted_amount": 0, "timestamp": "2025-08-12T20:43:20.000Z", "token_id": "", "transacted_account": "oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41", "transaction_type": "CREATE_ACCOUNT", "balance": 0, "onhold_balance": 0 } ], "encode": "JSON" } }
-
getCBDCAccountTransactionHistoryWithFilters
- 원래 메소드 이름:
getAccountTransactionHistoryWithFiltersFromRichHistDB
- 이 방법은 풍부한 기록 데이터베이스의 계정 트랜잭션 기록 세부정보를 반환합니다. 이 메소드는 체인 코드의
Token Admin
또는Token Auditor
, 지정된 조직의Org Admin
또는Org Auditor
또는 계정의AccountOwner
에 의해서만 호출될 수 있습니다. /getCBDCAccountTransactionHistoryWithFilters?accountId=account_id value&customEndpoint=custom_endpoint value&bearerToken=bearer_token value&filters={"pageSize":20,"bookmark":"","startTime":"1900-01-01T00:00:00+00:00","endTime":"2100-01-01T00:00:00+00:00"}&peer={{peer}}
- 매개변수:
accountId: string
– 계정의 ID입니다.customEndpoint
– 트랜잭션 내역을 인출할 서식 있는 내역 데이터베이스의 RESTful 서비스 끝점입니다.bearerToken
– 요청에 권한이 부여되었는지 확인하기 위해 RESTful 끝점을 호출하는 데 사용할 토큰입니다.filters: JSON object
– 선택적 매개변수입니다. 비어 있으면 모든 레코드가 반환됩니다.pageSize
속성은 반환할 레코드 수를 결정합니다.pageSize
가 0이면 기본 페이지 크기는 20입니다.bookmark
속성은 반환할 레코드의 시작 인덱스를 결정합니다.startTime
및endTime
등록 정보는 RFC-3339 형식으로 지정해야 합니다.peer: string
– 쿼리를 실행할 피어 노드의 이름입니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "payload": [ { "transaction_id": "otransaction~3140569a4ecb3c3f141cc2468fe21276640b7fd79013d951d9104b79072d8f9c", "transacted_amount": 200, "timestamp": "2025-08-25T13:16:55.000Z", "token_id": "USD", "transacted_account": "oaccount~76687c724ddbc2d6e6664d9618b2bf1c2a9fe10f84887462447e4caba6aaaff3", "transacted_org_id": "Org1", "transacted_user_id": "fi1_org_officer_demo", "transacted_custom_account_id": "20200222221111", "to_account": "oaccount~76687c724ddbc2d6e6664d9618b2bf1c2a9fe10f84887462447e4caba6aaaff3", "to_org_id": "Org1", "to_user_id": "fi1_org_officer_demo", "to_custom_account_id": "20200222221111", "from_account": "oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a", "from_org_id": "CentralBank", "from_user_id": "cb_issuer_demo", "from_custom_account_id": "10109999001234", "transaction_type": "EXECUTEHOLD", "category": "transfer", "balance": 26800, "onhold_balance": 300 }, { "transaction_id": "otransaction~2b75b3e8531a651f07c2d048d8546ad70ac49c66f0b82ed7626c1739090842ce", "transacted_amount": 100, "timestamp": "2025-08-25T13:16:06.000Z", "token_id": "USD", "transacted_account": "oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a", "transacted_org_id": "CentralBank", "transacted_user_id": "cb_issuer_demo", "transacted_custom_account_id": "10109999001234", "to_account": "oaccount~76687c724ddbc2d6e6664d9618b2bf1c2a9fe10f84887462447e4caba6aaaff3", "to_org_id": "Org1", "to_user_id": "fi1_org_officer_demo", "to_custom_account_id": "20200222221111", "from_account": "oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a", "from_org_id": "CentralBank", "from_user_id": "cb_issuer_demo", "from_custom_account_id": "10109999001234", "transaction_type": "ONHOLD", "holding_id": "ohold~cbdc~USD~e26f11da", "category": "transfer", "balance": 26800, "onhold_balance": 500 }, { "transaction_id": "otransaction~9e7bf14cf96c5f90170da9455b1318687785e936192f60b7cbeb1c8bfabc41d2", "transacted_amount": 100, "timestamp": "2025-08-21T06:57:19.000Z", "token_id": "USD", "transacted_account": "oaccount~cea6080858337b1575d6a76ed0bd07a0eacd8871e3f2f7f793729a0e4b0e8e98", "transacted_org_id": "CentralBank", "transacted_user_id": "cb_retirer_demo", "transacted_custom_account_id": "10109999006543", "to_account": "oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a", "to_org_id": "CentralBank", "to_user_id": "cb_issuer_demo", "to_custom_account_id": "10109999001234", "from_account": "oaccount~cea6080858337b1575d6a76ed0bd07a0eacd8871e3f2f7f793729a0e4b0e8e98", "from_org_id": "CentralBank", "from_user_id": "cb_retirer_demo", "from_custom_account_id": "10109999006543", "transaction_type": "CREDIT", "category": "transfer", "balance": 26900, "onhold_balance": 400 }, { "transaction_id": "otransaction~b3901b4754920a9c75e36069dc55024ad505e4c127f334eedf65ef6703dc6b86", "transacted_amount": 200, "timestamp": "2025-08-21T05:39:25.000Z", "token_id": "USD", "transacted_account": "oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a", "transacted_org_id": "CentralBank", "transacted_user_id": "cb_issuer_demo", "transacted_custom_account_id": "10109999001234", "to_account": "oaccount~3954f54a8bc7acdd0c3d0960104240f60d56c26c8a179430267359cd80ce3709", "to_org_id": "org2", "to_user_id": "fi2_org_officer_demo", "to_custom_account_id": "30300617202404", "from_account": "oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a", "from_org_id": "CentralBank", "from_user_id": "cb_issuer_demo", "from_custom_account_id": "10109999001234", "transaction_type": "ONHOLD", "holding_id": "ohold~cbdc~USD~77b75873", "category": "issuance", "balance": 26800, "onhold_balance": 400 }, { "transaction_id": "otransaction~d55c9dfc9feacb353544b5d8b2ae694162ade3890bcaaf715503fd1d6a73cd1a", "transacted_amount": 200, "timestamp": "2025-08-21T05:39:01.000Z", "token_id": "USD", "transacted_account": "oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a", "transacted_org_id": "CentralBank", "transacted_user_id": "cb_issuer_demo", "transacted_custom_account_id": "10109999001234", "to_account": "oaccount~76687c724ddbc2d6e6664d9618b2bf1c2a9fe10f84887462447e4caba6aaaff3", "to_org_id": "Org1", "to_user_id": "fi1_org_officer_demo", "to_custom_account_id": "20200222221111", "from_account": "oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a", "from_org_id": "CentralBank", "from_user_id": "cb_issuer_demo", "from_custom_account_id": "10109999001234", "transaction_type": "ONHOLD", "holding_id": "ohold~cbdc~USD~81d7c4ac", "category": "transfer", "balance": 27000, "onhold_balance": 200 }, { "transaction_id": "otransaction~751eaedbe4311edd5d17cae53d283caf397d0cb09f18d57a5e3fe61266875ff9", "transacted_amount": 200, "timestamp": "2025-08-13T09:59:22.000Z", "token_id": "USD", "transacted_account": "oaccount~3954f54a8bc7acdd0c3d0960104240f60d56c26c8a179430267359cd80ce3709", "transacted_org_id": "org2", "transacted_user_id": "fi2_org_officer_demo", "transacted_custom_account_id": "30300617202404", "to_account": "oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a", "to_org_id": "CentralBank", "to_user_id": "cb_issuer_demo", "to_custom_account_id": "10109999001234", "from_account": "oaccount~3954f54a8bc7acdd0c3d0960104240f60d56c26c8a179430267359cd80ce3709", "from_org_id": "org2", "from_user_id": "fi2_org_officer_demo", "from_custom_account_id": "30300617202404", "transaction_type": "CREDIT", "category": "transfer", "balance": 27200, "onhold_balance": 0 }, { "transaction_id": "otransaction~70155a8f4e388cc9395dbd03bedaf5a878705f5ad02302c8e9163218a5c3875a", "transacted_amount": 1000, "timestamp": "2025-08-13T06:22:56.000Z", "token_id": "USD", "transacted_account": "oaccount~76687c724ddbc2d6e6664d9618b2bf1c2a9fe10f84887462447e4caba6aaaff3", "transacted_org_id": "Org1", "transacted_user_id": "fi1_org_officer_demo", "transacted_custom_account_id": "20200222221111", "to_account": "oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a", "to_org_id": "CentralBank", "to_user_id": "cb_issuer_demo", "to_custom_account_id": "10109999001234", "from_account": "oaccount~76687c724ddbc2d6e6664d9618b2bf1c2a9fe10f84887462447e4caba6aaaff3", "from_org_id": "Org1", "from_user_id": "fi1_org_officer_demo", "from_custom_account_id": "20200222221111", "transaction_type": "CREDIT", "category": "transfer", "balance": 27000, "onhold_balance": 0 }, { "transaction_id": "otransaction~e595f3f0cc03fa5f58a546b8abbfaf155592e492f850581db2b8fed9a529c9e2", "transacted_amount": 10000, "timestamp": "2025-08-12T21:09:25.000Z", "token_id": "USD", "transacted_account": "oaccount~3954f54a8bc7acdd0c3d0960104240f60d56c26c8a179430267359cd80ce3709", "transacted_org_id": "org2", "transacted_user_id": "fi2_org_officer_demo", "transacted_custom_account_id": "30300617202404", "to_account": "oaccount~3954f54a8bc7acdd0c3d0960104240f60d56c26c8a179430267359cd80ce3709", "to_org_id": "org2", "to_user_id": "fi2_org_officer_demo", "to_custom_account_id": "30300617202404", "from_account": "oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a", "from_org_id": "CentralBank", "from_user_id": "cb_issuer_demo", "from_custom_account_id": "10109999001234", "transaction_type": "EXECUTEHOLD", "category": "issuance", "balance": 26000, "onhold_balance": 0 }, { "transaction_id": "otransaction~da92402859d87ae3069722d8e39cb0da448e9a5f67468233ee9b1fe7a4ebeef8", "transacted_amount": 10000, "timestamp": "2025-08-12T21:09:17.000Z", "token_id": "USD", "transacted_account": "oaccount~76687c724ddbc2d6e6664d9618b2bf1c2a9fe10f84887462447e4caba6aaaff3", "transacted_org_id": "Org1", "transacted_user_id": "fi1_org_officer_demo", "transacted_custom_account_id": "20200222221111", "to_account": "oaccount~76687c724ddbc2d6e6664d9618b2bf1c2a9fe10f84887462447e4caba6aaaff3", "to_org_id": "Org1", "to_user_id": "fi1_org_officer_demo", "to_custom_account_id": "20200222221111", "from_account": "oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a", "from_org_id": "CentralBank", "from_user_id": "cb_issuer_demo", "from_custom_account_id": "10109999001234", "transaction_type": "EXECUTEHOLD", "category": "issuance", "balance": 26000, "onhold_balance": 10000 }, { "transaction_id": "otransaction~6915145aaf09fbf4d96456febddc2aa87b48c08ddd8ff17a6bab5d310f67bb36", "transacted_amount": 1000, "timestamp": "2025-08-12T21:07:11.000Z", "token_id": "USD", "transacted_account": "oaccount~cea6080858337b1575d6a76ed0bd07a0eacd8871e3f2f7f793729a0e4b0e8e98", "transacted_org_id": "CentralBank", "transacted_user_id": "cb_retirer_demo", "transacted_custom_account_id": "10109999006543", "to_account": "oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a", "to_org_id": "CentralBank", "to_user_id": "cb_issuer_demo", "to_custom_account_id": "10109999001234", "from_account": "oaccount~cea6080858337b1575d6a76ed0bd07a0eacd8871e3f2f7f793729a0e4b0e8e98", "from_org_id": "CentralBank", "from_user_id": "cb_retirer_demo", "from_custom_account_id": "10109999006543", "transaction_type": "CREDIT", "category": "transfer", "balance": 26000, "onhold_balance": 20000 }, { "transaction_id": "otransaction~244d7172d1dc90a142e1f22204c76614c7eea814b3d61f33016b786f1b347784", "transacted_amount": 10000, "timestamp": "2025-08-12T21:05:39.000Z", "token_id": "USD", "transacted_account": "oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a", "transacted_org_id": "CentralBank", "transacted_user_id": "cb_issuer_demo", "transacted_custom_account_id": "10109999001234", "to_account": "oaccount~3954f54a8bc7acdd0c3d0960104240f60d56c26c8a179430267359cd80ce3709", "to_org_id": "org2", "to_user_id": "fi2_org_officer_demo", "to_custom_account_id": "30300617202404", "from_account": "oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a", "from_org_id": "CentralBank", "from_user_id": "cb_issuer_demo", "from_custom_account_id": "10109999001234", "transaction_type": "ONHOLD", "holding_id": "ohold~cbdc~USD~ed815e20", "category": "issuance", "balance": 25000, "onhold_balance": 20000 }, { "transaction_id": "otransaction~c63ec37966264493bde6fa666527b9cca11695c15611c32e89af49a2246f13f6", "transacted_amount": 10000, "timestamp": "2025-08-12T21:05:20.000Z", "token_id": "USD", "transacted_account": "oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a", "transacted_org_id": "CentralBank", "transacted_user_id": "cb_issuer_demo", "transacted_custom_account_id": "10109999001234", "to_account": "oaccount~76687c724ddbc2d6e6664d9618b2bf1c2a9fe10f84887462447e4caba6aaaff3", "to_org_id": "Org1", "to_user_id": "fi1_org_officer_demo", "to_custom_account_id": "20200222221111", "from_account": "oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a", "from_org_id": "CentralBank", "from_user_id": "cb_issuer_demo", "from_custom_account_id": "10109999001234", "transaction_type": "ONHOLD", "holding_id": "ohold~cbdc~USD~12d87129", "category": "issuance", "balance": 35000, "onhold_balance": 10000 }, { "transaction_id": "otransaction~5112f576c94c2d23c342479bfa37e34612414b3258a64b43cf51b920f4ff5868", "transacted_amount": 5000, "timestamp": "2025-08-12T21:05:02.000Z", "token_id": "USD", "transacted_account": "oaccount~cea6080858337b1575d6a76ed0bd07a0eacd8871e3f2f7f793729a0e4b0e8e98", "transacted_org_id": "CentralBank", "transacted_user_id": "cb_retirer_demo", "transacted_custom_account_id": "10109999006543", "to_account": "oaccount~cea6080858337b1575d6a76ed0bd07a0eacd8871e3f2f7f793729a0e4b0e8e98", "to_org_id": "CentralBank", "to_user_id": "cb_retirer_demo", "to_custom_account_id": "10109999006543", "from_account": "oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a", "from_org_id": "CentralBank", "from_user_id": "cb_issuer_demo", "from_custom_account_id": "10109999001234", "transaction_type": "DEBIT", "category": "burn", "balance": 45000, "onhold_balance": 0 }, { "transaction_id": "otransaction~862aa9d9e877d3ea209b87299ab5b12c13ed5ce43d1cf1b934043c1dd02f58f6", "transacted_amount": 50000, "timestamp": "2025-08-12T21:04:22.000Z", "token_id": "USD", "transacted_account": "oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41", "transacted_org_id": "CentralBank", "transacted_user_id": "cb__creator_demo", "transacted_custom_account_id": "10105678004567", "to_account": "oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a", "to_org_id": "CentralBank", "to_user_id": "cb_issuer_demo", "to_custom_account_id": "10109999001234", "from_account": "oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41", "from_org_id": "CentralBank", "from_user_id": "cb__creator_demo", "from_custom_account_id": "10105678004567", "transaction_type": "CREDIT", "category": "transfer", "balance": 50000, "onhold_balance": 0 } ], "encode": "JSON" } }
-
getCBDCRetiredQuantity
- 원래 메소드 이름:
getBurnQuantity
- 이 GET 메소드는 지정된 조직에 대해 레코딩된 토큰의 총 수량을 반환합니다. 이 메소드는
Token Admin
,Token Auditor
또는 버너 롤을 가진 사용자만 호출할 수 있습니다. /getCBDCRetiredQuantity?tokenId={{bc-token-id}}&peer={{peer}}
- 매개변수:
tokenId: string
– 토큰 ID입니다.peer: string
– 쿼리를 실행할 피어 노드의 이름입니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "payload": { "burnt_quantity": 1200 }, "encode": "JSON" } }
-
getOnHoldIds
- 원래 메소드 이름:
getOnHoldIds
- 이 GET 메소드는 지정된 계정에 대한 모든 보유 ID 목록을 반환합니다. 이 메소드는 체인 코드의
Token Admin
또는Token Auditor
, 지정된 조직의Org Admin
또는Org Auditor
또는 계정의AccountOwner
에 의해서만 호출될 수 있습니다. /getOnHoldIds?accountId=account_id value&peer={{peer}}
- 매개변수:
accountId: string
– 계정의 ID입니다.peer: string
– 쿼리를 실행할 피어 노드의 이름입니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "payload": { "msg": "Holding Ids are: ohold~cbdc~USD~8e3147,ohold~cbdc~USD~8e315", "holding_ids": [ "ohold~cbdc~USD~8e3147", "ohold~cbdc~USD~8e315" ] }, "encode": "JSON" } }
-
getPendingCBDCIssuance
- 원래 메소드 이름:
getPendingIssuance
- 이 방법은 발신자가 승인자로 지정된 모든 보류 중인 출고(이전) 트랜잭션을 검색합니다. 여기에는 조직의 세부정보 및 관련된 계정의 사용자 ID(발신자, 수신자 및 공증)가 포함됩니다. 이 메소드는 체인 코드의
Token Admin
또는Token Auditor
,Org Admin
또는Org Auditor
또는Notary
에 의해서만 호출될 수 있습니다. /getPendingCBDCIssuance?tokenId={{bc-token-id}}&orgId={{bc-org-id}}&peer={{peer}}
- 매개변수:
tokenId: string
– 토큰 ID입니다.orgId: string
– 현재 조직에 있는 사용자의 멤버쉽 서비스 공급자(MSP) ID입니다.peer: string
– 쿼리를 실행할 피어 노드의 이름입니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "payload": [ { "asset_type": "ONHOLD", "category": "issuance", "from_account_id": "oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a", "from_org_id": "CentralBank", "holding_id": "ohold~cbdc~USD~77b75873", "notary_account_id": "oaccount~9b136ef4a60230846a8c14761683851a386d306b79493bc4d00433020c96cfa7", "notary_org_id": "CentralBank", "operation_id": "77b75873", "timetoexpiration": "0", "to_account_id": "oaccount~3954f54a8bc7acdd0c3d0960104240f60d56c26c8a179430267359cd80ce3709", "to_org_id": "org2", "token_id": "USD", "token_name": "cbdc", "quantity": 200 }, { "asset_type": "ONHOLD", "category": "transfer", "from_account_id": "oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a", "from_org_id": "CentralBank", "holding_id": "ohold~cbdc~USD~e26f11da", "notary_account_id": "oaccount~9b136ef4a60230846a8c14761683851a386d306b79493bc4d00433020c96cfa7", "notary_org_id": "CentralBank", "operation_id": "e26f11da", "timetoexpiration": "0", "to_account_id": "oaccount~76687c724ddbc2d6e6664d9618b2bf1c2a9fe10f84887462447e4caba6aaaff3", "to_org_id": "Org1", "token_id": "USD", "token_name": "cbdc", "quantity": 100 } ], "encode": "JSON" } }
-
getPendingCBDCRequest
- 원래 메소드 이름:
getPendingRequest
- 이 메소드는 호출자가 승인자로 지정된 지정된 유형의 보류 중인 모든 요청을 검색합니다. 이 메소드는 체인코드 또는
Notary
의Token Admin
또는Token Auditor
에 의해서만 호출될 수 있습니다. /getPendingCBDCRequest?tokenId={{bc-token-id}}&requestType=request_type value&orgId={{bc-org-id}}&peer={{peer}}
- 매개변수:
tokenId: string
– 토큰 ID입니다.requestType: string
– 트랜잭션 유형입니다. 예를 들어,mint
또는burn
입니다.orgId: string
– 현재 조직에 있는 사용자의 멤버쉽 서비스 공급자(MSP) ID입니다.peer: string
– 쿼리를 실행할 피어 노드의 이름입니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "payload": [ { "valueJson": { "assetType": "ohold", "holding_id": "ohold~cbdc~USD~89ce", "operation_id": "89ce", "token_name": "cbdc", "from_org_id": "CentralBank", "operation_type": "mint", "status": "pending", "from_account_id": "oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41", "to_account_id": "", "notary_account_id": "oaccount~9b136ef4a60230846a8c14761683851a386d306b79493bc4d00433020c96cfa7", "token_id": "USD", "quantity": 2000, "time_to_expiration": "0", "description": "Minting 2000 tokens" } }, { "valueJson": { "assetType": "ohold", "holding_id": "ohold~cbdc~USD~cf73", "operation_id": "cf73", "token_name": "cbdc", "from_org_id": "CentralBank", "operation_type": "mint", "status": "pending", "from_account_id": "oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41", "to_account_id": "", "notary_account_id": "oaccount~9b136ef4a60230846a8c14761683851a386d306b79493bc4d00433020c96cfa7", "token_id": "USD", "quantity": 200, "time_to_expiration": "0", "description": "Minting 200" } } ], "encode": "JSON" } }
-
getTotalCBDCBalanceByCallerOrgId
- 원래 메소드 이름:
getTotalBalanceByCallerOrgId
- 이 메소드는 호출자 조직의 총 잔액을 검색합니다. 이 메소드는
Token Admin
,Token Auditor
,Org Admin
,Org Auditor
또는 임의의 계정 소유자만 호출할 수 있습니다. /getTotalCBDCBalanceByCallerOrgId?peer={{peer}}
- 매개변수:
peer: string
– 쿼리를 실행할 피어 노드의 이름입니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "payload": { "totalBalance": 50500 }, "encode": "JSON" } }
-
getTotalCreatedCBDCTokens
- 원래 메소드 이름:
getTotalMintedTokens
- 이 메소드는 지정된 토큰에 대해 민트된 토큰의 총 수를 반환합니다. 이 메소드는
Token Admin
,Token Auditor
,Org Admin
또는Org Auditor
를 통해서만 호출할 수 있습니다. - 질의:
/getTotalCreatedCBDCTokens?tokenId={{bc-token-id}}&peer={{peer}}
- 매개변수:
tokenId: string
– 토큰 ID입니다.peer: string
– 쿼리를 실행할 피어 노드의 이름입니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "payload": { "msg": "Total minted token for Token Id: USD is 71000 tokens.", "quantity": 71000 }, "encode": "JSON" } }
-
getTransactionWithBlockNumber
- 원래 메소드 이름:
getTransactionWithBlockNumber
- 이 GET 메소드는 지정된 트랜잭션 ID에 대한 트랜잭션 세부정보를 반환합니다.
- 질의:
/getTransactionWithBlockNumber?tokenId={{bc-token-id}}&transactionId=transaction_id value&peer={{peer}}
- 매개변수:
tokenId: string
– 토큰 ID입니다.transactionId: string
– 트랜잭션의 ID입니다.peer: string
– 쿼리를 실행할 피어 노드의 이름입니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "payload": [ { "blockNo": 340, "key": "otransaction~3140569a4ecb3c3f141cc2468fe21276640b7fd79013d951d9104b79072d8f9c", "metadata": null, "txnNo": 0, "value": null, "valueJson": { "assetType": "otransaction", "blockNo": 336, "txnNo": 1, "transaction_id": "otransaction~3140569a4ecb3c3f141cc2468fe21276640b7fd79013d951d9104b79072d8f9c", "token_id": "USD", "from_account_id": "oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a", "from_account_balance": 26800, "from_account_onhold_balance": 300, "to_account_id": "oaccount~76687c724ddbc2d6e6664d9618b2bf1c2a9fe10f84887462447e4caba6aaaff3", "transaction_type": "EXECUTE_HOLD_SENDER", "amount": 200, "timestamp": "2025-08-25T13:16:55.000Z", "number_of_sub_transactions": 0, "holding_id": "ohold~cbdc~USD~81d7c4ac", "sub_transaction": "false", "category": "transfer", "global_transaction_id": "b54d4333-f4bb-4ca4-a7b7-cc75b659d912" } } ], "encode": "JSON" } }
-
getUserByCBDCAccountId
- 원래 메소드 이름:
getUserByAccountId
- 이 메소드는 지정된 계정에 대한 사용자 세부정보(
orgId
,userId
및tokenId
)를 반환합니다. 이 메소드는 체인 코드의Token Admin
또는Token Auditor
또는 지정된 조직의Org Admin
또는Org Auditor
에 의해서만 호출될 수 있습니다. - 질의:
/getUserByCBDCAccountId?accountId=account_id value&peer={{peer}}
- 매개변수:
accountId: string
– 계정의 ID입니다.peer: string
– 쿼리를 실행할 피어 노드의 이름입니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "payload": { "token_id": "USD", "org_id": "CentralBank", "user_id": "cb_admin_demo", "custom_account_id": "10101234000123" }, "encode": "JSON" } }
-
getUsersByRole
- 원래 메소드 이름:
getUsersByRole
- 이 GET 메소드는 지정된 롤 및 토큰에 대한 모든 사용자 목록을 반환합니다. 이 메소드는 체인코드의
Token Admin
또는Token Auditor
에 의해서만 호출될 수 있습니다. - 질의:
/getUsersByRole?tokenId={{bc-token-id}}&role=role value (for example minter / burner / notary)&peer={{peer}}
- 매개변수:
tokenId: string
– 토큰 ID입니다.role: string
– 검색할 역할의 이름입니다.peer: string
– 쿼리를 실행할 피어 노드의 이름입니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "payload": { "users": [ { "token_id": "USD", "org_id": "CentralBank" } ] }, "encode": "JSON" } }
-
holdCBDCTokens
- 원래 메소드 이름:
holdTokens
- 이 방법은
to_account_id
계정을 사용하여 토큰 소유자를 대신하여 보류를 생성합니다. 공증 계정이 지정되어 보류를 완료하거나 해제합니다. 보류가 생성되면 지급인의 지정된 토큰 잔액이 보류됩니다. 보류가 완료되거나 해제될 때까지 보류 잔액을 이전할 수 없습니다. 이 메소드의 호출자는 이미 생성된 계정을 가져야 합니다. - 페이로드:
{ "operationId": "operation_id value", "toAccountId": "to_account_id value", "notaryAccountId": "notary_account_id value", "quantity": 1, "timeToExpiration": "time_to_expiration value", "infoDetails": "{\"category\":\"category value\",\"description\":\"description value\"}", "endorsers": {{endorsers}}, "transientMapArgsFlag": true }
- 매개변수:
operationId: string
– 보류 작업을 식별하는 고유 ID입니다. 일반적으로 이 ID는 클라이언트 응용 프로그램에서 전달합니다.toAccountId: string
– 수신자의 계정 ID입니다.notaryAccountId: string
– 공증인의 계정 ID입니다.quantity: number
– 보류할 토큰 수입니다.timeToExpiration
– 보류가 만료되는 시간입니다. 영구 보류의 경우 0을 지정합니다. 그렇지 않으면 RFC-3339 형식을 사용합니다. 2021-06-02T12:46:06Z를 예를 들 수 있습니다.infoDetails: JSON
– 다음 예에 표시된 설명 및 범주입니다.{ "category" : "category input", "description" : "description input" }
endorsers: string[]
– 트랜잭션을 보증해야 하는 피어의 배열(예:peer1
,peer2
)입니다.transientMapArgsFlag
– 부울 값 true인 경우 인수는 기밀성을 위해 임시 맵을 통해 전송됩니다. false인 경우 인수는 표준 페이로드를 통해 전송됩니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "txid": "4793f3907eefce2f9fca7ef107405b0f116efb3afbf83fa0e61fe763690c8235", "payload": { "msg": "AccountId oaccount~76687c724ddbc2d6e6664d9618b2bf1c2a9fe10f84887462447e4caba6aaaff3 is successfully holding 100 tokens" }, "encode": "JSON", "sourceURL": "org1-oabcs1-nrt.blockchain.ocp.example.com:20012", "blockNumber": 343 } }
-
init
- 원래 메소드 이름:
init
- 이 메소드는 체인 코드가 배치될 때 호출됩니다. 사용자 정보는 체인 코드의
Token Admin
로 저장됩니다. - 페이로드:
{ "adminList": "[{\"org_id\":\"{{bc-org-id}}\",\"user_id\":\"{{bc-admin-user}}\"}]", "transientMapArgsFlag": true }
- 매개변수:
adminList array
– 토큰 관리자 목록을 지정하는{user_id, org_id}
정보의 배열입니다.adminList
배열은 필수 매개변수입니다.transientMapArgsFlag
– 부울 값 true인 경우 인수는 기밀성을 위해 임시 맵을 통해 전송됩니다. false인 경우 인수는 표준 페이로드를 통해 전송됩니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "txid": "fdb7dc89832c8045a333823b77fa24ae628178148dc93b3550040e070d7cd807", "payload": "", "encode": "UTF-8", "sourceURL": "cb-oabcs1-bom.blockchain.ocp.example.com:20009", "blockNumber": 263 } }
-
initializeCBDCToken
- 원래 메소드 이름:
initializeCBDCToken
- 이 메소드는 토큰을 생성하고 토큰 속성을 초기화합니다. 자산 및 해당 속성이 상태 데이터베이스에 저장됩니다. 이 메소드는 체인 코드의
Token Admin
에 의해서만 호출될 수 있습니다. - 페이로드:
{ "tokenAsset": "{\"token_id\":\"{{bc-token-id}}\",\"token_desc\":\"USD dollar\",\"Currency_Name\":\"US currency\"}", "endorsers": {{endorsers}}, "transientMapArgsFlag": true }
- 매개변수:
tokenAsset: <Token Class>
– 토큰 자산이 이 메소드에 매개변수로 전달됩니다. 토큰 자산의 속성은 모델 파일에 설명되어 있습니다.endorsers: string[]
– 트랜잭션을 보증해야 하는 피어의 배열(예:peer1
,peer2
)입니다.transientMapArgsFlag
– 부울 값 true인 경우 인수는 기밀성을 위해 임시 맵을 통해 전송됩니다. false인 경우 인수는 표준 페이로드를 통해 전송됩니다.
- 반환값:
- 성공 시 생성된 토큰 자산의 JSON 표현입니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "txid": "524be506f53ddf27c42db2be2d7d7ed7f8746880c3bf7990605a4b50fe62a616", "payload": { "assetType": "otoken", "events": true, "token_id": "PHP", "token_name": "cbdc", "token_desc": "token_desc value", "token_standard": "ttf+", "token_type": "fungible", "token_unit": "fractional", "behaviors": [ "divisible", "mintable", "transferable", "burnable", "holdable", "roles" ], "roles": { "minter_role_name": "minter", "burner_role_name": "burner", "notary_role_name": "notary", "mint_approver_role_name": "notary", "burn_approver_role_name": "notary" }, "mintable": { "max_mint_quantity": 0, "mint_approval_required": true }, "burnable": { "burn_approval_required": true }, "divisible": { "decimal": 2 }, "Currency_Name": "Currency_Name value" }, "encode": "JSON", "sourceURL": "centralbank-oabcs1-nrt.blockchain.ocp.example.com:20011", "blockNumber": 344 } }
-
rejectCBDCCreation
- 원래 메소드 이름:
rejectMint
- 이 메서드는 민팅 요청을 거부하기 위해 광부 공증인이 호출할 수 있습니다.
- 페이로드:
{ "tokenId": "{{bc-token-id}}", "operationId": "operation_id value", "endorsers": {{endorsers}}, "transientMapArgsFlag": true }
- 매개변수:
tokenId: string
– 민팅을 거부할 토큰의 ID입니다.operationId: string
– 민트 요청을 나타내는 고유한 작업 ID입니다.endorsers: string[]
– 트랜잭션을 보증해야 하는 피어의 배열(예:peer1
,peer2
)입니다.transientMapArgsFlag
– 부울 값 true인 경우 인수는 기밀성을 위해 임시 맵을 통해 전송됩니다. false인 경우 인수는 표준 페이로드를 통해 전송됩니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "txid": "182b99bb2ed753994a8c638ab9b08c3a4e73ac8159a3173a2a1f56b651d2eeac", "payload": { "msg": "Successfully rejected mint request with Operation Id '89ce' to mint 2000 tokens of token id USD" }, "encode": "JSON", "sourceURL": "centralbank-oabcs1-nrt.blockchain.ocp.example.com:20011", "blockNumber": 345 } }
-
rejectCBDCRetirement
- 원래 메소드 이름:
rejectBurn
- 이 메서드는 불타는 요청을 거부하기 위해 공증인이 호출 할 수 있습니다.
- 페이로드:
{ "tokenId": "{{bc-token-id}}", "operationId": "operation_id value", "endorsers": {{endorsers}}, "transientMapArgsFlag": true }
- 매개변수:
tokenId: string
– 레코딩을 거부할 토큰의 ID입니다.operationId: string
– 레코딩 요청을 나타내는 고유한 작업 ID입니다.endorsers: string[]
– 트랜잭션을 보증해야 하는 피어의 배열(예:peer1
,peer2
)입니다.transientMapArgsFlag
– 부울 값 true인 경우 인수는 기밀성을 위해 임시 맵을 통해 전송됩니다. false인 경우 인수는 표준 페이로드를 통해 전송됩니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "txid": "af2cc8e43ecb4c5520d90a8d7955b5a47623a29b13eef47e31c16eb48cc0adec", "payload": { "msg": "Successfully rejected burn request with Operation Id '8d34' to burn 100 tokens of token id USD" }, "encode": "JSON", "sourceURL": "centralbank-oabcs1-nrt.blockchain.ocp.example.com:20011", "blockNumber": 346 } }
-
rejectHoldCBDCTokens
- 원래 메소드 이름:
releaseHoldTokens
- 이 POST 메소드는 토큰 보류를 해제합니다. 전송이 완료되지 않았으며 모든 보유 토큰을 원래 소유자가 다시 사용할 수 있습니다. 이 메소드는 지정된 시간 제한 내에
notary
롤이 있는AccountOwner
ID 또는 지정된 시간 제한 이후 지급인, 수취인 또는 공증인이 호출할 수 있습니다. - 페이로드:
{ "tokenId": "{{bc-token-id}}", "operationId": "operation_id value", "endorsers": {{endorsers}}, "transientMapArgsFlag": true }
- 매개변수:
tokenId: string
– 토큰 ID입니다.operationId: string
– 보류 작업을 식별하는 고유 ID입니다. 일반적으로 이 ID는 클라이언트 응용 프로그램에서 전달합니다.endorsers: string[]
– 트랜잭션을 보증해야 하는 피어의 배열(예:peer1
,peer2
)입니다.transientMapArgsFlag
– 부울 값 true인 경우 인수는 기밀성을 위해 임시 맵을 통해 전송됩니다. false인 경우 인수는 표준 페이로드를 통해 전송됩니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "txid": "c628fb7738222ed969295ccc8d21b4be95d96e3aada4f14570f7820a7051b5f7", "payload": { "msg": "Successfully released '200' tokens from Operation Id '77b75873' to Account Id: oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a (Org-Id: CentralBank, User-Id: cb_issuer_demo)." }, "encode": "JSON", "sourceURL": "centralbank-oabcs1-nrt.blockchain.ocp.example.com:20009", "blockNumber": 347 } }
-
removeCBAdmin
- 원래 메소드 이름:
removeTokenAdmin
- 이 POST 메소드는 사용자를 체인 코드의
Token Admin
로 제거합니다. 이 메소드는 체인 코드의Token Admin
에 의해서만 호출될 수 있습니다. 관리자는 자신을 제거할 수 없습니다. - 페이로드:
{ "orgId": "{{bc-org-id}}", "userId": "{{bc-user-id}}", "endorsers": {{endorsers}}, "transientMapArgsFlag": true }
- 매개변수:
orgId: string
– 현재 조직에 있는 사용자의 멤버쉽 서비스 공급자(MSP) ID입니다.userId: string
– 사용자의 사용자 이름 또는 전자메일 ID입니다.endorsers: string[]
– 트랜잭션을 보증해야 하는 피어의 배열(예:peer1
,peer2
)입니다.transientMapArgsFlag
– 부울 값 true인 경우 인수는 기밀성을 위해 임시 맵을 통해 전송됩니다. false인 경우 인수는 표준 페이로드를 통해 전송됩니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "txid": "6a3b9b568d04b5beb29830f91efe4e8c6310b6cf36940cecfb4ab690fbfde739", "payload": { "msg": "Successfully removed Token Admin (Org_Id: CB, User_Id: cb)" }, "encode": "JSON", "sourceURL": "cb-oabcs1-bom.blockchain.ocp.example.com:20010", "blockNumber": 218 } }
-
removeCBAuditor
- 원래 메소드 이름:
removeTokenAuditor
- 이 POST 메소드는 사용자를 체인 코드의
Token Auditor
로 제거합니다. 이 메소드는 체인 코드의Token Admin
에 의해서만 호출될 수 있습니다. - 페이로드:
{ "orgId": "{{bc-org-id}}", "userId": "{{bc-user-id}}", "endorsers": {{endorsers}}, "transientMapArgsFlag": true }
- 매개변수:
orgId: string
– 현재 조직에 있는 사용자의 멤버쉽 서비스 공급자(MSP) ID입니다.userId: string
– 사용자의 사용자 이름 또는 전자메일 ID입니다.endorsers: string[]
– 트랜잭션을 보증해야 하는 피어의 배열(예:peer1
,peer2
)입니다.transientMapArgsFlag
– 부울 값 true인 경우 인수는 기밀성을 위해 임시 맵을 통해 전송됩니다. false인 경우 인수는 표준 페이로드를 통해 전송됩니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "txid": "a886a6040fbc76374a3c78c89ab0ffc9f7b8391cc5239b169bf3b878cf40c67b", "payload": { "msg": "Successfully removed Token Auditor (Org_Id: CB, User_Id: cb)" }, "encode": "JSON", "sourceURL": "cb-oabcs1-bom.blockchain.ocp.example.com:20010", "blockNumber": 219 } }
-
removeFIAdmin
- 원래 메소드 이름:
removeOrgAdmin
- 이 POST 메소드는 사용자를 체인 코드의
Org Admin
로 제거합니다. 이 메소드는 지정된 조직의Token Admin
또는Org Admin
에 의해서만 호출될 수 있습니다.Org Admin
는 자신을 제거할 수 없습니다. - 페이로드:
{ "orgId": "{{bc-org-id}}", "userId": "{{bc-user-id}}", "endorsers": {{endorsers}}, "transientMapArgsFlag": true }
- 매개변수:
orgId: string
– 현재 조직에 있는 사용자의 멤버쉽 서비스 공급자(MSP) ID입니다.userId: string
– 사용자의 사용자 이름 또는 전자메일 ID입니다.endorsers: string[]
– 트랜잭션을 보증해야 하는 피어의 배열(예:peer1
,peer2
)입니다.transientMapArgsFlag
– 부울 값 true인 경우 인수는 기밀성을 위해 임시 맵을 통해 전송됩니다. false인 경우 인수는 표준 페이로드를 통해 전송됩니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "txid": "e2a634f6093f89b1984e20ff86a513fabb7c3ade7cc9e27d9734b4aaf6c88597", "payload": { "msg": "Successfully removed Org Admin (Org_Id: CB, User_Id: cb)" }, "encode": "JSON", "sourceURL": "cb-oabcs1-bom.blockchain.ocp.example.com:20010", "blockNumber": 220 } }
-
removeFIAuditor
- 원래 메소드 이름:
removeOrgAuditor
- 이 POST 메소드는 사용자를 체인 코드의
Org Auditor
로 제거합니다. 이 메소드는 지정된 조직의Token Admin
또는Org Admin
에 의해서만 호출될 수 있습니다. - 페이로드:
{ "orgId": "{{bc-org-id}}", "userId": "{{bc-user-id}}", "endorsers": {{endorsers}}, "transientMapArgsFlag": true }
- 매개변수:
orgId: string
– 현재 조직에 있는 사용자의 멤버쉽 서비스 공급자(MSP) ID입니다.userId: string
– 사용자의 사용자 이름 또는 전자메일 ID입니다.endorsers: string[]
– 트랜잭션을 보증해야 하는 피어의 배열(예:peer1
,peer2
)입니다.transientMapArgsFlag
– 부울 값 true인 경우 인수는 기밀성을 위해 임시 맵을 통해 전송됩니다. false인 경우 인수는 표준 페이로드를 통해 전송됩니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "txid": "c3bc720461004a53b37c68d4bb264858b88d980bc093a0a3ebb62a32974fb306", "payload": { "msg": "Successfully removed Org Auditor (Org_Id: CB, User_Id: cb)" }, "encode": "JSON", "sourceURL": "cb-oabcs1-bom.blockchain.ocp.example.com:20010", "blockNumber": 221 } }
-
removeRole
- 원래 메소드 이름:
removeRole
- 이 방법은 지정된 사용자 및 토큰에서 역할을 제거합니다. 이 메소드는 체인 코드의
Token Admin
또는 지정된 조직의Org Admin
에 의해서만 호출될 수 있습니다. - 페이로드:
{ "accountId": "account_id value", "role": "role value (for example minter / burner / notary)", "endorsers": {{endorsers}}, "transientMapArgsFlag": true }
- 매개변수:
accountId: string
– 계정의 ID입니다.role: string
– 지정된 사용자로부터 제거할 역할의 이름입니다.mintable
및burnable
동작은 사양 파일의minter_role_name
및burner_role_name
속성에 해당합니다. 마찬가지로notary
역할은 사양 파일의notary_role_name
속성에 해당합니다.endorsers: string[]
– 트랜잭션을 보증해야 하는 피어의 배열(예:peer1
,peer2
)입니다.transientMapArgsFlag
– 부울 값 true인 경우 인수는 기밀성을 위해 임시 맵을 통해 전송됩니다. false인 경우 인수는 표준 페이로드를 통해 전송됩니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "txid": "d92538a8f9cf2d45a0c14307ce192c399230cbf4022cec5dd6ce560cca527bf3", "payload": { "msg": "Successfully removed role 'notary' from Account Id: oaccount~e8450f7a1f320658169315fb4148ad7cb4c47c31435420fd459665f41238221b" }, "encode": "JSON", "sourceURL": "centralbank-oabcs1-nrt.blockchain.ocp.example.com:20010", "blockNumber": 72 } }
-
requestCBDCCreation
- 원래 메소드 이름:
requestMint
- 이 메서드는 광부가 지정된 양의 토큰을 만들기 위해 광부 공증에 요청을 보내기 위해 호출할 수 있습니다.
- 페이로드:
{ "operationId": "operation_id value", "notaryAccountId": "notary_account_id value", "quantity": 1, "timeToExpiration": "time_to_expiration value", "infoDetails": "{\"category\":\"category value\",\"description\":\"description value\"}", "endorsers": {{endorsers}}, "transientMapArgsFlag": true }
- 매개변수:
operationId: string
– 민트 요청을 나타내는 고유한 작업 ID입니다.notaryAccountId: string
– 요청을 처리할 광부 공증인의 계정 ID입니다.quantity: number
– 민트할 토큰의 양입니다.timeToExpiration
– 민팅 요청이 만료되어 더 이상 유효하지 않은 시간입니다.infoDetails: JSON
– 다음 예와 같이 요청의 범주(category
) 및 설명(description
)을 지정하는 객체입니다.{ "category" : "category input", "description" : "description input" }
endorsers: string[]
– 트랜잭션을 보증해야 하는 피어의 배열(예:peer1
,peer2
)입니다.transientMapArgsFlag
– 부울 값 true인 경우 인수는 기밀성을 위해 임시 맵을 통해 전송됩니다. false인 경우 인수는 표준 페이로드를 통해 전송됩니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "txid": "1982f73495060e0eef4d78282a91c41e27e8c95572739b0677a1e404a0d20aa9", "payload": { "msg": "AccountId oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41 has successfully submitted request to mint 200 tokens" }, "encode": "JSON", "sourceURL": "centralbank-oabcs1-nrt.blockchain.ocp.example.com:20009", "blockNumber": 332 } }
-
requestCBDCRetirement
- 원래 메소드 이름:
requestBurn
- 이 메서드는 버너에 의해 호출되어 지정된 양의 토큰을 파괴하는 공증인에게 요청을 보낼 수 있습니다.
- 페이로드:
{ "operationId": "operation_id value", "notaryAccountId": "notary_account_id value", "quantity": 1, "timeToExpiration": "time_to_expiration value", "infoDetails": "{\"category\":\"category value\",\"description\":\"description value\"}", "endorsers": {{endorsers}}, "transientMapArgsFlag": true }
- 매개변수:
operationId: string
– 레코딩 요청을 나타내는 고유한 작업 ID입니다.notaryAccountId: string
– 요청을 처리할 공증인의 계정 ID입니다.quantity: number
– 레코딩할 토큰의 양입니다.timeToExpiration
– 레코딩 요청이 만료되고 더 이상 유효하지 않은 시간입니다.infoDetails: JSON
– 다음 예와 같이 요청의 범주(category
) 및 설명(description
)을 지정하는 객체입니다.{ "category" : "category input", "description" : "description input" }
endorsers: string[]
– 트랜잭션을 보증해야 하는 피어의 배열(예:peer1
,peer2
)입니다.transientMapArgsFlag
– 부울 값 true인 경우 인수는 기밀성을 위해 임시 맵을 통해 전송됩니다. false인 경우 인수는 표준 페이로드를 통해 전송됩니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "txid": "3b1ba40490dea9bcc4df6ad22ffc7651fbbea5d1889e42a1841ee48d6ae653c6", "payload": { "msg": "AccountId oaccount~cea6080858337b1575d6a76ed0bd07a0eacd8871e3f2f7f793729a0e4b0e8e98 has successfully submitted request to burn 100 tokens" }, "encode": "JSON", "sourceURL": "centralbank-oabcs1-nrt.blockchain.ocp.example.com:20011", "blockNumber": 333 } }
-
setApplicationGroups
- 원래 메소드 이름:
setApplicationGroups
- 이 POST 메소드는 지정된 응용 프로그램 그룹에 대한 계정 세부 정보에서
application_groups
매개변수를 설정하는 데 사용됩니다. 이 메소드는 체인 코드의Token Admin
또는 지정된 조직의Org Admin
에 의해서만 호출될 수 있습니다. - 페이로드:
{ "accountId": "account_id value", "applicationGroups": "[\"application_groups value\"]", "endorsers": {{endorsers}}, "transientMapArgsFlag": true }
- 매개변수:
accountId: string
– 토큰 계정의 계정 ID입니다.applicationGroups: string[]
– 사용자 ID가 속한 응용 프로그램 그룹 목록으로, CBDC 응용 프로그램에서 사용자의 연관을 정의합니다.endorsers: string[]
– 트랜잭션을 보증해야 하는 피어의 배열(예:peer1
,peer2
)입니다.transientMapArgsFlag
– 부울 값 true인 경우 인수는 기밀성을 위해 임시 맵을 통해 전송됩니다. false인 경우 인수는 표준 페이로드를 통해 전송됩니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "txid": "828fd2ece518fcf266868c840b3b1fc6b967c5c64d7591c42eb18c0c7850dc32", "payload": { "bapAccountVersion": 10, "assetType": "oaccount", "account_id": "oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a", "org_id": "CentralBank", "token_type": "fungible", "token_id": "USD", "token_name": "cbdc", "balance": "02c4601262fa7ece1ffc909811f829ad973d4133ca27c9c0fa82972d441400ad3e", "onhold_balance": "028954d23bfabee1a10d9f5a07793dec08ab0f93fd506079b0fa33f525d527595f", "onhold_burn_balance": "028954d23bfabee1a10d9f5a07793dec08ab0f93fd506079b0fa33f525d527595f", "application_groups": [ "SYSTEM_RETIRERS" ] }, "encode": "JSON", "sourceURL": "centralbank-oabcs1-nrt.blockchain.ocp.example.com:20010", "blockNumber": 348 } }
-
setMaxDailyAmount
- 원래 메소드 이름:
setMaxDailyAmount
- 이 POST 메소드는 지정된 금액에 대한 계정 세부정보에서
maxDailyAmount
매개변수를 설정하는 데 사용됩니다. 이 메소드는 체인 코드의Token Admin
또는 지정된 조직의Org Admin
에 의해서만 호출될 수 있습니다. - 페이로드:
{ "accountId": "account_id value", "maxDailyAmount": "max_daily_amount value", "endorsers": {{endorsers}}, "transientMapArgsFlag": true }
- 매개변수:
accountId: string
– 토큰 계정의 계정 ID입니다.maxDailyAmount: number
– 지정된 계정에 대한 최대 일별 금액 값으로, 일별로 처리할 수 있는 최대 금액을 정의합니다.endorsers: string[]
– 트랜잭션을 보증해야 하는 피어의 배열(예:peer1
,peer2
)입니다.transientMapArgsFlag
– 부울 값 true인 경우 인수는 기밀성을 위해 임시 맵을 통해 전송됩니다. false인 경우 인수는 표준 페이로드를 통해 전송됩니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "txid": "d6a8c26602c2a9cef5d6d563dbc50044af6380c96f7295e2c8e1bbf576cef36f", "payload": { "msg": "Successfully set max daily amount for account id oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a to 1000000" }, "encode": "JSON", "sourceURL": "centralbank-oabcs1-nrt.blockchain.ocp.example.com:20010", "blockNumber": 351 } }
-
setMaxDailyTransactionCount
- 원래 메소드 이름:
setMaxDailyTransactionCount
- 이 POST 메소드는 지정된 금액에 대한 계정 세부정보에서
maxDailyTransactions
매개변수를 설정하는 데 사용됩니다. 이 메소드는 체인 코드의Token Admin
또는 지정된 조직의Org Admin
에 의해서만 호출될 수 있습니다. - 페이로드:
{ "accountId": "account_id value", "maxDailyTransactions": "max_daily_transactions value", "endorsers": {{endorsers}}, "transientMapArgsFlag": true }
- 매개변수:
accountId: string
– 토큰 계정의 계정 ID입니다.maxDailyTransactions: number
– 지정된 계정에 대한 최대 일별 금액 값으로, 일별 허용되는 최대 트랜잭션 수를 정의합니다.endorsers: string[]
– 트랜잭션을 보증해야 하는 피어의 배열(예:peer1
,peer2
)입니다.transientMapArgsFlag
– 부울 값 true인 경우 인수는 기밀성을 위해 임시 맵을 통해 전송됩니다. false인 경우 인수는 표준 페이로드를 통해 전송됩니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "txid": "c819da688bbe9cd4ef6fae79af014c66438b5f9d17f771d3ffc5878288097614", "payload": { "msg": "Successfully set max daily transactions for account id oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a to 100000" }, "encode": "JSON", "sourceURL": "centralbank-oabcs1-nrt.blockchain.ocp.example.com:20010", "blockNumber": 350 } }
-
suspendCBDCAccount
- 원래 메소드 이름:
suspendAccount
- 이 방법은 대체 가능한 토큰 계정을 일시 중지합니다. 원장에서
accountStatus
값을 찾을 수 없는 경우 오류가 발생합니다. 이 메소드는 체인 코드의Token Admin
또는 지정된 조직의Org Admin
에 의해서만 호출될 수 있습니다. - 페이로드:
{ "accountId": "account_id value", "endorsers": {{endorsers}}, "transientMapArgsFlag": true }
- 매개변수:
accountId: string
– 토큰 계정의 계정 ID입니다.endorsers: string[]
– 트랜잭션을 보증해야 하는 피어의 배열(예:peer1
,peer2
)입니다.transientMapArgsFlag
– 부울 값 true인 경우 인수는 기밀성을 위해 임시 맵을 통해 전송됩니다. false인 경우 인수는 표준 페이로드를 통해 전송됩니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "txid": "1fa66e75ba2ab9376944a8b4e362d5fe54e167f8ada989bd9653ea54f7557aea", "payload": { "assetType": "oaccountStatus", "status_id": "oaccountStatus~d0b8ba4d154d19fd7e61e7793795a5a5b65e2266102aafdd6d01cec1a3336c71", "account_id": "oaccount~c44ffac4c46718e9744cb0aae2016d26a87a5bef5e2d1c0d1abc7d8782f0ba61", "status": "suspended" }, "encode": "JSON", "sourceURL": "centralbank-oabcs1-nrt.blockchain.ocp.example.com:20011", "blockNumber": 342 } }
-
transferCBDCTokens
- 원래 메소드 이름:
transferTokens
- 이 방법은 호출자의 토큰을 지정된 계정으로 전송합니다. 메소드 호출자는 계정을 가져야 합니다. 수량은 사양 파일에서
divisible
동작의decimal
매개변수에 의해 지정된 십진수 값 내에 있어야 합니다. - 페이로드:
{ "toAccountId": "to_account_id value", "quantity": 1, "infoDetails": "{\"category\":\"category value\",\"description\":\"description value\"}", "endorsers": {{endorsers}}, "transientMapArgsFlag": true }
- 매개변수:
toAccountId: string
– 수신자의 계정 ID입니다.quantity: number
– 전송할 토큰 수입니다.infoDetails: JSON
– 다음 예와 같이 요청의 범주(category
) 및 설명(description
)을 지정하는 객체입니다.{ "category" : "category input", "description" : "description input" }
endorsers: string[]
– 트랜잭션을 보증해야 하는 피어의 배열(예:peer1
,peer2
)입니다.transientMapArgsFlag
– 부울 값 true인 경우 인수는 기밀성을 위해 임시 맵을 통해 전송됩니다. false인 경우 인수는 표준 페이로드를 통해 전송됩니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "txid": "62eb436be7c29fc2ed9cae221e874d9a31b163fa10374e7da09bf5e09a96c3ff", "payload": { "msg": "Successfully transferred 10000 tokens from account id: oaccount~da6e14466a0ba9b48ebc18fa672addb92dffc371bf953c3229a95b2ff2d9cd41 to account id: oaccount~68d67712f500e9dac8c314c19744003a993250271d960e9b0d25267bb18dfe9a." }, "encode": "JSON", "sourceURL": "centralbank-oabcs1-nrt.blockchain.ocp.example.com:20010", "blockNumber": 352 } }
래퍼 API 패키지에는 체인코드 API와 Oracle Blockchain Platform 콘솔 API를 계정 생성을 위한 단일 엔드포인트로 결합하는 approveHoldCBDCTokensInterOrg
및 createCBDCAccount
API도 포함되어 있습니다.
-
approveHoldCBDCTokensInterOrg
- 이 방법은 조직 간에 토큰을 안전하게 전송합니다. 내부적으로 이 방법은 Oracle Blockchain Platform에서 2단계 커밋 API를 사용합니다.
- 페이로드:
{ "tokenId": "{{bc-token-id}}", "operationId": "operation_id value", "quantity": 1, "senderEndorsers": ["Sender Endorsers values"], "receiverEndorsers": ["Receiver Endorsers values"], "transientMapArgsFlag": true }
- 페이로드 파라미터:
tokenId: string
– 전송할 CBDC 토큰의 ID입니다. 원장에 토큰 ID가 있어야 합니다.operationId: string
– 승인할 전송(보류) 요청의 고유한 작업 ID입니다.quantity: number
– 전송할 토큰 수입니다.senderEndorsers: string[]
– 트랜잭션을 보증해야 하는 발신자 조직의 피어 배열(예:["peer0.senderorg", "peer1.senderorg"]
)입니다.receiverEndorsers: string[]
– 트랜잭션을 보증해야 하는 수신기 조직의 피어 배열(예:["peer0.receiverorg", "peer1.receiverorg"
)입니다.transientMapArgsFlag
– 부울 값 true인 경우 인수는 기밀성을 위해 임시 맵을 통해 전송됩니다. false인 경우 인수는 표준 페이로드를 통해 전송됩니다.
- 반환 값 예제:
{ "returnCode": "Success", "error": "", "result": { "transactions": [ { "channel": "buildtest", "chaincode": "WCBDCConfAug13", "txstatus": "Committed", "prepare": { "txid": "3140569a4ecb3c3f141cc2468fe21276640b7fd79013d951d9104b79072d8f9c", "blockNumber": 335 }, "commit": { "txid": "9cfa020acc13c1de911e8a53eae799f47c1947d88a608753edb4b97fe45d00cc", "blockNumber": 336 }, "rollback": {} }, { "channel": "buildtest", "chaincode": "WCBDCConfAug13", "txstatus": "Committed", "prepare": { "txid": "32137cd7e16c560f4d96d0f8999f6a267c1e95be2f5b11ef0541e574a6cd7275", "blockNumber": 335 }, "commit": { "txid": "ac55bd7648680ff6b795e4a99026d7c538f68167683e1e622e55778a2930614d", "blockNumber": 336 }, "rollback": {} } ], "lrc": {}, "globalStatus": "Success", "globalTxid": "b54d4333-f4bb-4ca4-a7b7-cc75b659d912", "txStartTime": "2025-08-25T13:16:55.825578503Z" } }
-
createCBDCAccount
-
createCBDCAccount
API는 다음 작업을 순서대로 완료합니다.- Oracle Blockchain Platform에서 사용자에 대한 등록 ID를 생성합니다. 생성된 등록 ID는 일부 제한 사항이 있는 사용자 ID와 동일합니다. ID에는 영숫자, 하이픈(-) 및 밑줄(_)만 포함될 수 있습니다. 사용자 ID에 다른 특수 문자가 포함되어 있으면 밑줄(_)로 바뀝니다. 예를 들어, 사용자 ID가 adam.fripp@example.com인 경우 생성되는 등록 ID는 adam_fripp_example_com입니다. 지정된 사용자 ID에 대한 등록이 이미 있는 경우 다른 등록이 생성되지 않습니다.
- 페이로드에 제공된 세부정보와 함께 원장에 계정을 생성합니다.
- 새 계정을 페이로드에 지정된 토큰과 연관시킵니다.
- 페이로드에 지정된 롤을 사용자에게 지정합니다.
일관성을 보장하고 불완전한 데이터를 방지하기 위해 후속 단계 중 하나라도 실패할 경우 첫 번째 단계에서 생성된 등록 ID가 삭제됩니다.
- 페이로드:
{ "orgId": "{{bc-org-id}}", "userId": "{{bc-user-id}}", "applicationGroups": "[\"applicationGroups value\"]", "customAccountId": "custom_account_id value", "tokenId": "{{bc-token-id}}", "role": "role value (for example minter / burner / notary / tokenAdmin / tokenAuditor / orgAdmin / orgAuditor/ No)", "dailyLimits": "{\"max_daily_amount\":1000, \"max_daily_transactions\":100}", "endorsers": {{endorsers}}, "transientMapArgsFlag": true }
- 페이로드 파라미터:
orgId
– 계정을 만들 사용자의 멤버쉽 서비스 공급자(MSP) ID입니다. ID는 영숫자로 시작해야 하며 문자, 숫자 및 밑줄(_), 마침표(.), @ 기호 및 하이픈(-)과 같은 특수 문자를 포함할 수 있습니다.userId
– 사용자의 사용자 이름 또는 전자메일 ID입니다. ID는 영숫자로 시작해야 하며 문자, 숫자 및 밑줄(_), 마침표(.), @ 기호 및 하이픈(-)과 같은 특수 문자를 포함할 수 있습니다.applicationGroups
– 계정이 속한 응용 프로그램 그룹입니다. 예:System_Admins
.customAccountId
– 기밀 모드 체인코드를 사용하는 계정에 대한 고유한 임의 ID입니다.tokenId
– 계정과 연관된 토큰의 ID입니다. ID는 영숫자로 시작해야 하며 문자, 숫자, 특수 문자 밑줄(_) 및 하이픈(-)을 포함할 수 있습니다. 길이는 16자를 초과할 수 없습니다.role
– 역할은minter
,burner
,notary
,tokenAdmin
,tokenAuditor
,orgAdmin
또는orgAuditor
값 중 하나여야 합니다.dailyLimits
– 일일 트랜잭션 한도를 정의하는 두 개의 숫자 필드(max_daily_amount
및max_daily_transactions
)endorsers: string[]
– 트랜잭션을 보증해야 하는 피어의 배열(예:peer1
,peer2
)입니다.transientMapArgsFlag
– 부울 값 true인 경우 인수는 기밀성을 위해 임시 맵을 통해 전송됩니다. false인 경우 인수는 표준 페이로드를 통해 전송됩니다.
- 반환 값 예제:
"payload": { "msg": "Account created successfully and 'minter' role added to Account Id: oaccount~4a86f2843c2b0105c97a77202bd9aba519c81dcef27eccc1d89125ae32770700 (Org-Id: CB, User-Id: creator_user_cb)" "accountDetails": { "bapAccountVersion": 0, "assetType": "oaccount", "account_id": "oaccount~ce5c56d2068ce31b82136c8eea110a80b9251595d361db70924c4e989032a1be", "user_id": "creator_user_cb", "org_id": "CB", "token_type": "fungible", "token_id": "USD", "token_name": "", "balance": 0, "onhold_balance": 0, "application_groups": [ "CBDC_CREATORS" ], "max_daily_amount": 1000, "daily_amount": 0, "max_daily_transactions": 100, "daily_transactions": 0, "current_date": "2024-10-06T00:00:00.000Z" } }