FUZD / fuzd-chain-protocol / ethereum / EthereumChainProtocol
Class: EthereumChainProtocol
Implements
Constructors
new EthereumChainProtocol()
new EthereumChainProtocol(
url
,config
,account
):EthereumChainProtocol
Parameters
• url: string
| RequestRPC
<Methods
>
• config
• config.contractTimestamp?: String0x
• config.expectedFinality: number
• config.worstCaseBlockTime: number
• account: ETHAccount
Returns
Defined in
ethereum/index.ts:22
Properties
account
account:
ETHAccount
Defined in
ethereum/index.ts:29
config
readonly
config:object
contractTimestamp?
optional
contractTimestamp:String0x
expectedFinality
expectedFinality:
number
worstCaseBlockTime
worstCaseBlockTime:
number
Implementation of
ChainProtocol.config
Defined in
ethereum/index.ts:24
offset
offset:
number
=0
Defined in
ethereum/index.ts:319
url
readonly
url:string
|RequestRPC
<Methods
>
Defined in
ethereum/index.ts:23
Methods
_estimateGasNeeded()
_estimateGasNeeded(
tx
):Promise
<bigint
>
Parameters
• tx: any
Returns
Promise
<bigint
>
Defined in
ethereum/index.ts:366
_validateDerivationParameters()
_validateDerivationParameters(
parameters
):Promise
<object
|object
>
Parameters
• parameters: DerivationParameters
Returns
Promise
<object
| object
>
Defined in
ethereum/index.ts:349
broadcastSignedTransaction()
broadcastSignedTransaction(
tx
):Promise
<String0x
>
Parameters
• tx: any
Returns
Promise
<String0x
>
Implementation of
ChainProtocol.broadcastSignedTransaction
Defined in
ethereum/index.ts:119
checkValidity()
checkValidity(
chainId
,transactionData
,broadcaster
,transactionParameters
):Promise
<object
|object
>
Parameters
• chainId: String0x
• transactionData: EthereumTransactionData
• broadcaster: BroadcasterSignerData
• transactionParameters: TransactionParametersUsed
Returns
Promise
<object
| object
>
Implementation of
ChainProtocol.checkValidity
Defined in
ethereum/index.ts:183
generatePaymentTransaction()
generatePaymentTransaction(
transactionData
,maxFeePerGas
,from
,diffToCover
):object
Parameters
• transactionData: EthereumTransactionData
• maxFeePerGas: bigint
• from: String0x
• diffToCover: bigint
Returns
object
cost
cost:
bigint
transaction
transaction:
EthereumTransactionData
Implementation of
ChainProtocol.generatePaymentTransaction
Defined in
ethereum/index.ts:300
getBalance()
getBalance(
account
):Promise
<bigint
>
Parameters
• account: String0x
Returns
Promise
<bigint
>
Implementation of
ChainProtocol.getBalance
Defined in
ethereum/index.ts:111
getBroadcaster()
getBroadcaster(
parameters
,forAddress
):Promise
<BroadcasterSignerData
>
Parameters
• parameters: DerivationParameters
• forAddress: String0x
Returns
Promise
<BroadcasterSignerData
>
Implementation of
ChainProtocol.getBroadcaster
Defined in
ethereum/index.ts:171
getCurrentDerivationParameters()
getCurrentDerivationParameters():
Promise
<DerivationParameters
>
Returns
Promise
<DerivationParameters
>
Implementation of
ChainProtocol.getCurrentDerivationParameters
Defined in
ethereum/index.ts:165
getGasFee()
getGasFee(
executionData
):Promise
<GasEstimate
>
Parameters
• executionData
• executionData.maxFeePerGasAuthorized: String0x
Returns
Promise
<GasEstimate
>
Implementation of
ChainProtocol.getGasFee
Defined in
ethereum/index.ts:135
getNonce()
getNonce(
account
):Promise
<String0x
>
Parameters
• account: String0x
Returns
Promise
<String0x
>
Implementation of
ChainProtocol.getNonce
Defined in
ethereum/index.ts:127
getTimestamp()
getTimestamp():
Promise
<number
>
Returns
Promise
<number
>
Implementation of
ChainProtocol.getTimestamp
Defined in
ethereum/index.ts:320
getTransactionStatus()
getTransactionStatus(
transaction
):Promise
<TransactionStatus
>
Parameters
• transaction: Transaction
Returns
Promise
<TransactionStatus
>
Implementation of
ChainProtocol.getTransactionStatus
Defined in
ethereum/index.ts:34
increaseTime()
increaseTime(
amount
):Promise
<void
>
Parameters
• amount: number
Returns
Promise
<void
>
Implementation of
ChainProtocol.increaseTime
Defined in
ethereum/index.ts:341
isTransactionPending()
isTransactionPending(
txHash
):Promise
<boolean
>
Parameters
• txHash: String0x
Returns
Promise
<boolean
>
Implementation of
ChainProtocol.isTransactionPending
Defined in
ethereum/index.ts:97
signTransaction()
signTransaction(
chainId
,transactionData
,broadcaster
,transactionParameters
):Promise
<SignedTransactionInfo
>
Parameters
• chainId: String0x
• transactionData: EthereumTransactionData
• broadcaster: BroadcasterSignerData
• transactionParameters: TransactionParametersUsed
Returns
Promise
<SignedTransactionInfo
>
Implementation of
ChainProtocol.signTransaction
Defined in
ethereum/index.ts:218
signVoidTransaction()
signVoidTransaction(
chainId
,broadcaster
,transactionParameters
):Promise
<SignedTransactionInfo
>
Parameters
• chainId: String0x
• broadcaster: BroadcasterSignerData
• transactionParameters: TransactionParametersUsed
Returns
Promise
<SignedTransactionInfo
>
Implementation of
ChainProtocol.signVoidTransaction
Defined in
ethereum/index.ts:257
validateDerivationParameters()
validateDerivationParameters(
parameters
):Promise
<object
|object
>
Parameters
• parameters: DerivationParameters
Returns
Promise
<object
| object
>
Implementation of
ChainProtocol.validateDerivationParameters
Defined in
ethereum/index.ts:155