sendRawTransaction method
Future<SendTransactionResponse>
sendRawTransaction(
- 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);
}