Package | Description |
---|---|
com.sap.cloud.sdk.services.blockchain.multichain.service | |
com.sap.cloud.sdk.services.blockchain.multichain.utils |
Modifier and Type | Method and Description |
---|---|
String |
MultichainService.addMultiSigAddress(int nRequired,
List<String> addresses)
Creates a pay-to-scripthash (P2SH) multiSig address and adds it to the wallet.
|
String |
MultichainService.appendRawTransaction(String txHex,
List<MultichainUTXO> inputs,
Map<String,Integer> outputs,
List<String> data,
String action)
This works like createrawtransaction but adds the given inputs and (regular or metadata) outputs to the raw
transaction specified in tx-hex, rather than creating a new transaction.
|
MultichainKeyPair |
MultichainService.createKeyPair()
Generates one public/private key pairs, which are not stored in the wallet or drawn from the node’s key pool,
ready for external key management.
|
List<MultichainKeyPair> |
MultichainService.createKeyPairs(int count)
Generates one or more public/private key pairs, which are not stored in the wallet or drawn from the node’s key
pool, ready for external key management.
|
String |
MultichainService.createRawSendFrom(String fromAddress,
Object assetObject,
List<Map<String,String>> data)
Creates a transaction spending the specified inputs, sending to the given addresses.
|
String |
MultichainService.createRawTransaction(List<MultichainUTXO> inputs,
Map<String,Integer> outputs,
List<String> data,
String action)
Creates a transaction spending the specified inputs, sending to the given addresses.
|
String |
MultichainService.createStream(String streamName,
boolean open)
Creates a new stream on the blockchain called name.
|
String |
MultichainService.createStreamFromAddress(String fromAddress,
String streamName,
boolean open)
This works like create, but with control over the from-address used to create the stream.
|
MultichainTransaction |
MultichainService.decodeRawTransaction(String txHex)
Returns a JSON object describing the serialized transaction in tx-hex.
|
org.springframework.http.ResponseEntity<String> |
MultichainRequest.execute()
Executes the HTTP call
|
<T> T |
MultichainService.extractMultichainResult(Class<T> contentClass,
org.springframework.http.ResponseEntity<String> response)
Convenience method to extract service responses
|
MultichainAssetTransaction |
MultichainService.getAssetTransaction(String asset,
String txid)
Retrieves a specific transaction txid involving asset, passed as an asset name, ref or issuance txid, to which
the node must be subscribed.
|
MultichainBlock |
MultichainService.getBlock(String heightOrHash)
Returns information about the block with hash (retrievable from getblockhash) or at the given height in the
active chain.
|
MultichainInfo |
MultichainService.getInfo()
Retrieves Meta Info from MC Node
|
io.vavr.control.Option<MultichainResult> |
MultichainService.getLatestEntryOnStream(String streamName,
String key)
Get latest entry for key in the stream
|
String |
MultichainService.getNewAddress()
Generates a public/private key pair and adds it to the wallet.
|
MultichainTransaction |
MultichainService.getRawTransaction(String txId)
If verbose is 1, returns a JSON object describing transaction txid.
|
MultichainResult |
MultichainService.getStreamItem(String streamName,
String txId,
boolean verbose)
Retrieves a specific item with txid from stream, passed as a stream name, ref or creation txid, to which the node
must be subscribed.
|
String |
MultichainService.grant(Iterable<String> toAddresses,
Collection<MultichainPermission> permissions)
Grants permissions to addresses, a comma-separated list of addresses.
|
String |
MultichainService.grantForAddress(String toAddress,
Collection<MultichainPermission> permissions)
Grants permissions to an address.
|
String |
MultichainService.grantForAddressFrom(String fromAddress,
String toAddress,
Collection<MultichainPermission> permissions)
This works like grantForAddress, but with control over the from-address used to grant the permissions.
|
String |
MultichainService.grantFrom(String fromAddress,
Iterable<String> toAddresses,
Collection<MultichainPermission> permissions)
This works like grant, but with control over the from-address used to grant the permissions.
|
void |
MultichainService.grantWritePermissionsOnStream(String streamName,
Iterable<String> addresses)
Grants global receive and send permission and local write permission on stream
|
void |
MultichainService.importAddress(String address,
String label,
boolean rescan)
Adds the address (or a full public key) to the wallet, without an associated private key.
|
void |
MultichainService.importAddresses(List<String> addresses,
String label,
boolean rescan)
Adds the array of addresses (or of full public keys) to the wallet, without an associated private key.
|
List<MultichainAddressResult> |
MultichainService.listAddresses(List<String> addresses,
boolean verbose)
Returns information about the passed addresses in the wallet.
|
List<MultichainAddressResult> |
MultichainService.listAllAddresses()
Returns information about all addresses in the wallet.
|
List<MultichainAddressResult> |
MultichainService.listAllAddresses(boolean verbose)
Returns information about all addresses in the wallet.
|
List<MultichainPermissionResult> |
MultichainService.listAllPermissions(Iterable<String> addresses,
boolean verbose)
Returns a list of all permissions which have been explicitly granted to addresses.
|
List<MultichainPermissionResult> |
MultichainService.listAllPermissionsForAddress(String address,
boolean verbose)
Returns a list of all permissions which have been explicitly granted to addresses.
|
List<MultichainResult> |
MultichainService.listAllStreamItems(String streamName)
Lists all items in stream, passed as a stream name, ref or creation txid.
|
List<MultichainResult> |
MultichainService.listAllStreamKeys(String streamName,
boolean verbose,
int count,
int start,
boolean localOrdering)
Provides information about all keys in stream, passed as a stream name, ref or creation txid Hex-data entries are
decoded to ASCII strings.
|
List<MultichainStream> |
MultichainService.listAllStreams()
Returns information about all streams created on the blockchain.
|
List<MultichainAsset> |
MultichainService.listAssets() |
List<MultichainAsset> |
MultichainService.listAssets(Map<String,Object> args)
Pass an asset name, ref or issuance txid in assets to retrieve information about one asset only, an array thereof
for multiple assets, or * for all assets.
|
List<MultichainBlock> |
MultichainService.listBlocks(String blocks,
boolean verbose)
Returns information about the blocks specified, on the active chain only.
|
List<MultichainUTXO> |
MultichainService.listLockUnspent()
Returns a list of locked unspent transaction outputs in the wallet.
|
List<MultichainPermissionResult> |
MultichainService.listPermissions(Collection<MultichainPermission> permissions,
boolean verbose)
Returns a list of all permissions which have been explicitly granted to addresses.
|
List<MultichainPermissionResult> |
MultichainService.listPermissions(Collection<MultichainPermission> permissions,
Iterable<String> addresses,
boolean verbose)
Returns a list of all permissions which have been explicitly granted to addresses.
|
List<MultichainResult> |
MultichainService.listStreamItems(String streamName,
boolean verbose,
int count,
int start,
boolean localOrdering)
Lists items in stream, passed as a stream name, ref or creation txid.
|
List<MultichainResult> |
MultichainService.listStreamKeyItems(String streamName,
String key,
boolean verbose,
int count,
int start,
boolean localOrdering)
This works like listStreamItems, but listing items with the given key only.
|
List<MultichainResult> |
MultichainService.listStreamKeys(String streamName,
List<String> keys,
boolean verbose,
int count,
int start,
boolean localOrdering)
Provides information about keys in stream, passed as a stream name, ref or creation txid Hex-data entries are
decoded to ASCII strings.
|
List<MultichainResult> |
MultichainService.listStreamPublisherItems(String streamName,
String address,
boolean verbose,
int count,
int start,
boolean localOrdering)
This works like liststreamitems, but listing items published by the given address only.
|
List<MultichainPublisher> |
MultichainService.listStreamPublishers(String streamName,
List<String> addresses,
boolean verbose,
int count,
int start,
boolean localOrdering)
Provides information about publishers who have written to stream, passed as a stream name, ref or creation txid
|
List<MultichainStream> |
MultichainService.listStreams(List<String> streams)
Returns information about streams created on the blockchain.
|
List<MultichainUTXO> |
MultichainService.listUnspent(int minconf,
int maxconf,
List<String> addresses)
Returns a list of unspent transaction outputs (UTXO) in the wallet, with between minconf and maxconf
confirmations.
|
String |
MultichainService.publishJson(String streamName,
List<String> keys,
Map<String,Object> value,
String options)
Publishes an item (JSON data structure consisting of Map and Lists objects) in a stream.
|
String |
MultichainService.publishStringAsHex(String streamName,
List<String> keys,
String value,
String options)
Publishes an item (key-value pair) in a stream.
|
String |
MultichainService.publishStringAsHexFrom(String fromAddress,
String streamName,
List<String> keys,
String value,
String options)
This works like publish, but publishes the item from from-address.
|
String |
MultichainService.revoke(Iterable<String> toAddresses,
Collection<MultichainPermission> permissions)
Revokes permissions from addresses, a comma-separated list of addresses.
|
String |
MultichainService.revokeForAddress(String toAddress,
Collection<MultichainPermission> permissions)
Revokes permissions from an address.
|
String |
MultichainService.revokeForAddressFrom(String fromAddress,
String toAddress,
Collection<MultichainPermission> permissions)
This works like revoke, but with control over the from-address used to revoke the permissions.
|
String |
MultichainService.revokeFrom(String fromAddress,
Iterable<String> toAddresses,
Collection<MultichainPermission> permissions)
This works like revoke, but with control over the from-address used to revoke the permissions.
|
void |
MultichainService.revokeWritePermissionsOnStream(String streamName,
Iterable<String> addresses)
Revoke global receive and send permission and local write permission on stream
|
String |
MultichainService.sendRawTransaction(String signedRawTransaction)
Validates the raw transaction in tx-hex and transmits it to the network, returning the txid.
|
MultichainSignedRawTransaction |
MultichainService.signRawTransaction(String rawTransaction,
List<Object> parentOutputObjects,
Collection<String> privateKeys)
Signs the raw transaction in tx-hex, often provided by a previous call to createrawtransaction or
createrawsendfrom.
|
Modifier and Type | Method and Description |
---|---|
static String |
HexEncodingUtils.fromHex(String hex)
Convert hex value to String using UTF-8,..
|
static String |
HexEncodingUtils.toHex(String arg)
Convert String to hex value using UTF-8.
|
Copyright © 2020 SAP SE. All rights reserved.