public class TxBuilderWithRules
extends com.chain.api.Transaction.Builder
[
{"account_id": "an-account-ID"},
{"account_alias": "an-account-alias"},
...
]
| Modifier and Type | Class and Description |
|---|---|
static class |
TxBuilderWithRules.Helper |
static class |
TxBuilderWithRules.WhitelistViolationException
A special case of APIException that indicates that an asset is
being received by an account that is not included in the
asset's whitelist.
|
| Modifier and Type | Field and Description |
|---|---|
protected static String |
whitelistTag |
| Constructor and Description |
|---|
TxBuilderWithRules() |
| Modifier and Type | Method and Description |
|---|---|
com.chain.api.Transaction.Template |
build(com.chain.http.Client client)
Constructs a single transaction template.
|
static com.chain.http.BatchResponse<com.chain.api.Transaction.Template> |
buildBatch(com.chain.http.Client client,
List<com.chain.api.Transaction.Builder> builders)
Builds a batch of transaction templates.
|
protected void |
validate(com.chain.http.Client client) |
protected static final String whitelistTag
public static com.chain.http.BatchResponse<com.chain.api.Transaction.Template> buildBatch(com.chain.http.Client client,
List<com.chain.api.Transaction.Builder> builders)
throws com.chain.exception.ChainException
Transaction.buildBatch to engage the rules engine
for the contents of your batch.client - client object which makes server requestsbuilders - list of transaction builderscom.chain.exception.ChainExceptionpublic com.chain.api.Transaction.Template build(com.chain.http.Client client)
throws com.chain.exception.ChainException
build in class com.chain.api.Transaction.Builderclient - client object which makes requests to the servercom.chain.exception.ChainExceptionprotected void validate(com.chain.http.Client client)
throws com.chain.exception.ChainException
com.chain.exception.ChainExceptionCopyright © 2017. All rights reserved.