Table of Contents

Class ThirdwebBridgeExtensions

Namespace
Thirdweb.Bridge
Assembly
Thirdweb.dll
public static class ThirdwebBridgeExtensions
Inheritance
ThirdwebBridgeExtensions
Inherited Members

Methods

Execute(ThirdwebBridge, IThirdwebWallet, List<Step>, CancellationToken)

Executes a set of transactions and handles status polling.

public static Task<List<ThirdwebTransactionReceipt>> Execute(this ThirdwebBridge bridge, IThirdwebWallet executor, List<Step> steps, CancellationToken cancellationToken = default)

Parameters

bridge ThirdwebBridge

The Thirdweb bridge.

executor IThirdwebWallet

The executor wallet.

steps List<Step>

The steps containing transactions to execute.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<List<ThirdwebTransactionReceipt>>

Execute(ThirdwebBridge, IThirdwebWallet, BuyPrepareData, CancellationToken)

Executes buy transaction(s) and handles status polling.

public static Task<List<ThirdwebTransactionReceipt>> Execute(this ThirdwebBridge bridge, IThirdwebWallet executor, BuyPrepareData preparedBuy, CancellationToken cancellationToken = default)

Parameters

bridge ThirdwebBridge

The Thirdweb bridge.

executor IThirdwebWallet

The executor wallet.

preparedBuy BuyPrepareData

The buy data.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<List<ThirdwebTransactionReceipt>>

The transaction receipts as a list of ThirdwebTransactionReceipt.

Execute(ThirdwebBridge, IThirdwebWallet, OnrampPrepareData, CancellationToken)

Executes a set of post-onramp transactions and handles status polling.

public static Task<List<ThirdwebTransactionReceipt>> Execute(this ThirdwebBridge bridge, IThirdwebWallet executor, OnrampPrepareData preparedOnRamp, CancellationToken cancellationToken = default)

Parameters

bridge ThirdwebBridge

The Thirdweb bridge.

executor IThirdwebWallet

The executor wallet.

preparedOnRamp OnrampPrepareData

The prepared onramp data.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<List<ThirdwebTransactionReceipt>>

The transaction receipts as a list of ThirdwebTransactionReceipt.

Remarks

Note: This method is used for executing transactions after an onramp process.

Execute(ThirdwebBridge, IThirdwebWallet, SellPrepareData, CancellationToken)

Executes sell transaction(s) and handles status polling.

public static Task<List<ThirdwebTransactionReceipt>> Execute(this ThirdwebBridge bridge, IThirdwebWallet executor, SellPrepareData preparedSell, CancellationToken cancellationToken = default)

Parameters

bridge ThirdwebBridge

The Thirdweb bridge.

executor IThirdwebWallet

The executor wallet.

preparedSell SellPrepareData

The prepared sell data.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<List<ThirdwebTransactionReceipt>>

The transaction receipts as a list of ThirdwebTransactionReceipt.

Execute(ThirdwebBridge, IThirdwebWallet, TransferPrepareData, CancellationToken)

Executes a transfer transaction and handles status polling.

public static Task<List<ThirdwebTransactionReceipt>> Execute(this ThirdwebBridge bridge, IThirdwebWallet executor, TransferPrepareData preparedTransfer, CancellationToken cancellationToken = default)

Parameters

bridge ThirdwebBridge

The Thirdweb bridge.

executor IThirdwebWallet

The executor wallet.

preparedTransfer TransferPrepareData

The prepared transfer data.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<List<ThirdwebTransactionReceipt>>

The transaction receipts as a list of ThirdwebTransactionReceipt.

IsSwapRequiredPostOnramp(OnrampPrepareData)

public static bool IsSwapRequiredPostOnramp(this OnrampPrepareData preparedOnramp)

Parameters

preparedOnramp OnrampPrepareData

Returns

bool

ToThirdwebTransaction(Transaction, IThirdwebWallet)

public static Task<ThirdwebTransaction> ToThirdwebTransaction(this Transaction transaction, IThirdwebWallet executor)

Parameters

transaction Transaction
executor IThirdwebWallet

Returns

Task<ThirdwebTransaction>

WaitForStatusCompletion(ThirdwebBridge, string, BigInteger, CancellationToken)

public static Task<StatusData> WaitForStatusCompletion(this ThirdwebBridge bridge, string hash, BigInteger chainId, CancellationToken cancellationToken = default)

Parameters

bridge ThirdwebBridge
hash string
chainId BigInteger
cancellationToken CancellationToken

Returns

Task<StatusData>