All URIs are relative to https://localhost
Method | HTTP request | Description |
---|---|---|
walletCreateRulePost | POST /wallet/create_rule | Create a new Rule in the network [async call] |
walletDeleteRulePost | POST /wallet/delete_rule | Delete an existing Rule from the network [async call] |
walletGetActivityPost | POST /wallet/get_activity | Get wallet activity (transactions) |
walletGetBalancesPost | POST /wallet/get_balances | Get wallets balances |
walletGetNewAddressPost | POST /wallet/get_new_address | Get a new address from a given diversifier or generate randomly |
walletGetPublicKeyPost | POST /wallet/get_public_key | Get wallet public key |
walletIssueAssetPost | POST /wallet/issue_asset | Issue assets [async call] |
walletShareViewingPermissionPost | POST /wallet/share_viewing_permission | Share the viewing credentials for a given Wallet |
walletTransferAssetPost | POST /wallet/transfer_asset | Transfer assets [async call] |
AsyncTaskCreatedResponse walletCreateRulePost(createRuleRequest)
Create a new Rule in the network [async call]
Create new Rules that can either create a new admin, a new issuer, or both; The Rules are created by a Wallet that needs to have admin rights; The Rules grant rights to other Wallets through the Wallets' public keys.
// Import classes:
//import org.qedit.kotqedit.infrastructure.*
//import org.qedit.kotqedit.models.*
val apiInstance = WalletApi()
val createRuleRequest : CreateRuleRequest = // CreateRuleRequest |
try {
val result : AsyncTaskCreatedResponse = apiInstance.walletCreateRulePost(createRuleRequest)
println(result)
} catch (e: ClientException) {
println("4xx response calling WalletApi#walletCreateRulePost")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling WalletApi#walletCreateRulePost")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
createRuleRequest | CreateRuleRequest |
- Content-Type: application/json
- Accept: application/json
AsyncTaskCreatedResponse walletDeleteRulePost(deleteRuleRequest)
Delete an existing Rule from the network [async call]
Delete an existing Rule from the network; The Rule is deleted by a Wallet which needs to have admin rights.
// Import classes:
//import org.qedit.kotqedit.infrastructure.*
//import org.qedit.kotqedit.models.*
val apiInstance = WalletApi()
val deleteRuleRequest : DeleteRuleRequest = // DeleteRuleRequest |
try {
val result : AsyncTaskCreatedResponse = apiInstance.walletDeleteRulePost(deleteRuleRequest)
println(result)
} catch (e: ClientException) {
println("4xx response calling WalletApi#walletDeleteRulePost")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling WalletApi#walletDeleteRulePost")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
deleteRuleRequest | DeleteRuleRequest |
- Content-Type: application/json
- Accept: application/json
GetWalletActivityResponse walletGetActivityPost(getWalletActivityRequest)
Get wallet activity (transactions)
List transactions that were created by a specifed Wallet or that affected that Wallet; All known details of each such transaction will be returned.
// Import classes:
//import org.qedit.kotqedit.infrastructure.*
//import org.qedit.kotqedit.models.*
val apiInstance = WalletApi()
val getWalletActivityRequest : GetWalletActivityRequest = // GetWalletActivityRequest |
try {
val result : GetWalletActivityResponse = apiInstance.walletGetActivityPost(getWalletActivityRequest)
println(result)
} catch (e: ClientException) {
println("4xx response calling WalletApi#walletGetActivityPost")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling WalletApi#walletGetActivityPost")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
getWalletActivityRequest | GetWalletActivityRequest |
- Content-Type: application/json
- Accept: application/json
GetWalletBalanceResponse walletGetBalancesPost(getWalletBalanceRequest)
Get wallets balances
Get a list of the Asset Types held within a given Wallet and the amount of each type held.
// Import classes:
//import org.qedit.kotqedit.infrastructure.*
//import org.qedit.kotqedit.models.*
val apiInstance = WalletApi()
val getWalletBalanceRequest : GetWalletBalanceRequest = // GetWalletBalanceRequest |
try {
val result : GetWalletBalanceResponse = apiInstance.walletGetBalancesPost(getWalletBalanceRequest)
println(result)
} catch (e: ClientException) {
println("4xx response calling WalletApi#walletGetBalancesPost")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling WalletApi#walletGetBalancesPost")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
getWalletBalanceRequest | GetWalletBalanceRequest |
- Content-Type: application/json
- Accept: application/json
GetNewAddressResponse walletGetNewAddressPost(getNewAddressRequest)
Get a new address from a given diversifier or generate randomly
Generate an Address for the Wallet; the address can be used by other Wallet owners to issue or transfer Assets into said Wallet; If a diversifier is provided, then the generated address is deterministically generated from the diversifier; If the diversifier is omitted, then a random diversifier is used and the resulting Address will be random; in both cases the Address cannot be linked to the Wallet by parties that do not have access to the Wallet. All generated Addresses of a Wallet are always valid and cannot be invalidated.
// Import classes:
//import org.qedit.kotqedit.infrastructure.*
//import org.qedit.kotqedit.models.*
val apiInstance = WalletApi()
val getNewAddressRequest : GetNewAddressRequest = // GetNewAddressRequest |
try {
val result : GetNewAddressResponse = apiInstance.walletGetNewAddressPost(getNewAddressRequest)
println(result)
} catch (e: ClientException) {
println("4xx response calling WalletApi#walletGetNewAddressPost")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling WalletApi#walletGetNewAddressPost")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
getNewAddressRequest | GetNewAddressRequest |
- Content-Type: application/json
- Accept: application/json
GetPublicKeyResponse walletGetPublicKeyPost(getPublicKeyRequest)
Get wallet public key
Get the unique public key of the Wallet; This key is unique across the entire network and is used to identify the Wallet.
// Import classes:
//import org.qedit.kotqedit.infrastructure.*
//import org.qedit.kotqedit.models.*
val apiInstance = WalletApi()
val getPublicKeyRequest : GetPublicKeyRequest = // GetPublicKeyRequest |
try {
val result : GetPublicKeyResponse = apiInstance.walletGetPublicKeyPost(getPublicKeyRequest)
println(result)
} catch (e: ClientException) {
println("4xx response calling WalletApi#walletGetPublicKeyPost")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling WalletApi#walletGetPublicKeyPost")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
getPublicKeyRequest | GetPublicKeyRequest |
- Content-Type: application/json
- Accept: application/json
AsyncTaskCreatedResponse walletIssueAssetPost(issueAssetRequest)
Issue assets [async call]
Issue Assets from a Wallet to a recipient Address; The issuing Wallet is required to have matching issuance rights (in the form of a matching Rule); Issuance can be done either confidentially or in public; In order to issue confidentially, the matching Rule must explicitly allow this.
// Import classes:
//import org.qedit.kotqedit.infrastructure.*
//import org.qedit.kotqedit.models.*
val apiInstance = WalletApi()
val issueAssetRequest : IssueAssetRequest = // IssueAssetRequest |
try {
val result : AsyncTaskCreatedResponse = apiInstance.walletIssueAssetPost(issueAssetRequest)
println(result)
} catch (e: ClientException) {
println("4xx response calling WalletApi#walletIssueAssetPost")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling WalletApi#walletIssueAssetPost")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
issueAssetRequest | IssueAssetRequest |
- Content-Type: application/json
- Accept: application/json
ShareWalletViewingPermissionResponse walletShareViewingPermissionPost(shareWalletViewingPermissionRequest)
Share the viewing credentials for a given Wallet
Share a viewing key that allows viewing all transactions to and from a wallet, including past transactions. The key is shared via p2p messenger directly to the recipient, and is encrypted specifically for the intended recipient address. Upon arrival, the wallet is automatically added to the recipient's node. The viewing key does not enable making any transactions (including rule changes, issuance, and transfers) on behalf of the exported Wallet.
// Import classes:
//import org.qedit.kotqedit.infrastructure.*
//import org.qedit.kotqedit.models.*
val apiInstance = WalletApi()
val shareWalletViewingPermissionRequest : ShareWalletViewingPermissionRequest = // ShareWalletViewingPermissionRequest |
try {
val result : ShareWalletViewingPermissionResponse = apiInstance.walletShareViewingPermissionPost(shareWalletViewingPermissionRequest)
println(result)
} catch (e: ClientException) {
println("4xx response calling WalletApi#walletShareViewingPermissionPost")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling WalletApi#walletShareViewingPermissionPost")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
shareWalletViewingPermissionRequest | ShareWalletViewingPermissionRequest |
ShareWalletViewingPermissionResponse
- Content-Type: application/json
- Accept: application/json
AsyncTaskCreatedResponse walletTransferAssetPost(transferAssetRequest)
Transfer assets [async call]
Transfer a specified amount of a specified Asset Type from a specified Wallet to a specified Address; Transfers are always completely confidential.
// Import classes:
//import org.qedit.kotqedit.infrastructure.*
//import org.qedit.kotqedit.models.*
val apiInstance = WalletApi()
val transferAssetRequest : TransferAssetRequest = // TransferAssetRequest |
try {
val result : AsyncTaskCreatedResponse = apiInstance.walletTransferAssetPost(transferAssetRequest)
println(result)
} catch (e: ClientException) {
println("4xx response calling WalletApi#walletTransferAssetPost")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling WalletApi#walletTransferAssetPost")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
transferAssetRequest | TransferAssetRequest |
- Content-Type: application/json
- Accept: application/json