sendRawTransaction method

Future<SendTransactionResponse> sendRawTransaction(
  1. String transactionEnvelopeXdr
)

Implementation

Future<SendTransactionResponse> sendRawTransaction(
    String transactionEnvelopeXdr) async {
  JsonRpcMethod getAccount = JsonRpcMethod("sendTransaction",
      args: {'transaction': transactionEnvelopeXdr});
  dio.Response response = await _dio.post(_serverUrl,
      data: json.encode(getAccount), options: dio.Options(headers: _headers));
  if (enableLogging) {
    log("sendTransaction response: $response");
  }
  return SendTransactionResponse.fromJson(response.data);
}