Skip to content

FUZD / fuzd-chain-protocol / index / ExecutorChainProtocol

Interface: ExecutorChainProtocol<TransactionDataType>

Type Parameters

TransactionDataType

Methods

broadcastSignedTransaction()

broadcastSignedTransaction(tx): Promise<String0x>

Parameters

tx

any

Returns

Promise<String0x>

Defined in

index.ts:81


checkValidity()

checkValidity(chainId, data, broadcaster, transactionParameters): Promise<TransactionValidity>

Parameters

chainId

IntegerString

data

TransactionDataType

broadcaster

BroadcasterSignerData

transactionParameters

TransactionParametersUsed

Returns

Promise<TransactionValidity>

Defined in

index.ts:101


computeMaxCost()

computeMaxCost(chainId, transactionData, maxFeePerGasAuthorized): Promise<bigint>

Parameters

chainId

IntegerString

transactionData

TransactionDataType

maxFeePerGasAuthorized

String0x

Returns

Promise<bigint>

Defined in

index.ts:108


generatePaymentTransaction()

generatePaymentTransaction(transaction, maxFeePerGas, from, diffToCover): object

Parameters

transaction

TransactionDataType

maxFeePerGas

bigint

from

String0x

diffToCover

bigint

Returns

object

cost

cost: bigint

transaction

transaction: TransactionDataType

Defined in

index.ts:125


getBalance()

getBalance(account): Promise<bigint>

Parameters

account

String0x

Returns

Promise<bigint>

Defined in

index.ts:80


getBroadcaster()

getBroadcaster(account, parameters, forAddress): Promise<BroadcasterSignerData>

Parameters

account

ETHAccount

parameters

DerivationParameters

forAddress

String0x

Returns

Promise<BroadcasterSignerData>

Defined in

index.ts:95


getDerivationParameters()

getDerivationParameters(account): Promise<DerivationParameters>

Parameters

account

ETHAccount

Returns

Promise<DerivationParameters>

Defined in

index.ts:94


getGasFee()

getGasFee(executionData): Promise<GasEstimate>

Parameters

executionData
maxFeePerGasAuthorized

String0x

Returns

Promise<GasEstimate>

Defined in

index.ts:83


getNonce()

getNonce(account): Promise<String0x>

Parameters

account

String0x

Returns

Promise<String0x>

Defined in

index.ts:82


getTransactionStatus()

getTransactionStatus(transaction): Promise<TransactionStatus>

Parameters

transaction

Transaction

Returns

Promise<TransactionStatus>

Defined in

index.ts:78


isTransactionPending()

isTransactionPending(txHash): Promise<boolean>

Parameters

txHash

String0x

Returns

Promise<boolean>

Defined in

index.ts:79


requiredPreliminaryTransaction()?

optional requiredPreliminaryTransaction(chainId, broadcaster, account): TransactionDataType

Parameters

chainId

IntegerString

broadcaster

BroadcasterSignerData

account

String0x

Returns

TransactionDataType

Defined in

index.ts:85


signTransaction()

signTransaction(chainId, data, broadcaster, transactionParameters): Promise<SignedTransactionInfo>

Parameters

chainId

IntegerString

data

TransactionDataType

broadcaster

BroadcasterSignerData

transactionParameters

TransactionParametersUsed

Returns

Promise<SignedTransactionInfo>

Defined in

index.ts:113


signVoidTransaction()?

optional signVoidTransaction(chainId, broadcaster, transactionParameters): Promise<SignedTransactionInfo>

Parameters

chainId

IntegerString

broadcaster

BroadcasterSignerData

transactionParameters

TransactionParametersUsed

Returns

Promise<SignedTransactionInfo>

Defined in

index.ts:119


validateDerivationParameters()

validateDerivationParameters(parameters): Promise<{ success: true; } | { error: string; success: false; }>

Parameters

parameters

DerivationParameters

Returns

Promise<{ success: true; } | { error: string; success: false; }>

Defined in

index.ts:91