LtbLightning / bdk-rn

Bitcoin Development Kit - React Native Module
MIT License
50 stars 15 forks source link

Implement getTransactions function #3

Closed jenkijo closed 2 years ago

jenkijo commented 2 years ago

Description

This PR add getTransactions function which return all transactions of wallet, include confirmed and unconfirmed transactions

Example response

{
   "confirmed":{
      "29b326a7b5fa83c7a910ed4ffe6631f3e35cb812b9b2ba511c20346ba9f596d5":{
         "fees":"18978",
         "height":"2254565",
         "received":"269152",
         "sent":"0",
         "timestamp":"1654657187"
      },
      "3e323b658af359fcd886a422c2b7ea149fcafe1434278005e020cac4f4ac8ad6":{
         "fees":"141",
         "height":"2254398",
         "received":"72000",
         "sent":"0",
         "timestamp":"1654568599"
      },
      "a429080fee431be80056a87cfbc784468c628c4cc9d64f4a207f23776874cf90":{
         "fees":"141",
         "height":"2254563",
         "received":"10000",
         "sent":"0",
         "timestamp":"1654656069"
      }
   },
   "unconfirmed":{

   }
}

Checklists

Platforms

New features

Issues

bdk-swift always return null transaction, I'm not familiar with Swift, but I think the issue is from bdk-swift itself