Skip to main content

SendRawTransaction

Send a raw transaction to the blockchain from the connected wallet.

Usage

Create a TransactionRequest struct with the raw transaction data, and pass it to this method.

The method will return the transaction receipt once the transaction is mined.

var data = await sdk.wallet.SendRawTransaction(new TransactionRequest()
{
from = "{{wallet_address}}", // The address the transaction is sent from.
to = "{{wallet_address}}", // The address the transaction is directed to.
data = "{{data}}", // The data to send with the transaction
value = "{{value}}", // send native tokens with the contract call
gasLimit = "{{gasLimit}}", // The maximum amount of gas this transaction is permitted to use.
gasPrice = "{{gaspPrice}}", // The price (in wei) per unit of gas this transaction will pay.
});