| 限定符和类型 | 字段和说明 |
|---|---|
String |
alias
User specified, unique identifier.
|
Map<String,Object> |
definition
User-specified, arbitrary/unstructured data visible across blockchain networks.
|
int |
quorum
The number of keys required to sign an issuance of the asset.
|
List<String> |
rootXpubs
The list of keys used to create the issuance program for the asset.
|
| 构造器和说明 |
|---|
Builder()
Default constructor initializes the list of keys.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Asset.Builder |
addDefinitionField(String key,
Object value)
Adds a field to the existing definition object (initializing the object if it
doesn't exist).
|
Asset.Builder |
addRootXpub(String xpub)
Adds a key to the builder's list.
|
Asset |
create(Client client)
Creates an asset object.
|
Asset.Builder |
setAlias(String alias)
Sets the alias on the builder object.
|
Asset.Builder |
setDefinition(Map<String,Object> definition)
Sets the asset definition object.
|
Asset.Builder |
setQuorum(int quorum)
Sets the quorum of the issuance program.
|
Asset.Builder |
setRootXpubs(List<String> xpubs)
Sets the builder's list of keys.
|
@SerializedName(value="root_xpubs") public List<String> rootXpubs
addRootXpub(String) or
setRootXpubs(List) before calling create(Client).public String alias
public int quorum
setQuorum(int) before calling
create(Client).public Asset create(Client client) throws BytomException
client - client client object that makes request to the coreBytomException - Exceptionpublic Asset.Builder setAlias(String alias)
alias - aliaspublic Asset.Builder addDefinitionField(String key, Object value)
key - key of the definition fieldvalue - value of the definition fieldpublic Asset.Builder setDefinition(Map<String,Object> definition)
definition - asset definition objectpublic Asset.Builder setQuorum(int quorum)
create(Client).quorum - proposed quorumpublic Asset.Builder addRootXpub(String xpub)
setRootXpubs(List) must be called before
create(Client).xpub - keypublic Asset.Builder setRootXpubs(List<String> xpubs)
addRootXpub(String) must be called before
create(Client).xpubs - list of xpubsCopyright © 2018. All rights reserved.