Version: current

STEP 4 - Create Fund

Create a Fund to represent Assets, Custody Policies. Once created, the Fund ID returned is the address for the Fund.

This step assumes that you have added all required members as Trusted Parties to your Trusted Network.

In the following example request,

  1. The withdraw custody policy has assigned 3 Trusted Parties as members of custodygroup_withdraw.
  2. The threshold for the withdraw custody policy is set to 2. This means that at least 2 members of the Withdraw Custody Group must approve a withdrawal for it to be authorized.
  3. A transfer custody policy has assigned 4 Trusted Parties as members of the TX Custody Group.
  4. The threshold for the transfer custody policy is set to 3. This means that at least 3 members of the TX Custody Group must approve a transfer for it to be authorized.
  5. The Assets in this fund are BTC-Testnet.

Example create fund request#

curl
curl -X POST "https://api.qredo.network/api/v1/p//company/{company_id}/fund"
-H "accept: application/json" \
-H "x-nonce: <ENTER NONCE>" \
-H "x-timestamp: <ENTER TIMESTAMP>" \
-H "x-sign: <YOUR API AUTHENTICATION TOKEN>" \
-H "X-API-KEY: <YOUR API KEY AUTHORIZATION>" \
-H "Content-Type: application/json"
-d "{
"name": "BIGGESTFUNDEVER",
"description": "Awesome fund",
"custodygroup_withdraw": {
"threshold": 2,
"members": [
"<TRUSTED_PARTY_ID_1>",
"<TRUSTED_PARTY_ID_2>",
"<TRUSTED_PARTY_ID_3>",
]
},
"custodygroup_tx": {
"threshold": 3,
"members": [
"<TRUSTED_PARTY_ID_1>",
"<TRUSTED_PARTY_ID_2>",
"<TRUSTED_PARTY_ID_3>",
"<TRUSTED_PARTY_ID_4>",
]
},
"assets": [
"BTC-TESTNET"
]
}

Example response#

A Fund_ID is returned and an ID for each Custody Policy as confirmation of a successful request.

{
"fund_id": "<FUND_ID>",
"custodygroup_withdraw": "<WITHDRAW_POLICY_ID>",
"custodygroup_tx": "<TX_POLICY_ID>"
}