The tx hash of which to get the corresponding tx of.
boolean when transaction of given hash not exists.
Executes the transactions.
A transaction to execute.
A platform address of sender.
True, if the transaction is executed successfully. False, if the transaction is not executed.
Execute the inputs of the AssetTransfer transaction in the CodeChain VM.
The transaction that its inputs will be executed.
Parameters of the outputs as an array.
Indices of inputs to run in VM.
The results of VM execution.
Gets asset of given transaction hash and index.
The tracker of previous input transaction.
The index of output in the transaction.
The shard id of output in the transaction.
The specific block number to get the asset from
Asset, if asset exists, Else, returns null.
Gets asset scheme of given tracker of the mint transaction.
The tracker of the mint transaction.
The shard id of Asset Scheme.
The specific block number to get the asset scheme from
AssetScheme, if asset scheme exists. Else, returns null.
Gets asset scheme of asset type
The type of Asset.
The shard id of Asset Scheme.
The specific block number to get the asset scheme from
AssetScheme, if asset scheme exists. Else, returns null.
Gets balance of an account of given address, recorded in the block of given blockNumber. If blockNumber is not given, then returns balance recorded in the most recent block.
An account address
The specific block number to get account's balance at given address.
Balance of account at the specified block, or null if no such block exists.
Gets the id of the latest block.
A number and the hash of the latest block.
Gets number of the latest block.
Number of the latest block.
Gets block of given block hash.
The block hash or number of which to get the block of
Block, if block exists. Else, returns null.
Gets block hash of given blockNumber.
The block number of which to get the block hash of.
BlockHash, if block exists. Else, returns null.
Gets the number of transactions within a block that corresponds with the given hash.
The block hash.
A number of transactions within a block.
Gets the common parameters.
A block nubmer.
The coomon params, or null if the given block number is not mined yet.
Gets a hint to find out why the transaction failed.
A transaction hash from which the error hint would get.
Null if the transaction is not involved in the chain or succeeded. If the transaction failed, this should return the reason for the transaction failing.
Gets the platform account in the genesis block
The platform addresses in the genesis block.
Gets the sequence of the chain's metadata.
A block number.
A sequence number, or null if the given block number is not mined yet.
Gets the minimum transaction fee of the given transaction type in the given block.
The minimum transaction fee of the corresponding transactionType in the unit of CCC.
Gets the mining reward of the given block number.
A block nubmer.
The amount of mining reward, or null if the given block number is not mined yet.
Gets the network ID of the node.
A network ID, e.g. "tc".
Gets the number of shards, at the state of the given blockNumber
A block number.
A number of shards
Gets pending transactions that have the insertion timestamp within the given range.
The lower bound of the insertion timestamp.
The upper bound of the insertion timestamp.
List of SignedTransaction, with each tx has null for blockNumber/blockHash/transactionIndex.
Gets the count of the pending transactions within the given range from the transaction queues.
The lower bound of collected pending transactions. If null, there is no lower bound.
The upper bound of collected pending transactions. If null, there is no upper bound.
The count of the pending transactions.
Get the list of accounts that can generate the blocks at the given block number.
A list of possible authors, or null if anyone can generate the block
Gets the regular key of an account of given address, recorded in the block of given blockNumber. If blockNumber is not given, then returns the regular key in the most recent block.
An account address
The specific block number to get account's regular key at given address.
The regular key of account at specified block.
Gets the owner of a regular key, recorded in the block of given blockNumber.
A regular key.
A block number.
The platform address that can use the regular key at the specified block.
Gets seq of an account of given address, recorded in the block of given blockNumber. If blockNumber is not given, then returns seq recorded in the most recent block.
An account address
The specific block number to get account's seq at given address.
Seq of account at the specified block, or null if no such block exists.
Gets the shard id of the given hash of a CreateShard transaction.
A transaction hash of a CreateShard transaction.
A block number.
A shard id.
Gets the owners of the shard.
A shard id.
The platform addresses of the owners.
Gets the root of the shard, at the state of the given blockNumber.
A shard Id.
A block number.
The hash of root of the shard.
Gets the users of the shard.
A shard id.
The platform addresses of the users.
Gets the text of the given hash of tx with Store type.
The tx hash of the Store tx.
The specific block number to get the text from
Text, if text exists. Else, returns null.
Gets SignedTransaction of given hash. Else returns null.
SignedTransaction's hash
SignedTransaction, or null when SignedTransaction was not found.
Gets a transaction of given hash.
The tracker of which to get the corresponding transaction of.
A transaction, or null when transaction of given hash not exists.
Gets results of a transaction of given tracker.
The transaction hash of which to get the corresponding transaction of.
Indicating milliseconds to wait the transaction to be confirmed.
List of boolean, or null when transaction of given hash not exists.
Get the signer of the given transaction hash.
The tx hash of which to get the signer of the tx.
A platform address of the signer, or null if the transaction hash does not exist.
Checks whether an asset is spent or not.
The tx hash of AssetMintTransaction or AssetTransferTransaction.
The index of output in the transaction.
The shard id of an Asset.
The specific block number to get the asset from.
True, if the asset is spent. False, if the asset is not spent. Null, if no such asset exists.
Sends SignedTransaction to CodeChain's network.
SignedTransaction
SignedTransaction's hash.
Signs a tx with the given account and sends it to CodeChain's network.
The tx to send
The account to sign the tx
The fee of the tx
The account's passphrase
The seq of the tx
SignedTransaction's hash
Generated using TypeDoc
Queries whether the chain has the transaction of given tx.