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:79


checkValidity()

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

Parameters

chainId: String0x

data: TransactionDataType

broadcaster: BroadcasterSignerData

transactionParameters: TransactionParametersUsed

Returns

Promise<TransactionValidity>

Defined in

index.ts:95


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:113


getBalance()

getBalance(account): Promise<bigint>

Parameters

account: String0x

Returns

Promise<bigint>

Defined in

index.ts:78


getBroadcaster()

getBroadcaster(parameters, forAddress): Promise<BroadcasterSignerData>

Parameters

parameters: DerivationParameters

forAddress: String0x

Returns

Promise<BroadcasterSignerData>

Defined in

index.ts:93


getCurrentDerivationParameters()

getCurrentDerivationParameters(): Promise<DerivationParameters>

Returns

Promise<DerivationParameters>

Defined in

index.ts:92


getGasFee()

getGasFee(executionData): Promise<GasEstimate>

Parameters

executionData

executionData.maxFeePerGasAuthorized: String0x

Returns

Promise<GasEstimate>

Defined in

index.ts:81


getNonce()

getNonce(account): Promise<String0x>

Parameters

account: String0x

Returns

Promise<String0x>

Defined in

index.ts:80


getTransactionStatus()

getTransactionStatus(transaction): Promise<TransactionStatus>

Parameters

transaction: Transaction

Returns

Promise<TransactionStatus>

Defined in

index.ts:76


isTransactionPending()

isTransactionPending(txHash): Promise<boolean>

Parameters

txHash: String0x

Returns

Promise<boolean>

Defined in

index.ts:77


requiredPreliminaryTransaction()?

optional requiredPreliminaryTransaction(chainId, broadcaster, account): TransactionDataType

Parameters

chainId: string

broadcaster: BroadcasterSignerData

account: String0x

Returns

TransactionDataType

Defined in

index.ts:83


signTransaction()

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

Parameters

chainId: String0x

data: TransactionDataType

broadcaster: BroadcasterSignerData

transactionParameters: TransactionParametersUsed

Returns

Promise<SignedTransactionInfo>

Defined in

index.ts:101


signVoidTransaction()?

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

Parameters

chainId: String0x

broadcaster: BroadcasterSignerData

transactionParameters: TransactionParametersUsed

Returns

Promise<SignedTransactionInfo>

Defined in

index.ts:107


validateDerivationParameters()

validateDerivationParameters(parameters): Promise<object | object>

Parameters

parameters: DerivationParameters

Returns

Promise<object | object>

Defined in

index.ts:89