Web3ClientWithCredential

class Web3ClientWithCredential(client: Web3j, account: Account, retries: Int, sleepDuration: Int) extends RawTransactionManager
class RawTransactionManager
class TransactionManager
class Object
trait Matchable
class Any

Value members

Concrete methods

def call[IN, OUT, T](function: ABIFunction[IN, OUT])(to: Address, params: T, nonce: Option[BigInt], gasPrice: Option[BigInt], gasLimit: Option[BigInt], value: BigInt, block: Option[BigInt])(using converter: ConvertFromScala[T, IN]): Try[OUT]

模拟执行

模拟执行

def read[IN, OUT, T](function: ABIFunction[IN, OUT])(to: Address, params: T, block: Option[BigInt])(using converter: ConvertFromScala[T, IN]): Try[OUT]

读取合约数据

读取合约数据

def transact[IN, OUT, T](function: ABIFunction[IN, OUT])(to: Address, params: T, nonce: Option[BigInt], gasPrice: Option[BigInt], gasLimit: Option[BigInt], value: BigInt)(using converter: ConvertFromScala[T, IN]): Try[TransactionReceipt]

发起交易

发起交易

def transfer(to: Address, value: BigDecimal): Try[TxHash]

Inherited methods

@throws(java.io.IOException)
def getCode(x$0: String, x$1: DefaultBlockParameter): EthGetCode
Inherited from
RawTransactionManager
def getFromAddress(): String
Inherited from
TransactionManager
def getTxHashVerifier(): TxHashVerifier
Inherited from
RawTransactionManager
@throws(java.io.IOException)
def sendCall(x$0: String, x$1: String, x$2: DefaultBlockParameter): String
Inherited from
RawTransactionManager
@throws(java.io.IOException)
def sendEIP1559Transaction(x$0: Long, x$1: BigInteger, x$2: BigInteger, x$3: BigInteger, x$4: String, x$5: String, x$6: BigInteger, x$7: Boolean): EthSendTransaction
Inherited from
RawTransactionManager
@throws(java.io.IOException)
def sendEIP1559Transaction(x$0: Long, x$1: BigInteger, x$2: BigInteger, x$3: BigInteger, x$4: String, x$5: String, x$6: BigInteger): EthSendTransaction
Inherited from
TransactionManager
@throws(java.io.IOException)
def sendTransaction(x$0: BigInteger, x$1: BigInteger, x$2: String, x$3: String, x$4: BigInteger, x$5: Boolean): EthSendTransaction
Inherited from
RawTransactionManager
@throws(java.io.IOException)
def sendTransaction(x$0: BigInteger, x$1: BigInteger, x$2: String, x$3: String, x$4: BigInteger): EthSendTransaction
Inherited from
TransactionManager
def setTxHashVerifier(x$0: TxHashVerifier): Unit
Inherited from
RawTransactionManager
def sign(x$0: RawTransaction): String
Inherited from
RawTransactionManager
@throws(java.io.IOException)
def signAndSend(x$0: RawTransaction): EthSendTransaction
Inherited from
RawTransactionManager