sendTransaction method
Implementation
Future<BlockchainResponse> sendTransaction(String txhex) async {
final res = await networkClient.postHTTP('', {
"method": "submit",
"params": [
{"tx_blob": txhex}
]
});
if (res.isSuccess) {
return BlockchainResponse(
data: {"txHash": res.data['result']['tx_json']['hash']},
status: BlockchainResponses.success,
);
} else {
return BlockchainResponse(
data: res.data,
status: BlockchainResponses.error,
);
}
}