sendTransferNativeCoinTest method

Future<BlockchainResponse> sendTransferNativeCoinTest(
  1. String txhex
)

Implementation

Future<BlockchainResponse> sendTransferNativeCoinTest(String txhex) async {
  final res = await networkClient.postHTTP(
      BitcoinBlockChainNetworkUrls.listOfUrls.first + '/txs/decode',
      {'tx': txhex});
  if (res.data['error'] != null) {
    return BlockchainResponse(
      data: res.data['error'],
      status: BlockchainResponses.error,
    );
  }
  return BlockchainResponse(
    data: {"data": res.data},
    status: BlockchainResponses.success,
  );
}