Table of Contents

Class ThirdwebBridgeExtensions

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

Methods

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, 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.

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>