LatticeImpl

class LatticeImpl(chainConfig: ChainConfig, connectingNodeConfig: ConnectingNodeConfig, credentialConfig: CredentialConfig, options: Options? = null) : Lattice

Constructors

Link copied to clipboard
constructor(chainConfig: ChainConfig, connectingNodeConfig: ConnectingNodeConfig, credentialConfig: CredentialConfig, options: Options? = null)

Functions

Link copied to clipboard
open override fun callContract(contractAddress: String, data: String, payload: String, amount: Long, joule: Long): String

调用合约

Link copied to clipboard
open override fun callContractWaitReceipt(contractAddress: String, data: String, payload: String, amount: Long, joule: Long, retryPolicy: RetryPolicy<Throwable>): Receipt

调用合约并且等待回执

Link copied to clipboard
open override fun deployContract(data: String, payload: String, amount: Long, joule: Long): String

部署合约

Link copied to clipboard
open override fun deployContractWaitReceipt(data: String, payload: String, amount: Long, joule: Long, retryPolicy: RetryPolicy<Throwable>): Receipt

部署合约并等待回执

Link copied to clipboard
open override fun preCallContract(contractAddress: String, data: String, payload: String, amount: Long, joule: Long): Receipt

预调用合约

Link copied to clipboard
open override fun transfer(linker: String, payload: String, amount: Long, joule: Long): String

发起转账

Link copied to clipboard
open override fun transferWaitReceipt(linker: String, payload: String, amount: Long, joule: Long, retryPolicy: RetryPolicy<Throwable>): Receipt

发起转账并等待回执