June 24, 2017, 01:13:15 am

Author Topic: post api on testnet not working  (Read 1042 times)

srivatsav

  • Newbie
  • *
  • Posts: 2
    • View Profile
post api on testnet not working
« on: September 09, 2015, 12:21:26 pm »
i'm trying to transfer bitcoins from testnet bitcoin using post api from coin prism -

{
  "fees": 10000,
  "from": "mgAQANqJJGTG9HBwaiBjYJefj39tE1dLoX",
  "to": [
    {
      "address": "n4hdbNAstpvcwWLWTRnayX4jsc1YTLuxqd",
      "amount": "1000000"
    }
  ]

when i run this query on google postman - i get an HTTP 200 OK successs, however when i check in the ui , the values is not updated ( even after 20 mins ), also explorer doesn't show any transactions - any help on this will be appreciated.

Regards,
Srivatsav

srivatsav

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: post api on testnet not working
« Reply #1 on: September 18, 2015, 12:15:07 pm »
there are 3 steps to post an transaction bitcoin network

1. create an usigned transaction
2. sign the transaction

during the signing of transaction it's should be in hex format - i used following website http://lenschulwitz.com/base58 to convert private key to hex format ( removed first 2 characters and last 10 characters e.g output '80BE6DBF30285BBB969163A1636D1002DCCF06D21D66D86A161F9B0F36253D99E50104BED60F'

would be
'BE6DBF30285BBB969163A1636D1002DCCF06D21D66D86A161F9B0F36253D99E5'

3. and then send it over the network

But one issue i'm facing is we can execute the transactions; however i'm not able to sendasset until all other transactions are confirmed over sending/receiving address

did any one of you face a similar problem - is there any work around ?