Class ThirdwebBridgeExtensions
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
ThirdwebBridgeThe Thirdweb bridge.
executor
IThirdwebWalletThe executor wallet.
preparedBuy
BuyPrepareDataThe buy data.
cancellationToken
CancellationTokenThe 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
ThirdwebBridgeThe Thirdweb bridge.
executor
IThirdwebWalletThe executor wallet.
preparedSell
SellPrepareDataThe prepared sell data.
cancellationToken
CancellationTokenThe 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
ThirdwebBridgeThe Thirdweb bridge.
executor
IThirdwebWalletThe executor wallet.
preparedTransfer
TransferPrepareDataThe prepared transfer data.
cancellationToken
CancellationTokenThe 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
Transactionexecutor
IThirdwebWallet
Returns
WaitForStatusCompletion(ThirdwebBridge, string, BigInteger, CancellationToken)
public static Task<StatusData> WaitForStatusCompletion(this ThirdwebBridge bridge, string hash, BigInteger chainId, CancellationToken cancellationToken = default)
Parameters
bridge
ThirdwebBridgehash
stringchainId
BigIntegercancellationToken
CancellationToken